diff --git a/Example.java b/Example.java index d7a2a8ca..2f9f2511 100644 --- a/Example.java +++ b/Example.java @@ -24,7 +24,7 @@ public static void main(String[] args) throws Exception { CartItem cartItem = new CartItem(); cartItem.setName("Hawaiian Pizza"); cartItem.setSku("pizza-x"); - cartItem.setQuantity(1); + cartItem.setQuantity(1L); cartItem.setPrice(new java.math.BigDecimal("5.5")); // Creating a customer session of V2 @@ -35,12 +35,12 @@ public static void main(String[] args) throws Exception { // Initiating integration request wrapping the customer session update IntegrationRequest request = new IntegrationRequest() - .customerSession(customerSession) - // Optional parameter of requested information to be present on the response related to the customer session update - .responseContent(Arrays.asList( - IntegrationRequest.ResponseContentEnum.CUSTOMERSESSION, - IntegrationRequest.ResponseContentEnum.CUSTOMERPROFILE - )); + .customerSession(customerSession) + // Optional parameter of requested information to be present on the response + // related to the customer session update + .responseContent(Arrays.asList( + IntegrationRequest.ResponseContentEnum.CUSTOMERSESSION, + IntegrationRequest.ResponseContentEnum.CUSTOMERPROFILE)); // Flag to communicate whether the request is a "dry run" Boolean dryRun = false; @@ -49,14 +49,15 @@ public static void main(String[] args) throws Exception { IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request, dryRun, null); System.out.println(is.toString()); - // Parsing the returned effects list, please consult https://developers.talon.one/Integration-API/handling-effects-v2 for the full list of effects and their corresponding properties + // Parsing the returned effects list, please consult + // https://developers.talon.one/Integration-API/handling-effects-v2 for the full + // list of effects and their corresponding properties for (Effect eff : is.getEffects()) { if (eff.getEffectType().equals("addLoyaltyPoints")) { // Typecasting according to the specific effect type AddLoyaltyPointsEffectProps props = gson.fromJson( - gson.toJson(eff.getProps()), - AddLoyaltyPointsEffectProps.class - ); + gson.toJson(eff.getProps()), + AddLoyaltyPointsEffectProps.class); // Access the specific effect's properties System.out.println(props.getName()); System.out.println(props.getProgramId()); @@ -65,9 +66,8 @@ public static void main(String[] args) throws Exception { if (eff.getEffectType().equals("acceptCoupon")) { // Typecasting according to the specific effect type AcceptCouponEffectProps props = gson.fromJson( - gson.toJson(eff.getProps()), - AcceptCouponEffectProps.class - ); + gson.toJson(eff.getProps()), + AcceptCouponEffectProps.class); // work with AcceptCouponEffectProps' properties // ... } diff --git a/docs/AccessLogEntry.md b/docs/AccessLogEntry.md index ace849e4..18bd6335 100644 --- a/docs/AccessLogEntry.md +++ b/docs/AccessLogEntry.md @@ -8,7 +8,7 @@ Log of application accesses. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | UUID reference of request. | -**status** | **Integer** | HTTP status code of response. | +**status** | **Long** | HTTP status code of response. | **method** | **String** | HTTP method of request. | **requestUri** | **String** | target URI of request | **time** | [**OffsetDateTime**](OffsetDateTime.md) | timestamp of request | diff --git a/docs/Account.md b/docs/Account.md index e6a37d79..a7225212 100644 --- a/docs/Account.md +++ b/docs/Account.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **companyName** | **String** | | @@ -15,14 +15,14 @@ Name | Type | Description | Notes **billingEmail** | **String** | The billing email address associated with your company account. | **planName** | **String** | The name of your booked plan. | [optional] **planExpires** | [**OffsetDateTime**](OffsetDateTime.md) | The point in time at which your current plan expires. | [optional] -**applicationLimit** | **Integer** | The maximum number of Applications covered by your plan. | [optional] -**userLimit** | **Integer** | The maximum number of Campaign Manager Users covered by your plan. | [optional] -**campaignLimit** | **Integer** | The maximum number of Campaigns covered by your plan. | [optional] -**apiLimit** | **Integer** | The maximum number of Integration API calls covered by your plan per billing period. | [optional] -**applicationCount** | **Integer** | The current number of Applications in your account. | -**userCount** | **Integer** | The current number of Campaign Manager Users in your account. | -**campaignsActiveCount** | **Integer** | The current number of active Campaigns in your account. | -**campaignsInactiveCount** | **Integer** | The current number of inactive Campaigns in your account. | +**applicationLimit** | **Long** | The maximum number of Applications covered by your plan. | [optional] +**userLimit** | **Long** | The maximum number of Campaign Manager Users covered by your plan. | [optional] +**campaignLimit** | **Long** | The maximum number of Campaigns covered by your plan. | [optional] +**apiLimit** | **Long** | The maximum number of Integration API calls covered by your plan per billing period. | [optional] +**applicationCount** | **Long** | The current number of Applications in your account. | +**userCount** | **Long** | The current number of Campaign Manager Users in your account. | +**campaignsActiveCount** | **Long** | The current number of active Campaigns in your account. | +**campaignsInactiveCount** | **Long** | The current number of inactive Campaigns in your account. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] diff --git a/docs/AccountAdditionalCost.md b/docs/AccountAdditionalCost.md index 45a50c49..b33ce618 100644 --- a/docs/AccountAdditionalCost.md +++ b/docs/AccountAdditionalCost.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | The internal name used in API requests. | **title** | **String** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. | **description** | **String** | A description of this additional cost. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. | [optional] diff --git a/docs/AccountAnalytics.md b/docs/AccountAnalytics.md index 7ed9e219..4021c107 100644 --- a/docs/AccountAnalytics.md +++ b/docs/AccountAnalytics.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applications** | **Integer** | Total number of applications in the account. | -**liveApplications** | **Integer** | Total number of live applications in the account. | -**sandboxApplications** | **Integer** | Total number of sandbox applications in the account. | -**campaigns** | **Integer** | Total number of campaigns in the account. | -**activeCampaigns** | **Integer** | Total number of active campaigns in the account. | -**liveActiveCampaigns** | **Integer** | Total number of active campaigns in live applications in the account. | -**coupons** | **Integer** | Total number of coupons in the account. | -**activeCoupons** | **Integer** | Total number of active coupons in the account. | -**expiredCoupons** | **Integer** | Total number of expired coupons in the account. | -**referralCodes** | **Integer** | Total number of referral codes in the account. | -**activeReferralCodes** | **Integer** | Total number of active referral codes in the account. | -**expiredReferralCodes** | **Integer** | Total number of expired referral codes in the account. | -**activeRules** | **Integer** | Total number of active rules in the account. | -**users** | **Integer** | Total number of users in the account. | -**roles** | **Integer** | Total number of roles in the account. | -**customAttributes** | **Integer** | Total number of custom attributes in the account. | -**webhooks** | **Integer** | Total number of webhooks in the account. | -**loyaltyPrograms** | **Integer** | Total number of all loyalty programs in the account. | -**liveLoyaltyPrograms** | **Integer** | Total number of live loyalty programs in the account. | +**applications** | **Long** | Total number of applications in the account. | +**liveApplications** | **Long** | Total number of live applications in the account. | +**sandboxApplications** | **Long** | Total number of sandbox applications in the account. | +**campaigns** | **Long** | Total number of campaigns in the account. | +**activeCampaigns** | **Long** | Total number of active campaigns in the account. | +**liveActiveCampaigns** | **Long** | Total number of active campaigns in live applications in the account. | +**coupons** | **Long** | Total number of coupons in the account. | +**activeCoupons** | **Long** | Total number of active coupons in the account. | +**expiredCoupons** | **Long** | Total number of expired coupons in the account. | +**referralCodes** | **Long** | Total number of referral codes in the account. | +**activeReferralCodes** | **Long** | Total number of active referral codes in the account. | +**expiredReferralCodes** | **Long** | Total number of expired referral codes in the account. | +**activeRules** | **Long** | Total number of active rules in the account. | +**users** | **Long** | Total number of users in the account. | +**roles** | **Long** | Total number of roles in the account. | +**customAttributes** | **Long** | Total number of custom attributes in the account. | +**webhooks** | **Long** | Total number of webhooks in the account. | +**loyaltyPrograms** | **Long** | Total number of all loyalty programs in the account. | +**liveLoyaltyPrograms** | **Long** | Total number of live loyalty programs in the account. | **lastUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The point in time when the analytics numbers were updated last. | diff --git a/docs/AccountDashboardStatisticCampaigns.md b/docs/AccountDashboardStatisticCampaigns.md index a727d02a..19c0b8fc 100644 --- a/docs/AccountDashboardStatisticCampaigns.md +++ b/docs/AccountDashboardStatisticCampaigns.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**live** | **Integer** | Number of campaigns that are active and live (across all Applications). | -**endingSoon** | **Integer** | Campaigns scheduled to expire sometime in the next 7 days. | -**lowOnBudget** | **Integer** | Campaigns with less than 10% of budget left. | +**live** | **Long** | Number of campaigns that are active and live (across all Applications). | +**endingSoon** | **Long** | Campaigns scheduled to expire sometime in the next 7 days. | +**lowOnBudget** | **Long** | Campaigns with less than 10% of budget left. | diff --git a/docs/AccountEntity.md b/docs/AccountEntity.md index 51f7598c..6b677e46 100644 --- a/docs/AccountEntity.md +++ b/docs/AccountEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | diff --git a/docs/AccountLimits.md b/docs/AccountLimits.md index 945c85d7..3b1f4c78 100644 --- a/docs/AccountLimits.md +++ b/docs/AccountLimits.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**liveApplications** | **Integer** | Total number of allowed live applications in the account. | -**sandboxApplications** | **Integer** | Total number of allowed sandbox applications in the account. | -**activeCampaigns** | **Integer** | Total number of allowed active campaigns in live applications in the account. | -**coupons** | **Integer** | Total number of allowed coupons in the account. | -**referralCodes** | **Integer** | Total number of allowed referral codes in the account. | -**activeRules** | **Integer** | Total number of allowed active rulesets in the account. | -**liveLoyaltyPrograms** | **Integer** | Total number of allowed live loyalty programs in the account. | -**sandboxLoyaltyPrograms** | **Integer** | Total number of allowed sandbox loyalty programs in the account. | -**webhooks** | **Integer** | Total number of allowed webhooks in the account. | -**users** | **Integer** | Total number of allowed users in the account. | -**apiVolume** | **Integer** | Allowed volume of API requests to the account. | +**liveApplications** | **Long** | Total number of allowed live applications in the account. | +**sandboxApplications** | **Long** | Total number of allowed sandbox applications in the account. | +**activeCampaigns** | **Long** | Total number of allowed active campaigns in live applications in the account. | +**coupons** | **Long** | Total number of allowed coupons in the account. | +**referralCodes** | **Long** | Total number of allowed referral codes in the account. | +**activeRules** | **Long** | Total number of allowed active rulesets in the account. | +**liveLoyaltyPrograms** | **Long** | Total number of allowed live loyalty programs in the account. | +**sandboxLoyaltyPrograms** | **Long** | Total number of allowed sandbox loyalty programs in the account. | +**webhooks** | **Long** | Total number of allowed webhooks in the account. | +**users** | **Long** | Total number of allowed users in the account. | +**apiVolume** | **Long** | Allowed volume of API requests to the account. | **promotionTypes** | **List<String>** | Array of promotion types that are employed in the account. | diff --git a/docs/Achievement.md b/docs/Achievement.md index ae140fbf..31fac2fc 100644 --- a/docs/Achievement.md +++ b/docs/Achievement.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] -**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | -**userId** | **Integer** | ID of the user that created this achievement. | +**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | +**userId** | **Long** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | [optional] **hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] diff --git a/docs/AchievementAdditionalProperties.md b/docs/AchievementAdditionalProperties.md index ee0d3e2c..c0e74bd4 100644 --- a/docs/AchievementAdditionalProperties.md +++ b/docs/AchievementAdditionalProperties.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | -**userId** | **Integer** | ID of the user that created this achievement. | +**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | +**userId** | **Long** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | [optional] **hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] diff --git a/docs/AchievementProgressWithDefinition.md b/docs/AchievementProgressWithDefinition.md index cf8eac89..adc274ab 100644 --- a/docs/AchievementProgressWithDefinition.md +++ b/docs/AchievementProgressWithDefinition.md @@ -12,11 +12,11 @@ Name | Type | Description | Notes **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which the customer started the achievement. | [optional] **completionDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the customer completed the achievement. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the achievement ends and resets for the customer. | [optional] -**achievementId** | **Integer** | The internal ID of the achievement. | +**achievementId** | **Long** | The internal ID of the achievement. | **name** | **String** | The internal name of the achievement used in API requests. | **title** | **String** | The display name of the achievement in the Campaign Manager. | **description** | **String** | The description of the achievement in the Campaign Manager. | -**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | +**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] **achievementRecurrencePolicy** | [**AchievementRecurrencePolicyEnum**](#AchievementRecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | **achievementActivationPolicy** | [**AchievementActivationPolicyEnum**](#AchievementActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | diff --git a/docs/AchievementStatusEntry.md b/docs/AchievementStatusEntry.md index 3c5057e8..fa44fd9f 100644 --- a/docs/AchievementStatusEntry.md +++ b/docs/AchievementStatusEntry.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | @@ -18,7 +18,7 @@ Name | Type | Description | Notes **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] -**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | [optional] +**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] **currentProgress** | [**AchievementProgress**](AchievementProgress.md) | | [optional] diff --git a/docs/AddFreeItemEffectProps.md b/docs/AddFreeItemEffectProps.md index 21b04439..602629d9 100644 --- a/docs/AddFreeItemEffectProps.md +++ b/docs/AddFreeItemEffectProps.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sku** | **String** | SKU of the item that needs to be added. | **name** | **String** | The name / description of the effect | -**desiredQuantity** | **Integer** | The original quantity in case a partial reward was applied. | [optional] +**desiredQuantity** | **Long** | The original quantity in case a partial reward was applied. | [optional] diff --git a/docs/AddLoyaltyPoints.md b/docs/AddLoyaltyPoints.md index bf2da991..c7b8a9bb 100644 --- a/docs/AddLoyaltyPoints.md +++ b/docs/AddLoyaltyPoints.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **pendingDuration** | **String** | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one 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. | [optional] **pendingUntil** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. | [optional] **subledgerId** | **String** | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional] -**applicationId** | **Integer** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional] +**applicationId** | **Long** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional] diff --git a/docs/AddLoyaltyPointsEffectProps.md b/docs/AddLoyaltyPointsEffectProps.md index 2757cd22..ada3b99d 100644 --- a/docs/AddLoyaltyPointsEffectProps.md +++ b/docs/AddLoyaltyPointsEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this loyalty point addition. | -**programId** | **Integer** | The ID of the loyalty program where these points were added. | +**programId** | **Long** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were added. | **desiredValue** | [**BigDecimal**](BigDecimal.md) | The original amount of loyalty points to be awarded. | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart items list on which the loyal points addition should be applied. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied. | [optional] **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | [optional] -**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] diff --git a/docs/AddToAudienceEffectProps.md b/docs/AddToAudienceEffectProps.md index 47a83438..e75e7fbc 100644 --- a/docs/AddToAudienceEffectProps.md +++ b/docs/AddToAudienceEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"addToAudience\" effect. This gets triggered whe Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Integer** | The internal ID of the audience. | [optional] +**audienceId** | **Long** | The internal ID of the audience. | [optional] **audienceName** | **String** | The name of the audience. | [optional] **profileIntegrationId** | **String** | The ID of the customer profile in the third-party integration platform. | [optional] -**profileId** | **Integer** | The internal ID of the customer profile. | [optional] +**profileId** | **Long** | The internal ID of the customer profile. | [optional] diff --git a/docs/AdditionalCampaignProperties.md b/docs/AdditionalCampaignProperties.md index 639d47cc..341deb1a 100644 --- a/docs/AdditionalCampaignProperties.md +++ b/docs/AdditionalCampaignProperties.md @@ -7,29 +7,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | [optional] -**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] **frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | The campaign state displayed in the Campaign Manager. | **storesImported** | **Boolean** | Indicates whether the linked stores were imported via a CSV file. | -**valueMapsIds** | **List<Integer>** | A list of value map IDs for the campaign. | [optional] +**valueMapsIds** | **List<Long>** | A list of value map IDs for the campaign. | [optional] diff --git a/docs/AnalyticsProduct.md b/docs/AnalyticsProduct.md index b42d1478..fc08da1b 100644 --- a/docs/AnalyticsProduct.md +++ b/docs/AnalyticsProduct.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the product. | +**id** | **Long** | The ID of the product. | **name** | **String** | The name of the product. | -**catalogId** | **Integer** | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | +**catalogId** | **Long** | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | [optional] diff --git a/docs/AnalyticsProductSKU.md b/docs/AnalyticsProductSKU.md index 3636506f..aef12eec 100644 --- a/docs/AnalyticsProductSKU.md +++ b/docs/AnalyticsProductSKU.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the SKU linked to the analytics-level product. | +**id** | **Long** | The ID of the SKU linked to the analytics-level product. | **sku** | **String** | The SKU linked to the analytics-level product. | **lastUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | Values in UTC for the date the SKU linked to the analytics-level product was last updated. | diff --git a/docs/AnalyticsSKU.md b/docs/AnalyticsSKU.md index 8b1bf70f..c0590672 100644 --- a/docs/AnalyticsSKU.md +++ b/docs/AnalyticsSKU.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the SKU linked to the application. | +**id** | **Long** | The ID of the SKU linked to the application. | **sku** | **String** | The SKU linked to the application. | **lastUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | Values in UTC for the date the SKU linked to the product was last updated. | [optional] **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | [optional] diff --git a/docs/Application.md b/docs/Application.md index 9676c6d2..8a48a665 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | The name of this application. | **description** | **String** | A longer description of the application. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | @@ -24,8 +24,8 @@ Name | Type | Description | Notes **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] **enablePartialDiscounts** | **Boolean** | Indicates if this Application supports partial discounts. | [optional] **defaultDiscountAdditionalCostPerItemScope** | [**DefaultDiscountAdditionalCostPerItemScopeEnum**](#DefaultDiscountAdditionalCostPerItemScopeEnum) | The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. | [optional] -**defaultEvaluationGroupId** | **Integer** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] -**defaultCartItemFilterId** | **Integer** | The ID of the default Cart-Item-Filter for this application. | [optional] +**defaultEvaluationGroupId** | **Long** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] +**defaultCartItemFilterId** | **Long** | The ID of the default Cart-Item-Filter for this application. | [optional] **enableCampaignStateManagement** | **Boolean** | Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. | [optional] **loyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed. | diff --git a/docs/ApplicationAPIKey.md b/docs/ApplicationAPIKey.md index 8a7622e3..bf35028a 100644 --- a/docs/ApplicationAPIKey.md +++ b/docs/ApplicationAPIKey.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] -**id** | **Integer** | ID of the API Key. | -**createdBy** | **Integer** | ID of user who created. | -**accountID** | **Integer** | ID of account the key is used for. | -**applicationID** | **Integer** | ID of application the key is used for. | +**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**id** | **Long** | ID of the API Key. | +**createdBy** | **Long** | ID of user who created. | +**accountID** | **Long** | ID of account the key is used for. | +**applicationID** | **Long** | ID of application the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key was created. | diff --git a/docs/ApplicationCIF.md b/docs/ApplicationCIF.md index af11cb5d..0ca112c6 100644 --- a/docs/ApplicationCIF.md +++ b/docs/ApplicationCIF.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name of the Application cart item filter used in API requests. | **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] -**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] +**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] +**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationCIFExpression.md b/docs/ApplicationCIFExpression.md index 7854d57d..47591c76 100644 --- a/docs/ApplicationCIFExpression.md +++ b/docs/ApplicationCIFExpression.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**cartItemFilterId** | **Integer** | The ID of the Application cart item filter. | [optional] -**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] +**cartItemFilterId** | **Long** | The ID of the Application cart item filter. | [optional] +**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] **expression** | **List<Object>** | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationCIFReferences.md b/docs/ApplicationCIFReferences.md index 6b32b1c8..1e847b33 100644 --- a/docs/ApplicationCIFReferences.md +++ b/docs/ApplicationCIFReferences.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationCartItemFilterId** | **Integer** | The ID of the Application Cart Item Filter that is referenced by a campaign. | [optional] +**applicationCartItemFilterId** | **Long** | The ID of the Application Cart Item Filter that is referenced by a campaign. | [optional] **campaigns** | [**List<CampaignDetail>**](CampaignDetail.md) | Campaigns that reference a speciifc Application Cart Item Filter. | [optional] diff --git a/docs/ApplicationCampaignAnalytics.md b/docs/ApplicationCampaignAnalytics.md index b7cdda8d..94aa70c3 100644 --- a/docs/ApplicationCampaignAnalytics.md +++ b/docs/ApplicationCampaignAnalytics.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | -**campaignId** | **Integer** | The ID of the campaign. | +**campaignId** | **Long** | The ID of the campaign. | **campaignName** | **String** | The name of the campaign. | **campaignTags** | **List<String>** | A list of tags for the campaign. | **campaignState** | [**CampaignStateEnum**](#CampaignStateEnum) | The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. | diff --git a/docs/ApplicationCampaignStats.md b/docs/ApplicationCampaignStats.md index 6427b729..a1125f33 100644 --- a/docs/ApplicationCampaignStats.md +++ b/docs/ApplicationCampaignStats.md @@ -7,12 +7,12 @@ Provides statistics regarding an application's campaigns. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disabled** | **Integer** | Number of disabled campaigns. | -**staged** | **Integer** | Number of staged campaigns. | -**scheduled** | **Integer** | Number of scheduled campaigns. | -**running** | **Integer** | Number of running campaigns. | -**expired** | **Integer** | Number of expired campaigns. | -**archived** | **Integer** | Number of archived campaigns. | +**disabled** | **Long** | Number of disabled campaigns. | +**staged** | **Long** | Number of staged campaigns. | +**scheduled** | **Long** | Number of scheduled campaigns. | +**running** | **Long** | Number of running campaigns. | +**expired** | **Long** | Number of expired campaigns. | +**archived** | **Long** | Number of archived campaigns. | diff --git a/docs/ApplicationCustomer.md b/docs/ApplicationCustomer.md index fff19a34..fe05c12d 100644 --- a/docs/ApplicationCustomer.md +++ b/docs/ApplicationCustomer.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Integer** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] diff --git a/docs/ApplicationCustomerEntity.md b/docs/ApplicationCustomerEntity.md index 1f4aa81a..65584939 100644 --- a/docs/ApplicationCustomerEntity.md +++ b/docs/ApplicationCustomerEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] diff --git a/docs/ApplicationEntity.md b/docs/ApplicationEntity.md index 36ea30be..be4d1e7e 100644 --- a/docs/ApplicationEntity.md +++ b/docs/ApplicationEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationEvent.md b/docs/ApplicationEvent.md index 0fbec5de..a4012c5f 100644 --- a/docs/ApplicationEvent.md +++ b/docs/ApplicationEvent.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] -**storeId** | **Integer** | The ID of the store. | [optional] +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**storeId** | **Long** | The ID of the store. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**sessionId** | **Integer** | The globally unique Talon.One ID of the session that contains this event. | [optional] +**sessionId** | **Long** | The globally unique Talon.One ID of the session that contains this event. | [optional] **type** | **String** | A string representing the event. Must not be a reserved event name. | **attributes** | [**Object**](.md) | Additional JSON serialized data associated with the event. | **effects** | [**List<Effect>**](Effect.md) | An array containing the effects that were applied as a result of this event. | diff --git a/docs/ApplicationReferee.md b/docs/ApplicationReferee.md index 46322b37..ff135584 100644 --- a/docs/ApplicationReferee.md +++ b/docs/ApplicationReferee.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **sessionId** | **String** | Integration ID of the session in which the customer redeemed the referral. | **advocateIntegrationId** | **String** | Integration ID of the Advocate's Profile. | **friendIntegrationId** | **String** | Integration ID of the Friend's Profile. | diff --git a/docs/ApplicationSession.md b/docs/ApplicationSession.md index 61283049..63cc076c 100644 --- a/docs/ApplicationSession.md +++ b/docs/ApplicationSession.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] **profileintegrationid** | **String** | Integration ID of the customer for the session. | [optional] **coupon** | **String** | Any coupon code entered. | **referral** | **String** | Any referral code entered. | diff --git a/docs/ApplicationSessionEntity.md b/docs/ApplicationSessionEntity.md index e41ccf7e..09f6ebc8 100644 --- a/docs/ApplicationSessionEntity.md +++ b/docs/ApplicationSessionEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sessionId** | **Integer** | The globally unique Talon.One ID of the session where this entity was created. | +**sessionId** | **Long** | The globally unique Talon.One ID of the session where this entity was created. | diff --git a/docs/ApplicationStoreEntity.md b/docs/ApplicationStoreEntity.md index 672fa75b..e33fc69e 100644 --- a/docs/ApplicationStoreEntity.md +++ b/docs/ApplicationStoreEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storeId** | **Integer** | The ID of the store. | [optional] +**storeId** | **Long** | The ID of the store. | [optional] diff --git a/docs/AsyncCouponDeletionJobResponse.md b/docs/AsyncCouponDeletionJobResponse.md index 440aad48..d0f114d7 100644 --- a/docs/AsyncCouponDeletionJobResponse.md +++ b/docs/AsyncCouponDeletionJobResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/Attribute.md b/docs/Attribute.md index cd831648..1ec79752 100644 --- a/docs/Attribute.md +++ b/docs/Attribute.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **entity** | [**EntityEnum**](#EntityEnum) | The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. | **eventType** | **String** | | [optional] **name** | **String** | The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. | @@ -19,10 +19,10 @@ Name | Type | Description | Notes **hasAllowedList** | **Boolean** | Whether or not this attribute has an allowed list of values associated with it. | [optional] **restrictedBySuggestions** | **Boolean** | Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). | [optional] **editable** | **Boolean** | Whether or not this attribute can be edited. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications where this attribute is available. | [optional] -**subscribedCatalogsIds** | **List<Integer>** | A list of the IDs of the catalogs where this attribute is available. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications where this attribute is available. | [optional] +**subscribedCatalogsIds** | **List<Long>** | A list of the IDs of the catalogs where this attribute is available. | [optional] **allowedSubscriptions** | [**List<AllowedSubscriptionsEnum>**](#List<AllowedSubscriptionsEnum>) | A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. | [optional] -**eventTypeId** | **Integer** | | [optional] +**eventTypeId** | **Long** | | [optional] diff --git a/docs/Audience.md b/docs/Audience.md index 9ada1853..082417a3 100644 --- a/docs/Audience.md +++ b/docs/Audience.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Integer** | The ID of the account that owns this entity. | -**id** | **Integer** | Internal ID of this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The human-friendly display name for this audience. | **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] diff --git a/docs/AudienceAnalytics.md b/docs/AudienceAnalytics.md index e2307465..08b874c0 100644 --- a/docs/AudienceAnalytics.md +++ b/docs/AudienceAnalytics.md @@ -7,8 +7,8 @@ The audiences and their member count. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Integer** | The ID of the audience. | [optional] -**membersCount** | **Integer** | The member count of the audience. | [optional] +**audienceId** | **Long** | The ID of the audience. | [optional] +**membersCount** | **Long** | The member count of the audience. | [optional] diff --git a/docs/AudienceCustomer.md b/docs/AudienceCustomer.md index c2d7f477..4f6a02d8 100644 --- a/docs/AudienceCustomer.md +++ b/docs/AudienceCustomer.md @@ -6,19 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Integer** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. | **sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] -**connectedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications that are connected to this customer profile. | [optional] -**connectedAudiences** | **List<Integer>** | A list of the IDs of the audiences that are connected to this customer profile. | [optional] +**connectedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications that are connected to this customer profile. | [optional] +**connectedAudiences** | **List<Long>** | A list of the IDs of the audiences that are connected to this customer profile. | [optional] diff --git a/docs/AudienceMembership.md b/docs/AudienceMembership.md index 11333372..c4d1aa78 100644 --- a/docs/AudienceMembership.md +++ b/docs/AudienceMembership.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the audience belonging to this entity. | +**id** | **Long** | The ID of the audience belonging to this entity. | **name** | **String** | The Name of the audience belonging to this entity. | diff --git a/docs/AwardGiveawayEffectProps.md b/docs/AwardGiveawayEffectProps.md index 75585efd..9b68d10c 100644 --- a/docs/AwardGiveawayEffectProps.md +++ b/docs/AwardGiveawayEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"awardGiveaway\" effect. This effect contains in Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**poolId** | **Integer** | The ID of the giveaways pool the code was taken from. | +**poolId** | **Long** | The ID of the giveaways pool the code was taken from. | **poolName** | **String** | The name of the giveaways pool the code was taken from. | **recipientIntegrationId** | **String** | The integration ID of the profile that was awarded the giveaway. | -**giveawayId** | **Integer** | The internal ID for the giveaway that was awarded. | +**giveawayId** | **Long** | The internal ID for the giveaway that was awarded. | **code** | **String** | The giveaway code that was awarded. | diff --git a/docs/BaseCampaign.md b/docs/BaseCampaign.md index bf4ec0da..cb1bf76c 100644 --- a/docs/BaseCampaign.md +++ b/docs/BaseCampaign.md @@ -12,15 +12,15 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] diff --git a/docs/BaseCampaignForNotification.md b/docs/BaseCampaignForNotification.md index b9eabb0f..19e647a9 100644 --- a/docs/BaseCampaignForNotification.md +++ b/docs/BaseCampaignForNotification.md @@ -12,16 +12,16 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Integer>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] diff --git a/docs/BaseLoyaltyProgram.md b/docs/BaseLoyaltyProgram.md index 117e9fc8..3ad90ab1 100644 --- a/docs/BaseLoyaltyProgram.md +++ b/docs/BaseLoyaltyProgram.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | [optional] **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] -**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional] **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/BaseNotification.md b/docs/BaseNotification.md index fda2712b..47d86cd7 100644 --- a/docs/BaseNotification.md +++ b/docs/BaseNotification.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **policy** | [**Object**](.md) | Indicates which notification properties to apply. | **enabled** | **Boolean** | Indicates whether the notification is activated. | [optional] **webhook** | [**BaseNotificationWebhook**](BaseNotificationWebhook.md) | | -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **type** | [**TypeEnum**](#TypeEnum) | The notification type. | diff --git a/docs/BaseNotificationWebhook.md b/docs/BaseNotificationWebhook.md index bc0fcbfb..2328c9fe 100644 --- a/docs/BaseNotificationWebhook.md +++ b/docs/BaseNotificationWebhook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **url** | **String** | API URL for the given webhook-based notification. | diff --git a/docs/BaseSamlConnection.md b/docs/BaseSamlConnection.md index 6f133dda..292970d1 100644 --- a/docs/BaseSamlConnection.md +++ b/docs/BaseSamlConnection.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | diff --git a/docs/BulkApplicationNotification.md b/docs/BulkApplicationNotification.md index b016460d..79e14da5 100644 --- a/docs/BulkApplicationNotification.md +++ b/docs/BulkApplicationNotification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<ApplicationNotification>**](ApplicationNotification.md) | | diff --git a/docs/BulkCampaignNotification.md b/docs/BulkCampaignNotification.md index 41e12e06..b87c67ff 100644 --- a/docs/BulkCampaignNotification.md +++ b/docs/BulkCampaignNotification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<CampaignNotification>**](CampaignNotification.md) | | diff --git a/docs/BulkOperationOnCampaigns.md b/docs/BulkOperationOnCampaigns.md index 7eb0ecb7..fa94453b 100644 --- a/docs/BulkOperationOnCampaigns.md +++ b/docs/BulkOperationOnCampaigns.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | [**OperationEnum**](#OperationEnum) | The operation to perform on the specified campaign IDs. | -**campaignIds** | **List<Integer>** | The list of campaign IDs on which the operation will be performed. | +**campaignIds** | **List<Long>** | The list of campaign IDs on which the operation will be performed. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. | [optional] diff --git a/docs/Campaign.md b/docs/Campaign.md index 992e00ba..b4db452e 100644 --- a/docs/Campaign.md +++ b/docs/Campaign.md @@ -6,55 +6,55 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | -**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | [optional] -**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] **frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | The campaign state displayed in the Campaign Manager. | **storesImported** | **Boolean** | Indicates whether the linked stores were imported via a CSV file. | -**valueMapsIds** | **List<Integer>** | A list of value map IDs for the campaign. | [optional] +**valueMapsIds** | **List<Long>** | A list of value map IDs for the campaign. | [optional] **revisionFrontendState** | [**RevisionFrontendStateEnum**](#RevisionFrontendStateEnum) | The campaign revision state displayed in the Campaign Manager. | [optional] -**activeRevisionId** | **Integer** | ID of the revision that was last activated on this campaign. | [optional] -**activeRevisionVersionId** | **Integer** | ID of the revision version that is active on the campaign. | [optional] -**version** | **Integer** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] -**currentRevisionId** | **Integer** | ID of the revision currently being modified for the campaign. | [optional] -**currentRevisionVersionId** | **Integer** | ID of the latest version applied on the current revision. | [optional] +**activeRevisionId** | **Long** | ID of the revision that was last activated on this campaign. | [optional] +**activeRevisionVersionId** | **Long** | ID of the revision version that is active on the campaign. | [optional] +**version** | **Long** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] +**currentRevisionId** | **Long** | ID of the revision currently being modified for the campaign. | [optional] +**currentRevisionVersionId** | **Long** | ID of the latest version applied on the current revision. | [optional] **stageRevision** | **Boolean** | Flag for determining whether we use current revision when sending requests with staging API key. | [optional] diff --git a/docs/CampaignActivationRequest.md b/docs/CampaignActivationRequest.md index 0eac1a96..48874ee8 100644 --- a/docs/CampaignActivationRequest.md +++ b/docs/CampaignActivationRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userIds** | **List<Integer>** | The list of IDs of the users who will receive the activation request. | +**userIds** | **List<Long>** | The list of IDs of the users who will receive the activation request. | diff --git a/docs/CampaignAnalytics.md b/docs/CampaignAnalytics.md index 6db38b31..a411fe50 100644 --- a/docs/CampaignAnalytics.md +++ b/docs/CampaignAnalytics.md @@ -15,18 +15,18 @@ Name | Type | Description | Notes **totalCampaignDiscountCosts** | [**BigDecimal**](BigDecimal.md) | Amount of cost caused by discounts given in the campaign since it began. | **campaignRefundedDiscounts** | [**BigDecimal**](BigDecimal.md) | Amount of discounts rolledback due to refund in the campaign. | **totalCampaignRefundedDiscounts** | [**BigDecimal**](BigDecimal.md) | Amount of discounts rolledback due to refund in the campaign since it began. | -**campaignFreeItems** | **Integer** | Amount of free items given in the campaign. | -**totalCampaignFreeItems** | **Integer** | Amount of free items given in the campaign since it began. | -**couponRedemptions** | **Integer** | Number of coupon redemptions in the campaign. | -**totalCouponRedemptions** | **Integer** | Number of coupon redemptions in the campaign since it began. | -**couponRolledbackRedemptions** | **Integer** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. | -**totalCouponRolledbackRedemptions** | **Integer** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. | -**referralRedemptions** | **Integer** | Number of referral redemptions in the campaign. | -**totalReferralRedemptions** | **Integer** | Number of referral redemptions in the campaign since it began. | -**couponsCreated** | **Integer** | Number of coupons created in the campaign by the rule engine. | -**totalCouponsCreated** | **Integer** | Number of coupons created in the campaign by the rule engine since it began. | -**referralsCreated** | **Integer** | Number of referrals created in the campaign by the rule engine. | -**totalReferralsCreated** | **Integer** | Number of referrals created in the campaign by the rule engine since it began. | +**campaignFreeItems** | **Long** | Amount of free items given in the campaign. | +**totalCampaignFreeItems** | **Long** | Amount of free items given in the campaign since it began. | +**couponRedemptions** | **Long** | Number of coupon redemptions in the campaign. | +**totalCouponRedemptions** | **Long** | Number of coupon redemptions in the campaign since it began. | +**couponRolledbackRedemptions** | **Long** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. | +**totalCouponRolledbackRedemptions** | **Long** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. | +**referralRedemptions** | **Long** | Number of referral redemptions in the campaign. | +**totalReferralRedemptions** | **Long** | Number of referral redemptions in the campaign since it began. | +**couponsCreated** | **Long** | Number of coupons created in the campaign by the rule engine. | +**totalCouponsCreated** | **Long** | Number of coupons created in the campaign by the rule engine since it began. | +**referralsCreated** | **Long** | Number of referrals created in the campaign by the rule engine. | +**totalReferralsCreated** | **Long** | Number of referrals created in the campaign by the rule engine since it began. | **addedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of added loyalty points in the campaign in a specific interval. | **totalAddedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of added loyalty points in the campaign since it began. | **deductedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of deducted loyalty points in the campaign in a specific interval. | diff --git a/docs/CampaignCollection.md b/docs/CampaignCollection.md index e950df5e..3ba437f1 100644 --- a/docs/CampaignCollection.md +++ b/docs/CampaignCollection.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] **payload** | **List<String>** | The content of the collection. | [optional] diff --git a/docs/CampaignCollectionWithoutPayload.md b/docs/CampaignCollectionWithoutPayload.md index e8105ad0..eb6aa0a8 100644 --- a/docs/CampaignCollectionWithoutPayload.md +++ b/docs/CampaignCollectionWithoutPayload.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] diff --git a/docs/CampaignCopy.md b/docs/CampaignCopy.md index 9970c410..49e0267a 100644 --- a/docs/CampaignCopy.md +++ b/docs/CampaignCopy.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the copied campaign (Defaults to \"Copy of original campaign name\"). | [optional] -**applicationIds** | **List<Integer>** | Application IDs of the applications to which a campaign should be copied to. | +**applicationIds** | **List<Long>** | Application IDs of the applications to which a campaign should be copied to. | **description** | **String** | A detailed description of the campaign. | [optional] **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] diff --git a/docs/CampaignDetail.md b/docs/CampaignDetail.md index 4364170a..9dc7c68b 100644 --- a/docs/CampaignDetail.md +++ b/docs/CampaignDetail.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that references the application cart item filter. | [optional] +**campaignId** | **Long** | The ID of the campaign that references the application cart item filter. | [optional] **campaignName** | **String** | A user-facing name for this campaign. | [optional] diff --git a/docs/CampaignEntity.md b/docs/CampaignEntity.md index 877cfe4e..5d848d21 100644 --- a/docs/CampaignEntity.md +++ b/docs/CampaignEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | diff --git a/docs/CampaignEvaluationGroup.md b/docs/CampaignEvaluationGroup.md index 0a04730e..a7dad089 100644 --- a/docs/CampaignEvaluationGroup.md +++ b/docs/CampaignEvaluationGroup.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | **locked** | **Boolean** | An indicator of whether the campaign evaluation group is locked for modification. | -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/CampaignEvaluationPosition.md b/docs/CampaignEvaluationPosition.md index 961997e1..5f2fb0be 100644 --- a/docs/CampaignEvaluationPosition.md +++ b/docs/CampaignEvaluationPosition.md @@ -7,9 +7,9 @@ The campaign position within the evaluation tree. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**groupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | +**groupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | **groupName** | **String** | The name of the campaign evaluation group the campaign belongs to. | -**position** | **Integer** | The position of the campaign node in its parent group. | +**position** | **Long** | The position of the campaign node in its parent group. | diff --git a/docs/CampaignEvaluationTreeChangedNotification.md b/docs/CampaignEvaluationTreeChangedNotification.md index 3821ce17..5713d5d1 100644 --- a/docs/CampaignEvaluationTreeChangedNotification.md +++ b/docs/CampaignEvaluationTreeChangedNotification.md @@ -7,7 +7,7 @@ Notification about an Application whose campaign evaluation tree changed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application whose campaign evaluation tree changed. | +**applicationId** | **Long** | The ID of the Application whose campaign evaluation tree changed. | **oldEvaluationTree** | [**CampaignSet**](CampaignSet.md) | | [optional] **evaluationTree** | [**CampaignSet**](CampaignSet.md) | | diff --git a/docs/CampaignForNotification.md b/docs/CampaignForNotification.md index 2db42af3..9c421c5d 100644 --- a/docs/CampaignForNotification.md +++ b/docs/CampaignForNotification.md @@ -7,47 +7,47 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | -**applicationId** | **Integer** | The ID of the application that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**applicationId** | **Long** | The ID of the application that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | -**linkedStoreIds** | **List<Integer>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | -**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] diff --git a/docs/CampaignGroup.md b/docs/CampaignGroup.md index 2f6a7c78..49f7bae8 100644 --- a/docs/CampaignGroup.md +++ b/docs/CampaignGroup.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/CampaignGroupEntity.md b/docs/CampaignGroupEntity.md index 4187641b..9ea91d60 100644 --- a/docs/CampaignGroupEntity.md +++ b/docs/CampaignGroupEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignGroups** | **List<Integer>** | The IDs of the campaign groups that own this entity. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the campaign groups that own this entity. | [optional] diff --git a/docs/CampaignNotificationPolicy.md b/docs/CampaignNotificationPolicy.md index 111c2979..6b8c0fad 100644 --- a/docs/CampaignNotificationPolicy.md +++ b/docs/CampaignNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CampaignPrioritiesChangedNotification.md b/docs/CampaignPrioritiesChangedNotification.md index 91ce4b7f..db57019e 100644 --- a/docs/CampaignPrioritiesChangedNotification.md +++ b/docs/CampaignPrioritiesChangedNotification.md @@ -7,7 +7,7 @@ Notification about an Application whose campaigns' priorities changed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application whose campaigns' priorities changed. | +**applicationId** | **Long** | The ID of the Application whose campaigns' priorities changed. | **oldPriorities** | [**CampaignSet**](CampaignSet.md) | | [optional] **priorities** | [**CampaignSet**](CampaignSet.md) | | diff --git a/docs/CampaignSet.md b/docs/CampaignSet.md index f349c8d8..24275c4d 100644 --- a/docs/CampaignSet.md +++ b/docs/CampaignSet.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**id** | **Integer** | Internal ID of this entity. | -**version** | **Integer** | Version of the campaign set. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**id** | **Long** | Internal ID of this entity. | +**version** | **Long** | Version of the campaign set. | **set** | [**CampaignSetBranchNode**](CampaignSetBranchNode.md) | | **updatedBy** | **String** | Name of the user who last updated this campaign set, if available. | [optional] diff --git a/docs/CampaignSetBranchNode.md b/docs/CampaignSetBranchNode.md index 5773bc22..00aad37e 100644 --- a/docs/CampaignSetBranchNode.md +++ b/docs/CampaignSetBranchNode.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the set. | **operator** | [**OperatorEnum**](#OperatorEnum) | An indicator of how the set operates on its elements. | **elements** | [**List<CampaignSetNode>**](CampaignSetNode.md) | Child elements of this set. | -**groupId** | **Integer** | The ID of the campaign set. | +**groupId** | **Long** | The ID of the campaign set. | **locked** | **Boolean** | An indicator of whether the campaign set is locked for modification. | **description** | **String** | A description of the campaign set. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | diff --git a/docs/CampaignSetIDs.md b/docs/CampaignSetIDs.md index c57f41fe..63075da1 100644 --- a/docs/CampaignSetIDs.md +++ b/docs/CampaignSetIDs.md @@ -7,7 +7,7 @@ Campaign IDs for each priority. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | ID of the campaign | [optional] +**campaignId** | **Long** | ID of the campaign | [optional] diff --git a/docs/CampaignSetLeafNode.md b/docs/CampaignSetLeafNode.md index 4676b637..27bef4ae 100644 --- a/docs/CampaignSetLeafNode.md +++ b/docs/CampaignSetLeafNode.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**TypeEnum**](#TypeEnum) | Indicates the node type. | -**campaignId** | **Integer** | ID of the campaign | +**campaignId** | **Long** | ID of the campaign | diff --git a/docs/CampaignSetV2.md b/docs/CampaignSetV2.md index 552eff07..19458be4 100644 --- a/docs/CampaignSetV2.md +++ b/docs/CampaignSetV2.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the application that owns this entity. | -**version** | **Integer** | Version of the campaign set. | +**applicationId** | **Long** | The ID of the application that owns this entity. | +**version** | **Long** | Version of the campaign set. | **set** | [**CampaignPrioritiesV2**](CampaignPrioritiesV2.md) | | diff --git a/docs/CampaignStateNotification.md b/docs/CampaignStateNotification.md index 4ea72ad1..c5cfc0b5 100644 --- a/docs/CampaignStateNotification.md +++ b/docs/CampaignStateNotification.md @@ -7,47 +7,47 @@ Campaign data and its state changes. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | -**applicationId** | **Integer** | The ID of the application that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**applicationId** | **Long** | The ID of the application that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | -**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | -**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] **frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | A campaign state described exactly as in the Campaign Manager. | diff --git a/docs/CampaignStoreBudget.md b/docs/CampaignStoreBudget.md index 7a92da1c..a7f3bd54 100644 --- a/docs/CampaignStoreBudget.md +++ b/docs/CampaignStoreBudget.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | -**storeId** | **Integer** | The ID of the store. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**storeId** | **Long** | The ID of the store. | **limits** | [**List<CampaignStoreBudgetLimitConfig>**](CampaignStoreBudgetLimitConfig.md) | The set of budget limits for stores linked to the campaign. | diff --git a/docs/CampaignTemplate.md b/docs/CampaignTemplate.md index e66382af..6d3b0b7f 100644 --- a/docs/CampaignTemplate.md +++ b/docs/CampaignTemplate.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **name** | **String** | The campaign template name. | **description** | **String** | Customer-facing text that explains the objective of the template. | **instructions** | **String** | Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign. | **campaignAttributes** | [**Object**](.md) | The campaign attributes that campaigns created from this template will have by default. | [optional] **couponAttributes** | [**Object**](.md) | The campaign attributes that coupons created from this template will have by default. | [optional] **state** | [**StateEnum**](#StateEnum) | Only campaign templates in 'available' state may be used to create campaigns. | -**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] @@ -24,13 +24,13 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] -**applicationsIds** | **List<Integer>** | A list of IDs of the Applications that are subscribed to this campaign template. | +**applicationsIds** | **List<Long>** | A list of IDs of the Applications that are subscribed to this campaign template. | **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign template or any of its elements. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign template, if available. | [optional] -**validApplicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | +**validApplicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | **isUserFavorite** | **Boolean** | A flag indicating whether the user marked the template as a favorite. | [optional] diff --git a/docs/CampaignTemplateCouponReservationSettings.md b/docs/CampaignTemplateCouponReservationSettings.md index d04b8952..ff0d40f4 100644 --- a/docs/CampaignTemplateCouponReservationSettings.md +++ b/docs/CampaignTemplateCouponReservationSettings.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] diff --git a/docs/CampaignTemplateParams.md b/docs/CampaignTemplateParams.md index d78a9cb2..76dfb911 100644 --- a/docs/CampaignTemplateParams.md +++ b/docs/CampaignTemplateParams.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the campaign template parameter. | **type** | [**TypeEnum**](#TypeEnum) | Defines the type of parameter value. | **description** | **String** | Explains the meaning of this template parameter and the placeholder value that will define it. It is used on campaign creation from this template. | -**attributeId** | **Integer** | ID of the corresponding attribute. | [optional] +**attributeId** | **Long** | ID of the corresponding attribute. | [optional] diff --git a/docs/CampaignVersions.md b/docs/CampaignVersions.md index cb06e69a..ebbf96c5 100644 --- a/docs/CampaignVersions.md +++ b/docs/CampaignVersions.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **revisionFrontendState** | [**RevisionFrontendStateEnum**](#RevisionFrontendStateEnum) | The campaign revision state displayed in the Campaign Manager. | [optional] -**activeRevisionId** | **Integer** | ID of the revision that was last activated on this campaign. | [optional] -**activeRevisionVersionId** | **Integer** | ID of the revision version that is active on the campaign. | [optional] -**version** | **Integer** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] -**currentRevisionId** | **Integer** | ID of the revision currently being modified for the campaign. | [optional] -**currentRevisionVersionId** | **Integer** | ID of the latest version applied on the current revision. | [optional] +**activeRevisionId** | **Long** | ID of the revision that was last activated on this campaign. | [optional] +**activeRevisionVersionId** | **Long** | ID of the revision version that is active on the campaign. | [optional] +**version** | **Long** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] +**currentRevisionId** | **Long** | ID of the revision currently being modified for the campaign. | [optional] +**currentRevisionVersionId** | **Long** | ID of the latest version applied on the current revision. | [optional] **stageRevision** | **Boolean** | Flag for determining whether we use current revision when sending requests with staging API key. | [optional] diff --git a/docs/CardExpiringPointsNotificationPolicy.md b/docs/CardExpiringPointsNotificationPolicy.md index c3fb6db4..4cf701b7 100644 --- a/docs/CardExpiringPointsNotificationPolicy.md +++ b/docs/CardExpiringPointsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<CardExpiringPointsNotificationTrigger>**](CardExpiringPointsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CardExpiringPointsNotificationTrigger.md b/docs/CardExpiringPointsNotificationTrigger.md index 27e5bcf3..0e73922c 100644 --- a/docs/CardExpiringPointsNotificationTrigger.md +++ b/docs/CardExpiringPointsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Integer** | The amount of period. | +**amount** | **Long** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/CardLedgerPointsEntryIntegrationAPI.md b/docs/CardLedgerPointsEntryIntegrationAPI.md index a91e1fe5..1afef1ff 100644 --- a/docs/CardLedgerPointsEntryIntegrationAPI.md +++ b/docs/CardLedgerPointsEntryIntegrationAPI.md @@ -7,9 +7,9 @@ Loyalty card points with start and expiry dates. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | ID of the transaction that adds loyalty points. | +**id** | **Long** | ID of the transaction that adds loyalty points. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card points were added. | -**programId** | **Integer** | ID of the loyalty program. | +**programId** | **Long** | ID of the loyalty program. | **customerProfileID** | **String** | Integration ID of the customer profile linked to the card. | [optional] **customerSessionId** | **String** | ID of the customer session where points were added. | [optional] **name** | **String** | Name or reason of the transaction that adds loyalty points. | diff --git a/docs/CardLedgerTransactionLogEntry.md b/docs/CardLedgerTransactionLogEntry.md index 0d4dc900..464d557a 100644 --- a/docs/CardLedgerTransactionLogEntry.md +++ b/docs/CardLedgerTransactionLogEntry.md @@ -8,10 +8,10 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | -**programId** | **Integer** | ID of the loyalty program. | +**programId** | **Long** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] -**sessionId** | **Integer** | The **internal** ID of the session. | [optional] +**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] +**sessionId** | **Long** | The **internal** ID of the session. | [optional] **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **name** | **String** | Name or reason of the loyalty ledger transaction. | @@ -19,7 +19,7 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points become active from the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Integer** | ID of the loyalty ledger entry. | +**id** | **Long** | ID of the loyalty ledger entry. | diff --git a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md index b707d2c7..5314c9d9 100644 --- a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md @@ -8,7 +8,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | -**programId** | **Integer** | ID of the loyalty program. | +**programId** | **Long** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | @@ -17,8 +17,8 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Integer** | ID of the loyalty ledger transaction. | -**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | [optional] +**id** | **Long** | ID of the loyalty ledger transaction. | +**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | [optional] **ruleName** | **String** | The name of the rule that triggered this effect. | [optional] diff --git a/docs/CartItem.md b/docs/CartItem.md index fa3e1fa1..fff32208 100644 --- a/docs/CartItem.md +++ b/docs/CartItem.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of item. | [optional] **sku** | **String** | Stock keeping unit of item. | -**quantity** | **Integer** | Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. | -**returnedQuantity** | **Integer** | Number of returned items, calculated internally based on returns of this item. | [optional] -**remainingQuantity** | **Integer** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional] +**quantity** | **Long** | Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. | +**returnedQuantity** | **Long** | Number of returned items, calculated internally based on returns of this item. | [optional] +**remainingQuantity** | **Long** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional] **price** | [**BigDecimal**](BigDecimal.md) | Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. | [optional] **category** | **String** | Type, group or model of the item. | [optional] **product** | [**Product**](Product.md) | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **position** | [**BigDecimal**](BigDecimal.md) | Position of the Cart Item in the Cart (calculated internally). | [optional] **attributes** | [**Object**](.md) | Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed. | [optional] **additionalCosts** | [**Map<String, AdditionalCost>**](AdditionalCost.md) | Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional] -**catalogItemID** | **Integer** | The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). | [optional] +**catalogItemID** | **Long** | The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). | [optional] diff --git a/docs/Catalog.md b/docs/Catalog.md index a962c3fc..cb2cf8cc 100644 --- a/docs/Catalog.md +++ b/docs/Catalog.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **name** | **String** | The cart item catalog name. | **description** | **String** | A description of this cart item catalog. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] -**version** | **Integer** | The current version of this catalog. | -**createdBy** | **Integer** | The ID of user who created this catalog. | +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**version** | **Long** | The current version of this catalog. | +**createdBy** | **Long** | The ID of user who created this catalog. | diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md index 7128d57b..1a4f3020 100644 --- a/docs/CatalogItem.md +++ b/docs/CatalogItem.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **sku** | **String** | The stock keeping unit of the item. | **price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | [optional] -**catalogid** | **Integer** | The ID of the catalog the item belongs to. | -**version** | **Integer** | The version of the catalog item. | +**catalogid** | **Long** | The ID of the catalog the item belongs to. | +**version** | **Long** | The version of the catalog item. | **attributes** | [**List<ItemAttribute>**](ItemAttribute.md) | | [optional] **product** | [**Product**](Product.md) | | [optional] diff --git a/docs/CatalogSyncRequest.md b/docs/CatalogSyncRequest.md index 575f85b9..94bafcc3 100644 --- a/docs/CatalogSyncRequest.md +++ b/docs/CatalogSyncRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions** | [**List<CatalogAction>**](CatalogAction.md) | | -**version** | **Integer** | The version number of the catalog to apply the actions on. | [optional] +**version** | **Long** | The version number of the catalog to apply the actions on. | [optional] diff --git a/docs/CatalogsStrikethroughNotificationPolicy.md b/docs/CatalogsStrikethroughNotificationPolicy.md index 1cac89d4..e73851ab 100644 --- a/docs/CatalogsStrikethroughNotificationPolicy.md +++ b/docs/CatalogsStrikethroughNotificationPolicy.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | -**aheadOfDaysTrigger** | **Integer** | The number of days in advance that strikethrough pricing updates should be sent. | [optional] +**aheadOfDaysTrigger** | **Long** | The number of days in advance that strikethrough pricing updates should be sent. | [optional] diff --git a/docs/Change.md b/docs/Change.md index 23ff1f8f..40a62011 100644 --- a/docs/Change.md +++ b/docs/Change.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**userId** | **Integer** | The ID of the user associated with this entity. | -**applicationId** | **Integer** | ID of application associated with change. | [optional] +**userId** | **Long** | The ID of the user associated with this entity. | +**applicationId** | **Long** | ID of application associated with change. | [optional] **entity** | **String** | API endpoint on which the change was initiated. | **old** | [**Object**](.md) | Resource before the change occurred. | [optional] **_new** | [**Object**](.md) | Resource after the change occurred. | [optional] -**managementKeyId** | **Integer** | ID of management key used to perform changes. | [optional] +**managementKeyId** | **Long** | ID of management key used to perform changes. | [optional] diff --git a/docs/ChangeLoyaltyTierLevelEffectProps.md b/docs/ChangeLoyaltyTierLevelEffectProps.md index d1047ef5..f9356324 100644 --- a/docs/ChangeLoyaltyTierLevelEffectProps.md +++ b/docs/ChangeLoyaltyTierLevelEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"changeLoyaltyTierLevel\" effect. This is trigge Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ruleTitle** | **String** | The title of the rule that triggered the tier upgrade. | -**programId** | **Integer** | The ID of the loyalty program where these points were added. | +**programId** | **Long** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **previousTierName** | **String** | The name of the tier from which the user was upgraded. | [optional] **newTierName** | **String** | The name of the tier to which the user has been upgraded. | diff --git a/docs/Collection.md b/docs/Collection.md index f0dc07df..87327e1a 100644 --- a/docs/Collection.md +++ b/docs/Collection.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] **payload** | **List<String>** | The content of the collection. | [optional] diff --git a/docs/CollectionWithoutPayload.md b/docs/CollectionWithoutPayload.md index c237d873..76426dc8 100644 --- a/docs/CollectionWithoutPayload.md +++ b/docs/CollectionWithoutPayload.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] diff --git a/docs/Coupon.md b/docs/Coupon.md index 9c34c308..913e2a3c 100644 --- a/docs/Coupon.md +++ b/docs/Coupon.md @@ -6,24 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] +**importId** | **Long** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] diff --git a/docs/CouponConstraints.md b/docs/CouponConstraints.md index 199de7ac..d5c7d44a 100644 --- a/docs/CouponConstraints.md +++ b/docs/CouponConstraints.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] diff --git a/docs/CouponCreationJob.md b/docs/CouponCreationJob.md index b76f31a5..ef1e7721 100644 --- a/docs/CouponCreationJob.md +++ b/docs/CouponCreationJob.md @@ -6,28 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] -**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. | +**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with coupons. | **batchId** | **String** | The batch ID coupons created by this job will bear. | **status** | **String** | The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full` | -**createdAmount** | **Integer** | The number of coupon codes that were already created for this request. | -**failCount** | **Integer** | The number of times this job failed. | +**createdAmount** | **Long** | The number of coupon codes that were already created for this request. | +**failCount** | **Long** | The number of times this job failed. | **errors** | **List<String>** | An array of individual problems encountered during the request. | -**createdBy** | **Integer** | ID of the user who created this effect. | +**createdBy** | **Long** | ID of the user who created this effect. | **communicated** | **Boolean** | Whether or not the user that created this job was notified of its final state. | -**chunkExecutionCount** | **Integer** | The number of times an attempt to create a chunk of coupons was made during the processing of the job. | -**chunkSize** | **Integer** | The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. | [optional] +**chunkExecutionCount** | **Long** | The number of times an attempt to create a chunk of coupons was made during the processing of the job. | +**chunkSize** | **Long** | The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. | [optional] diff --git a/docs/CouponDeletionFilters.md b/docs/CouponDeletionFilters.md index ca21fae6..a3fc139b 100644 --- a/docs/CouponDeletionFilters.md +++ b/docs/CouponDeletionFilters.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **exactMatch** | **Boolean** | Filter results to an exact case-insensitive matching against the coupon code | [optional] **value** | **String** | Filter results by the coupon code | [optional] **batchId** | **String** | Filter results by batches of coupons | [optional] -**referralId** | **Integer** | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] +**referralId** | **Long** | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **expiresAfter** | [**OffsetDateTime**](OffsetDateTime.md) | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **expiresBefore** | [**OffsetDateTime**](OffsetDateTime.md) | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] diff --git a/docs/CouponDeletionJob.md b/docs/CouponDeletionJob.md index 7f4aa5de..96dafc44 100644 --- a/docs/CouponDeletionJob.md +++ b/docs/CouponDeletionJob.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **filters** | [**CouponDeletionFilters**](CouponDeletionFilters.md) | | **status** | **String** | The current status of this request. Possible values: - `not_ready` - `pending` - `completed` - `failed` | -**deletedAmount** | **Integer** | The number of coupon codes that were already deleted for this request. | [optional] -**failCount** | **Integer** | The number of times this job failed. | +**deletedAmount** | **Long** | The number of coupon codes that were already deleted for this request. | [optional] +**failCount** | **Long** | The number of times this job failed. | **errors** | **List<String>** | An array of individual problems encountered during the request. | -**createdBy** | **Integer** | ID of the user who created this effect. | +**createdBy** | **Long** | ID of the user who created this effect. | **communicated** | **Boolean** | Indicates whether the user that created this job was notified of its final state. | -**campaignIDs** | **List<Integer>** | | [optional] +**campaignIDs** | **List<Long>** | | [optional] diff --git a/docs/CouponRejectionReason.md b/docs/CouponRejectionReason.md index f5d5698c..97d21790 100644 --- a/docs/CouponRejectionReason.md +++ b/docs/CouponRejectionReason.md @@ -7,8 +7,8 @@ Holds a reference to the campaign, the coupon and the reason for which that coup Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | | -**couponId** | **Integer** | | +**campaignId** | **Long** | | +**couponId** | **Long** | | **reason** | [**ReasonEnum**](#ReasonEnum) | | diff --git a/docs/CouponsNotificationPolicy.md b/docs/CouponsNotificationPolicy.md index 0b0175c0..d8334096 100644 --- a/docs/CouponsNotificationPolicy.md +++ b/docs/CouponsNotificationPolicy.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **scopes** | [**List<ScopesEnum>**](#List<ScopesEnum>) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] **includeData** | **Boolean** | Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CreateApplicationAPIKey.md b/docs/CreateApplicationAPIKey.md index 0d8ced5d..d34444c6 100644 --- a/docs/CreateApplicationAPIKey.md +++ b/docs/CreateApplicationAPIKey.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] diff --git a/docs/CreateManagementKey.md b/docs/CreateManagementKey.md index d513ee45..c1978a7e 100644 --- a/docs/CreateManagementKey.md +++ b/docs/CreateManagementKey.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] diff --git a/docs/CreateTemplateCampaign.md b/docs/CreateTemplateCampaign.md index 6a446708..2d9afa5b 100644 --- a/docs/CreateTemplateCampaign.md +++ b/docs/CreateTemplateCampaign.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | [optional] -**templateId** | **Integer** | The ID of the Campaign Template which will be used in order to create the Campaign. | +**templateId** | **Long** | The ID of the Campaign Template which will be used in order to create the Campaign. | **campaignAttributesOverrides** | [**Object**](.md) | Custom Campaign Attributes. If the Campaign Template defines the same values, they will be overridden. | [optional] **templateParamValues** | [**List<Binding>**](Binding.md) | Actual values to replace the template placeholder values in the Ruleset bindings. Values for all Template Parameters must be provided. | [optional] **limitOverrides** | [**List<LimitConfig>**](LimitConfig.md) | Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden. | [optional] -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] **tags** | **List<String>** | A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] -**linkedStoreIds** | **List<Integer>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] diff --git a/docs/CustomEffect.md b/docs/CustomEffect.md index 70e5cb4b..51032138 100644 --- a/docs/CustomEffect.md +++ b/docs/CustomEffect.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | **isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional] **name** | **String** | The name of this effect. | **title** | **String** | The title of this effect. | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **description** | **String** | The description of this effect. | [optional] **enabled** | **Boolean** | Determines if this effect is active. | **params** | [**List<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions. | [optional] -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | diff --git a/docs/CustomEffectProps.md b/docs/CustomEffectProps.md index aa4a5a5f..2209dfc1 100644 --- a/docs/CustomEffectProps.md +++ b/docs/CustomEffectProps.md @@ -7,11 +7,11 @@ Effect containing custom payload. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**effectId** | **Integer** | The ID of the custom effect that was triggered. | +**effectId** | **Long** | The ID of the custom effect that was triggered. | **name** | **String** | The type of the custom effect. | **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart item list to which the custom effect is applied. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with quantity > 1, the sub position indicates to which item unit the custom effect is applied. | [optional] -**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] **payload** | [**Object**](.md) | The JSON payload of the custom effect. | diff --git a/docs/CustomerActivityReport.md b/docs/CustomerActivityReport.md index c84488ce..80bb8134 100644 --- a/docs/CustomerActivityReport.md +++ b/docs/CustomerActivityReport.md @@ -10,15 +10,15 @@ Name | Type | Description | Notes **integrationId** | **String** | The integration ID set by your integration layer. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name for this customer profile. | -**customerId** | **Integer** | The internal Talon.One ID of the customer. | +**customerId** | **Long** | The internal Talon.One ID of the customer. | **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | The last activity of the customer. | [optional] -**couponRedemptions** | **Integer** | Number of coupon redemptions in all customer campaigns. | -**couponUseAttempts** | **Integer** | Number of coupon use attempts in all customer campaigns. | -**couponFailedAttempts** | **Integer** | Number of failed coupon use attempts in all customer campaigns. | +**couponRedemptions** | **Long** | Number of coupon redemptions in all customer campaigns. | +**couponUseAttempts** | **Long** | Number of coupon use attempts in all customer campaigns. | +**couponFailedAttempts** | **Long** | Number of failed coupon use attempts in all customer campaigns. | **accruedDiscounts** | [**BigDecimal**](BigDecimal.md) | Number of accrued discounts in all customer campaigns. | **accruedRevenue** | [**BigDecimal**](BigDecimal.md) | Amount of accrued revenue in all customer campaigns. | -**totalOrders** | **Integer** | Number of orders in all customer campaigns. | -**totalOrdersNoCoupon** | **Integer** | Number of orders without coupon used in all customer campaigns. | +**totalOrders** | **Long** | Number of orders in all customer campaigns. | +**totalOrdersNoCoupon** | **Long** | Number of orders without coupon used in all customer campaigns. | **campaignName** | **String** | The name of the campaign this customer belongs to. | diff --git a/docs/CustomerAnalytics.md b/docs/CustomerAnalytics.md index 1bf509a2..bd4e1e06 100644 --- a/docs/CustomerAnalytics.md +++ b/docs/CustomerAnalytics.md @@ -7,11 +7,11 @@ A summary report of customer activity for a given time range. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acceptedCoupons** | **Integer** | Total accepted coupons for this customer. | -**createdCoupons** | **Integer** | Total created coupons for this customer. | -**freeItems** | **Integer** | Total free items given to this customer. | -**totalOrders** | **Integer** | Total orders made by this customer. | -**totalDiscountedOrders** | **Integer** | Total orders made by this customer that had a discount. | +**acceptedCoupons** | **Long** | Total accepted coupons for this customer. | +**createdCoupons** | **Long** | Total created coupons for this customer. | +**freeItems** | **Long** | Total free items given to this customer. | +**totalOrders** | **Long** | Total orders made by this customer. | +**totalDiscountedOrders** | **Long** | Total orders made by this customer that had a discount. | **totalRevenue** | [**BigDecimal**](BigDecimal.md) | Total Revenue across all closed sessions. | **totalDiscounts** | [**BigDecimal**](BigDecimal.md) | The sum of discounts that were given across all closed sessions. | diff --git a/docs/CustomerProfile.md b/docs/CustomerProfile.md index 89a41f14..06fafffa 100644 --- a/docs/CustomerProfile.md +++ b/docs/CustomerProfile.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Integer** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] diff --git a/docs/CustomerProfileAudienceRequestItem.md b/docs/CustomerProfileAudienceRequestItem.md index 35b4a2ec..6cad277b 100644 --- a/docs/CustomerProfileAudienceRequestItem.md +++ b/docs/CustomerProfileAudienceRequestItem.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. | **profileIntegrationId** | **String** | The ID of this customer profile in the third-party integration. | -**audienceId** | **Integer** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | +**audienceId** | **Long** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | diff --git a/docs/CustomerProfileIntegrationRequestV2.md b/docs/CustomerProfileIntegrationRequestV2.md index 8ce26dcd..67166c88 100644 --- a/docs/CustomerProfileIntegrationRequestV2.md +++ b/docs/CustomerProfileIntegrationRequestV2.md @@ -8,7 +8,7 @@ The body of a V2 integration API request (customer profile update). Next to the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **audiencesChanges** | [**ProfileAudiencesChanges**](ProfileAudiencesChanges.md) | | [optional] **responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. | [optional] diff --git a/docs/CustomerProfileSearchQuery.md b/docs/CustomerProfileSearchQuery.md index 12512698..7a45d762 100644 --- a/docs/CustomerProfileSearchQuery.md +++ b/docs/CustomerProfileSearchQuery.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | [**Object**](.md) | Properties to match against a customer profile. All provided attributes will be exactly matched against profile attributes. | [optional] **integrationIDs** | **List<String>** | | [optional] -**profileIDs** | **List<Integer>** | | [optional] +**profileIDs** | **List<Long>** | | [optional] diff --git a/docs/CustomerSession.md b/docs/CustomerSession.md index 2cbb2691..00870960 100644 --- a/docs/CustomerSession.md +++ b/docs/CustomerSession.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integrationId** | **String** | The integration ID set by your integration layer. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | **coupon** | **String** | Any coupon code entered. | **referral** | **String** | Any referral code entered. | diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md index 9334d5c3..c8657440 100644 --- a/docs/CustomerSessionV2.md +++ b/docs/CustomerSessionV2.md @@ -7,13 +7,13 @@ The representation of the customer session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional] **referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional] **loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] diff --git a/docs/DeductLoyaltyPoints.md b/docs/DeductLoyaltyPoints.md index e1508003..06b9129b 100644 --- a/docs/DeductLoyaltyPoints.md +++ b/docs/DeductLoyaltyPoints.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **points** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points. | **name** | **String** | Name / reason for the point deduction. | [optional] **subledgerId** | **String** | ID of the subledger the points are deducted from. | [optional] -**applicationId** | **Integer** | ID of the Application that is connected to the loyalty program. | [optional] +**applicationId** | **Long** | ID of the Application that is connected to the loyalty program. | [optional] diff --git a/docs/DeductLoyaltyPointsEffectProps.md b/docs/DeductLoyaltyPointsEffectProps.md index cd34b15f..0fd8df94 100644 --- a/docs/DeductLoyaltyPointsEffectProps.md +++ b/docs/DeductLoyaltyPointsEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"deductLoyaltyPoints\" effect. This gets trigger Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ruleTitle** | **String** | The title of the rule that contained triggered this points deduction. | -**programId** | **Integer** | The ID of the loyalty program where these points were added. | +**programId** | **Long** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were deducted. | **transactionUUID** | **String** | The identifier of this deduction in the loyalty ledger. | diff --git a/docs/Effect.md b/docs/Effect.md index b00f2e90..5ba627e5 100644 --- a/docs/Effect.md +++ b/docs/Effect.md @@ -7,18 +7,18 @@ A generic effect that is fired by a triggered campaign. The props property will Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that triggered this effect. | -**rulesetId** | **Integer** | The ID of the ruleset that was active in the campaign when this effect was triggered. | -**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Long** | The ID of the campaign that triggered this effect. | +**rulesetId** | **Long** | The ID of the ruleset that was active in the campaign when this effect was triggered. | +**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **effectType** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**triggeredByCoupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] -**triggeredForCatalogItem** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] -**conditionIndex** | **Integer** | The index of the condition that was triggered. | [optional] -**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**triggeredByCoupon** | **Long** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] +**triggeredForCatalogItem** | **Long** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] +**conditionIndex** | **Long** | The index of the condition that was triggered. | [optional] +**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] -**campaignRevisionId** | **Integer** | The revision ID of the campaign that was used when triggering the effect. | [optional] -**campaignRevisionVersionId** | **Integer** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionId** | **Long** | The revision ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionVersionId** | **Long** | The revision version ID of the campaign that was used when triggering the effect. | [optional] **props** | [**Object**](.md) | The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | diff --git a/docs/EffectEntity.md b/docs/EffectEntity.md index 9061a9da..28953626 100644 --- a/docs/EffectEntity.md +++ b/docs/EffectEntity.md @@ -7,18 +7,18 @@ Definition of all properties that are present on all effects, independent of the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that triggered this effect. | -**rulesetId** | **Integer** | The ID of the ruleset that was active in the campaign when this effect was triggered. | -**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Long** | The ID of the campaign that triggered this effect. | +**rulesetId** | **Long** | The ID of the ruleset that was active in the campaign when this effect was triggered. | +**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **effectType** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**triggeredByCoupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] -**triggeredForCatalogItem** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] -**conditionIndex** | **Integer** | The index of the condition that was triggered. | [optional] -**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**triggeredByCoupon** | **Long** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] +**triggeredForCatalogItem** | **Long** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] +**conditionIndex** | **Long** | The index of the condition that was triggered. | [optional] +**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] -**campaignRevisionId** | **Integer** | The revision ID of the campaign that was used when triggering the effect. | [optional] -**campaignRevisionVersionId** | **Integer** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionId** | **Long** | The revision ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionVersionId** | **Long** | The revision version ID of the campaign that was used when triggering the effect. | [optional] diff --git a/docs/Entity.md b/docs/Entity.md index 94eeaaa6..707445ec 100644 --- a/docs/Entity.md +++ b/docs/Entity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | diff --git a/docs/EntityWithTalangVisibleID.md b/docs/EntityWithTalangVisibleID.md index be250ce5..1d74f55f 100644 --- a/docs/EntityWithTalangVisibleID.md +++ b/docs/EntityWithTalangVisibleID.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | diff --git a/docs/Environment.md b/docs/Environment.md index 3c41534a..a617508a 100644 --- a/docs/Environment.md +++ b/docs/Environment.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **slots** | [**List<SlotDef>**](SlotDef.md) | The slots defined for this application. | **functions** | [**List<FunctionDef>**](FunctionDef.md) | The functions defined for this application. | **templates** | [**List<TemplateDef>**](TemplateDef.md) | The templates defined for this application. | diff --git a/docs/ErrorResponseWithStatus.md b/docs/ErrorResponseWithStatus.md index 4508f3e8..f8ba17a6 100644 --- a/docs/ErrorResponseWithStatus.md +++ b/docs/ErrorResponseWithStatus.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | | [optional] **errors** | [**List<APIError>**](APIError.md) | An array of individual problems encountered during the request. | [optional] -**statusCode** | **Integer** | The error code | [optional] +**statusCode** | **Long** | The error code | [optional] diff --git a/docs/EvaluableCampaignIds.md b/docs/EvaluableCampaignIds.md index dfc4ee15..006899ec 100644 --- a/docs/EvaluableCampaignIds.md +++ b/docs/EvaluableCampaignIds.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] diff --git a/docs/Event.md b/docs/Event.md index ec800c93..20a703c3 100644 --- a/docs/Event.md +++ b/docs/Event.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] **type** | **String** | A string representing the event. Must not be a reserved event name. | diff --git a/docs/EventType.md b/docs/EventType.md index 8cc7274e..e0a406be 100644 --- a/docs/EventType.md +++ b/docs/EventType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **title** | **String** | The human-friendly name for this event type. | **name** | **String** | The integration name for this event type. This will be used in URLs and cannot be changed after an event type has been created. | diff --git a/docs/EventV2.md b/docs/EventV2.md index 2a692493..190c1e92 100644 --- a/docs/EventV2.md +++ b/docs/EventV2.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] diff --git a/docs/ExpiringCouponsNotificationPolicy.md b/docs/ExpiringCouponsNotificationPolicy.md index 94c154e0..cd500043 100644 --- a/docs/ExpiringCouponsNotificationPolicy.md +++ b/docs/ExpiringCouponsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<ExpiringCouponsNotificationTrigger>**](ExpiringCouponsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/ExpiringCouponsNotificationTrigger.md b/docs/ExpiringCouponsNotificationTrigger.md index 92660fa2..041eb082 100644 --- a/docs/ExpiringCouponsNotificationTrigger.md +++ b/docs/ExpiringCouponsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Integer** | The amount of period. | +**amount** | **Long** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/ExpiringPointsNotificationPolicy.md b/docs/ExpiringPointsNotificationPolicy.md index d32e5cc9..bb70889a 100644 --- a/docs/ExpiringPointsNotificationPolicy.md +++ b/docs/ExpiringPointsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<ExpiringPointsNotificationTrigger>**](ExpiringPointsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/ExpiringPointsNotificationTrigger.md b/docs/ExpiringPointsNotificationTrigger.md index 2dbe548e..b998f680 100644 --- a/docs/ExpiringPointsNotificationTrigger.md +++ b/docs/ExpiringPointsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Integer** | The amount of period. | +**amount** | **Long** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/Export.md b/docs/Export.md index cb8a4038..669afcbd 100644 --- a/docs/Export.md +++ b/docs/Export.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **entity** | [**EntityEnum**](#EntityEnum) | The name of the entity that was exported. | **filter** | [**Object**](.md) | Map of keys and values that were used to filter the exported rows. | diff --git a/docs/GenerateCampaignDescription.md b/docs/GenerateCampaignDescription.md index 09e950ee..dfbc8adc 100644 --- a/docs/GenerateCampaignDescription.md +++ b/docs/GenerateCampaignDescription.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rulesetID** | **Integer** | ID of a ruleset. | +**rulesetID** | **Long** | ID of a ruleset. | **currency** | **String** | Currency for the campaign. | diff --git a/docs/GenerateCampaignTags.md b/docs/GenerateCampaignTags.md index 29620daa..729ac14f 100644 --- a/docs/GenerateCampaignTags.md +++ b/docs/GenerateCampaignTags.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rulesetID** | **Integer** | ID of a ruleset. | +**rulesetID** | **Long** | ID of a ruleset. | diff --git a/docs/GetIntegrationCouponRequest.md b/docs/GetIntegrationCouponRequest.md index c52da1eb..78a2f60b 100644 --- a/docs/GetIntegrationCouponRequest.md +++ b/docs/GetIntegrationCouponRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignIds** | **List<Integer>** | A list of IDs of the campaigns to get coupons from. | -**limit** | **Integer** | The maximum number of coupons included in the response. | +**campaignIds** | **List<Long>** | A list of IDs of the campaigns to get coupons from. | +**limit** | **Long** | The maximum number of coupons included in the response. | diff --git a/docs/Giveaway.md b/docs/Giveaway.md index b712417c..8ff6f2c6 100644 --- a/docs/Giveaway.md +++ b/docs/Giveaway.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **code** | **String** | The code value of this giveaway. | -**poolId** | **Integer** | The ID of the pool to return giveaway codes from. | +**poolId** | **Long** | The ID of the pool to return giveaway codes from. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the giveaway becomes valid. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the giveaway becomes invalid. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this giveaway. | [optional] **used** | **Boolean** | Indicates whether this giveaway code was given before. | [optional] -**importId** | **Integer** | The ID of the Import which created this giveaway. | [optional] +**importId** | **Long** | The ID of the Import which created this giveaway. | [optional] **profileIntegrationId** | **String** | The third-party integration ID of the customer profile that was awarded the giveaway, if the giveaway was awarded. | [optional] -**profileId** | **Integer** | The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. | [optional] +**profileId** | **Long** | The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. | [optional] diff --git a/docs/GiveawaysPool.md b/docs/GiveawaysPool.md index 77033951..426f6637 100644 --- a/docs/GiveawaysPool.md +++ b/docs/GiveawaysPool.md @@ -7,16 +7,16 @@ Giveaways pools is an entity for managing multiple similar giveaways. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | The name of this giveaways pool. | **description** | **String** | The description of this giveaways pool. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the giveaways pool. | [optional] -**createdBy** | **Integer** | ID of the user who created this giveaways pool. | -**modifiedBy** | **Integer** | ID of the user who last updated this giveaways pool if available. | [optional] +**createdBy** | **Long** | ID of the user who created this giveaways pool. | +**modifiedBy** | **Long** | ID of the user who last updated this giveaways pool if available. | [optional] diff --git a/docs/HiddenConditionsEffects.md b/docs/HiddenConditionsEffects.md index c5807e96..837e2f97 100644 --- a/docs/HiddenConditionsEffects.md +++ b/docs/HiddenConditionsEffects.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **builtInEffects** | **List<String>** | List of hidden built-in effects. | [optional] **conditions** | **List<String>** | List of hidden conditions. | [optional] -**customEffects** | **List<Integer>** | List of the IDs of hidden custom effects. | [optional] -**webhooks** | **List<Integer>** | List of the IDs of hidden webhooks. | [optional] +**customEffects** | **List<Long>** | List of the IDs of hidden custom effects. | [optional] +**webhooks** | **List<Long>** | List of the IDs of hidden webhooks. | [optional] diff --git a/docs/IdentifiableEntity.md b/docs/IdentifiableEntity.md index a4f78340..1b7f7ee3 100644 --- a/docs/IdentifiableEntity.md +++ b/docs/IdentifiableEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/ImportEntity.md b/docs/ImportEntity.md index 418b1708..e3c2a4b3 100644 --- a/docs/ImportEntity.md +++ b/docs/ImportEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**importId** | **Integer** | The ID of the Import which created this referral. | [optional] +**importId** | **Long** | The ID of the Import which created this referral. | [optional] diff --git a/docs/IncreaseAchievementProgressEffectProps.md b/docs/IncreaseAchievementProgressEffectProps.md index b0e7992e..93c88f38 100644 --- a/docs/IncreaseAchievementProgressEffectProps.md +++ b/docs/IncreaseAchievementProgressEffectProps.md @@ -7,9 +7,9 @@ The properties specific to the \"increaseAchievementProgress\" effect. This gets Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**achievementId** | **Integer** | The internal ID of the achievement. | +**achievementId** | **Long** | The internal ID of the achievement. | **achievementName** | **String** | The name of the achievement. | -**progressTrackerId** | **Integer** | The internal ID of the achievement progress tracker. | [optional] +**progressTrackerId** | **Long** | The internal ID of the achievement progress tracker. | [optional] **delta** | [**BigDecimal**](BigDecimal.md) | The value by which the customer's current progress in the achievement is increased. | **value** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | **target** | [**BigDecimal**](BigDecimal.md) | The target value to complete the achievement. | diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md index 2f5a9a3d..b91a6717 100644 --- a/docs/InlineResponse200.md +++ b/docs/InlineResponse200.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md index 6b209555..63fd5662 100644 --- a/docs/InlineResponse2001.md +++ b/docs/InlineResponse2001.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<AchievementStatusEntry>**](AchievementStatusEntry.md) | | diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md index fbe81327..e3f25d69 100644 --- a/docs/InlineResponse20010.md +++ b/docs/InlineResponse20010.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Coupon>**](Coupon.md) | | diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md index 28c9e417..69a43ac4 100644 --- a/docs/InlineResponse20013.md +++ b/docs/InlineResponse20013.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<CampaignGroup>**](CampaignGroup.md) | | diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md index 7c533913..80e9704d 100644 --- a/docs/InlineResponse20015.md +++ b/docs/InlineResponse20015.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md index 0f1a3f5b..83a15fbb 100644 --- a/docs/InlineResponse20016.md +++ b/docs/InlineResponse20016.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<LoyaltyDashboardData>**](LoyaltyDashboardData.md) | | diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md index fbeb9c67..e6049688 100644 --- a/docs/InlineResponse2002.md +++ b/docs/InlineResponse2002.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<AchievementProgress>**](AchievementProgress.md) | | diff --git a/docs/InlineResponse20020.md b/docs/InlineResponse20020.md index 73cf2e6f..f6179802 100644 --- a/docs/InlineResponse20020.md +++ b/docs/InlineResponse20020.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<CollectionWithoutPayload>**](CollectionWithoutPayload.md) | | diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md index cf263cd4..5dd633aa 100644 --- a/docs/InlineResponse20023.md +++ b/docs/InlineResponse20023.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | | diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md index 3069eab1..53aee5a1 100644 --- a/docs/InlineResponse20024.md +++ b/docs/InlineResponse20024.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **hasMore** | **Boolean** | | [optional] **data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md index 40220f63..5ef800ec 100644 --- a/docs/InlineResponse20025.md +++ b/docs/InlineResponse20025.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md index a598d4f5..d783ea33 100644 --- a/docs/InlineResponse20026.md +++ b/docs/InlineResponse20026.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md index 8c8fad3b..7312e701 100644 --- a/docs/InlineResponse20031.md +++ b/docs/InlineResponse20031.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | **List<String>** | | diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md index b04d3548..a727b244 100644 --- a/docs/InlineResponse20032.md +++ b/docs/InlineResponse20032.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<Audience>**](Audience.md) | | diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md index aa4c8bd3..4f0dfdf4 100644 --- a/docs/InlineResponse20035.md +++ b/docs/InlineResponse20035.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md index c35fa228..4fbbf04d 100644 --- a/docs/InlineResponse20036.md +++ b/docs/InlineResponse20036.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Attribute>**](Attribute.md) | | diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md index ff316f17..f7e3566a 100644 --- a/docs/InlineResponse20037.md +++ b/docs/InlineResponse20037.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<CatalogItem>**](CatalogItem.md) | | diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md index 2c337da8..807b6eb1 100644 --- a/docs/InlineResponse20038.md +++ b/docs/InlineResponse20038.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md index 88c8ef31..df470b34 100644 --- a/docs/InlineResponse20039.md +++ b/docs/InlineResponse20039.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md index 2c3f8170..b3860e5b 100644 --- a/docs/InlineResponse20040.md +++ b/docs/InlineResponse20040.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | | diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md index 0b439bc3..396d94c9 100644 --- a/docs/InlineResponse20041.md +++ b/docs/InlineResponse20041.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | | diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md index 288c66e5..56ff961a 100644 --- a/docs/InlineResponse20042.md +++ b/docs/InlineResponse20042.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<EventType>**](EventType.md) | | diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md index 2fa864b7..4d69f414 100644 --- a/docs/InlineResponse20043.md +++ b/docs/InlineResponse20043.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<User>**](User.md) | | diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md index 5cb71ae6..5af1b6d0 100644 --- a/docs/InlineResponse20044.md +++ b/docs/InlineResponse20044.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **hasMore** | **Boolean** | | [optional] **data** | [**List<Change>**](Change.md) | | diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md index c909fc95..3712756c 100644 --- a/docs/InlineResponse20045.md +++ b/docs/InlineResponse20045.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Export>**](Export.md) | | diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md index 4571d938..20110f99 100644 --- a/docs/InlineResponse20046.md +++ b/docs/InlineResponse20046.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<RoleV2>**](RoleV2.md) | | diff --git a/docs/InlineResponse20047.md b/docs/InlineResponse20047.md index d151232d..c994c7d7 100644 --- a/docs/InlineResponse20047.md +++ b/docs/InlineResponse20047.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Integer** | | [optional] +**totalResultSize** | **Long** | | [optional] **data** | [**List<Store>**](Store.md) | | diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index bc41ed7b..9eb0b785 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Application>**](Application.md) | | diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md index 30e0574d..ad294e9b 100644 --- a/docs/InlineResponse2008.md +++ b/docs/InlineResponse2008.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Campaign>**](Campaign.md) | | diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md index 51f8fdf8..9f44a248 100644 --- a/docs/InlineResponse2009.md +++ b/docs/InlineResponse2009.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Ruleset>**](Ruleset.md) | | diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md index 814dcb6c..13137f39 100644 --- a/docs/InlineResponse201.md +++ b/docs/InlineResponse201.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Integer** | | +**totalResultSize** | **Long** | | **data** | [**List<Referral>**](Referral.md) | | diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index e4e16c63..ad61f3f7 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -372,7 +372,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. try { apiInstance.deleteAudienceMembershipsV2(audienceId); } catch (ApiException e) { @@ -391,7 +391,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | ### Return type cool @@ -445,7 +445,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. try { apiInstance.deleteAudienceV2(audienceId); } catch (ApiException e) { @@ -464,7 +464,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | ### Return type cool @@ -668,7 +668,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. GenerateLoyaltyCard body = new GenerateLoyaltyCard(); // GenerateLoyaltyCard | body try { LoyaltyCard result = apiInstance.generateLoyaltyCard(loyaltyProgramId, body); @@ -689,7 +689,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **body** | [**GenerateLoyaltyCard**](GenerateLoyaltyCard.md)| body | ### Return type cool @@ -745,12 +745,12 @@ public class Example { IntegrationApi apiInstance = new IntegrationApi(defaultClient); 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. - Integer achievementId = 56; // Integer | The achievement identifier. + Long achievementId = 56; // Long | The achievement identifier. List progressStatus = Arrays.asList(); // List | Filter by customer progress status in the achievement. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain achievements created on or after the start date. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain achievements created before or on the end date. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { InlineResponse2002 result = apiInstance.getCustomerAchievementHistory(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); System.out.println(result); @@ -771,12 +771,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | - **achievementId** | **Integer**| The achievement identifier. | + **achievementId** | **Long**| The achievement identifier. | **progressStatus** | [**List<String>**](String.md)| Filter by customer progress status in the achievement. | [optional] [enum: inprogress, completed, expired] **startDate** | **OffsetDateTime**| Timestamp that filters the results to only contain achievements created on or after the start date. | [optional] **endDate** | **OffsetDateTime**| Timestamp that filters the results to only contain achievements created before or on the end date. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -836,8 +836,8 @@ public class Example { List achievementIds = Arrays.asList(); // List | Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. List achievementStatus = Arrays.asList(); // List | Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. List currentProgressStatus = Arrays.asList(); // List | Filter by customer progress status in the achievement. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { InlineResponse2001 result = apiInstance.getCustomerAchievements(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); System.out.println(result); @@ -862,8 +862,8 @@ Name | Type | Description | Notes **achievementIds** | [**List<String>**](String.md)| Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. | [optional] **achievementStatus** | [**List<String>**](String.md)| Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. | [optional] [enum: active, scheduled] **currentProgressStatus** | [**List<String>**](String.md)| Filter by customer progress status in the achievement. | [optional] [enum: inprogress, completed, not_started] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1078,7 +1078,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | 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. + Long loyaltyProgramId = 56; // 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. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. @@ -1103,7 +1103,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| 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. | + **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. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] @@ -1163,7 +1163,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. @@ -1186,7 +1186,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional] @@ -1244,12 +1244,12 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. String status = "active"; // String | Filter points based on their status. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { InlineResponse2005 result = apiInstance.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); System.out.println(result); @@ -1269,12 +1269,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1329,14 +1329,14 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. 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. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // 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); System.out.println(result); @@ -1356,14 +1356,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [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] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1418,12 +1418,12 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | 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. + Long loyaltyProgramId = 56; // 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. String status = "active"; // String | Filter points based on their status. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { InlineResponse2006 result = apiInstance.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); System.out.println(result); @@ -1443,12 +1443,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| 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. | + **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. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1503,14 +1503,14 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | 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. + Long loyaltyProgramId = 56; // 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. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // 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); System.out.println(result); @@ -1530,14 +1530,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| 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. | + **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. | **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] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1667,7 +1667,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. LoyaltyCardRegistration body = new LoyaltyCardRegistration(); // LoyaltyCardRegistration | body try { @@ -1689,7 +1689,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**LoyaltyCardRegistration**](LoyaltyCardRegistration.md)| body | @@ -1898,7 +1898,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. + Long catalogId = 56; // Long | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. CatalogSyncRequest body = new CatalogSyncRequest(); // CatalogSyncRequest | body try { Catalog result = apiInstance.syncCatalog(catalogId, body); @@ -1919,7 +1919,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | + **catalogId** | **Long**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | **body** | [**CatalogSyncRequest**](CatalogSyncRequest.md)| body | ### Return type cool @@ -2056,7 +2056,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. Object body = null; // Object | body try { apiInstance.updateAudienceCustomersAttributes(audienceId, body); @@ -2076,7 +2076,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | **body** | **Object**| body | ### Return type cool @@ -2131,7 +2131,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. UpdateAudience body = new UpdateAudience(); // UpdateAudience | body try { Audience result = apiInstance.updateAudienceV2(audienceId, body); @@ -2152,7 +2152,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | **body** | [**UpdateAudience**](UpdateAudience.md)| body | ### Return type cool diff --git a/docs/IntegrationCoupon.md b/docs/IntegrationCoupon.md index e0559d57..1aa94805 100644 --- a/docs/IntegrationCoupon.md +++ b/docs/IntegrationCoupon.md @@ -6,29 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] +**importId** | **Long** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] **implicitlyReserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional] -**profileRedemptionCount** | **Integer** | The number of times the coupon was redeemed by the profile. | +**profileRedemptionCount** | **Long** | The number of times the coupon was redeemed by the profile. | diff --git a/docs/IntegrationEventV2Request.md b/docs/IntegrationEventV2Request.md index 7c31c893..e9799354 100644 --- a/docs/IntegrationEventV2Request.md +++ b/docs/IntegrationEventV2Request.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] **responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Optional list of requested information to be present on the response related to the tracking custom event. | [optional] diff --git a/docs/InventoryCoupon.md b/docs/InventoryCoupon.md index 01d42dee..e8ab92e2 100644 --- a/docs/InventoryCoupon.md +++ b/docs/InventoryCoupon.md @@ -6,29 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] +**importId** | **Long** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] **implicitlyReserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional] -**profileRedemptionCount** | **Integer** | The number of times the coupon was redeemed by the profile. | +**profileRedemptionCount** | **Long** | The number of times the coupon was redeemed by the profile. | **state** | **String** | Can be: - `active`: The coupon can be used. It is a reserved coupon that is not pending, used, or expired, and it has a non-exhausted limit counter. **Note:** This coupon state is returned for [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule), but the coupon cannot be used until the campaign is **running**. - `used`: The coupon has been redeemed and cannot be used again. It is not pending and has reached its redemption limit or was redeemed by the profile before expiration. - `expired`: The coupon was never redeemed, and it is now expired. It is non-pending, non-active, and non-used by the profile. - `pending`: The coupon will be usable in the future. - `disabled`: The coupon is part of a non-active campaign. | diff --git a/docs/InventoryReferral.md b/docs/InventoryReferral.md index 994276b5..7cdd72bd 100644 --- a/docs/InventoryReferral.md +++ b/docs/InventoryReferral.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**importId** | **Integer** | The ID of the Import which created this referral. | [optional] +**importId** | **Long** | The ID of the Import which created this referral. | [optional] **code** | **String** | The referral code. | -**usageCounter** | **Integer** | The number of times this referral code has been successfully used. | +**usageCounter** | **Long** | The number of times this referral code has been successfully used. | **batchId** | **String** | The ID of the batch the referrals belong to. | [optional] **referredCustomers** | **List<String>** | An array of referred customers. | diff --git a/docs/ItemAttribute.md b/docs/ItemAttribute.md index c9f4b3c6..c23d1919 100644 --- a/docs/ItemAttribute.md +++ b/docs/ItemAttribute.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributeid** | **Integer** | The ID of the attribute of the item. | +**attributeid** | **Long** | The ID of the attribute of the item. | **name** | **String** | The name of the attribute. | **value** | [**Object**](.md) | The value of the attribute. | diff --git a/docs/LedgerEntry.md b/docs/LedgerEntry.md index 4e9ad59e..bd18bd5e 100644 --- a/docs/LedgerEntry.md +++ b/docs/LedgerEntry.md @@ -7,16 +7,16 @@ Entry in the point ledger. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | -**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | -**loyaltyProgramId** | **Integer** | ID of the ledger. | -**eventId** | **Integer** | ID of the related event. | -**amount** | **Integer** | Amount of loyalty points. | +**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | +**loyaltyProgramId** | **Long** | ID of the ledger. | +**eventId** | **Long** | ID of the related event. | +**amount** | **Long** | Amount of loyalty points. | **reason** | **String** | reason for awarding/deducting points. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the points. | -**referenceId** | **Integer** | The ID of the balancing ledgerEntry. | [optional] +**referenceId** | **Long** | The ID of the balancing ledgerEntry. | [optional] diff --git a/docs/LedgerPointsEntryIntegrationAPI.md b/docs/LedgerPointsEntryIntegrationAPI.md index 67ac5854..df187124 100644 --- a/docs/LedgerPointsEntryIntegrationAPI.md +++ b/docs/LedgerPointsEntryIntegrationAPI.md @@ -7,9 +7,9 @@ Loyalty profile points with start and expiry dates. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | ID of the transaction that adds loyalty points. | +**id** | **Long** | ID of the transaction that adds loyalty points. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty points were added. | -**programId** | **Integer** | ID of the loyalty program. | +**programId** | **Long** | ID of the loyalty program. | **customerSessionId** | **String** | ID of the customer session where points were added. | [optional] **name** | **String** | Name or reason of the transaction that adds loyalty points. | **startDate** | **String** | When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. | diff --git a/docs/LedgerTransactionLogEntryIntegrationAPI.md b/docs/LedgerTransactionLogEntryIntegrationAPI.md index 93a6fa2c..66a0239e 100644 --- a/docs/LedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/LedgerTransactionLogEntryIntegrationAPI.md @@ -8,7 +8,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | -**programId** | **Integer** | ID of the loyalty program. | +**programId** | **Long** | ID of the loyalty program. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **name** | **String** | Name or reason of the loyalty ledger transaction. | @@ -16,8 +16,8 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Integer** | ID of the loyalty ledger transaction. | -**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | [optional] +**id** | **Long** | ID of the loyalty ledger transaction. | +**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | [optional] **ruleName** | **String** | The name of the rule that triggered this effect. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LimitCounter.md b/docs/LimitCounter.md index 2aa6cf60..3f6d5b2f 100644 --- a/docs/LimitCounter.md +++ b/docs/LimitCounter.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**id** | **Integer** | Unique ID for this entity. | +**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**id** | **Long** | Unique ID for this entity. | **action** | **String** | The limitable action of the limit counter. | -**profileId** | **Integer** | The profile ID for which this limit counter is used. | [optional] +**profileId** | **Long** | The profile ID for which this limit counter is used. | [optional] **profileIntegrationId** | **String** | The profile integration ID for which this limit counter is used. | [optional] -**couponId** | **Integer** | The internal coupon ID for which this limit counter is used. | [optional] +**couponId** | **Long** | The internal coupon ID for which this limit counter is used. | [optional] **couponValue** | **String** | The coupon value for which this limit counter is used. | [optional] -**referralId** | **Integer** | The referral ID for which this limit counter is used. | [optional] +**referralId** | **Long** | The referral ID for which this limit counter is used. | [optional] **referralValue** | **String** | The referral value for which this limit counter is used. | [optional] **identifier** | **String** | The arbitrary identifier for which this limit counter is used. | [optional] **period** | **String** | The time period for which this limit counter is used. | [optional] diff --git a/docs/ListCampaignStoreBudgets.md b/docs/ListCampaignStoreBudgets.md index 810396ca..31294362 100644 --- a/docs/ListCampaignStoreBudgets.md +++ b/docs/ListCampaignStoreBudgets.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **store** | [**ListCampaignStoreBudgetsStore**](ListCampaignStoreBudgetsStore.md) | | -**limit** | **Integer** | | +**limit** | **Long** | | **action** | **String** | | **period** | **String** | | [optional] diff --git a/docs/ListCampaignStoreBudgetsStore.md b/docs/ListCampaignStoreBudgetsStore.md index 2c9718e6..562a90a5 100644 --- a/docs/ListCampaignStoreBudgetsStore.md +++ b/docs/ListCampaignStoreBudgetsStore.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | | +**id** | **Long** | | **integrationId** | **String** | | **name** | **String** | | diff --git a/docs/LoyaltyCard.md b/docs/LoyaltyCard.md index 99d86df1..29aad0a1 100644 --- a/docs/LoyaltyCard.md +++ b/docs/LoyaltyCard.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**programID** | **Integer** | The ID of the loyalty program that owns this entity. | +**programID** | **Long** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] **status** | **String** | Status of the loyalty card. Can be `active` or `inactive`. | **blockReason** | **String** | Reason for transferring and blocking the loyalty card. | [optional] **identifier** | **String** | The alphanumeric identifier of the loyalty card. | -**usersPerCardLimit** | **Integer** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. | +**usersPerCardLimit** | **Long** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. | **profiles** | [**List<LoyaltyCardProfileRegistration>**](LoyaltyCardProfileRegistration.md) | Integration IDs of the customers profiles linked to the card. | [optional] **ledger** | [**LedgerInfo**](LedgerInfo.md) | | [optional] **subledgers** | [**Map<String, LedgerInfo>**](LedgerInfo.md) | Displays point balances of the card in the subledgers of the loyalty program. | [optional] diff --git a/docs/LoyaltyCardBatch.md b/docs/LoyaltyCardBatch.md index 832edd26..893f4a2a 100644 --- a/docs/LoyaltyCardBatch.md +++ b/docs/LoyaltyCardBatch.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**numberOfCards** | **Integer** | Number of loyalty cards in the batch. | +**numberOfCards** | **Long** | Number of loyalty cards in the batch. | **batchId** | **String** | ID of the loyalty card batch. | [optional] **status** | [**StatusEnum**](#StatusEnum) | Status of the loyalty cards in the batch. | [optional] **cardCodeSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/LoyaltyCardBatchResponse.md b/docs/LoyaltyCardBatchResponse.md index f4df85e8..44af636b 100644 --- a/docs/LoyaltyCardBatchResponse.md +++ b/docs/LoyaltyCardBatchResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**numberOfCardsGenerated** | **Integer** | Number of loyalty cards in the batch. | +**numberOfCardsGenerated** | **Long** | Number of loyalty cards in the batch. | **batchId** | **String** | ID of the loyalty card batch. | diff --git a/docs/LoyaltyLedgerEntry.md b/docs/LoyaltyLedgerEntry.md index e178a70a..802bf7c0 100644 --- a/docs/LoyaltyLedgerEntry.md +++ b/docs/LoyaltyLedgerEntry.md @@ -8,18 +8,18 @@ A single row of the ledger, describing one addition or deduction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**programID** | **Integer** | | +**programID** | **Long** | | **customerProfileID** | **String** | | [optional] -**cardID** | **Integer** | | [optional] +**cardID** | **Long** | | [optional] **customerSessionID** | **String** | | [optional] -**eventID** | **Integer** | | [optional] +**eventID** | **Long** | | [optional] **type** | **String** | The type of the ledger transaction. Possible values are: - `addition` - `subtraction` - `expire` - `expiring` (for expiring points ledgers) | **amount** | [**BigDecimal**](BigDecimal.md) | | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **name** | **String** | A name referencing the condition or effect that added this entry, or the specific name provided in an API call. | **subLedgerID** | **String** | This specifies if we are adding loyalty points to the main ledger or a subledger. | -**userID** | **Integer** | This is the ID of the user who created this entry, if the addition or subtraction was done manually. | [optional] +**userID** | **Long** | This is the ID of the user who created this entry, if the addition or subtraction was done manually. | [optional] **archived** | **Boolean** | Indicates if the entry belongs to the archived session. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LoyaltyMembership.md b/docs/LoyaltyMembership.md index 434299dd..add677ab 100644 --- a/docs/LoyaltyMembership.md +++ b/docs/LoyaltyMembership.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **joined** | [**OffsetDateTime**](OffsetDateTime.md) | The moment in which the loyalty program was joined. | [optional] -**loyaltyProgramId** | **Integer** | The ID of the loyalty program belonging to this entity. | +**loyaltyProgramId** | **Long** | The ID of the loyalty program belonging to this entity. | diff --git a/docs/LoyaltyProgram.md b/docs/LoyaltyProgram.md index 1f329587..0ffb7abf 100644 --- a/docs/LoyaltyProgram.md +++ b/docs/LoyaltyProgram.md @@ -7,15 +7,15 @@ A Loyalty Program Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of loyalty program. | +**id** | **Long** | The ID of loyalty program. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | -**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | +**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | -**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. | [optional] **cardCodeSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **returnPolicy** | [**ReturnPolicyEnum**](#ReturnPolicyEnum) | The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. | [optional] -**accountID** | **Integer** | The ID of the Talon.One account that owns this program. | +**accountID** | **Long** | The ID of the Talon.One account that owns this program. | **name** | **String** | The internal name for the Loyalty Program. This is an immutable value. | **tiers** | [**List<LoyaltyTier>**](LoyaltyTier.md) | The tiers in this loyalty program. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | diff --git a/docs/LoyaltyProgramEntity.md b/docs/LoyaltyProgramEntity.md index ccbfb0f9..7cea3d65 100644 --- a/docs/LoyaltyProgramEntity.md +++ b/docs/LoyaltyProgramEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programID** | **Integer** | The ID of the loyalty program that owns this entity. | +**programID** | **Long** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] diff --git a/docs/LoyaltyProgramLedgers.md b/docs/LoyaltyProgramLedgers.md index b2bba196..b05bd41d 100644 --- a/docs/LoyaltyProgramLedgers.md +++ b/docs/LoyaltyProgramLedgers.md @@ -7,7 +7,7 @@ Customer-specific information about loyalty points. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The internal ID of loyalty program. | +**id** | **Long** | The internal ID of loyalty program. | **title** | **String** | Visible name of loyalty program. | **name** | **String** | Internal name of loyalty program. | **joinDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. | [optional] diff --git a/docs/LoyaltyProgramSubledgers.md b/docs/LoyaltyProgramSubledgers.md index 0c0468c8..be1153f6 100644 --- a/docs/LoyaltyProgramSubledgers.md +++ b/docs/LoyaltyProgramSubledgers.md @@ -7,7 +7,7 @@ The list of all the subledgers that the loyalty program has. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**loyaltyProgramId** | **Integer** | The internal ID of the loyalty program. | +**loyaltyProgramId** | **Long** | The internal ID of the loyalty program. | **subledgerIds** | **List<String>** | The list of subledger IDs. | diff --git a/docs/LoyaltyProgramTransaction.md b/docs/LoyaltyProgramTransaction.md index adcaad66..7f0efc1e 100644 --- a/docs/LoyaltyProgramTransaction.md +++ b/docs/LoyaltyProgramTransaction.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | ID of the loyalty ledger transaction. | -**programId** | **Integer** | ID of the loyalty program. | -**campaignId** | **Integer** | ID of the campaign. | [optional] +**id** | **Long** | ID of the loyalty ledger transaction. | +**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. | **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | @@ -19,10 +19,10 @@ Name | Type | Description | Notes **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | [optional] **subledgerId** | **String** | ID of the subledger. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] -**importId** | **Integer** | ID of the import where the transaction occurred. | [optional] -**userId** | **Integer** | ID of the user who manually added or deducted points. Applies only to manual transactions. | [optional] +**importId** | **Long** | ID of the import where the transaction occurred. | [optional] +**userId** | **Long** | ID of the user who manually added or deducted points. Applies only to manual transactions. | [optional] **userEmail** | **String** | The email of the Campaign Manager account that manually added or deducted points. Applies only to manual transactions. | [optional] -**rulesetId** | **Integer** | ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] +**rulesetId** | **Long** | ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] **ruleName** | **String** | Name of the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LoyaltyTier.md b/docs/LoyaltyTier.md index 66e877a3..641a4c1f 100644 --- a/docs/LoyaltyTier.md +++ b/docs/LoyaltyTier.md @@ -7,9 +7,9 @@ A tier in a loyalty program. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**programID** | **Integer** | The ID of the loyalty program that owns this entity. | +**programID** | **Long** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] **name** | **String** | The name of the tier. | diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index 8b53b00c..8255a147 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -284,7 +284,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body try { @@ -305,7 +305,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**AddLoyaltyPoints**](AddLoyaltyPoints.md)| body | @@ -452,8 +452,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. CampaignCopy body = new CampaignCopy(); // CampaignCopy | body try { InlineResponse2008 result = apiInstance.copyCampaignToApplications(applicationId, campaignId, body); @@ -474,8 +474,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**CampaignCopy**](CampaignCopy.md)| body | ### Return type cool @@ -615,8 +615,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. CreateAchievement body = new CreateAchievement(); // CreateAchievement | body try { Achievement result = apiInstance.createAchievement(applicationId, campaignId, body); @@ -637,8 +637,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**CreateAchievement**](CreateAchievement.md)| body | ### Return type cool @@ -856,7 +856,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. LoyaltyCardBatch body = new LoyaltyCardBatch(); // LoyaltyCardBatch | body try { LoyaltyCardBatchResponse result = apiInstance.createBatchLoyaltyCards(loyaltyProgramId, body); @@ -877,7 +877,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **body** | [**LoyaltyCardBatch**](LoyaltyCardBatch.md)| body | ### Return type cool @@ -939,7 +939,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. CreateTemplateCampaign body = new CreateTemplateCampaign(); // CreateTemplateCampaign | body try { CreateTemplateCampaignResponse result = apiInstance.createCampaignFromTemplate(applicationId, body); @@ -960,7 +960,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CreateTemplateCampaign**](CreateTemplateCampaign.md)| body | ### Return type cool @@ -1019,8 +1019,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCampaignCollection body = new NewCampaignCollection(); // NewCampaignCollection | body try { Collection result = apiInstance.createCollection(applicationId, campaignId, body); @@ -1041,8 +1041,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCampaignCollection**](NewCampaignCollection.md)| body | ### Return type cool @@ -1101,8 +1101,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCoupons body = new NewCoupons(); // NewCoupons | body String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. try { @@ -1124,8 +1124,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCoupons**](NewCoupons.md)| body | **silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"] @@ -1186,8 +1186,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponCreationJob body = new NewCouponCreationJob(); // NewCouponCreationJob | body try { AsyncCouponCreationResponse result = apiInstance.createCouponsAsync(applicationId, campaignId, body); @@ -1208,8 +1208,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponCreationJob**](NewCouponCreationJob.md)| body | ### Return type cool @@ -1268,8 +1268,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponDeletionJob body = new NewCouponDeletionJob(); // NewCouponDeletionJob | body try { AsyncCouponDeletionJobResponse result = apiInstance.createCouponsDeletionJob(applicationId, campaignId, body); @@ -1290,8 +1290,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponDeletionJob**](NewCouponDeletionJob.md)| body | ### Return type cool @@ -1350,8 +1350,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponsForMultipleRecipients body = new NewCouponsForMultipleRecipients(); // NewCouponsForMultipleRecipients | body String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. try { @@ -1373,8 +1373,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponsForMultipleRecipients**](NewCouponsForMultipleRecipients.md)| body | **silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"] @@ -1747,7 +1747,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. NewStore body = new NewStore(); // NewStore | body try { Store result = apiInstance.createStore(applicationId, body); @@ -1768,7 +1768,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**NewStore**](NewStore.md)| body | ### Return type cool @@ -1906,7 +1906,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body try { @@ -1927,7 +1927,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body | @@ -1990,7 +1990,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { apiInstance.deleteAccountCollection(collectionId); } catch (ApiException e) { @@ -2009,7 +2009,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -2068,9 +2068,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long achievementId = 56; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { apiInstance.deleteAchievement(applicationId, campaignId, achievementId); } catch (ApiException e) { @@ -2089,9 +2089,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -2151,8 +2151,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { apiInstance.deleteCampaign(applicationId, campaignId); } catch (ApiException e) { @@ -2171,8 +2171,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -2230,9 +2230,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { apiInstance.deleteCollection(applicationId, campaignId, collectionId); } catch (ApiException e) { @@ -2251,9 +2251,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -2312,8 +2312,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. try { apiInstance.deleteCoupon(applicationId, campaignId, couponId); @@ -2333,8 +2333,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | ### Return type cool @@ -2393,8 +2393,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -2405,7 +2405,7 @@ public class Example { String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. String batchId = "batchId_example"; // String | Filter results by batches of coupons String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Long referralId = 56; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code try { @@ -2426,8 +2426,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -2438,7 +2438,7 @@ Name | Type | Description | Notes **valid** | **String**| - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **batchId** | **String**| Filter results by batches of coupons | [optional] **usable** | **String**| - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false] @@ -2498,7 +2498,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. try { apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -2518,7 +2518,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | ### Return type cool @@ -2579,8 +2579,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String referralId = "referralId_example"; // String | The ID of the referral code. try { apiInstance.deleteReferral(applicationId, campaignId, referralId); @@ -2600,8 +2600,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **referralId** | **String**| The ID of the referral code. | ### Return type cool @@ -2660,7 +2660,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. try { apiInstance.deleteStore(applicationId, storeId); @@ -2680,7 +2680,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | ### Return type cool @@ -2740,7 +2740,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. try { apiInstance.deleteUser(userId); } catch (ApiException e) { @@ -2759,7 +2759,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | ### Return type cool @@ -2967,8 +2967,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { apiInstance.disconnectCampaignStores(applicationId, campaignId); } catch (ApiException e) { @@ -2987,8 +2987,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -3049,7 +3049,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { String result = apiInstance.exportAccountCollectionItems(collectionId); System.out.println(result); @@ -3069,7 +3069,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -3129,9 +3129,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long achievementId = 56; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { String result = apiInstance.exportAchievements(applicationId, campaignId, achievementId); System.out.println(result); @@ -3151,9 +3151,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -3214,7 +3214,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. try { String result = apiInstance.exportAudiencesMemberships(audienceId); System.out.println(result); @@ -3234,7 +3234,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | ### Return type cool @@ -3295,8 +3295,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { String result = apiInstance.exportCampaignStores(applicationId, campaignId); System.out.println(result); @@ -3316,8 +3316,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -3378,9 +3378,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId); System.out.println(result); @@ -3400,9 +3400,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -3462,7 +3462,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -3470,7 +3470,7 @@ public class Example { OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Long referralId = 56; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -3496,7 +3496,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -3504,7 +3504,7 @@ Name | Type | Description | Notes **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -3568,7 +3568,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID. @@ -3593,7 +3593,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] **profileIntegrationId** | **String**| Only return sessions for the customer that matches this customer integration ID. | [optional] @@ -3738,7 +3738,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -3762,7 +3762,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -3988,7 +3988,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. try { String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate); @@ -4009,7 +4009,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] ### Return type cool @@ -4070,7 +4070,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. @@ -4094,7 +4094,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | @@ -4158,7 +4158,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID. String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { @@ -4180,7 +4180,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **batchId** | **String**| Filter results by loyalty card batch ID. | [optional] **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] @@ -4328,7 +4328,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. + Long poolId = 56; // Long | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. try { @@ -4350,7 +4350,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | + **poolId** | **Long**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | **createdBefore** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. | [optional] **createdAfter** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. | [optional] @@ -4411,7 +4411,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -4438,7 +4438,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -4503,14 +4503,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String path = "path_example"; // String | Only return results where the request path matches the given regular expression. String method = "method_example"; // String | Only return results where the request method matches the given regular expression. String status = "status_example"; // String | Filter results by HTTP status codes. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20022 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); @@ -4531,14 +4531,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -4597,7 +4597,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + Long accountId = 56; // Long | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { Account result = apiInstance.getAccount(accountId); System.out.println(result); @@ -4617,7 +4617,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **accountId** | **Long**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type cool @@ -4675,7 +4675,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + Long accountId = 56; // Long | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { AccountAnalytics result = apiInstance.getAccountAnalytics(accountId); System.out.println(result); @@ -4695,7 +4695,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **accountId** | **Long**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type cool @@ -4753,7 +4753,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { Collection result = apiInstance.getAccountCollection(collectionId); System.out.println(result); @@ -4773,7 +4773,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -4832,9 +4832,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long achievementId = 56; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { Achievement result = apiInstance.getAchievement(applicationId, campaignId, achievementId); System.out.println(result); @@ -4854,9 +4854,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -4916,7 +4916,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. + Long additionalCostId = 56; // Long | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. try { AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId); System.out.println(result); @@ -4936,7 +4936,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | + **additionalCostId** | **Long**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | ### Return type cool @@ -4994,8 +4994,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20038 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); @@ -5016,8 +5016,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -5076,7 +5076,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. try { Application result = apiInstance.getApplication(applicationId); System.out.println(result); @@ -5096,7 +5096,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -5154,7 +5154,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. try { ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId); System.out.println(result); @@ -5174,7 +5174,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -5232,8 +5232,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long customerId = 56; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. try { ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId); System.out.println(result); @@ -5253,8 +5253,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | ### Return type cool @@ -5312,10 +5312,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { @@ -5337,10 +5337,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **integrationId** | **String**| The Integration ID of the Advocate's Profile. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -5400,10 +5400,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { InlineResponse20024 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); @@ -5424,10 +5424,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type cool @@ -5486,10 +5486,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { InlineResponse20025 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); @@ -5510,10 +5510,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type cool @@ -5572,9 +5572,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20031 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); @@ -5595,9 +5595,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -5656,9 +5656,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es). OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -5690,9 +5690,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **type** | **String**| Comma-separated list of types by which to filter events. Must be exact match(es). | [optional] **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -5762,8 +5762,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long sessionId = 56; // Long | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. try { ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId); System.out.println(result); @@ -5783,8 +5783,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **sessionId** | **Integer**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **sessionId** | **Long**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | ### Return type cool @@ -5842,9 +5842,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match. String state = "state_example"; // String | Filter by sessions with this state. Must be exact match. @@ -5873,9 +5873,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **profile** | **String**| Profile integration ID filter for sessions. Must be exact match. | [optional] **state** | **String**| Filter by sessions with this state. Must be exact match. | [optional] [enum: open, closed, partially_returned, cancelled] @@ -5942,8 +5942,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse2007 result = apiInstance.getApplications(pageSize, skip, sort); @@ -5964,8 +5964,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -6024,7 +6024,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Long attributeId = 56; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. try { Attribute result = apiInstance.getAttribute(attributeId); System.out.println(result); @@ -6044,7 +6044,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | ### Return type cool @@ -6102,8 +6102,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity. try { @@ -6125,8 +6125,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **entity** | **String**| Returned attributes will be filtered by supplied entity. | [optional] @@ -6186,9 +6186,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long audienceId = 56; // Long | The ID of the audience. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String profileQuery = "profileQuery_example"; // String | The filter to select a profile. try { @@ -6210,9 +6210,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **audienceId** | **Long**| The ID of the audience. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **profileQuery** | **String**| The filter to select a profile. | [optional] @@ -6273,8 +6273,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { @@ -6296,8 +6296,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -6437,8 +6437,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { Campaign result = apiInstance.getCampaign(applicationId, campaignId); System.out.println(result); @@ -6458,8 +6458,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -6517,8 +6517,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series. @@ -6541,8 +6541,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **granularity** | **String**| The time interval between the results in the returned time-series. | [optional] [enum: 1 hour, 1 day, 1 week, 1 month, 1 year] @@ -6603,10 +6603,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. CampaignSearch body = new CampaignSearch(); // CampaignSearch | body - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. try { @@ -6628,10 +6628,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CampaignSearch**](CampaignSearch.md)| body | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged] @@ -6691,7 +6691,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer campaignGroupId = 56; // Integer | The ID of the campaign access group. + Long campaignGroupId = 56; // Long | The ID of the campaign access group. try { CampaignGroup result = apiInstance.getCampaignGroup(campaignGroupId); System.out.println(result); @@ -6711,7 +6711,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignGroupId** | **Integer**| The ID of the campaign access group. | + **campaignGroupId** | **Long**| The ID of the campaign access group. | ### Return type cool @@ -6769,8 +6769,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20013 result = apiInstance.getCampaignGroups(pageSize, skip, sort); @@ -6791,8 +6791,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -6851,13 +6851,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String state = "state_example"; // String | Filter results by the state of the campaign template. String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign template. String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. - Integer userId = 56; // Integer | Filter results by user ID. + Long userId = 56; // Long | Filter results by user ID. try { InlineResponse20014 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); System.out.println(result); @@ -6877,13 +6877,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **state** | **String**| Filter results by the state of the campaign template. | [optional] [enum: draft, enabled, disabled] **name** | **String**| Filter results performing case-insensitive matching against the name of the campaign template. | [optional] **tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. | [optional] - **userId** | **Integer**| Filter results by user ID. | [optional] + **userId** | **Long**| Filter results by user ID. | [optional] ### Return type cool @@ -6941,18 +6941,18 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign. String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - Integer campaignGroupId = 56; // Integer | Filter results to campaigns owned by the specified campaign access group ID. - Integer templateId = 56; // Integer | The ID of the campaign template this campaign was created from. - Integer storeId = 56; // Integer | Filter results to campaigns linked to the specified store ID. + Long campaignGroupId = 56; // Long | Filter results to campaigns owned by the specified campaign access group ID. + Long templateId = 56; // Long | The ID of the campaign template this campaign was created from. + Long storeId = 56; // Long | Filter results to campaigns linked to the specified store ID. try { InlineResponse2008 result = apiInstance.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); System.out.println(result); @@ -6972,18 +6972,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged] **name** | **String**| Filter results performing case-insensitive matching against the name of the campaign. | [optional] **tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **campaignGroupId** | **Integer**| Filter results to campaigns owned by the specified campaign access group ID. | [optional] - **templateId** | **Integer**| The ID of the campaign template this campaign was created from. | [optional] - **storeId** | **Integer**| Filter results to campaigns linked to the specified store ID. | [optional] + **campaignGroupId** | **Long**| Filter results to campaigns owned by the specified campaign access group ID. | [optional] + **templateId** | **Long**| The ID of the campaign template this campaign was created from. | [optional] + **storeId** | **Long**| Filter results to campaigns linked to the specified store ID. | [optional] ### Return type cool @@ -7042,16 +7042,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. String entityPath = "entityPath_example"; // String | Filter results on a case insensitive matching of the url path of the entity - Integer userId = 56; // Integer | Filter results by user ID. + Long userId = 56; // Long | Filter results by user ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. - Integer managementKeyId = 56; // Integer | Filter results that match the given management key ID. + Long managementKeyId = 56; // Long | Filter results that match the given management key ID. Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true. try { InlineResponse20044 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); @@ -7072,16 +7072,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] **entityPath** | **String**| Filter results on a case insensitive matching of the url path of the entity | [optional] - **userId** | **Integer**| Filter results by user ID. | [optional] + **userId** | **Long**| Filter results by user ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] - **managementKeyId** | **Integer**| Filter results that match the given management key ID. | [optional] + **managementKeyId** | **Long**| Filter results that match the given management key ID. | [optional] **includeOld** | **Boolean**| When this flag is set to false, the state without the change will not be returned. The default value is true. | [optional] ### Return type cool @@ -7140,9 +7140,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { Collection result = apiInstance.getCollection(applicationId, campaignId, collectionId); System.out.println(result); @@ -7162,9 +7162,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -7223,9 +7223,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { InlineResponse20021 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); System.out.println(result); @@ -7245,9 +7245,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -7306,10 +7306,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -7317,7 +7317,7 @@ public class Example { String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. String redeemed = "redeemed_example"; // String | - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Long referralId = 56; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -7345,10 +7345,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -7356,7 +7356,7 @@ Name | Type | Description | Notes **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] **redeemed** | **String**| - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -7424,10 +7424,10 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long customerId = 56; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. try { CustomerActivityReport result = apiInstance.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); System.out.println(result); @@ -7449,10 +7449,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -7512,9 +7512,9 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String name = "name_example"; // String | Only return reports matching the customer name. String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. @@ -7541,9 +7541,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **name** | **String**| Only return reports matching the customer name. | [optional] **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] @@ -7606,10 +7606,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long customerId = 56; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { CustomerAnalytics result = apiInstance.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort); @@ -7630,10 +7630,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -7692,7 +7692,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Long customerId = 56; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. try { CustomerProfile result = apiInstance.getCustomerProfile(customerId); System.out.println(result); @@ -7712,7 +7712,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | ### Return type cool @@ -7770,11 +7770,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. 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. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. - Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. + Long achievementId = 56; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. String title = "title_example"; // String | Filter results by the `title` of an achievement. try { InlineResponse20049 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); @@ -7795,11 +7795,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **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. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] - **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional] **title** | **String**| Filter results by the `title` of an achievement. | [optional] ### Return type cool @@ -7860,8 +7860,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer. try { InlineResponse20027 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox); @@ -7882,8 +7882,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false] ### Return type cool @@ -7943,8 +7943,8 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer. try { InlineResponse20026 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox); @@ -7966,8 +7966,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false] ### Return type cool @@ -8026,7 +8026,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. @@ -8049,7 +8049,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] @@ -8112,8 +8112,8 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String name = "name_example"; // String | Filter results to event types with the given name. This parameter implies `includeOldVersions`. Boolean includeOldVersions = false; // Boolean | Include all versions of every event type. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20042 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); @@ -8136,8 +8136,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| Filter results to event types with the given name. This parameter implies `includeOldVersions`. | [optional] **includeOldVersions** | **Boolean**| Include all versions of every event type. | [optional] [default to false] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -8196,10 +8196,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. - Integer campaignId = 56; // Integer | Filter by the campaign ID on which the limit counters are used. + Long campaignId = 56; // Long | Filter by the campaign ID on which the limit counters are used. String entity = "entity_example"; // String | The name of the entity type that was exported. try { InlineResponse20045 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); @@ -8220,10 +8220,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] - **campaignId** | **Integer**| Filter by the campaign ID on which the limit counters are used. | [optional] + **campaignId** | **Long**| Filter by the campaign ID on which the limit counters are used. | [optional] **entity** | **String**| The name of the entity type that was exported. | [optional] [enum: Coupon, Referral, Effect, CustomerSession, LoyaltyLedger, LoyaltyLedgerLog, Collection, AudienceMembership] ### Return type cool @@ -8282,7 +8282,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. try { LoyaltyCard result = apiInstance.getLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -8303,7 +8303,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | ### Return type cool @@ -8365,12 +8365,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // 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. try { InlineResponse20019 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); @@ -8391,12 +8391,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **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] ### Return type cool @@ -8457,12 +8457,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String identifier = "identifier_example"; // String | The card code by which to filter loyalty cards in the response. - Integer profileId = 56; // Integer | Filter results by customer profile ID. + Long profileId = 56; // Long | Filter results by customer profile ID. String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID. try { InlineResponse20018 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); @@ -8483,12 +8483,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **identifier** | **String**| The card code by which to filter loyalty cards in the response. | [optional] - **profileId** | **Integer**| Filter results by customer profile ID. | [optional] + **profileId** | **Long**| Filter results by customer profile ID. | [optional] **batchId** | **String**| Filter results by loyalty card batch ID. | [optional] ### Return type cool @@ -8629,7 +8629,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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. try { LoyaltyProgram result = apiInstance.getLoyaltyProgram(loyaltyProgramId); System.out.println(result); @@ -8649,7 +8649,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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. | ### Return type cool @@ -8707,13 +8707,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // 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); System.out.println(result); @@ -8733,13 +8733,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -8874,7 +8874,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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. try { LoyaltyDashboardData result = apiInstance.getLoyaltyStatistics(loyaltyProgramId); System.out.println(result); @@ -8894,7 +8894,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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. | ### Return type cool @@ -8963,8 +8963,8 @@ public class Example { Boolean isSuccessful = true; // Boolean | Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. - Integer responseCode = 56; // Integer | Filter results by response status code. + Long loyaltyProgramId = 56; // Long | Identifier of the loyalty program. + Long responseCode = 56; // Long | Filter results by response status code. String webhookIDs = "webhookIDs_example"; // String | Filter results by webhook ID (include up to 30 values, separated by a comma). try { MessageLogEntries result = apiInstance.getMessageLogs(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); @@ -8996,8 +8996,8 @@ Name | Type | Description | Notes **isSuccessful** | **Boolean**| Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. | [optional] - **responseCode** | **Integer**| Filter results by response status code. | [optional] + **loyaltyProgramId** | **Long**| Identifier of the loyalty program. | [optional] + **responseCode** | **Long**| Filter results by response status code. | [optional] **webhookIDs** | **String**| Filter results by webhook ID (include up to 30 values, separated by a comma). | [optional] ### Return type cool @@ -9056,10 +9056,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String code = "code_example"; // String | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -9086,10 +9086,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **code** | **String**| Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -9154,7 +9154,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + Long roleId = 56; // Long | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. try { RoleV2 result = apiInstance.getRoleV2(roleId); System.out.println(result); @@ -9174,7 +9174,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | + **roleId** | **Long**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | ### Return type cool @@ -9232,9 +9232,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer rulesetId = 56; // Integer | The ID of the ruleset. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long rulesetId = 56; // Long | The ID of the ruleset. try { Ruleset result = apiInstance.getRuleset(applicationId, campaignId, rulesetId); System.out.println(result); @@ -9254,9 +9254,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **rulesetId** | **Integer**| The ID of the ruleset. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **rulesetId** | **Long**| The ID of the ruleset. | ### Return type cool @@ -9314,10 +9314,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse2009 result = apiInstance.getRulesets(applicationId, campaignId, pageSize, skip, sort); @@ -9338,10 +9338,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -9400,7 +9400,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. try { Store result = apiInstance.getStore(applicationId, storeId); @@ -9421,7 +9421,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | ### Return type cool @@ -9481,7 +9481,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. try { User result = apiInstance.getUser(userId); System.out.println(result); @@ -9501,7 +9501,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | ### Return type cool @@ -9559,8 +9559,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20043 result = apiInstance.getUsers(pageSize, skip, sort); @@ -9581,8 +9581,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -9641,7 +9641,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer webhookId = 56; // Integer | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. + Long webhookId = 56; // Long | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. try { Webhook result = apiInstance.getWebhook(webhookId); System.out.println(result); @@ -9661,7 +9661,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhookId** | **Integer**| The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. | + **webhookId** | **Long**| The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. | ### Return type cool @@ -9719,8 +9719,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String integrationRequestUuid = "integrationRequestUuid_example"; // String | Filter results by integration request UUID. BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id. @@ -9747,8 +9747,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **integrationRequestUuid** | **String**| Filter results by integration request UUID. | [optional] **webhookId** | **BigDecimal**| Filter results by webhook id. | [optional] @@ -9813,8 +9813,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String status = "status_example"; // String | Filter results by HTTP status codes. BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id. @@ -9842,8 +9842,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] **webhookId** | **BigDecimal**| Filter results by webhook id. | [optional] @@ -9911,11 +9911,11 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String applicationIds = "applicationIds_example"; // String | Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String creationType = "creationType_example"; // String | Filter results by creation type. String visibility = "visibility_example"; // String | Filter results by visibility. - Integer outgoingIntegrationsTypeId = 56; // Integer | Filter results by outgoing integration type ID. + Long outgoingIntegrationsTypeId = 56; // Long | Filter results by outgoing integration type ID. String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title. try { InlineResponse20039 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); @@ -9938,11 +9938,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationIds** | **String**| Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **creationType** | **String**| Filter results by creation type. | [optional] [enum: templateWebhooks, webhooks] **visibility** | **String**| Filter results by visibility. | [optional] [enum: visible, hidden] - **outgoingIntegrationsTypeId** | **Integer**| Filter results by outgoing integration type ID. | [optional] + **outgoingIntegrationsTypeId** | **Long**| Filter results by outgoing integration type ID. | [optional] **title** | **String**| Filter results performing case-insensitive matching against the webhook title. | [optional] ### Return type cool @@ -10001,7 +10001,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAccountCollection(collectionId, upFile); @@ -10022,7 +10022,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10083,7 +10083,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Long attributeId = 56; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAllowedList(attributeId, upFile); @@ -10104,7 +10104,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10166,7 +10166,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer audienceId = 56; // Integer | The ID of the audience. + Long audienceId = 56; // Long | The ID of the audience. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAudiencesMemberships(audienceId, upFile); @@ -10187,7 +10187,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Integer**| The ID of the audience. | + **audienceId** | **Long**| The ID of the audience. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10249,8 +10249,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importCampaignStores(applicationId, campaignId, upFile); @@ -10271,8 +10271,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10334,9 +10334,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile); @@ -10357,9 +10357,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10419,8 +10419,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { @@ -10442,8 +10442,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **skipDuplicates** | **Boolean**| An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. | [optional] **upFile** | **String**| The file containing the data that is being imported. | [optional] @@ -10503,7 +10503,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCards(loyaltyProgramId, upFile); @@ -10524,7 +10524,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10585,7 +10585,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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 upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCustomersTiers(loyaltyProgramId, upFile); @@ -10606,7 +10606,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10668,7 +10668,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // 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 upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, upFile); @@ -10689,7 +10689,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **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. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10748,7 +10748,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. + Long poolId = 56; // Long | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importPoolGiveaways(poolId, upFile); @@ -10769,7 +10769,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | + **poolId** | **Long**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10828,8 +10828,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile); @@ -10850,8 +10850,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10987,8 +10987,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11011,8 +11011,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11076,10 +11076,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 50; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long pageSize = 50; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String title = "title_example"; // String | Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. try { InlineResponse20048 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); @@ -11100,10 +11100,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **title** | **String**| Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. | [optional] ### Return type cool @@ -11236,9 +11236,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long catalogId = 56; // Long | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. List sku = Arrays.asList(); // List | Filter results by one or more SKUs. Must be exact match. List productNames = Arrays.asList(); // List | Filter results by one or more product names. Must be exact match. @@ -11261,9 +11261,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **catalogId** | **Long**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **sku** | [**List<String>**](String.md)| Filter results by one or more SKUs. Must be exact match. | [optional] **productNames** | [**List<String>**](String.md)| Filter results by one or more product names. Must be exact match. | [optional] @@ -11324,10 +11324,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11350,10 +11350,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11415,9 +11415,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11440,9 +11440,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11504,9 +11504,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. @@ -11532,9 +11532,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] @@ -11911,7 +11911,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. try { apiInstance.scimDeleteUser(userId); } catch (ApiException e) { @@ -11930,7 +11930,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | ### Return type cool @@ -12210,7 +12210,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. try { ScimUser result = apiInstance.scimGetUser(userId); System.out.println(result); @@ -12230,7 +12230,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | ### Return type cool @@ -12362,7 +12362,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. ScimPatchRequest body = new ScimPatchRequest(); // ScimPatchRequest | body try { ScimUser result = apiInstance.scimPatchUser(userId, body); @@ -12383,7 +12383,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | **body** | [**ScimPatchRequest**](ScimPatchRequest.md)| body | ### Return type cool @@ -12442,7 +12442,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. ScimNewUser body = new ScimNewUser(); // ScimNewUser | body try { ScimUser result = apiInstance.scimReplaceUserAttributes(userId, body); @@ -12463,7 +12463,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | **body** | [**ScimNewUser**](ScimNewUser.md)| body | ### Return type cool @@ -12522,17 +12522,17 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Long referralId = 56; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -12556,17 +12556,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -12628,18 +12628,18 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Integer pageSize = 1000; // Integer | The number of items in the response. - Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Long pageSize = 1000; // Long | The number of items in the response. + Long skip = 56; // Long | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Long referralId = 56; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. String batchId = "batchId_example"; // String | Filter results by batches of coupons @@ -12662,18 +12662,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] - **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] **batchId** | **String**| Filter results by batches of coupons | [optional] @@ -12734,7 +12734,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. TransferLoyaltyCard body = new TransferLoyaltyCard(); // TransferLoyaltyCard | body try { @@ -12755,7 +12755,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**TransferLoyaltyCard**](TransferLoyaltyCard.md)| body | @@ -12818,7 +12818,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. UpdateCollection body = new UpdateCollection(); // UpdateCollection | body try { Collection result = apiInstance.updateAccountCollection(collectionId, body); @@ -12839,7 +12839,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | **body** | [**UpdateCollection**](UpdateCollection.md)| body | ### Return type cool @@ -12901,9 +12901,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long achievementId = 56; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. UpdateAchievement body = new UpdateAchievement(); // UpdateAchievement | body try { Achievement result = apiInstance.updateAchievement(applicationId, campaignId, achievementId, body); @@ -12924,9 +12924,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | **body** | [**UpdateAchievement**](UpdateAchievement.md)| body | ### Return type cool @@ -12988,7 +12988,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. + Long additionalCostId = 56; // Long | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body try { AccountAdditionalCost result = apiInstance.updateAdditionalCost(additionalCostId, body); @@ -13009,7 +13009,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | + **additionalCostId** | **Long**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | **body** | [**NewAdditionalCost**](NewAdditionalCost.md)| body | ### Return type cool @@ -13068,7 +13068,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Long attributeId = 56; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. NewAttribute body = new NewAttribute(); // NewAttribute | body try { Attribute result = apiInstance.updateAttribute(attributeId, body); @@ -13089,7 +13089,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | **body** | [**NewAttribute**](NewAttribute.md)| body | ### Return type cool @@ -13148,8 +13148,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. UpdateCampaign body = new UpdateCampaign(); // UpdateCampaign | body try { Campaign result = apiInstance.updateCampaign(applicationId, campaignId, body); @@ -13170,8 +13170,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**UpdateCampaign**](UpdateCampaign.md)| body | ### Return type cool @@ -13230,9 +13230,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long collectionId = 56; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. UpdateCampaignCollection body = new UpdateCampaignCollection(); // UpdateCampaignCollection | body try { Collection result = apiInstance.updateCollection(applicationId, campaignId, collectionId, body); @@ -13253,9 +13253,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | **body** | [**UpdateCampaignCollection**](UpdateCampaignCollection.md)| body | ### Return type cool @@ -13315,8 +13315,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. UpdateCoupon body = new UpdateCoupon(); // UpdateCoupon | body try { @@ -13338,8 +13338,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | **body** | [**UpdateCoupon**](UpdateCoupon.md)| body | @@ -13399,8 +13399,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. UpdateCouponBatch body = new UpdateCouponBatch(); // UpdateCouponBatch | body try { apiInstance.updateCouponBatch(applicationId, campaignId, body); @@ -13420,8 +13420,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**UpdateCouponBatch**](UpdateCouponBatch.md)| body | ### Return type cool @@ -13480,7 +13480,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Long loyaltyProgramId = 56; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. UpdateLoyaltyCard body = new UpdateLoyaltyCard(); // UpdateLoyaltyCard | body try { @@ -13502,7 +13502,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**UpdateLoyaltyCard**](UpdateLoyaltyCard.md)| body | @@ -13565,8 +13565,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. - Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long campaignId = 56; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. String referralId = "referralId_example"; // String | The ID of the referral code. UpdateReferral body = new UpdateReferral(); // UpdateReferral | body try { @@ -13588,8 +13588,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **referralId** | **String**| The ID of the referral code. | **body** | [**UpdateReferral**](UpdateReferral.md)| body | @@ -13649,7 +13649,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + Long roleId = 56; // Long | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. RoleV2Base body = new RoleV2Base(); // RoleV2Base | body try { RoleV2 result = apiInstance.updateRoleV2(roleId, body); @@ -13670,7 +13670,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | + **roleId** | **Long**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | **body** | [**RoleV2Base**](RoleV2Base.md)| body | ### Return type cool @@ -13729,7 +13729,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Long applicationId = 56; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. NewStore body = new NewStore(); // NewStore | body try { @@ -13751,7 +13751,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | **body** | [**NewStore**](NewStore.md)| body | @@ -13813,7 +13813,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Integer userId = 56; // Integer | The ID of the user. + Long userId = 56; // Long | The ID of the user. UpdateUser body = new UpdateUser(); // UpdateUser | body try { User result = apiInstance.updateUser(userId, body); @@ -13834,7 +13834,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Integer**| The ID of the user. | + **userId** | **Long**| The ID of the user. | **body** | [**UpdateUser**](UpdateUser.md)| body | ### Return type cool diff --git a/docs/ManagementKey.md b/docs/ManagementKey.md index 72a6f395..ad412ce1 100644 --- a/docs/ManagementKey.md +++ b/docs/ManagementKey.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] -**id** | **Integer** | ID of the management key. | -**createdBy** | **Integer** | ID of the user who created it. | -**accountID** | **Integer** | ID of account the key is used for. | +**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**id** | **Long** | ID of the management key. | +**createdBy** | **Long** | ID of the user who created it. | +**accountID** | **Long** | ID of account the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key was created. | **disabled** | **Boolean** | The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. | [optional] diff --git a/docs/ManagerConfig.md b/docs/ManagerConfig.md index 649bfd3b..d1f96bc9 100644 --- a/docs/ManagerConfig.md +++ b/docs/ManagerConfig.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**schemaVersion** | **Integer** | | +**schemaVersion** | **Long** | | diff --git a/docs/MessageLogEntry.md b/docs/MessageLogEntry.md index d237317e..95535651 100644 --- a/docs/MessageLogEntry.md +++ b/docs/MessageLogEntry.md @@ -10,18 +10,18 @@ Name | Type | Description | Notes **id** | **String** | Unique identifier of the message. | **service** | **String** | Name of the service that generated the log entry. | **changeType** | **String** | Type of change that triggered the notification. | [optional] -**notificationId** | **Integer** | ID of the notification. | [optional] +**notificationId** | **Long** | ID of the notification. | [optional] **notificationName** | **String** | The name of the notification. | [optional] -**webhookId** | **Integer** | ID of the webhook. | [optional] +**webhookId** | **Long** | ID of the webhook. | [optional] **webhookName** | **String** | The name of the webhook. | [optional] **request** | [**MessageLogRequest**](MessageLogRequest.md) | | [optional] **response** | [**MessageLogResponse**](MessageLogResponse.md) | | [optional] **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the log entry was created. | **entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | The entity type the log is related to. | **url** | **String** | The target URL of the request. | [optional] -**applicationId** | **Integer** | Identifier of the Application. | [optional] -**loyaltyProgramId** | **Integer** | Identifier of the loyalty program. | [optional] -**campaignId** | **Integer** | Identifier of the campaign. | [optional] +**applicationId** | **Long** | Identifier of the Application. | [optional] +**loyaltyProgramId** | **Long** | Identifier of the loyalty program. | [optional] +**campaignId** | **Long** | Identifier of the campaign. | [optional] diff --git a/docs/MessageLogResponse.md b/docs/MessageLogResponse.md index 7f9e54db..3f957a45 100644 --- a/docs/MessageLogResponse.md +++ b/docs/MessageLogResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the response was received. | [optional] **response** | **byte[]** | Raw response data. | [optional] -**status** | **Integer** | HTTP status code of the response. | [optional] +**status** | **Long** | HTTP status code of the response. | [optional] diff --git a/docs/MessageTest.md b/docs/MessageTest.md index 1c0a7668..f72114b7 100644 --- a/docs/MessageTest.md +++ b/docs/MessageTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **httpResponse** | **String** | The returned http response. | -**httpStatus** | **Integer** | The returned http status code. | +**httpStatus** | **Long** | The returned http status code. | diff --git a/docs/ModelImport.md b/docs/ModelImport.md index e316234b..058e54cb 100644 --- a/docs/ModelImport.md +++ b/docs/ModelImport.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **entity** | **String** | The name of the entity that was imported. | -**amount** | **Integer** | The number of values that were imported. | +**amount** | **Long** | The number of values that were imported. | diff --git a/docs/ModelReturn.md b/docs/ModelReturn.md index d299d501..859360cb 100644 --- a/docs/ModelReturn.md +++ b/docs/ModelReturn.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **returnedCartItems** | [**List<ReturnedCartItem>**](ReturnedCartItem.md) | List of cart items to be returned. | -**eventId** | **Integer** | The event ID of that was generated for this return. | -**sessionId** | **Integer** | The internal ID of the session this return was requested on. | +**eventId** | **Long** | The event ID of that was generated for this return. | +**sessionId** | **Long** | The internal ID of the session this return was requested on. | **sessionIntegrationId** | **String** | The integration ID of the session this return was requested on. | -**profileId** | **Integer** | The internal ID of the profile this return was requested on. | [optional] +**profileId** | **Long** | The internal ID of the profile this return was requested on. | [optional] **profileIntegrationId** | **String** | The integration ID of the profile this return was requested on. | [optional] -**createdBy** | **Integer** | ID of the user who requested this return. | [optional] +**createdBy** | **Long** | ID of the user who requested this return. | [optional] diff --git a/docs/MultiApplicationEntity.md b/docs/MultiApplicationEntity.md index 9f8d6787..a6d5ddfc 100644 --- a/docs/MultiApplicationEntity.md +++ b/docs/MultiApplicationEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | diff --git a/docs/MultipleAudiences.md b/docs/MultipleAudiences.md index 31c457e3..f315b1f1 100644 --- a/docs/MultipleAudiences.md +++ b/docs/MultipleAudiences.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **audiences** | [**List<MultipleAudiencesItem>**](MultipleAudiencesItem.md) | | diff --git a/docs/MultipleAudiencesItem.md b/docs/MultipleAudiencesItem.md index c5b4366a..49078163 100644 --- a/docs/MultipleAudiencesItem.md +++ b/docs/MultipleAudiencesItem.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The human-friendly display name for this audience. | **integrationId** | **String** | The ID of this audience in the third-party integration. | diff --git a/docs/NewAdditionalCost.md b/docs/NewAdditionalCost.md index c0d41330..c96a47d6 100644 --- a/docs/NewAdditionalCost.md +++ b/docs/NewAdditionalCost.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | The internal name used in API requests. | **title** | **String** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. | **description** | **String** | A description of this additional cost. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. | [optional] diff --git a/docs/NewAppWideCouponDeletionJob.md b/docs/NewAppWideCouponDeletionJob.md index 8e23c0b0..2783f6c6 100644 --- a/docs/NewAppWideCouponDeletionJob.md +++ b/docs/NewAppWideCouponDeletionJob.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filters** | [**CouponDeletionFilters**](CouponDeletionFilters.md) | | -**campaignids** | **List<Integer>** | | +**campaignids** | **List<Long>** | | diff --git a/docs/NewApplicationAPIKey.md b/docs/NewApplicationAPIKey.md index 969ed30a..4f435724 100644 --- a/docs/NewApplicationAPIKey.md +++ b/docs/NewApplicationAPIKey.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] -**id** | **Integer** | ID of the API Key. | -**createdBy** | **Integer** | ID of user who created. | -**accountID** | **Integer** | ID of account the key is used for. | -**applicationID** | **Integer** | ID of application the key is used for. | +**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**id** | **Long** | ID of the API Key. | +**createdBy** | **Long** | ID of user who created. | +**accountID** | **Long** | ID of account the key is used for. | +**applicationID** | **Long** | ID of application the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key was created. | **key** | **String** | The API key. | diff --git a/docs/NewApplicationCIF.md b/docs/NewApplicationCIF.md index c24c9766..75e2d88e 100644 --- a/docs/NewApplicationCIF.md +++ b/docs/NewApplicationCIF.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the Application cart item filter used in API requests. | **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] -**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] +**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] +**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] diff --git a/docs/NewApplicationCIFExpression.md b/docs/NewApplicationCIFExpression.md index d3a4fb2c..caa782cf 100644 --- a/docs/NewApplicationCIFExpression.md +++ b/docs/NewApplicationCIFExpression.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cartItemFilterId** | **Integer** | The ID of the Application cart item filter. | [optional] -**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] +**cartItemFilterId** | **Long** | The ID of the Application cart item filter. | [optional] +**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] **expression** | **List<Object>** | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] diff --git a/docs/NewAttribute.md b/docs/NewAttribute.md index 62dfb616..6273b232 100644 --- a/docs/NewAttribute.md +++ b/docs/NewAttribute.md @@ -16,8 +16,8 @@ Name | Type | Description | Notes **hasAllowedList** | **Boolean** | Whether or not this attribute has an allowed list of values associated with it. | [optional] **restrictedBySuggestions** | **Boolean** | Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). | [optional] **editable** | **Boolean** | Whether or not this attribute can be edited. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications where this attribute is available. | [optional] -**subscribedCatalogsIds** | **List<Integer>** | A list of the IDs of the catalogs where this attribute is available. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications where this attribute is available. | [optional] +**subscribedCatalogsIds** | **List<Long>** | A list of the IDs of the catalogs where this attribute is available. | [optional] **allowedSubscriptions** | [**List<AllowedSubscriptionsEnum>**](#List<AllowedSubscriptionsEnum>) | A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. | [optional] diff --git a/docs/NewCampaign.md b/docs/NewCampaign.md index 5b727c5d..b165eaee 100644 --- a/docs/NewCampaign.md +++ b/docs/NewCampaign.md @@ -12,16 +12,16 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] diff --git a/docs/NewCampaignEvaluationGroup.md b/docs/NewCampaignEvaluationGroup.md index 7de3f7c1..0fba1544 100644 --- a/docs/NewCampaignEvaluationGroup.md +++ b/docs/NewCampaignEvaluationGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | diff --git a/docs/NewCampaignGroup.md b/docs/NewCampaignGroup.md index 73199ce1..0cb6c2c3 100644 --- a/docs/NewCampaignGroup.md +++ b/docs/NewCampaignGroup.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/NewCampaignSet.md b/docs/NewCampaignSet.md index 9da24d74..d28be787 100644 --- a/docs/NewCampaignSet.md +++ b/docs/NewCampaignSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the Application that owns this entity. | -**version** | **Integer** | Version of the campaign set. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | +**version** | **Long** | Version of the campaign set. | **set** | [**CampaignSetBranchNode**](CampaignSetBranchNode.md) | | diff --git a/docs/NewCampaignSetV2.md b/docs/NewCampaignSetV2.md index a7b9a9b6..f1548b17 100644 --- a/docs/NewCampaignSetV2.md +++ b/docs/NewCampaignSetV2.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Integer** | The ID of the application that owns this entity. | -**version** | **Integer** | Version of the campaign set. | +**applicationId** | **Long** | The ID of the application that owns this entity. | +**version** | **Long** | Version of the campaign set. | **set** | [**CampaignPrioritiesV2**](CampaignPrioritiesV2.md) | | diff --git a/docs/NewCampaignStoreBudgetStoreLimit.md b/docs/NewCampaignStoreBudgetStoreLimit.md index a0730b27..738dce65 100644 --- a/docs/NewCampaignStoreBudgetStoreLimit.md +++ b/docs/NewCampaignStoreBudgetStoreLimit.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storeId** | **Integer** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | +**storeId** | **Long** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | **limit** | [**BigDecimal**](BigDecimal.md) | The value to set for the limit. | diff --git a/docs/NewCampaignTemplate.md b/docs/NewCampaignTemplate.md index 6df18fae..138feb50 100644 --- a/docs/NewCampaignTemplate.md +++ b/docs/NewCampaignTemplate.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that will operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | diff --git a/docs/NewCatalog.md b/docs/NewCatalog.md index 7eca3499..9b920d1a 100644 --- a/docs/NewCatalog.md +++ b/docs/NewCatalog.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The cart item catalog name. | **description** | **String** | A description of this cart item catalog. | -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] diff --git a/docs/NewCollection.md b/docs/NewCollection.md index 5b503b99..1d74dec4 100644 --- a/docs/NewCollection.md +++ b/docs/NewCollection.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | diff --git a/docs/NewCouponCreationJob.md b/docs/NewCouponCreationJob.md index b9802385..aca9ab0d 100644 --- a/docs/NewCouponCreationJob.md +++ b/docs/NewCouponCreationJob.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] -**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. | +**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with coupons. | diff --git a/docs/NewCoupons.md b/docs/NewCoupons.md index d6a69d2d..9178c9a1 100644 --- a/docs/NewCoupons.md +++ b/docs/NewCoupons.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. Must be at least 1. | +**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. Must be at least 1. | **uniquePrefix** | **String** | **DEPRECATED** To create more than 20,000 coupons in one request, use [Create coupons asynchronously](https://docs.talon.one/management-api#operation/createCouponsAsync) endpoint. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] **recipientIntegrationId** | **String** | The integration ID for this coupon's beneficiary's profile. | [optional] diff --git a/docs/NewCouponsForMultipleRecipients.md b/docs/NewCouponsForMultipleRecipients.md index 3434ce93..f3bbb939 100644 --- a/docs/NewCouponsForMultipleRecipients.md +++ b/docs/NewCouponsForMultipleRecipients.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/NewCustomEffect.md b/docs/NewCustomEffect.md index 649cb13d..ae9775af 100644 --- a/docs/NewCustomEffect.md +++ b/docs/NewCustomEffect.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | **isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional] **name** | **String** | The name of this effect. | **title** | **String** | The title of this effect. | diff --git a/docs/NewCustomerSessionV2.md b/docs/NewCustomerSessionV2.md index 6650355c..dacef5fe 100644 --- a/docs/NewCustomerSessionV2.md +++ b/docs/NewCustomerSessionV2.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional] **referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional] **loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] diff --git a/docs/NewGiveawaysPool.md b/docs/NewGiveawaysPool.md index 574d74b0..e8a4a8cf 100644 --- a/docs/NewGiveawaysPool.md +++ b/docs/NewGiveawaysPool.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of this giveaways pool. | **description** | **String** | The description of this giveaways pool. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | diff --git a/docs/NewInvitation.md b/docs/NewInvitation.md index 9c8f4203..4367c68d 100644 --- a/docs/NewInvitation.md +++ b/docs/NewInvitation.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the user. | [optional] **email** | **String** | Email address of the user. | **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] -**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] +**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. | [optional] **acl** | **String** | Indicates the access level of the user. | [optional] diff --git a/docs/NewLoyaltyProgram.md b/docs/NewLoyaltyProgram.md index 2f399616..8aa2e1e9 100644 --- a/docs/NewLoyaltyProgram.md +++ b/docs/NewLoyaltyProgram.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | -**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/NewManagementKey.md b/docs/NewManagementKey.md index 91c7b7ad..32b741bf 100644 --- a/docs/NewManagementKey.md +++ b/docs/NewManagementKey.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] -**id** | **Integer** | ID of the management key. | -**createdBy** | **Integer** | ID of the user who created it. | -**accountID** | **Integer** | ID of account the key is used for. | +**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**id** | **Long** | ID of the management key. | +**createdBy** | **Long** | ID of the user who created it. | +**accountID** | **Long** | ID of account the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key was created. | **disabled** | **Boolean** | The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. | [optional] **key** | **String** | The management key. | diff --git a/docs/NewOutgoingIntegrationWebhook.md b/docs/NewOutgoingIntegrationWebhook.md index ab5c3d85..6ed702d4 100644 --- a/docs/NewOutgoingIntegrationWebhook.md +++ b/docs/NewOutgoingIntegrationWebhook.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | Webhook title. | **description** | **String** | A description of the webhook. | [optional] -**applicationIds** | **List<Integer>** | IDs of the Applications to which a webhook must be linked. | +**applicationIds** | **List<Long>** | IDs of the Applications to which a webhook must be linked. | diff --git a/docs/NewReferral.md b/docs/NewReferral.md index 89539a34..33c71f97 100644 --- a/docs/NewReferral.md +++ b/docs/NewReferral.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] -**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] +**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/NewReferralsForMultipleAdvocates.md b/docs/NewReferralsForMultipleAdvocates.md index f81457bf..d44ed694 100644 --- a/docs/NewReferralsForMultipleAdvocates.md +++ b/docs/NewReferralsForMultipleAdvocates.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Integer** | The ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Long** | The ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationIds** | **List<String>** | An array containing all the respective advocate profiles. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this referral code. | [optional] **validCharacters** | **List<String>** | List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. | [optional] diff --git a/docs/NewRevisionVersion.md b/docs/NewRevisionVersion.md index c1e8104d..cc7bc981 100644 --- a/docs/NewRevisionVersion.md +++ b/docs/NewRevisionVersion.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **description** | **String** | A detailed description of the campaign. | [optional] -**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/NewRole.md b/docs/NewRole.md index 18efda13..8f5a69b3 100644 --- a/docs/NewRole.md +++ b/docs/NewRole.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | [optional] **acl** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | -**members** | **List<Integer>** | An array of user identifiers. | +**members** | **List<Long>** | An array of user identifiers. | diff --git a/docs/NewRoleV2.md b/docs/NewRoleV2.md index 0b14d352..8b602195 100644 --- a/docs/NewRoleV2.md +++ b/docs/NewRoleV2.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/NewSamlConnection.md b/docs/NewSamlConnection.md index fc26b121..19b8e34c 100644 --- a/docs/NewSamlConnection.md +++ b/docs/NewSamlConnection.md @@ -8,7 +8,7 @@ A new SAML 2.0 connection. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **x509certificate** | **String** | X.509 Certificate. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | diff --git a/docs/NewWebhook.md b/docs/NewWebhook.md index 8af6c671..770b40bd 100644 --- a/docs/NewWebhook.md +++ b/docs/NewWebhook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | diff --git a/docs/Notification.md b/docs/Notification.md index c53c17f7..531d20a2 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | id of the notification. | +**id** | **Long** | id of the notification. | **name** | **String** | name of the notification. | **description** | **String** | description of the notification. | diff --git a/docs/NotificationListItem.md b/docs/NotificationListItem.md index 0e021bd9..96056400 100644 --- a/docs/NotificationListItem.md +++ b/docs/NotificationListItem.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**notificationId** | **Integer** | The ID of the notification. | +**notificationId** | **Long** | The ID of the notification. | **notificationName** | **String** | The name of the notification. | -**entityId** | **Integer** | The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. | +**entityId** | **Long** | The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. | **enabled** | **Boolean** | Indicates whether the notification is activated. | diff --git a/docs/NotificationTest.md b/docs/NotificationTest.md index 5d5b36eb..f39800f1 100644 --- a/docs/NotificationTest.md +++ b/docs/NotificationTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **httpResponse** | **String** | The returned http response. | -**httpStatus** | **Integer** | The returned http status code. | +**httpStatus** | **Long** | The returned http status code. | diff --git a/docs/NotificationWebhook.md b/docs/NotificationWebhook.md index b33f7a75..c0c57400 100644 --- a/docs/NotificationWebhook.md +++ b/docs/NotificationWebhook.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationId** | **Integer** | The ID of the application that owns this entity. | +**applicationId** | **Long** | The ID of the application that owns this entity. | **url** | **String** | API URL for the given webhook-based notification. | **headers** | **List<String>** | List of API HTTP headers for the given webhook-based notification. | **enabled** | **Boolean** | Indicates whether sending the notification is enabled. | [optional] diff --git a/docs/OneTimeCode.md b/docs/OneTimeCode.md index b6ad8079..4fced140 100644 --- a/docs/OneTimeCode.md +++ b/docs/OneTimeCode.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Integer** | The ID of the user. | -**accountId** | **Integer** | The ID of the account. | +**userId** | **Long** | The ID of the user. | +**accountId** | **Long** | The ID of the account. | **token** | **String** | The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code. | **code** | **String** | The one-time security code used for signing in. | [optional] diff --git a/docs/OutgoingIntegrationConfiguration.md b/docs/OutgoingIntegrationConfiguration.md index 1b93b0e3..92e89621 100644 --- a/docs/OutgoingIntegrationConfiguration.md +++ b/docs/OutgoingIntegrationConfiguration.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | -**accountId** | **Integer** | The ID of the account to which this configuration belongs. | -**typeId** | **Integer** | The outgoing integration type ID. | +**id** | **Long** | Unique ID for this entity. | +**accountId** | **Long** | The ID of the account to which this configuration belongs. | +**typeId** | **Long** | The outgoing integration type ID. | **policy** | [**Object**](.md) | The outgoing integration policy specific to each integration type. | diff --git a/docs/OutgoingIntegrationTemplate.md b/docs/OutgoingIntegrationTemplate.md index 66982094..b598cec6 100644 --- a/docs/OutgoingIntegrationTemplate.md +++ b/docs/OutgoingIntegrationTemplate.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | -**integrationType** | **Integer** | Unique ID of outgoing integration type. | +**id** | **Long** | Unique ID for this entity. | +**integrationType** | **Long** | Unique ID of outgoing integration type. | **title** | **String** | The title of the integration template. | **description** | **String** | The description of the specific outgoing integration template. | **payload** | **String** | The API payload (supports templating using parameters) for this integration template. | diff --git a/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md b/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md index e938523d..c63a957f 100644 --- a/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +++ b/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | -**integrationType** | **Integer** | Unique ID of outgoing integration type. | +**id** | **Long** | Unique ID for this entity. | +**integrationType** | **Long** | Unique ID of outgoing integration type. | **title** | **String** | The title of the integration template. | **description** | **String** | The description of the specific outgoing integration template. | **payload** | **String** | The API payload (supports templating using parameters) for this integration template. | diff --git a/docs/OutgoingIntegrationType.md b/docs/OutgoingIntegrationType.md index 65d59b52..32d1cb2a 100644 --- a/docs/OutgoingIntegrationType.md +++ b/docs/OutgoingIntegrationType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. | +**id** | **Long** | Unique ID for this entity. | **name** | **String** | Name of the outgoing integration. | **description** | **String** | Description of the outgoing integration. | [optional] **category** | **String** | Category of the outgoing integration. | [optional] diff --git a/docs/OutgoingIntegrationWebhookTemplate.md b/docs/OutgoingIntegrationWebhookTemplate.md index 94d34b92..d5699b09 100644 --- a/docs/OutgoingIntegrationWebhookTemplate.md +++ b/docs/OutgoingIntegrationWebhookTemplate.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique Id for this entity. | -**integrationType** | **Integer** | Unique Id of outgoing integration type. | +**id** | **Long** | Unique Id for this entity. | +**integrationType** | **Long** | Unique Id of outgoing integration type. | **title** | **String** | Title of the webhook template. | **description** | **String** | General description for the specific outgoing integration webhook template. | **payload** | **String** | API payload (supports templating using parameters) for this webhook template. | diff --git a/docs/PendingPointsNotificationPolicy.md b/docs/PendingPointsNotificationPolicy.md index a37a3c6c..a0f97e41 100644 --- a/docs/PendingPointsNotificationPolicy.md +++ b/docs/PendingPointsNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/Picklist.md b/docs/Picklist.md index 15ea9dbc..bc923812 100644 --- a/docs/Picklist.md +++ b/docs/Picklist.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **type** | [**TypeEnum**](#TypeEnum) | The type of allowed values in the picklist. If the type `time` is chosen, it must be an RFC3339 timestamp string. | **values** | **List<String>** | The list of allowed values provided by this picklist. | -**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Integer** | ID of the user who created this effect. | -**accountId** | **Integer** | The ID of the account that owns this entity. | [optional] +**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Long** | ID of the user who created this effect. | +**accountId** | **Long** | The ID of the account that owns this entity. | [optional] **imported** | **Boolean** | Imported flag shows that a picklist is imported by a CSV file or not | [optional] diff --git a/docs/PriorityPosition.md b/docs/PriorityPosition.md index 6cc213c8..c4b14597 100644 --- a/docs/PriorityPosition.md +++ b/docs/PriorityPosition.md @@ -8,7 +8,7 @@ The campaign priority. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **set** | [**SetEnum**](#SetEnum) | The name of the priority set where the campaign is located. | -**position** | **Integer** | The position of the campaign in the priority order starting from 1. | +**position** | **Long** | The position of the campaign in the priority order starting from 1. | diff --git a/docs/ProductSearchMatch.md b/docs/ProductSearchMatch.md index 38532320..04e05906 100644 --- a/docs/ProductSearchMatch.md +++ b/docs/ProductSearchMatch.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**productId** | **Integer** | The ID of the product. | [optional] +**productId** | **Long** | The ID of the product. | [optional] **value** | **String** | The string matching the given value. Either a product name or SKU. | -**productSkuId** | **Integer** | The ID of the SKU linked to a product. If empty, this is an product. | [optional] +**productSkuId** | **Long** | The ID of the SKU linked to a product. If empty, this is an product. | [optional] diff --git a/docs/ProductUnitAnalyticsDataPoint.md b/docs/ProductUnitAnalyticsDataPoint.md index 4ebeaa2c..78594190 100644 --- a/docs/ProductUnitAnalyticsDataPoint.md +++ b/docs/ProductUnitAnalyticsDataPoint.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | -**productId** | **Integer** | The ID of the product. | +**productId** | **Long** | The ID of the product. | **productName** | **String** | The name of the product. | diff --git a/docs/ProfileAudiencesChanges.md b/docs/ProfileAudiencesChanges.md index f57da462..afbd48aa 100644 --- a/docs/ProfileAudiencesChanges.md +++ b/docs/ProfileAudiencesChanges.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**adds** | **List<Integer>** | The IDs of the audiences for the customer to join. | -**deletes** | **List<Integer>** | The IDs of the audiences for the customer to leave. | +**adds** | **List<Long>** | The IDs of the audiences for the customer to join. | +**deletes** | **List<Long>** | The IDs of the audiences for the customer to leave. | diff --git a/docs/RedeemReferralEffectProps.md b/docs/RedeemReferralEffectProps.md index 1bf20890..150d11b9 100644 --- a/docs/RedeemReferralEffectProps.md +++ b/docs/RedeemReferralEffectProps.md @@ -7,7 +7,7 @@ This effect is **deprecated**. The properties specific to the \"redeemReferral\" Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The id of the referral code that was redeemed. | +**id** | **Long** | The id of the referral code that was redeemed. | **value** | **String** | The referral code that was redeemed. | diff --git a/docs/Referral.md b/docs/Referral.md index 37b7b891..1c94d1f6 100644 --- a/docs/Referral.md +++ b/docs/Referral.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**importId** | **Integer** | The ID of the Import which created this referral. | [optional] +**importId** | **Long** | The ID of the Import which created this referral. | [optional] **code** | **String** | The referral code. | -**usageCounter** | **Integer** | The number of times this referral code has been successfully used. | +**usageCounter** | **Long** | The number of times this referral code has been successfully used. | **batchId** | **String** | The ID of the batch the referrals belong to. | [optional] diff --git a/docs/ReferralConstraints.md b/docs/ReferralConstraints.md index cf6624f1..6922a5ab 100644 --- a/docs/ReferralConstraints.md +++ b/docs/ReferralConstraints.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] diff --git a/docs/ReferralRejectionReason.md b/docs/ReferralRejectionReason.md index 26e8584f..0d938403 100644 --- a/docs/ReferralRejectionReason.md +++ b/docs/ReferralRejectionReason.md @@ -7,8 +7,8 @@ Holds a reference to the campaign, the referral and the reason for which that re Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | | -**referralId** | **Integer** | | +**campaignId** | **Long** | | +**referralId** | **Long** | | **reason** | [**ReasonEnum**](#ReasonEnum) | | diff --git a/docs/RejectCouponEffectProps.md b/docs/RejectCouponEffectProps.md index 7dad99ea..21e16c7b 100644 --- a/docs/RejectCouponEffectProps.md +++ b/docs/RejectCouponEffectProps.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **String** | The coupon code that was rejected. | **rejectionReason** | **String** | The reason why this coupon was rejected. | -**conditionIndex** | **Integer** | The index of the condition that caused the rejection of the coupon. | [optional] -**effectIndex** | **Integer** | The index of the effect that caused the rejection of the coupon. | [optional] +**conditionIndex** | **Long** | The index of the condition that caused the rejection of the coupon. | [optional] +**effectIndex** | **Long** | The index of the effect that caused the rejection of the coupon. | [optional] **details** | **String** | More details about the failure. | [optional] **campaignExclusionReason** | **String** | The reason why the campaign was not applied. | [optional] diff --git a/docs/RejectReferralEffectProps.md b/docs/RejectReferralEffectProps.md index c44ee07a..ec3e5eff 100644 --- a/docs/RejectReferralEffectProps.md +++ b/docs/RejectReferralEffectProps.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **String** | The referral code that was rejected. | **rejectionReason** | **String** | The reason why this referral code was rejected. | -**conditionIndex** | **Integer** | The index of the condition that caused the rejection of the referral. | [optional] -**effectIndex** | **Integer** | The index of the effect that caused the rejection of the referral. | [optional] +**conditionIndex** | **Long** | The index of the condition that caused the rejection of the referral. | [optional] +**effectIndex** | **Long** | The index of the effect that caused the rejection of the referral. | [optional] **details** | **String** | More details about the failure. | [optional] **campaignExclusionReason** | **String** | The reason why the campaign was not applied. | [optional] diff --git a/docs/RemoveFromAudienceEffectProps.md b/docs/RemoveFromAudienceEffectProps.md index 64112908..5c4b229e 100644 --- a/docs/RemoveFromAudienceEffectProps.md +++ b/docs/RemoveFromAudienceEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"removeFromAudience\" effect. This gets triggere Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Integer** | The internal ID of the audience. | [optional] +**audienceId** | **Long** | The internal ID of the audience. | [optional] **audienceName** | **String** | The name of the audience. | [optional] **profileIntegrationId** | **String** | The ID of the customer profile in the third-party integration platform. | [optional] -**profileId** | **Integer** | The internal ID of the customer profile. | [optional] +**profileId** | **Long** | The internal ID of the customer profile. | [optional] diff --git a/docs/ReturnedCartItem.md b/docs/ReturnedCartItem.md index 89e52370..095d36f3 100644 --- a/docs/ReturnedCartItem.md +++ b/docs/ReturnedCartItem.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**position** | **Integer** | The index of the cart item in the provided customer session's `cartItems` property. | -**quantity** | **Integer** | Number of cart items to return. | [optional] +**position** | **Long** | The index of the cart item in the provided customer session's `cartItems` property. | +**quantity** | **Long** | Number of cart items to return. | [optional] diff --git a/docs/Revision.md b/docs/Revision.md index c0c9b496..861b4ad2 100644 --- a/docs/Revision.md +++ b/docs/Revision.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**accountId** | **Integer** | | -**applicationId** | **Integer** | | -**campaignId** | **Integer** | | +**accountId** | **Long** | | +**applicationId** | **Long** | | +**campaignId** | **Long** | | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**createdBy** | **Integer** | | +**createdBy** | **Long** | | **activatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**activatedBy** | **Integer** | | [optional] +**activatedBy** | **Long** | | [optional] **currentVersion** | [**RevisionVersion**](RevisionVersion.md) | | [optional] diff --git a/docs/RevisionActivationRequest.md b/docs/RevisionActivationRequest.md index 1b518dc0..6ba3ae5a 100644 --- a/docs/RevisionActivationRequest.md +++ b/docs/RevisionActivationRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userIds** | **List<Integer>** | The list of IDs of the users who will receive the activation request. | +**userIds** | **List<Long>** | The list of IDs of the users who will receive the activation request. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. | [optional] diff --git a/docs/RevisionVersion.md b/docs/RevisionVersion.md index d4f0d085..123c6168 100644 --- a/docs/RevisionVersion.md +++ b/docs/RevisionVersion.md @@ -6,20 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | -**accountId** | **Integer** | | -**applicationId** | **Integer** | | -**campaignId** | **Integer** | | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**accountId** | **Long** | | +**applicationId** | **Long** | | +**campaignId** | **Long** | | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**createdBy** | **Integer** | | -**revisionId** | **Integer** | | -**version** | **Integer** | | +**createdBy** | **Long** | | +**revisionId** | **Long** | | +**version** | **Long** | | **name** | **String** | A user-facing name for this campaign. | [optional] **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **description** | **String** | A detailed description of the campaign. | [optional] -**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/Role.md b/docs/Role.md index cd357581..de52c50f 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Integer** | The ID of the account that owns this entity. | -**campaignGroupID** | **Integer** | The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. | [optional] +**accountId** | **Long** | The ID of the account that owns this entity. | +**campaignGroupID** | **Long** | The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. | [optional] **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | [optional] -**members** | **List<Integer>** | A list of user identifiers assigned to this role. | [optional] +**members** | **List<Long>** | A list of user identifiers assigned to this role. | [optional] **acl** | [**Object**](.md) | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | diff --git a/docs/RoleAssign.md b/docs/RoleAssign.md index a91a102a..3f5e5588 100644 --- a/docs/RoleAssign.md +++ b/docs/RoleAssign.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**users** | **List<Integer>** | An array of user IDs. | -**roles** | **List<Integer>** | An array of role IDs. | +**users** | **List<Long>** | An array of user IDs. | +**roles** | **List<Long>** | An array of role IDs. | diff --git a/docs/RoleMembership.md b/docs/RoleMembership.md index d64d274f..044b456f 100644 --- a/docs/RoleMembership.md +++ b/docs/RoleMembership.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**roleID** | **Integer** | ID of role. | -**userID** | **Integer** | ID of User. | +**roleID** | **Long** | ID of role. | +**userID** | **Long** | ID of User. | diff --git a/docs/RoleV2.md b/docs/RoleV2.md index 6ef2bfae..2829c25d 100644 --- a/docs/RoleV2.md +++ b/docs/RoleV2.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RoleV2Base.md b/docs/RoleV2Base.md index 2557f618..0197a861 100644 --- a/docs/RoleV2Base.md +++ b/docs/RoleV2Base.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RollbackAddedLoyaltyPointsEffectProps.md b/docs/RollbackAddedLoyaltyPointsEffectProps.md index 3054d608..ecc7667b 100644 --- a/docs/RollbackAddedLoyaltyPointsEffectProps.md +++ b/docs/RollbackAddedLoyaltyPointsEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"rollbackAddedLoyaltyPoints\" effect. This gets Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programId** | **Integer** | The ID of the loyalty program where the points were originally added. | +**programId** | **Long** | The ID of the loyalty program where the points were originally added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were originally added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were rolled back. | **recipientIntegrationId** | **String** | The user for whom these points were originally added. | diff --git a/docs/RollbackDeductedLoyaltyPointsEffectProps.md b/docs/RollbackDeductedLoyaltyPointsEffectProps.md index c4b03f74..6f63f376 100644 --- a/docs/RollbackDeductedLoyaltyPointsEffectProps.md +++ b/docs/RollbackDeductedLoyaltyPointsEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"rollbackDeductedLoyaltyPoints\" effect. This ef Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programId** | **Integer** | The ID of the loyalty program where these points were reimbursed. | +**programId** | **Long** | The ID of the loyalty program where these points were reimbursed. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were reimbursed. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of reimbursed points that were added. | **recipientIntegrationId** | **String** | The user for whom these points were reimbursed. | diff --git a/docs/RollbackDiscountEffectProps.md b/docs/RollbackDiscountEffectProps.md index 41388635..604c0457 100644 --- a/docs/RollbackDiscountEffectProps.md +++ b/docs/RollbackDiscountEffectProps.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **value** | [**BigDecimal**](BigDecimal.md) | The value of the discount that was rolled back. | **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart items for which the discount was rolled back. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the subposition returns the index of the item unit in its line item. | [optional] -**additionalCostId** | **Integer** | The ID of the additional cost that was rolled back. | [optional] +**additionalCostId** | **Long** | The ID of the additional cost that was rolled back. | [optional] **additionalCost** | **String** | The name of the additional cost that was rolled back. | [optional] **scope** | **String** | The scope of the rolled back discount - For a discount per session, it can be one of `cartItems`, `additionalCosts` or `sessionTotal` - For a discount per item, it can be one of `price`, `additionalCosts` or `itemTotal` | [optional] diff --git a/docs/RollbackIncreasedAchievementProgressEffectProps.md b/docs/RollbackIncreasedAchievementProgressEffectProps.md index 80e6519b..6d95ddf9 100644 --- a/docs/RollbackIncreasedAchievementProgressEffectProps.md +++ b/docs/RollbackIncreasedAchievementProgressEffectProps.md @@ -7,9 +7,9 @@ The properties specific to the \"rollbackIncreasedAchievementProgress\" effect. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**achievementId** | **Integer** | The internal ID of the achievement. | +**achievementId** | **Long** | The internal ID of the achievement. | **achievementName** | **String** | The name of the achievement. | -**progressTrackerId** | **Integer** | The internal ID of the achievement progress tracker. | +**progressTrackerId** | **Long** | The internal ID of the achievement progress tracker. | **decreaseProgressBy** | [**BigDecimal**](BigDecimal.md) | The value by which the customer's current progress in the achievement is decreased. | **currentProgress** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | **target** | [**BigDecimal**](BigDecimal.md) | The target value to complete the achievement. | diff --git a/docs/RuleFailureReason.md b/docs/RuleFailureReason.md index 8d65a4d7..04830bd8 100644 --- a/docs/RuleFailureReason.md +++ b/docs/RuleFailureReason.md @@ -7,19 +7,19 @@ Details about why a rule failed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignID** | **Integer** | The ID of the campaign that contains the rule that failed. | +**campaignID** | **Long** | The ID of the campaign that contains the rule that failed. | **campaignName** | **String** | The name of the campaign that contains the rule that failed. | -**rulesetID** | **Integer** | The ID of the ruleset that contains the rule that failed. | -**couponID** | **Integer** | The ID of the coupon that was being evaluated at the time of the rule failure. | [optional] +**rulesetID** | **Long** | The ID of the ruleset that contains the rule that failed. | +**couponID** | **Long** | The ID of the coupon that was being evaluated at the time of the rule failure. | [optional] **couponValue** | **String** | The code of the coupon that was being evaluated at the time of the rule failure. | [optional] -**referralID** | **Integer** | The ID of the referral that was being evaluated at the time of the rule failure. | [optional] +**referralID** | **Long** | The ID of the referral that was being evaluated at the time of the rule failure. | [optional] **referralValue** | **String** | The code of the referral that was being evaluated at the time of the rule failure. | [optional] -**ruleIndex** | **Integer** | The index of the rule that failed within the ruleset. | +**ruleIndex** | **Long** | The index of the rule that failed within the ruleset. | **ruleName** | **String** | The name of the rule that failed within the ruleset. | -**conditionIndex** | **Integer** | The index of the condition that failed. | [optional] -**effectIndex** | **Integer** | The index of the effect that failed. | [optional] +**conditionIndex** | **Long** | The index of the condition that failed. | [optional] +**effectIndex** | **Long** | The index of the effect that failed. | [optional] **details** | **String** | More details about the failure. | [optional] -**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- | [optional] diff --git a/docs/Ruleset.md b/docs/Ruleset.md index 9c2e2240..63ecf3cc 100644 --- a/docs/Ruleset.md +++ b/docs/Ruleset.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**userId** | **Integer** | The ID of the user associated with this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | **rules** | [**List<Rule>**](Rule.md) | Set of rules to apply. | **strikethroughRules** | [**List<Rule>**](Rule.md) | Set of rules to apply for strikethrough. | [optional] **bindings** | [**List<Binding>**](Binding.md) | An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. | **rbVersion** | **String** | The version of the rulebuilder used to create this ruleset. | [optional] **activate** | **Boolean** | Indicates whether this created ruleset should be activated for the campaign that owns it. | [optional] -**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] -**templateId** | **Integer** | The ID of the campaign template that owns this entity. | [optional] +**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] +**templateId** | **Long** | The ID of the campaign template that owns this entity. | [optional] **activatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp indicating when this Ruleset was activated. | [optional] diff --git a/docs/SamlConnection.md b/docs/SamlConnection.md index 7f81a5ba..971a6f74 100644 --- a/docs/SamlConnection.md +++ b/docs/SamlConnection.md @@ -8,7 +8,7 @@ A SAML 2.0 connection. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assertionConsumerServiceURL** | **String** | The location where the SAML assertion is sent with a HTTP POST. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | @@ -16,7 +16,7 @@ Name | Type | Description | Notes **signOutURL** | **String** | Single Sign-Out URL. | [optional] **metadataURL** | **String** | Metadata URL. | [optional] **audienceURI** | **String** | The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. | -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | diff --git a/docs/SamlLoginEndpoint.md b/docs/SamlLoginEndpoint.md index 11e32a8b..d8f16a20 100644 --- a/docs/SamlLoginEndpoint.md +++ b/docs/SamlLoginEndpoint.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | ID of the SAML login endpoint. | +**id** | **Long** | ID of the SAML login endpoint. | **name** | **String** | ID of the SAML service. | **loginURL** | **String** | The single sign-on URL. | diff --git a/docs/ScimSchemasListResponse.md b/docs/ScimSchemasListResponse.md index bec0115f..57d88d2e 100644 --- a/docs/ScimSchemasListResponse.md +++ b/docs/ScimSchemasListResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resources** | [**List<ScimSchemaResource>**](ScimSchemaResource.md) | | **schemas** | **List<String>** | SCIM schema for the given resource. | [optional] -**totalResults** | **Integer** | Number of total results in the response. | [optional] +**totalResults** | **Long** | Number of total results in the response. | [optional] diff --git a/docs/ScimServiceProviderConfigResponseBulk.md b/docs/ScimServiceProviderConfigResponseBulk.md index d5ac9118..3d5767a1 100644 --- a/docs/ScimServiceProviderConfigResponseBulk.md +++ b/docs/ScimServiceProviderConfigResponseBulk.md @@ -7,8 +7,8 @@ Configuration related to bulk operations, which allow multiple SCIM requests to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxOperations** | **Integer** | The maximum number of individual operations that can be included in a single bulk request. | [optional] -**maxPayloadSize** | **Integer** | The maximum size, in bytes, of the entire payload for a bulk operation request. | [optional] +**maxOperations** | **Long** | The maximum number of individual operations that can be included in a single bulk request. | [optional] +**maxPayloadSize** | **Long** | The maximum size, in bytes, of the entire payload for a bulk operation request. | [optional] **supported** | **Boolean** | Indicates whether the SCIM service provider supports bulk operations. | [optional] diff --git a/docs/ScimServiceProviderConfigResponseFilter.md b/docs/ScimServiceProviderConfigResponseFilter.md index a9276b0f..c3a9d2a5 100644 --- a/docs/ScimServiceProviderConfigResponseFilter.md +++ b/docs/ScimServiceProviderConfigResponseFilter.md @@ -7,7 +7,7 @@ Configuration settings related to filtering SCIM resources based on specific cri Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxResults** | **Integer** | The maximum number of resources that can be returned in a single filtered query response. | [optional] +**maxResults** | **Long** | The maximum number of resources that can be returned in a single filtered query response. | [optional] **supported** | **Boolean** | Indicates whether the SCIM service provider supports filtering operations. | [optional] diff --git a/docs/ScimUsersListResponse.md b/docs/ScimUsersListResponse.md index 4c93df21..91c2f7ac 100644 --- a/docs/ScimUsersListResponse.md +++ b/docs/ScimUsersListResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resources** | [**List<ScimUser>**](ScimUser.md) | | **schemas** | **List<String>** | SCIM schema for the given resource. | [optional] -**totalResults** | **Integer** | Number of total results in the response. | [optional] +**totalResults** | **Long** | Number of total results in the response. | [optional] diff --git a/docs/Session.md b/docs/Session.md index 98524ded..3d2cf8d3 100644 --- a/docs/Session.md +++ b/docs/Session.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Integer** | The ID of the user of this session. | +**userId** | **Long** | The ID of the user of this session. | **token** | **String** | The token to use as a bearer token to query Management API endpoints. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Unix timestamp indicating when the session was first created. | diff --git a/docs/SetDiscountPerAdditionalCostEffectProps.md b/docs/SetDiscountPerAdditionalCostEffectProps.md index 2e7fd55f..d94246cf 100644 --- a/docs/SetDiscountPerAdditionalCostEffectProps.md +++ b/docs/SetDiscountPerAdditionalCostEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"setDiscountPerAdditionalCost\" effect. This get Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this discount | -**additionalCostId** | **Integer** | The ID of the additional cost. | +**additionalCostId** | **Long** | The ID of the additional cost. | **additionalCost** | **String** | The name of the additional cost. | **value** | [**BigDecimal**](BigDecimal.md) | The total monetary value of the discount. | **desiredValue** | [**BigDecimal**](BigDecimal.md) | The original value of the discount. | [optional] diff --git a/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md b/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md index 589a67fe..c67eb5dd 100644 --- a/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +++ b/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"setDiscountPerAdditionalCostPerItem\" effect. T Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this discount | -**additionalCostId** | **Integer** | The ID of the additional cost. | +**additionalCostId** | **Long** | The ID of the additional cost. | **value** | [**BigDecimal**](BigDecimal.md) | The total monetary value of the discount. | **position** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart item list containing the additional cost to be discounted. | **subPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. | [optional] diff --git a/docs/SetDiscountPerItemEffectProps.md b/docs/SetDiscountPerItemEffectProps.md index 18fffe2e..df1fb4fa 100644 --- a/docs/SetDiscountPerItemEffectProps.md +++ b/docs/SetDiscountPerItemEffectProps.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **scope** | **String** | The scope of the discount: - `additionalCosts`: The discount applies to all the additional costs of the item. - `itemTotal`: The discount applies to the price of the item + the additional costs of the item. - `price`: The discount applies to the price of the item. | [optional] **totalDiscount** | [**BigDecimal**](BigDecimal.md) | The total discount given if this effect is a result of a prorated discount. | [optional] **desiredTotalDiscount** | [**BigDecimal**](BigDecimal.md) | The original total discount to give if this effect is a result of a prorated discount. | [optional] -**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] **targetedItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the targeted bundle item on which the applied discount is based. | [optional] **targetedItemSubPosition** | [**BigDecimal**](BigDecimal.md) | The sub-position of the targeted bundle item on which the applied discount is based. | [optional] diff --git a/docs/Store.md b/docs/Store.md index 5d8c955e..487fa591 100644 --- a/docs/Store.md +++ b/docs/Store.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name of the store. | **description** | **String** | The description of the store. | **attributes** | [**Object**](.md) | The attributes of the store. | [optional] **integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update on this entity. | -**linkedCampaignIds** | **List<Integer>** | A list of IDs of the campaigns that are linked with current store. | [optional] +**linkedCampaignIds** | **List<Long>** | A list of IDs of the campaigns that are linked with current store. | [optional] diff --git a/docs/StrikethroughChangedItem.md b/docs/StrikethroughChangedItem.md index 0985a414..0bc2c67c 100644 --- a/docs/StrikethroughChangedItem.md +++ b/docs/StrikethroughChangedItem.md @@ -7,10 +7,10 @@ The information of affected items. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the event that triggered the strikethrough labeling. | -**catalogId** | **Integer** | The ID of the catalog that the changed item belongs to. | +**id** | **Long** | The ID of the event that triggered the strikethrough labeling. | +**catalogId** | **Long** | The ID of the catalog that the changed item belongs to. | **sku** | **String** | The unique SKU of the changed item. | -**version** | **Integer** | The version of the changed item. | +**version** | **Long** | The version of the changed item. | **price** | [**BigDecimal**](BigDecimal.md) | The price of the changed item. | **evaluatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The evaluation time of the changed item. | **effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | | [optional] diff --git a/docs/StrikethroughCustomEffectPerItemProps.md b/docs/StrikethroughCustomEffectPerItemProps.md index c2d97790..cbf914a3 100644 --- a/docs/StrikethroughCustomEffectPerItemProps.md +++ b/docs/StrikethroughCustomEffectPerItemProps.md @@ -7,7 +7,7 @@ customEffectPerItem effect in strikethrough pricing payload. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**effectId** | **Integer** | ID of the effect. | +**effectId** | **Long** | ID of the effect. | **name** | **String** | The type of the custom effect. | **payload** | [**Object**](.md) | The JSON payload of the custom effect. | diff --git a/docs/StrikethroughDebugResponse.md b/docs/StrikethroughDebugResponse.md index c2a229b0..b58f785a 100644 --- a/docs/StrikethroughDebugResponse.md +++ b/docs/StrikethroughDebugResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignsIDs** | **List<Integer>** | The campaign IDs that got fetched for the evaluation process. | [optional] +**campaignsIDs** | **List<Long>** | The campaign IDs that got fetched for the evaluation process. | [optional] **effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | The strikethrough effects that are returned from the evaluation process. | [optional] diff --git a/docs/StrikethroughEffect.md b/docs/StrikethroughEffect.md index 1ce465f1..8fb4b48c 100644 --- a/docs/StrikethroughEffect.md +++ b/docs/StrikethroughEffect.md @@ -7,9 +7,9 @@ The effect produced for the catalog item. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Integer** | The ID of the campaign that effect belongs to. | -**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | -**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Long** | The ID of the campaign that effect belongs to. | +**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | +**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **type** | **String** | The type of this effect. | **props** | [**Object**](.md) | | diff --git a/docs/StrikethroughLabelingNotification.md b/docs/StrikethroughLabelingNotification.md index f5fd6948..9e0652b8 100644 --- a/docs/StrikethroughLabelingNotification.md +++ b/docs/StrikethroughLabelingNotification.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **version** | [**VersionEnum**](#VersionEnum) | The version of the strikethrough pricing notification. | [optional] **validFrom** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which the strikethrough pricing update becomes valid. Set for **scheduled** strikethrough pricing updates (version: v2) only. | [optional] -**applicationId** | **Integer** | The ID of the Application to which the catalog items labels belongs. | -**currentBatch** | **Integer** | The batch number of the notification. Notifications might be sent in different batches. | -**totalBatches** | **Integer** | The total number of batches for the notification. | +**applicationId** | **Long** | The ID of the Application to which the catalog items labels belongs. | +**currentBatch** | **Long** | The batch number of the notification. Notifications might be sent in different batches. | +**totalBatches** | **Long** | The total number of batches for the notification. | **trigger** | [**StrikethroughTrigger**](StrikethroughTrigger.md) | | **changedItems** | [**List<StrikethroughChangedItem>**](StrikethroughChangedItem.md) | | diff --git a/docs/StrikethroughTrigger.md b/docs/StrikethroughTrigger.md index 7db0f9f5..ef6ef1fc 100644 --- a/docs/StrikethroughTrigger.md +++ b/docs/StrikethroughTrigger.md @@ -7,10 +7,10 @@ Information about the event that triggered the strikethrough labeling. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The ID of the event that triggered the strikethrough labeling. | +**id** | **Long** | The ID of the event that triggered the strikethrough labeling. | **type** | **String** | The type of event that triggered the strikethrough labeling. | **triggeredAt** | [**OffsetDateTime**](OffsetDateTime.md) | The creation time of the event that triggered the strikethrough labeling. | -**totalAffectedItems** | **Integer** | The total number of items affected by the event that triggered the strikethrough labeling. | +**totalAffectedItems** | **Long** | The total number of items affected by the event that triggered the strikethrough labeling. | **payload** | [**Object**](.md) | The arbitrary properties associated with this trigger type. | diff --git a/docs/SummaryCampaignStoreBudget.md b/docs/SummaryCampaignStoreBudget.md index 4f973d76..847a89d8 100644 --- a/docs/SummaryCampaignStoreBudget.md +++ b/docs/SummaryCampaignStoreBudget.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | **period** | [**PeriodEnum**](#PeriodEnum) | | [optional] -**storeCount** | **Integer** | | +**storeCount** | **Long** | | **imported** | **Boolean** | | diff --git a/docs/TalangAttribute.md b/docs/TalangAttribute.md index f39315e0..34fafdc6 100644 --- a/docs/TalangAttribute.md +++ b/docs/TalangAttribute.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **description** | **String** | A description of the attribute. | [optional] **visible** | **Boolean** | Indicates whether the attribute is visible in the UI or not. | **kind** | [**KindEnum**](#KindEnum) | Indicate the kind of the attribute. | -**campaignsCount** | **Integer** | The number of campaigns that refer to the attribute. | +**campaignsCount** | **Long** | The number of campaigns that refer to the attribute. | **exampleValue** | **List<String>** | Examples of values that can be assigned to the attribute. | [optional] diff --git a/docs/TemplateArgDef.md b/docs/TemplateArgDef.md index 523ffdbd..c6317b6e 100644 --- a/docs/TemplateArgDef.md +++ b/docs/TemplateArgDef.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **title** | **String** | A campaigner friendly name for the argument, this will be shown in the rule editor. | **ui** | [**Object**](.md) | Arbitrary metadata that may be used to render an input for this argument. | **key** | **String** | The identifier for the associated value within the JSON object. | [optional] -**picklistID** | **Integer** | ID of the picklist linked to a template. | [optional] +**picklistID** | **Long** | ID of the picklist linked to a template. | [optional] **restrictedByPicklist** | **Boolean** | Whether or not this attribute's value is restricted by picklist (`picklist` property) | [optional] diff --git a/docs/TemplateDef.md b/docs/TemplateDef.md index 0e21a558..043d3c5e 100644 --- a/docs/TemplateDef.md +++ b/docs/TemplateDef.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**applicationId** | **Long** | The ID of the Application that owns this entity. | **title** | **String** | Campaigner-friendly name for the template that will be shown in the rule editor. | **description** | **String** | A short description of the template that will be shown in the rule editor. | **help** | **String** | Extended help text for the template. | diff --git a/docs/Tier.md b/docs/Tier.md index fc02f3fa..a83a8aa0 100644 --- a/docs/Tier.md +++ b/docs/Tier.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The internal ID of the tier. | +**id** | **Long** | The internal ID of the tier. | **name** | **String** | The name of the tier. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when the customer moved to this tier. This value uses the loyalty program's time zone setting. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when tier level expires in the RFC3339 format (in the Loyalty Program's timezone). | [optional] diff --git a/docs/TierDowngradeNotificationPolicy.md b/docs/TierDowngradeNotificationPolicy.md index b97811ba..e4238122 100644 --- a/docs/TierDowngradeNotificationPolicy.md +++ b/docs/TierDowngradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/TierUpgradeNotificationPolicy.md b/docs/TierUpgradeNotificationPolicy.md index 42c95fb8..3eddda1d 100644 --- a/docs/TierUpgradeNotificationPolicy.md +++ b/docs/TierUpgradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/TierWillDowngradeNotificationPolicy.md b/docs/TierWillDowngradeNotificationPolicy.md index 3a410eff..e5a365d8 100644 --- a/docs/TierWillDowngradeNotificationPolicy.md +++ b/docs/TierWillDowngradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] **triggers** | [**List<TierWillDowngradeNotificationTrigger>**](TierWillDowngradeNotificationTrigger.md) | | diff --git a/docs/TierWillDowngradeNotificationTrigger.md b/docs/TierWillDowngradeNotificationTrigger.md index 308371d1..5bf51b74 100644 --- a/docs/TierWillDowngradeNotificationTrigger.md +++ b/docs/TierWillDowngradeNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Integer** | The amount of period. | +**amount** | **Long** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/TimePoint.md b/docs/TimePoint.md index 3e69e308..75704e43 100644 --- a/docs/TimePoint.md +++ b/docs/TimePoint.md @@ -7,12 +7,12 @@ The absolute duration after which the achievement ends and resets for a particul Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**month** | **Integer** | The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] -**dayOfMonth** | **Integer** | The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] -**dayOfWeek** | **Integer** | The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] -**hour** | **Integer** | The achievement ends and resets at this hour. | -**minute** | **Integer** | The achievement ends and resets at this minute. | -**second** | **Integer** | The achievement ends and resets at this second. | +**month** | **Long** | The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] +**dayOfMonth** | **Long** | The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] +**dayOfWeek** | **Long** | The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] +**hour** | **Long** | The achievement ends and resets at this hour. | +**minute** | **Long** | The achievement ends and resets at this minute. | +**second** | **Long** | The achievement ends and resets at this second. | diff --git a/docs/UpdateApplication.md b/docs/UpdateApplication.md index 3cd2b2e4..41a96bdc 100644 --- a/docs/UpdateApplication.md +++ b/docs/UpdateApplication.md @@ -20,8 +20,8 @@ Name | Type | Description | Notes **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] **enablePartialDiscounts** | **Boolean** | Indicates if this Application supports partial discounts. | [optional] **defaultDiscountAdditionalCostPerItemScope** | [**DefaultDiscountAdditionalCostPerItemScopeEnum**](#DefaultDiscountAdditionalCostPerItemScopeEnum) | The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. | [optional] -**defaultEvaluationGroupId** | **Integer** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] -**defaultCartItemFilterId** | **Integer** | The ID of the default Cart-Item-Filter for this application. | [optional] +**defaultEvaluationGroupId** | **Long** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] +**defaultCartItemFilterId** | **Long** | The ID of the default Cart-Item-Filter for this application. | [optional] **enableCampaignStateManagement** | **Boolean** | Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. | [optional] diff --git a/docs/UpdateApplicationAPIKey.md b/docs/UpdateApplicationAPIKey.md index b98defda..67fe23cc 100644 --- a/docs/UpdateApplicationAPIKey.md +++ b/docs/UpdateApplicationAPIKey.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | +**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | diff --git a/docs/UpdateApplicationCIF.md b/docs/UpdateApplicationCIF.md index 4f91411e..4df9090f 100644 --- a/docs/UpdateApplicationCIF.md +++ b/docs/UpdateApplicationCIF.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] +**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] diff --git a/docs/UpdateCampaign.md b/docs/UpdateCampaign.md index c3c6a42f..5a9a231c 100644 --- a/docs/UpdateCampaign.md +++ b/docs/UpdateCampaign.md @@ -12,16 +12,16 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | [optional] -**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of limits that will operate for this campaign. | -**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] +**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. | [optional] +**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. | [optional] diff --git a/docs/UpdateCampaignEvaluationGroup.md b/docs/UpdateCampaignEvaluationGroup.md index 0408d666..3ede3a67 100644 --- a/docs/UpdateCampaignEvaluationGroup.md +++ b/docs/UpdateCampaignEvaluationGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | diff --git a/docs/UpdateCampaignGroup.md b/docs/UpdateCampaignGroup.md index f1d2b0ad..86972ccd 100644 --- a/docs/UpdateCampaignGroup.md +++ b/docs/UpdateCampaignGroup.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/UpdateCampaignTemplate.md b/docs/UpdateCampaignTemplate.md index 08dcd55f..2036e4a4 100644 --- a/docs/UpdateCampaignTemplate.md +++ b/docs/UpdateCampaignTemplate.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **campaignAttributes** | [**Object**](.md) | The campaign attributes that campaigns created from this template will have by default. | [optional] **couponAttributes** | [**Object**](.md) | The campaign attributes that coupons created from this template will have by default. | [optional] **state** | [**StateEnum**](#StateEnum) | Only campaign templates in 'available' state may be used to create campaigns. | -**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] @@ -20,9 +20,9 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] -**applicationsIds** | **List<Integer>** | A list of IDs of the Applications that are subscribed to this campaign template. | +**applicationsIds** | **List<Long>** | A list of IDs of the Applications that are subscribed to this campaign template. | **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] diff --git a/docs/UpdateCatalog.md b/docs/UpdateCatalog.md index 265dd822..4fb2f30a 100644 --- a/docs/UpdateCatalog.md +++ b/docs/UpdateCatalog.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A description of this cart item catalog. | [optional] **name** | **String** | Name of this cart item catalog. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] diff --git a/docs/UpdateCollection.md b/docs/UpdateCollection.md index 635623ad..ccbc9465 100644 --- a/docs/UpdateCollection.md +++ b/docs/UpdateCollection.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] diff --git a/docs/UpdateCoupon.md b/docs/UpdateCoupon.md index 301154ae..5ac442da 100644 --- a/docs/UpdateCoupon.md +++ b/docs/UpdateCoupon.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] diff --git a/docs/UpdateCouponBatch.md b/docs/UpdateCouponBatch.md index 5a8078ae..5aa99a21 100644 --- a/docs/UpdateCouponBatch.md +++ b/docs/UpdateCouponBatch.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **attributes** | [**Object**](.md) | Optional property to set the value of custom coupon attributes. They are defined in the Campaign Manager, see [Managing attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes). Coupon attributes can also be set to _mandatory_ in your Application [settings](https://docs.talon.one/docs/product/applications/using-attributes#making-attributes-mandatory). If your Application uses mandatory attributes, you must use this property to set their value. | [optional] diff --git a/docs/UpdateCustomEffect.md b/docs/UpdateCustomEffect.md index 7e11a283..3a887358 100644 --- a/docs/UpdateCustomEffect.md +++ b/docs/UpdateCustomEffect.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | **isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional] **name** | **String** | The name of this effect. | **title** | **String** | The title of this effect. | diff --git a/docs/UpdateLoyaltyProgram.md b/docs/UpdateLoyaltyProgram.md index 19475bf5..9ac2c035 100644 --- a/docs/UpdateLoyaltyProgram.md +++ b/docs/UpdateLoyaltyProgram.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | [optional] **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] -**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional] **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/UpdateLoyaltyProgramTier.md b/docs/UpdateLoyaltyProgramTier.md index 2e1bb290..6aa6c538 100644 --- a/docs/UpdateLoyaltyProgramTier.md +++ b/docs/UpdateLoyaltyProgramTier.md @@ -7,7 +7,7 @@ Update a tier in a specified loyalty program. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | The internal ID of the tier. | +**id** | **Long** | The internal ID of the tier. | **name** | **String** | The name of the tier. | [optional] **minPoints** | [**BigDecimal**](BigDecimal.md) | The minimum amount of points required to enter the tier. | [optional] diff --git a/docs/UpdateReferral.md b/docs/UpdateReferral.md index 8a2a5e89..53383707 100644 --- a/docs/UpdateReferral.md +++ b/docs/UpdateReferral.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/UpdateReferralBatch.md b/docs/UpdateReferralBatch.md index 78a97d38..b256e8f3 100644 --- a/docs/UpdateReferralBatch.md +++ b/docs/UpdateReferralBatch.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **batchID** | **String** | The id of the batch the referral belongs to. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Integer** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Long** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] diff --git a/docs/UpdateRole.md b/docs/UpdateRole.md index 59852518..0aa604c5 100644 --- a/docs/UpdateRole.md +++ b/docs/UpdateRole.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **acl** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | [optional] -**members** | **List<Integer>** | An array of user identifiers. | [optional] +**members** | **List<Long>** | An array of user identifiers. | [optional] diff --git a/docs/UpdateUser.md b/docs/UpdateUser.md index 62735909..1b08a258 100644 --- a/docs/UpdateUser.md +++ b/docs/UpdateUser.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **state** | [**StateEnum**](#StateEnum) | The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. | [optional] **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] **policy** | **String** | Indicates the access level of the user. | [optional] -**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | [optional] +**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] diff --git a/docs/User.md b/docs/User.md index a91c6b7a..fec8aac6 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **email** | **String** | The email address associated with the user profile. | -**accountId** | **Integer** | The ID of the account that owns this entity. | +**accountId** | **Long** | The ID of the account that owns this entity. | **name** | **String** | Name of the user. | **state** | [**StateEnum**](#StateEnum) | State of the user. | **inviteToken** | **String** | Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. | **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] **policy** | [**Object**](.md) | Access level of the user. | -**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] +**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. | [optional] **authMethod** | **String** | Authentication method for this user. | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] **lastSignedIn** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the user last signed in to Talon.One. | [optional] diff --git a/docs/UserEntity.md b/docs/UserEntity.md index 279e4bb1..ed951e56 100644 --- a/docs/UserEntity.md +++ b/docs/UserEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Integer** | The ID of the user associated with this entity. | +**userId** | **Long** | The ID of the user associated with this entity. | diff --git a/docs/ValueMap.md b/docs/ValueMap.md index c0befac4..84df5442 100644 --- a/docs/ValueMap.md +++ b/docs/ValueMap.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**createdBy** | **Integer** | The ID of the user who created the value map. | [optional] -**campaignId** | **Integer** | | +**createdBy** | **Long** | The ID of the user who created the value map. | [optional] +**campaignId** | **Long** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 175ba6f5..71010d5c 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | diff --git a/docs/WebhookActivationLogEntry.md b/docs/WebhookActivationLogEntry.md index eba02e14..6d662252 100644 --- a/docs/WebhookActivationLogEntry.md +++ b/docs/WebhookActivationLogEntry.md @@ -8,9 +8,9 @@ Log of activated webhooks. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integrationRequestUuid** | **String** | UUID reference of the integration request that triggered the effect with the webhook. | -**webhookId** | **Integer** | ID of the webhook that triggered the request. | -**applicationId** | **Integer** | ID of the application that triggered the webhook. | -**campaignId** | **Integer** | ID of the campaign that triggered the webhook. | +**webhookId** | **Long** | ID of the webhook that triggered the request. | +**applicationId** | **Long** | ID of the application that triggered the webhook. | +**campaignId** | **Long** | ID of the campaign that triggered the webhook. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of request | diff --git a/docs/WebhookLogEntry.md b/docs/WebhookLogEntry.md index bac9be49..c192f194 100644 --- a/docs/WebhookLogEntry.md +++ b/docs/WebhookLogEntry.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | UUID reference of the webhook request. | **integrationRequestUuid** | **String** | UUID reference of the integration request linked to this webhook request. | -**webhookId** | **Integer** | ID of the webhook that triggered the request. | -**applicationId** | **Integer** | ID of the application that triggered the webhook. | [optional] +**webhookId** | **Long** | ID of the webhook that triggered the request. | +**applicationId** | **Long** | ID of the application that triggered the webhook. | [optional] **url** | **String** | The target URL of the request. | **request** | **String** | Request message | **response** | **String** | Response message | [optional] -**status** | **Integer** | HTTP status code of response. | [optional] +**status** | **Long** | HTTP status code of response. | [optional] **requestTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of request | **responseTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of response | [optional] diff --git a/docs/WebhookWithOutgoingIntegrationDetails.md b/docs/WebhookWithOutgoingIntegrationDetails.md index 41e97e14..079324a7 100644 --- a/docs/WebhookWithOutgoingIntegrationDetails.md +++ b/docs/WebhookWithOutgoingIntegrationDetails.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Integer** | Internal ID of this entity. | +**id** | **Long** | Internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **payload** | **String** | API payload (supports templating using parameters) for this webhook. | [optional] **params** | [**List<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions. | **enabled** | **Boolean** | Enables or disables webhook from showing in the Rule Builder. | -**outgoingIntegrationTemplateId** | **Integer** | Identifier of the outgoing integration template. | [optional] -**outgoingIntegrationTypeId** | **Integer** | Identifier of the outgoing integration type. | [optional] +**outgoingIntegrationTemplateId** | **Long** | Identifier of the outgoing integration template. | [optional] +**outgoingIntegrationTypeId** | **Long** | Identifier of the outgoing integration type. | [optional] **outgoingIntegrationTypeName** | **String** | Name of the outgoing integration. | [optional] diff --git a/docs/WillAwardGiveawayEffectProps.md b/docs/WillAwardGiveawayEffectProps.md index 64d4bd99..fc643303 100644 --- a/docs/WillAwardGiveawayEffectProps.md +++ b/docs/WillAwardGiveawayEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"awardGiveaway\" effect when the session is not Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**poolId** | **Integer** | The ID of the giveaways pool the code will be taken from. | +**poolId** | **Long** | The ID of the giveaways pool the code will be taken from. | **poolName** | **String** | The name of the giveaways pool the code will be taken from. | **recipientIntegrationId** | **String** | The integration ID of the profile that will be awarded the giveaway. | diff --git a/src/main/java/one/talon/ApiClient.java b/src/main/java/one/talon/ApiClient.java index 1615bda7..4ce73341 100644 --- a/src/main/java/one/talon/ApiClient.java +++ b/src/main/java/one/talon/ApiClient.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon; import okhttp3.*; @@ -32,9 +31,6 @@ import java.lang.reflect.Type; import java.net.URLConnection; import java.net.URLEncoder; -import java.security.GeneralSecurityException; -import java.security.KeyStore; -import java.security.SecureRandom; import java.security.cert.Certificate; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; @@ -126,7 +122,6 @@ private void init() { builder.addNetworkInterceptor(getProgressInterceptor()); httpClient = builder.build(); - verifyingSsl = true; json = new JSON(); @@ -248,9 +243,11 @@ public boolean isVerifyingSsl() { } /** - * Configure whether to verify certificate and hostname when making https requests. + * Configure whether to verify certificate and hostname when making https + * requests. * Default to true. - * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * NOTE: Do NOT set to false in production code, otherwise you would face + * multiple types of cryptographic attacks. * * @param verifyingSsl True to verify TLS/SSL connection * @return ApiClient @@ -431,7 +428,7 @@ public ApiClient setUserAgent(String userAgent) { /** * Add a default header. * - * @param key The header's key + * @param key The header's key * @param value The header's value * @return ApiClient */ @@ -443,7 +440,7 @@ public ApiClient addDefaultHeader(String key, String value) { /** * Add a default cookie. * - * @param key The cookie's key + * @param key The cookie's key * @param value The cookie's value * @return ApiClient */ @@ -487,7 +484,8 @@ public ApiClient setDebugging(boolean debugging) { * with file response. The default value is null, i.e. using * the system's default tempopary folder. * - * @see createTempFile + * @see createTempFile * @return Temporary folder path */ public String getTempFolderPath() { @@ -517,7 +515,7 @@ public int getConnectTimeout() { /** * Sets the connect timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link Long#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client @@ -539,7 +537,7 @@ public int getReadTimeout() { /** * Sets the read timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link Long#MAX_VALUE}. * * @param readTimeout read timeout in milliseconds * @return Api client @@ -561,7 +559,7 @@ public int getWriteTimeout() { /** * Sets the write timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link Integer#MAX_VALUE}. + * {@link Long#MAX_VALUE}. * * @param writeTimeout connection timeout in milliseconds * @return Api client @@ -571,7 +569,6 @@ public ApiClient setWriteTimeout(int writeTimeout) { return this; } - /** * Format the given parameter object into string. * @@ -582,7 +579,7 @@ public String parameterToString(Object param) { if (param == null) { return ""; } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { - //Serialize to json string and remove the " enclosing characters + // Serialize to json string and remove the " enclosing characters String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { @@ -600,11 +597,12 @@ public String parameterToString(Object param) { } /** - * Formats the specified query parameter to a list containing a single {@code Pair} object. + * Formats the specified query parameter to a list containing a single + * {@code Pair} object. * * Note that {@code value} must not be a collection. * - * @param name The name of the parameter. + * @param name The name of the parameter. * @param value The value of the parameter. * @return A list containing a single {@code Pair} object. */ @@ -621,13 +619,15 @@ public List parameterToPair(String name, Object value) { } /** - * Formats the specified collection query parameters to a list of {@code Pair} objects. + * Formats the specified collection query parameters to a list of {@code Pair} + * objects. * - * Note that the values of each of the returned Pair objects are percent-encoded. + * Note that the values of each of the returned Pair objects are + * percent-encoded. * * @param collectionFormat The collection format of the parameter. - * @param name The name of the parameter. - * @param value The value of the parameter. + * @param name The name of the parameter. + * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ public List parameterToPairs(String collectionFormat, String name, Collection value) { @@ -674,7 +674,7 @@ public List parameterToPairs(String collectionFormat, String name, Collect * Formats the specified collection path parameter to a string value. * * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. + * @param value The value of the parameter. * @return String representation of the parameter */ public String collectionPathParameterToString(String collectionFormat, Collection value) { @@ -695,7 +695,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio delimiter = "|"; } - StringBuilder sb = new StringBuilder() ; + StringBuilder sb = new StringBuilder(); for (Object item : value) { sb.append(delimiter); sb.append(parameterToString(item)); @@ -718,11 +718,12 @@ public String sanitizeFilename(String filename) { /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json * "* / *" is also default to JSON + * * @param mime MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ @@ -733,12 +734,12 @@ public boolean isJsonMime(String mime) { /** * Select the Accept header's value from the given accepts array: - * if JSON exists in the given array, use it; - * otherwise use all of them (joining into a string) + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) * * @param accepts The accepts array to select from * @return The Accept header to use. If the given array is empty, - * null will be returned (not to set the Accept header explicitly). + * null will be returned (not to set the Accept header explicitly). */ public String selectHeaderAccept(String[] accepts) { if (accepts.length == 0) { @@ -754,12 +755,12 @@ public String selectHeaderAccept(String[] accepts) { /** * Select the Content-Type header's value from the given array: - * if JSON exists in the given array, use it; - * otherwise use the first one of the array. + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. * * @param contentTypes The Content-Type array to select from * @return The Content-Type header to use. If the given array is empty, - * or matches "any", JSON will be used. + * or matches "any", JSON will be used. */ public String selectHeaderContentType(String[] contentTypes) { if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { @@ -791,12 +792,13 @@ public String escapeString(String str) { * Deserialize response body to Java object, according to the return type and * the Content-Type response header. * - * @param Type - * @param response HTTP response + * @param Type + * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body - * or the Content-Type of the response is not supported. + * @throws ApiException If fail to deserialize response body, i.e. cannot read + * response body + * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") public T deserialize(Response response, Type returnType) throws ApiException { @@ -853,7 +855,7 @@ public T deserialize(Response response, Type returnType) throws ApiException * Serialize the given Java object into request body according to the object's * class and the request Content-Type. * - * @param obj The Java object + * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body * @throws ApiException If fail to serialize the given object @@ -882,7 +884,8 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws ApiException If fail to read file content from response and write to disk + * @throws ApiException If fail to read file content from response and write to + * disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -943,7 +946,7 @@ public File prepareDownloadFile(Response response) throws IOException { /** * {@link #execute(Call, Type)} * - * @param Type + * @param Type * @param call An instance of the Call object * @return ApiResponse<T> * @throws ApiException If fail to execute the call @@ -953,14 +956,16 @@ public ApiResponse execute(Call call) throws ApiException { } /** - * Execute HTTP call and deserialize the HTTP response body into the given return type. + * Execute HTTP call and deserialize the HTTP response body into the given + * return type. * * @param returnType The return type used to deserialize HTTP response body - * @param The return type corresponding to (same with) returnType - * @param call Call + * @param The return type corresponding to (same with) returnType + * @param call Call * @return ApiResponse object containing response status, headers and - * data, which is a Java object deserialized from response body and would be null - * when returnType is null. + * data, which is a Java object deserialized from response body and + * would be null + * when returnType is null. * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { @@ -976,8 +981,8 @@ public ApiResponse execute(Call call, Type returnType) throws ApiExceptio /** * {@link #executeAsync(Call, Type, ApiCallback)} * - * @param Type - * @param call An instance of the Call object + * @param Type + * @param call An instance of the Call object * @param callback ApiCallback<T> */ public void executeAsync(Call call, ApiCallback callback) { @@ -987,10 +992,10 @@ public void executeAsync(Call call, ApiCallback callback) { /** * Execute HTTP call asynchronously. * - * @param Type - * @param call The callback to be executed when the API call finishes + * @param Type + * @param call The callback to be executed when the API call finishes * @param returnType Return type - * @param callback ApiCallback + * @param callback ApiCallback * @see #execute(Call, Type) */ @SuppressWarnings("unchecked") @@ -1016,10 +1021,11 @@ public void onResponse(Call call, Response response) throws IOException { } /** - * Handle the given response, return the deserialized object when the response is successful. + * Handle the given response, return the deserialized object when the response + * is successful. * - * @param Type - * @param response Response + * @param Type + * @param response Response * @param returnType Return type * @return Type * @throws ApiException If the response has an unsuccessful status code or @@ -1057,21 +1063,25 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept /** * Build HTTP call with the given options. * - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", + * "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress * @return The HTTP call * @throws ApiException If fail to serialize the request body object */ - public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); + public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, + Object body, Map headerParams, Map cookieParams, + Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, + cookieParams, formParams, authNames, callback); return httpClient.newCall(request); } @@ -1079,20 +1089,23 @@ public Call buildCall(String path, String method, List queryParams, List

queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + public Request buildRequest(String path, String method, List queryParams, List collectionQueryParams, + Object body, Map headerParams, Map cookieParams, + Map formParams, String[] authNames, ApiCallback callback) throws ApiException { updateParamsForAuth(authNames, queryParams, headerParams, cookieParams, body); final String url = buildUrl(path, queryParams, collectionQueryParams); @@ -1145,25 +1158,27 @@ public Request buildRequest(String path, String method, List queryParams, * Talon Hmac Utility methods */ private byte[] decodeHexString(String hex) { - String[] list=hex.split("(?<=\\G.{2})"); - ByteBuffer buffer= ByteBuffer.allocate(list.length); - for(String str: list) - buffer.put((byte)(Integer.parseInt(str,16))); + String[] list = hex.split("(?<=\\G.{2})"); + ByteBuffer buffer = ByteBuffer.allocate(list.length); + for (String str : list) + buffer.put((byte) (Long.parseLong(str))); return buffer.array(); } + private String encodeHexString(byte[] in) { final StringBuilder builder = new StringBuilder(); - for(byte b : in) { + for (byte b : in) { builder.append(String.format("%02x", b)); } return builder.toString(); } /** - * Build full URL by concatenating base path, the given sub path and query parameters. + * Build full URL by concatenating base path, the given sub path and query + * parameters. * - * @param path The sub path - * @param queryParams The query parameters + * @param path The sub path + * @param queryParams The query parameters * @param collectionQueryParams The collection query parameters * @return The full URL */ @@ -1212,7 +1227,7 @@ public String buildUrl(String path, List queryParams, List collectio * Set header parameters to the request builder, including default headers. * * @param headerParams Header parameters in the form of Map - * @param reqBuilder Request.Builder + * @param reqBuilder Request.Builder */ public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { for (Entry param : headerParams.entrySet()) { @@ -1229,7 +1244,7 @@ public void processHeaderParams(Map headerParams, Request.Builde * Set cookie parameters to the request builder, including default cookies. * * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder + * @param reqBuilder Request.Builder */ public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { for (Entry param : cookieParams.entrySet()) { @@ -1245,12 +1260,13 @@ public void processCookieParams(Map cookieParams, Request.Builde /** * Update query and header parameters based on authentication settings. * - * @param authNames The authentications to apply - * @param queryParams List of query parameters + * @param authNames The authentications to apply + * @param queryParams List of query parameters * @param headerParams Map of header parameters * @param cookieParams Map of cookie parameters */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, Object body) { + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, + Map cookieParams, Object body) { boolean foundAuth = false; for (String authName : authNames) { Authentication auth = authentications.get(authName); @@ -1269,7 +1285,7 @@ public void updateParamsForAuth(String[] authNames, List queryParams, Map< mac.init(keySpec); byte[] result = mac.doFinal(content.getBytes()); String signature = encodeHexString(result); - String headerValue = "signer="+this.applicationId+"; signature="+signature; + String headerValue = "signer=" + this.applicationId + "; signature=" + signature; headerParams.put("Content-Signature", headerValue); } catch (NoSuchAlgorithmException e) { @@ -1303,7 +1319,8 @@ public RequestBody buildRequestBodyFormEncoding(Map formParams) } /** - * Build a multipart (file uploading) request body with the given form parameters, + * Build a multipart (file uploading) request body with the given form + * parameters, * which could contain text fields and file fields. * * @param formParams Form parameters in the form of Map @@ -1314,7 +1331,8 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { for (Entry param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = (File) param.getValue(); - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); + Headers partHeaders = Headers.of("Content-Disposition", + "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); mpBuilder.addPart(partHeaders, RequestBody.create(mediaType, file)); } else { @@ -1326,7 +1344,8 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { } /** - * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * Guess Content-Type header from the given file (defaults to + * "application/octet-stream"). * * @param file The given file * @return The guessed Content-Type @@ -1341,7 +1360,8 @@ public String guessContentTypeFromFile(File file) { } /** - * Get network interceptor to add it to the httpClient to track download progress for + * Get network interceptor to add it to the httpClient to track download + * progress for * async requests. */ private Interceptor getProgressInterceptor() { @@ -1353,8 +1373,8 @@ public Response intercept(Interceptor.Chain chain) throws IOException { if (request.tag() instanceof ApiCallback) { final ApiCallback callback = (ApiCallback) request.tag(); return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); } return originalResponse; } @@ -1370,19 +1390,21 @@ private void applySslSettings() { TrustManager[] trustManagers; HostnameVerifier hostnameVerifier; if (!verifyingSsl) { - trustManagers = new TrustManager[]{ + trustManagers = new TrustManager[] { new X509TrustManager() { @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) + throws CertificateException { } @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) + throws CertificateException { } @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[]{}; + return new java.security.cert.X509Certificate[] {}; } } }; @@ -1393,7 +1415,8 @@ public boolean verify(String hostname, SSLSession session) { } }; } else { - TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + TrustManagerFactory trustManagerFactory = TrustManagerFactory + .getInstance(TrustManagerFactory.getDefaultAlgorithm()); if (sslCaCert == null) { trustManagerFactory.init((KeyStore) null); @@ -1407,7 +1430,7 @@ public boolean verify(String hostname, SSLSession session) { KeyStore caKeyStore = newEmptyKeyStore(password); int index = 0; for (Certificate certificate : certificates) { - String certificateAlias = "ca" + Integer.toString(index++); + String certificateAlias = "ca" + Long.toString(index++); caKeyStore.setCertificateEntry(certificateAlias, certificate); } trustManagerFactory.init(caKeyStore); @@ -1419,9 +1442,9 @@ public boolean verify(String hostname, SSLSession session) { SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(keyManagers, trustManagers, new SecureRandom()); httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier) + .build(); } catch (GeneralSecurityException e) { throw new RuntimeException(e); } diff --git a/src/main/java/one/talon/api/IntegrationApi.java b/src/main/java/one/talon/api/IntegrationApi.java index 5706eb93..491f1049 100644 --- a/src/main/java/one/talon/api/IntegrationApi.java +++ b/src/main/java/one/talon/api/IntegrationApi.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.api; import one.talon.ApiCallback; @@ -26,7 +25,6 @@ import java.io.IOException; - import one.talon.model.Audience; import one.talon.model.Catalog; import one.talon.model.CatalogSyncRequest; @@ -94,18 +92,40 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createAudienceV2 - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An Audience with this ID already exists for this integration. -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An Audience with this ID already exists + * for this integration.-
*/ public okhttp3.Call createAudienceV2Call(NewAudience body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -119,7 +139,7 @@ public okhttp3.Call createAudienceV2Call(NewAudience body, final ApiCallback _ca Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -127,23 +147,25 @@ public okhttp3.Call createAudienceV2Call(NewAudience body, final ApiCallback _ca } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAudienceV2ValidateBeforeCall(NewAudience body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createAudienceV2ValidateBeforeCall(NewAudience body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAudienceV2(Async)"); } - okhttp3.Call localVarCall = createAudienceV2Call(body, _callback); return localVarCall; @@ -152,18 +174,55 @@ private okhttp3.Call createAudienceV2ValidateBeforeCall(NewAudience body, final /** * Create audience - * Create an audience. The audience can be created directly from scratch or can come from third party platforms. **Note:** Audiences can also be created from scratch via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To create an audience from an existing audience from a [technology partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. Set the `integration` property to `mparticle`, `segment` etc., depending on a third-party platform. 1. Set `integrationId` to the ID of this audience in a third-party platform. To create an audience from an existing audience in another platform: 1. Do not use the `integration` property. 1. Set `integrationId` to the ID of this audience in the 3rd-party platform. To create an audience from scratch: 1. Only set the `name` property. Once you create your first audience, audience-specific rule conditions are enabled in the Rule Builder. + * Create an audience. The audience can be created directly from scratch or can + * come from third party platforms. **Note:** Audiences can also be created from + * scratch via the Campaign Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To + * create an audience from an existing audience from a [technology + * partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. + * Set the `integration` property to `mparticle`, + * `segment` etc., depending on a third-party platform. 1. Set + * `integrationId` to the ID of this audience in a third-party + * platform. To create an audience from an existing audience in another + * platform: 1. Do not use the `integration` property. 1. Set + * `integrationId` to the ID of this audience in the 3rd-party + * platform. To create an audience from scratch: 1. Only set the + * `name` property. Once you create your first audience, + * audience-specific rule conditions are enabled in the Rule Builder. + * * @param body body (required) * @return Audience - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An Audience with this ID already exists for this integration. -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An Audience with this ID already exists + * for this integration.-
*/ public Audience createAudienceV2(NewAudience body) throws ApiException { ApiResponse localVarResp = createAudienceV2WithHttpInfo(body); @@ -172,70 +231,170 @@ public Audience createAudienceV2(NewAudience body) throws ApiException { /** * Create audience - * Create an audience. The audience can be created directly from scratch or can come from third party platforms. **Note:** Audiences can also be created from scratch via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To create an audience from an existing audience from a [technology partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. Set the `integration` property to `mparticle`, `segment` etc., depending on a third-party platform. 1. Set `integrationId` to the ID of this audience in a third-party platform. To create an audience from an existing audience in another platform: 1. Do not use the `integration` property. 1. Set `integrationId` to the ID of this audience in the 3rd-party platform. To create an audience from scratch: 1. Only set the `name` property. Once you create your first audience, audience-specific rule conditions are enabled in the Rule Builder. + * Create an audience. The audience can be created directly from scratch or can + * come from third party platforms. **Note:** Audiences can also be created from + * scratch via the Campaign Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To + * create an audience from an existing audience from a [technology + * partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. + * Set the `integration` property to `mparticle`, + * `segment` etc., depending on a third-party platform. 1. Set + * `integrationId` to the ID of this audience in a third-party + * platform. To create an audience from an existing audience in another + * platform: 1. Do not use the `integration` property. 1. Set + * `integrationId` to the ID of this audience in the 3rd-party + * platform. To create an audience from scratch: 1. Only set the + * `name` property. Once you create your first audience, + * audience-specific rule conditions are enabled in the Rule Builder. + * * @param body body (required) * @return ApiResponse<Audience> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An Audience with this ID already exists for this integration. -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An Audience with this ID already exists + * for this integration.-
*/ public ApiResponse createAudienceV2WithHttpInfo(NewAudience body) throws ApiException { okhttp3.Call localVarCall = createAudienceV2ValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create audience (asynchronously) - * Create an audience. The audience can be created directly from scratch or can come from third party platforms. **Note:** Audiences can also be created from scratch via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To create an audience from an existing audience from a [technology partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. Set the `integration` property to `mparticle`, `segment` etc., depending on a third-party platform. 1. Set `integrationId` to the ID of this audience in a third-party platform. To create an audience from an existing audience in another platform: 1. Do not use the `integration` property. 1. Set `integrationId` to the ID of this audience in the 3rd-party platform. To create an audience from scratch: 1. Only set the `name` property. Once you create your first audience, audience-specific rule conditions are enabled in the Rule Builder. - * @param body body (required) + * Create an audience. The audience can be created directly from scratch or can + * come from third party platforms. **Note:** Audiences can also be created from + * scratch via the Campaign Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To + * create an audience from an existing audience from a [technology + * partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. + * Set the `integration` property to `mparticle`, + * `segment` etc., depending on a third-party platform. 1. Set + * `integrationId` to the ID of this audience in a third-party + * platform. To create an audience from an existing audience in another + * platform: 1. Do not use the `integration` property. 1. Set + * `integrationId` to the ID of this audience in the 3rd-party + * platform. To create an audience from scratch: 1. Only set the + * `name` property. Once you create your first audience, + * audience-specific rule conditions are enabled in the Rule Builder. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An Audience with this ID already exists for this integration. -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An Audience with this ID already exists + * for this integration.-
*/ - public okhttp3.Call createAudienceV2Async(NewAudience body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAudienceV2Async(NewAudience body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createAudienceV2ValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCouponReservation + * * @param couponValue The code of the coupon. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call createCouponReservationCall(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponReservationCall(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/coupon_reservations/{couponValue}" - .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); + .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -243,7 +402,7 @@ public okhttp3.Call createCouponReservationCall(String couponValue, CouponReserv Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -251,28 +410,31 @@ public okhttp3.Call createCouponReservationCall(String couponValue, CouponReserv } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponReservationValidateBeforeCall(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCouponReservationValidateBeforeCall(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'couponValue' is set if (couponValue == null) { - throw new ApiException("Missing the required parameter 'couponValue' when calling createCouponReservation(Async)"); + throw new ApiException( + "Missing the required parameter 'couponValue' when calling createCouponReservation(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCouponReservation(Async)"); } - okhttp3.Call localVarCall = createCouponReservationCall(couponValue, body, _callback); return localVarCall; @@ -281,19 +443,68 @@ private okhttp3.Call createCouponReservationValidateBeforeCall(String couponValu /** * Create coupon reservation - * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint. + * Create a coupon reservation for the specified customer profiles on the + * specified coupon. You can also create a reservation via the Campaign Manager + * using the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect. **Note:** - If the **Reservation mandatory** option was selected when + * creating the specified coupon, the endpoint creates a **hard** reservation, + * meaning only users who have this coupon code reserved can redeem it. + * Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is + * associated with the specified customer profiles (they show up when using the + * [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint), but any user can redeem it. This can be useful, for example, to + * display a _coupon wallet_ for customers when they visit your store. - If the + * **Coupon visibility** option was selected when creating the specified coupon, + * the coupon code is implicitly soft-reserved for all customers, and the code + * will be returned for all customer profiles in the [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint. - This endpoint overrides the coupon reservation limit set when + * [the coupon is + * created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). + * To ensure that coupons cannot be reserved after the reservation limit is + * reached, use the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect in the Rule Builder and the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint. To delete a reservation, use the [Delete + * reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) + * endpoint. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) + * @param body body (required) * @return Coupon - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ public Coupon createCouponReservation(String couponValue, CouponReservations body) throws ApiException { ApiResponse localVarResp = createCouponReservationWithHttpInfo(couponValue, body); @@ -302,63 +513,183 @@ public Coupon createCouponReservation(String couponValue, CouponReservations bod /** * Create coupon reservation - * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint. + * Create a coupon reservation for the specified customer profiles on the + * specified coupon. You can also create a reservation via the Campaign Manager + * using the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect. **Note:** - If the **Reservation mandatory** option was selected when + * creating the specified coupon, the endpoint creates a **hard** reservation, + * meaning only users who have this coupon code reserved can redeem it. + * Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is + * associated with the specified customer profiles (they show up when using the + * [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint), but any user can redeem it. This can be useful, for example, to + * display a _coupon wallet_ for customers when they visit your store. - If the + * **Coupon visibility** option was selected when creating the specified coupon, + * the coupon code is implicitly soft-reserved for all customers, and the code + * will be returned for all customer profiles in the [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint. - This endpoint overrides the coupon reservation limit set when + * [the coupon is + * created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). + * To ensure that coupons cannot be reserved after the reservation limit is + * reached, use the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect in the Rule Builder and the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint. To delete a reservation, use the [Delete + * reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) + * endpoint. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<Coupon> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public ApiResponse createCouponReservationWithHttpInfo(String couponValue, CouponReservations body) throws ApiException { + public ApiResponse createCouponReservationWithHttpInfo(String couponValue, CouponReservations body) + throws ApiException { okhttp3.Call localVarCall = createCouponReservationValidateBeforeCall(couponValue, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create coupon reservation (asynchronously) - * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint. + * Create a coupon reservation for the specified customer profiles on the + * specified coupon. You can also create a reservation via the Campaign Manager + * using the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect. **Note:** - If the **Reservation mandatory** option was selected when + * creating the specified coupon, the endpoint creates a **hard** reservation, + * meaning only users who have this coupon code reserved can redeem it. + * Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is + * associated with the specified customer profiles (they show up when using the + * [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint), but any user can redeem it. This can be useful, for example, to + * display a _coupon wallet_ for customers when they visit your store. - If the + * **Coupon visibility** option was selected when creating the specified coupon, + * the coupon code is implicitly soft-reserved for all customers, and the code + * will be returned for all customer profiles in the [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint. - This endpoint overrides the coupon reservation limit set when + * [the coupon is + * created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). + * To ensure that coupons cannot be reserved after the reservation limit is + * reached, use the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect in the Rule Builder and the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint. To delete a reservation, use the [Delete + * reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) + * endpoint. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call createCouponReservationAsync(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponReservationAsync(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponReservationValidateBeforeCall(couponValue, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createReferral - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
*/ public okhttp3.Call createReferralCall(NewReferral body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -372,7 +703,7 @@ public okhttp3.Call createReferralCall(NewReferral body, final ApiCallback _call Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -380,23 +711,25 @@ public okhttp3.Call createReferralCall(NewReferral body, final ApiCallback _call } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createReferralValidateBeforeCall(NewReferral body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createReferralValidateBeforeCall(NewReferral body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createReferral(Async)"); } - okhttp3.Call localVarCall = createReferralCall(body, _callback); return localVarCall; @@ -405,17 +738,41 @@ private okhttp3.Call createReferralValidateBeforeCall(NewReferral body, final Ap /** * Create referral code for an advocate - * Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. + * Creates a referral code for an advocate. The code will be valid for the + * referral campaign for which is created, indicated in the + * `campaignId` parameter, and will be associated with the profile + * specified in the `advocateProfileIntegrationId` parameter as the + * advocate's profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * * @param body body (required) * @return Referral - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
*/ public Referral createReferral(NewReferral body) throws ApiException { ApiResponse localVarResp = createReferralWithHttpInfo(body); @@ -424,63 +781,141 @@ public Referral createReferral(NewReferral body) throws ApiException { /** * Create referral code for an advocate - * Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. + * Creates a referral code for an advocate. The code will be valid for the + * referral campaign for which is created, indicated in the + * `campaignId` parameter, and will be associated with the profile + * specified in the `advocateProfileIntegrationId` parameter as the + * advocate's profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * * @param body body (required) * @return ApiResponse<Referral> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
*/ public ApiResponse createReferralWithHttpInfo(NewReferral body) throws ApiException { okhttp3.Call localVarCall = createReferralValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create referral code for an advocate (asynchronously) - * Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. - * @param body body (required) + * Creates a referral code for an advocate. The code will be valid for the + * referral campaign for which is created, indicated in the + * `campaignId` parameter, and will be associated with the profile + * specified in the `advocateProfileIntegrationId` parameter as the + * advocate's profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call createReferralAsync(NewReferral body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createReferralAsync(NewReferral body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createReferralValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createReferralsForMultipleAdvocates - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call + * by returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call createReferralsForMultipleAdvocatesCall(NewReferralsForMultipleAdvocates body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createReferralsForMultipleAdvocatesCall(NewReferralsForMultipleAdvocates body, String silent, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -496,7 +931,7 @@ public okhttp3.Call createReferralsForMultipleAdvocatesCall(NewReferralsForMulti Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -504,23 +939,26 @@ public okhttp3.Call createReferralsForMultipleAdvocatesCall(NewReferralsForMulti } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createReferralsForMultipleAdvocatesValidateBeforeCall(NewReferralsForMultipleAdvocates body, String silent, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createReferralsForMultipleAdvocatesValidateBeforeCall(NewReferralsForMultipleAdvocates body, + String silent, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createReferralsForMultipleAdvocates(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling createReferralsForMultipleAdvocates(Async)"); } - okhttp3.Call localVarCall = createReferralsForMultipleAdvocatesCall(body, silent, _callback); return localVarCall; @@ -529,91 +967,214 @@ private okhttp3.Call createReferralsForMultipleAdvocatesValidateBeforeCall(NewRe /** * Create referral codes for multiple advocates - * Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the `campaignId` parameter, and one referral code will be associated with one advocate using the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Creates unique referral codes for multiple advocates. The code will be valid + * for the referral campaign for which it is created, indicated in the + * `campaignId` parameter, and one referral code will be associated + * with one advocate using the profile specified in the + * `advocateProfileIntegrationId` parameter as the advocate's + * profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call by + * returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @return InlineResponse201 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public InlineResponse201 createReferralsForMultipleAdvocates(NewReferralsForMultipleAdvocates body, String silent) throws ApiException { + public InlineResponse201 createReferralsForMultipleAdvocates(NewReferralsForMultipleAdvocates body, String silent) + throws ApiException { ApiResponse localVarResp = createReferralsForMultipleAdvocatesWithHttpInfo(body, silent); return localVarResp.getData(); } /** * Create referral codes for multiple advocates - * Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the `campaignId` parameter, and one referral code will be associated with one advocate using the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Creates unique referral codes for multiple advocates. The code will be valid + * for the referral campaign for which it is created, indicated in the + * `campaignId` parameter, and one referral code will be associated + * with one advocate using the profile specified in the + * `advocateProfileIntegrationId` parameter as the advocate's + * profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call by + * returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @return ApiResponse<InlineResponse201> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public ApiResponse createReferralsForMultipleAdvocatesWithHttpInfo(NewReferralsForMultipleAdvocates body, String silent) throws ApiException { + public ApiResponse createReferralsForMultipleAdvocatesWithHttpInfo( + NewReferralsForMultipleAdvocates body, String silent) throws ApiException { okhttp3.Call localVarCall = createReferralsForMultipleAdvocatesValidateBeforeCall(body, silent, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create referral codes for multiple advocates (asynchronously) - * Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the `campaignId` parameter, and one referral code will be associated with one advocate using the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Creates unique referral codes for multiple advocates. The code will be valid + * for the referral campaign for which it is created, indicated in the + * `campaignId` parameter, and one referral code will be associated + * with one advocate using the profile specified in the + * `advocateProfileIntegrationId` parameter as the advocate's + * profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call + * by returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @param _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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call createReferralsForMultipleAdvocatesAsync(NewReferralsForMultipleAdvocates body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createReferralsForMultipleAdvocatesAsync(NewReferralsForMultipleAdvocates body, String silent, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createReferralsForMultipleAdvocatesValidateBeforeCall(body, silent, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for deleteAudienceMembershipsV2 + * * @param audienceId The ID of the audience. (required) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call deleteAudienceMembershipsV2Call(Integer audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceMembershipsV2Call(Long audienceId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v2/audiences/{audienceId}/memberships" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -621,7 +1182,7 @@ public okhttp3.Call deleteAudienceMembershipsV2Call(Integer audienceId, final Ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -629,23 +1190,26 @@ public okhttp3.Call deleteAudienceMembershipsV2Call(Integer audienceId, final Ap } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Long audienceId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling deleteAudienceMembershipsV2(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceId' when calling deleteAudienceMembershipsV2(Async)"); } - okhttp3.Call localVarCall = deleteAudienceMembershipsV2Call(audienceId, _callback); return localVarCall; @@ -654,82 +1218,159 @@ private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Integer audie /** * Delete audience memberships - * Remove all members from this audience. + * Remove all members from this audience. + * * @param audienceId The ID of the audience. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public void deleteAudienceMembershipsV2(Integer audienceId) throws ApiException { + public void deleteAudienceMembershipsV2(Long audienceId) throws ApiException { deleteAudienceMembershipsV2WithHttpInfo(audienceId); } /** * Delete audience memberships - * Remove all members from this audience. + * Remove all members from this audience. + * * @param audienceId The ID of the audience. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Integer audienceId) throws ApiException { + public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Long audienceId) throws ApiException { okhttp3.Call localVarCall = deleteAudienceMembershipsV2ValidateBeforeCall(audienceId, null); return localVarApiClient.execute(localVarCall); } /** * Delete audience memberships (asynchronously) - * Remove all members from this audience. + * Remove all members from this audience. + * * @param audienceId The ID of the audience. (required) - * @param _callback The callback to be executed when the API call finishes + * @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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call deleteAudienceMembershipsV2Async(Integer audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceMembershipsV2Async(Long audienceId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteAudienceMembershipsV2ValidateBeforeCall(audienceId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteAudienceV2 + * * @param audienceId The ID of the audience. (required) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call deleteAudienceV2Call(Integer audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceV2Call(Long audienceId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v2/audiences/{audienceId}" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -737,7 +1378,7 @@ public okhttp3.Call deleteAudienceV2Call(Integer audienceId, final ApiCallback _ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -745,23 +1386,25 @@ public okhttp3.Call deleteAudienceV2Call(Integer audienceId, final ApiCallback _ } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Long audienceId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { throw new ApiException("Missing the required parameter 'audienceId' when calling deleteAudienceV2(Async)"); } - okhttp3.Call localVarCall = deleteAudienceV2Call(audienceId, _callback); return localVarCall; @@ -770,86 +1413,187 @@ private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Integer audienceId, fina /** * Delete audience - * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * Delete an audience created by a third-party integration. **Warning:** This + * endpoint also removes any associations recorded between a customer profile + * and this audience. **Note:** Audiences can also be deleted via the Campaign + * Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * * @param audienceId The ID of the audience. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public void deleteAudienceV2(Integer audienceId) throws ApiException { + public void deleteAudienceV2(Long audienceId) throws ApiException { deleteAudienceV2WithHttpInfo(audienceId); } /** * Delete audience - * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * Delete an audience created by a third-party integration. **Warning:** This + * endpoint also removes any associations recorded between a customer profile + * and this audience. **Note:** Audiences can also be deleted via the Campaign + * Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * * @param audienceId The ID of the audience. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse deleteAudienceV2WithHttpInfo(Integer audienceId) throws ApiException { + public ApiResponse deleteAudienceV2WithHttpInfo(Long audienceId) throws ApiException { okhttp3.Call localVarCall = deleteAudienceV2ValidateBeforeCall(audienceId, null); return localVarApiClient.execute(localVarCall); } /** * Delete audience (asynchronously) - * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * Delete an audience created by a third-party integration. **Warning:** This + * endpoint also removes any associations recorded between a customer profile + * and this audience. **Note:** Audiences can also be deleted via the Campaign + * Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * * @param audienceId The ID of the audience. (required) - * @param _callback The callback to be executed when the API call finishes + * @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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call deleteAudienceV2Async(Integer audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceV2Async(Long audienceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAudienceV2ValidateBeforeCall(audienceId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCouponReservation + * * @param couponValue The code of the coupon. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call deleteCouponReservationCall(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponReservationCall(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/coupon_reservations/{couponValue}" - .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); + .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -857,7 +1601,7 @@ public okhttp3.Call deleteCouponReservationCall(String couponValue, CouponReserv Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -865,28 +1609,31 @@ public okhttp3.Call deleteCouponReservationCall(String couponValue, CouponReserv } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponReservationValidateBeforeCall(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCouponReservationValidateBeforeCall(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'couponValue' is set if (couponValue == null) { - throw new ApiException("Missing the required parameter 'couponValue' when calling deleteCouponReservation(Async)"); + throw new ApiException( + "Missing the required parameter 'couponValue' when calling deleteCouponReservation(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling deleteCouponReservation(Async)"); } - okhttp3.Call localVarCall = deleteCouponReservationCall(couponValue, body, _callback); return localVarCall; @@ -895,18 +1642,41 @@ private okhttp3.Call deleteCouponReservationValidateBeforeCall(String couponValu /** * Delete coupon reservations - * Remove all the coupon reservations from the provided customer profile integration IDs and the provided coupon code. + * Remove all the coupon reservations from the provided customer profile + * integration IDs and the provided coupon code. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ public void deleteCouponReservation(String couponValue, CouponReservations body) throws ApiException { deleteCouponReservationWithHttpInfo(couponValue, body); @@ -914,68 +1684,142 @@ public void deleteCouponReservation(String couponValue, CouponReservations body) /** * Delete coupon reservations - * Remove all the coupon reservations from the provided customer profile integration IDs and the provided coupon code. + * Remove all the coupon reservations from the provided customer profile + * integration IDs and the provided coupon code. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public ApiResponse deleteCouponReservationWithHttpInfo(String couponValue, CouponReservations body) throws ApiException { + public ApiResponse deleteCouponReservationWithHttpInfo(String couponValue, CouponReservations body) + throws ApiException { okhttp3.Call localVarCall = deleteCouponReservationValidateBeforeCall(couponValue, body, null); return localVarApiClient.execute(localVarCall); } /** * Delete coupon reservations (asynchronously) - * Remove all the coupon reservations from the provided customer profile integration IDs and the provided coupon code. + * Remove all the coupon reservations from the provided customer profile + * integration IDs and the provided coupon code. + * * @param couponValue The code of the coupon. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call deleteCouponReservationAsync(String couponValue, CouponReservations body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponReservationAsync(String couponValue, CouponReservations body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCouponReservationValidateBeforeCall(couponValue, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCustomerData - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized - Invalid API key-
404Not found-
*/ public okhttp3.Call deleteCustomerDataCall(String integrationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/customer_data/{integrationId}" - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -983,7 +1827,7 @@ public okhttp3.Call deleteCustomerDataCall(String integrationId, final ApiCallba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -991,23 +1835,26 @@ public okhttp3.Call deleteCustomerDataCall(String integrationId, final ApiCallba } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCustomerDataValidateBeforeCall(String integrationId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCustomerDataValidateBeforeCall(String integrationId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling deleteCustomerData(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling deleteCustomerData(Async)"); } - okhttp3.Call localVarCall = deleteCustomerDataCall(integrationId, _callback); return localVarCall; @@ -1016,16 +1863,50 @@ private okhttp3.Call deleteCustomerDataValidateBeforeCall(String integrationId, /** * Delete customer's personal data - * Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** - Customer data is deleted from all Applications in the [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) that the API key belongs to. For example, if you use this endpoint with an API key that belongs to a sandbox Application, customer data will be deleted from all sandbox Applications. This is because customer data is shared between Applications from the same environment. - To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * Delete all attributes on the customer profile and on entities that reference + * this customer profile. **Important:** - Customer data is deleted from all + * Applications in the + * [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) + * that the API key belongs to. For example, if you use this endpoint with an + * API key that belongs to a sandbox Application, customer data will be deleted + * from all sandbox Applications. This is because customer data is shared + * between Applications from the same environment. - To preserve performance, we + * recommend avoiding deleting customer data during peak-traffic hours. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized - Invalid API key-
404Not found-
*/ public void deleteCustomerData(String integrationId) throws ApiException { deleteCustomerDataWithHttpInfo(integrationId); @@ -1033,17 +1914,51 @@ public void deleteCustomerData(String integrationId) throws ApiException { /** * Delete customer's personal data - * Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** - Customer data is deleted from all Applications in the [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) that the API key belongs to. For example, if you use this endpoint with an API key that belongs to a sandbox Application, customer data will be deleted from all sandbox Applications. This is because customer data is shared between Applications from the same environment. - To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) + * Delete all attributes on the customer profile and on entities that reference + * this customer profile. **Important:** - Customer data is deleted from all + * Applications in the + * [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) + * that the API key belongs to. For example, if you use this endpoint with an + * API key that belongs to a sandbox Application, customer data will be deleted + * from all sandbox Applications. This is because customer data is shared + * between Applications from the same environment. - To preserve performance, we + * recommend avoiding deleting customer data during peak-traffic hours. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized - Invalid API key-
404Not found-
*/ public ApiResponse deleteCustomerDataWithHttpInfo(String integrationId) throws ApiException { okhttp3.Call localVarCall = deleteCustomerDataValidateBeforeCall(integrationId, null); @@ -1052,46 +1967,105 @@ public ApiResponse deleteCustomerDataWithHttpInfo(String integrationId) th /** * Delete customer's personal data (asynchronously) - * Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** - Customer data is deleted from all Applications in the [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) that the API key belongs to. For example, if you use this endpoint with an API key that belongs to a sandbox Application, customer data will be deleted from all sandbox Applications. This is because customer data is shared between Applications from the same environment. - To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Delete all attributes on the customer profile and on entities that reference + * this customer profile. **Important:** - Customer data is deleted from all + * Applications in the + * [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) + * that the API key belongs to. For example, if you use this endpoint with an + * API key that belongs to a sandbox Application, customer data will be deleted + * from all sandbox Applications. This is because customer data is shared + * between Applications from the same environment. - To preserve performance, we + * recommend avoiding deleting customer data during peak-traffic hours. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call deleteCustomerDataAsync(String integrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCustomerDataAsync(String integrationId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteCustomerDataValidateBeforeCall(integrationId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for generateLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
*/ - public okhttp3.Call generateLoyaltyCardCall(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLoyaltyCardCall(Long loyaltyProgramId, GenerateLoyaltyCard body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1099,7 +2073,7 @@ public okhttp3.Call generateLoyaltyCardCall(Integer loyaltyProgramId, GenerateLo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1107,28 +2081,31 @@ public okhttp3.Call generateLoyaltyCardCall(Integer loyaltyProgramId, GenerateLo } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, GenerateLoyaltyCard body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling generateLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling generateLoyaltyCard(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling generateLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = generateLoyaltyCardCall(loyaltyProgramId, body, _callback); return localVarCall; @@ -1137,101 +2114,236 @@ private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Integer loyaltyProgra /** * Generate loyalty card - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) + * Generate a loyalty card in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). + * To link the card to one or more customer profiles, use the + * `customerProfileIds` parameter in the request body. **Note:** - The + * number of customer profiles linked to the loyalty card cannot exceed the + * loyalty program's `usersPerCardLimit`. To find the + * program's limit, use the [Get loyalty + * program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) + * endpoint. - If the loyalty program has a defined code format, it will be used + * for the loyalty card identifier. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) * @return LoyaltyCard - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
*/ - public LoyaltyCard generateLoyaltyCard(Integer loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { + public LoyaltyCard generateLoyaltyCard(Long loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { ApiResponse localVarResp = generateLoyaltyCardWithHttpInfo(loyaltyProgramId, body); return localVarResp.getData(); } /** * Generate loyalty card - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) + * Generate a loyalty card in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). + * To link the card to one or more customer profiles, use the + * `customerProfileIds` parameter in the request body. **Note:** - The + * number of customer profiles linked to the loyalty card cannot exceed the + * loyalty program's `usersPerCardLimit`. To find the + * program's limit, use the [Get loyalty + * program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) + * endpoint. - If the loyalty program has a defined code format, it will be used + * for the loyalty card identifier. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<LoyaltyCard> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
*/ - public ApiResponse generateLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { + public ApiResponse generateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, GenerateLoyaltyCard body) + throws ApiException { okhttp3.Call localVarCall = generateLoyaltyCardValidateBeforeCall(loyaltyProgramId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Generate loyalty card (asynchronously) - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Generate a loyalty card in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). + * To link the card to one or more customer profiles, use the + * `customerProfileIds` parameter in the request body. **Note:** - The + * number of customer profiles linked to the loyalty card cannot exceed the + * loyalty program's `usersPerCardLimit`. To find the + * program's limit, use the [Get loyalty + * program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) + * endpoint. - If the loyalty program has a defined code format, it will be used + * for the loyalty card identifier. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
*/ - public okhttp3.Call generateLoyaltyCardAsync(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLoyaltyCardAsync(Long loyaltyProgramId, GenerateLoyaltyCard body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = generateLoyaltyCardValidateBeforeCall(loyaltyProgramId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerAchievementHistory - * @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 achievementId The achievement identifier. (required) - * @param progressStatus Filter by customer progress status in the achievement. (optional) - * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) - * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @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 achievementId The achievement identifier. (required) + * @param progressStatus Filter by customer progress status in the achievement. + * (optional) + * @param startDate Timestamp that filters the results to only contain + * achievements created on or after the start date. + * (optional) + * @param endDate Timestamp that filters the results to only contain + * achievements created before or on the end date. + * (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Long achievementId, + List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/customer_profiles/{integrationId}/achievements/{achievementId}" - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())) - .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (progressStatus != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "progressStatus", progressStatus)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("csv", "progressStatus", progressStatus)); } if (startDate != null) { @@ -1254,7 +2366,7 @@ public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1262,143 +2374,304 @@ public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Inte } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String integrationId, Long achievementId, + List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getCustomerAchievementHistory(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getCustomerAchievementHistory(Async)"); } - + // verify the required parameter 'achievementId' is set if (achievementId == null) { - throw new ApiException("Missing the required parameter 'achievementId' when calling getCustomerAchievementHistory(Async)"); + throw new ApiException( + "Missing the required parameter 'achievementId' when calling getCustomerAchievementHistory(Async)"); } - - okhttp3.Call localVarCall = getCustomerAchievementHistoryCall(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getCustomerAchievementHistoryCall(integrationId, achievementId, progressStatus, + startDate, endDate, pageSize, skip, _callback); return localVarCall; } /** * List customer's achievement history - * Retrieve all progress history of a given customer in the given achievement. - * @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 achievementId The achievement identifier. (required) - * @param progressStatus Filter by customer progress status in the achievement. (optional) - * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) - * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve all progress history of a given customer in the given achievement. + * + * @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 achievementId The achievement identifier. (required) + * @param progressStatus Filter by customer progress status in the achievement. + * (optional) + * @param startDate Timestamp that filters the results to only contain + * achievements created on or after the start date. + * (optional) + * @param endDate Timestamp that filters the results to only contain + * achievements created before or on the end date. + * (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return InlineResponse2002 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getCustomerAchievementHistoryWithHttpInfo(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); + public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Long achievementId, + List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) + throws ApiException { + ApiResponse localVarResp = getCustomerAchievementHistoryWithHttpInfo(integrationId, + achievementId, progressStatus, startDate, endDate, pageSize, skip); return localVarResp.getData(); } /** * List customer's achievement history - * Retrieve all progress history of a given customer in the given achievement. - * @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 achievementId The achievement identifier. (required) - * @param progressStatus Filter by customer progress status in the achievement. (optional) - * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) - * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve all progress history of a given customer in the given achievement. + * + * @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 achievementId The achievement identifier. (required) + * @param progressStatus Filter by customer progress status in the achievement. + * (optional) + * @param startDate Timestamp that filters the results to only contain + * achievements created on or after the start date. + * (optional) + * @param endDate Timestamp that filters the results to only contain + * achievements created before or on the end date. + * (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return ApiResponse<InlineResponse2002> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getCustomerAchievementHistoryWithHttpInfo(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCustomerAchievementHistoryWithHttpInfo(String integrationId, + Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, + Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, + progressStatus, startDate, endDate, pageSize, skip, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer's achievement history (asynchronously) - * Retrieve all progress history of a given customer in the given achievement. - * @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 achievementId The achievement identifier. (required) - * @param progressStatus Filter by customer progress status in the achievement. (optional) - * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) - * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve all progress history of a given customer in the given achievement. + * + * @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 achievementId The achievement identifier. (required) + * @param progressStatus Filter by customer progress status in the achievement. + * (optional) + * @param startDate Timestamp that filters the results to only contain + * achievements created on or after the start date. + * (optional) + * @param endDate Timestamp that filters the results to only contain + * achievements created before or on the end date. + * (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Long achievementId, + List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, + progressStatus, startDate, endDate, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerAchievements - * @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 campaignIds Filter by one or more Campaign IDs, separated by a comma. **Note:** If no campaigns are specified, data for all the campaigns in the Application is returned. (optional) - * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) - * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) - * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @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 campaignIds Filter by one or more Campaign IDs, separated by + * a comma. **Note:** If no campaigns are + * specified, data for all the campaigns in the + * Application is returned. (optional) + * @param achievementIds Filter by one or more Achievement IDs, separated + * by a comma. **Note:** If no achievements are + * specified, data for all the achievements in the + * Application is returned. (optional) + * @param achievementStatus Filter by status of the achievement. **Note:** + * If the achievement status is not specified, only + * data for all active achievements in the + * Application is returned. (optional) + * @param currentProgressStatus Filter by customer progress status in the + * achievement. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, + List achievementIds, List achievementStatus, List currentProgressStatus, + Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/customer_profiles/{integrationId}/achievements" - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1407,15 +2680,18 @@ public okhttp3.Call getCustomerAchievementsCall(String integrationId, List localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1438,137 +2714,311 @@ public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerAchievementsValidateBeforeCall(String integrationId, List campaignIds, + List achievementIds, List achievementStatus, List currentProgressStatus, + Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getCustomerAchievements(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getCustomerAchievements(Async)"); } - - okhttp3.Call localVarCall = getCustomerAchievementsCall(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, _callback); + okhttp3.Call localVarCall = getCustomerAchievementsCall(integrationId, campaignIds, achievementIds, + achievementStatus, currentProgressStatus, pageSize, skip, _callback); return localVarCall; } /** * List customer's available achievements - * Retrieve all the achievements available to a given customer and their progress in them. - * @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 campaignIds Filter by one or more Campaign IDs, separated by a comma. **Note:** If no campaigns are specified, data for all the campaigns in the Application is returned. (optional) - * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) - * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) - * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve all the achievements available to a given customer and their + * progress in them. + * + * @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 campaignIds Filter by one or more Campaign IDs, separated by + * a comma. **Note:** If no campaigns are + * specified, data for all the campaigns in the + * Application is returned. (optional) + * @param achievementIds Filter by one or more Achievement IDs, separated + * by a comma. **Note:** If no achievements are + * specified, data for all the achievements in the + * Application is returned. (optional) + * @param achievementStatus Filter by status of the achievement. **Note:** + * If the achievement status is not specified, only + * data for all active achievements in the + * Application is returned. (optional) + * @param currentProgressStatus Filter by customer progress status in the + * achievement. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return InlineResponse2001 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2001 getCustomerAchievements(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getCustomerAchievementsWithHttpInfo(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); + public InlineResponse2001 getCustomerAchievements(String integrationId, List campaignIds, + List achievementIds, List achievementStatus, List currentProgressStatus, + Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getCustomerAchievementsWithHttpInfo(integrationId, campaignIds, + achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); return localVarResp.getData(); } /** * List customer's available achievements - * Retrieve all the achievements available to a given customer and their progress in them. - * @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 campaignIds Filter by one or more Campaign IDs, separated by a comma. **Note:** If no campaigns are specified, data for all the campaigns in the Application is returned. (optional) - * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) - * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) - * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve all the achievements available to a given customer and their + * progress in them. + * + * @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 campaignIds Filter by one or more Campaign IDs, separated by + * a comma. **Note:** If no campaigns are + * specified, data for all the campaigns in the + * Application is returned. (optional) + * @param achievementIds Filter by one or more Achievement IDs, separated + * by a comma. **Note:** If no achievements are + * specified, data for all the achievements in the + * Application is returned. (optional) + * @param achievementStatus Filter by status of the achievement. **Note:** + * If the achievement status is not specified, only + * data for all active achievements in the + * Application is returned. (optional) + * @param currentProgressStatus Filter by customer progress status in the + * achievement. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return ApiResponse<InlineResponse2001> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getCustomerAchievementsWithHttpInfo(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCustomerAchievementsWithHttpInfo(String integrationId, + List campaignIds, List achievementIds, List achievementStatus, + List currentProgressStatus, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, + achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer's available achievements (asynchronously) - * Retrieve all the achievements available to a given customer and their progress in them. - * @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 campaignIds Filter by one or more Campaign IDs, separated by a comma. **Note:** If no campaigns are specified, data for all the campaigns in the Application is returned. (optional) - * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) - * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) - * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve all the achievements available to a given customer and their + * progress in them. + * + * @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 campaignIds Filter by one or more Campaign IDs, separated by + * a comma. **Note:** If no campaigns are + * specified, data for all the campaigns in the + * Application is returned. (optional) + * @param achievementIds Filter by one or more Achievement IDs, separated + * by a comma. **Note:** If no achievements are + * specified, data for all the achievements in the + * Application is returned. (optional) + * @param achievementStatus Filter by status of the achievement. **Note:** + * If the achievement status is not specified, only + * data for all active achievements in the + * Application is returned. (optional) + * @param currentProgressStatus Filter by customer progress status in the + * achievement. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getCustomerAchievementsAsync(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getCustomerAchievementsAsync(String integrationId, List campaignIds, + List achievementIds, List achievementStatus, List currentProgressStatus, + Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, + achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerInventory - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param profile Set to `true` to include customer profile information in the response. (optional) - * @param referrals Set to `true` to include referral information in the response. (optional) - * @param coupons Set to `true` to include coupon information in the response. (optional) - * @param loyalty Set to `true` to include loyalty information in the response. (optional) - * @param giveaways Set to `true` to include giveaways information in the response. (optional) - * @param achievements Set to `true` to include achievement information in the response. (optional) - * @param _callback Callback for upload/download progress + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param profile Set to `true` to include customer profile + * information in the response. (optional) + * @param referrals Set to `true` to include referral information + * in the response. (optional) + * @param coupons Set to `true` to include coupon information in + * the response. (optional) + * @param loyalty Set to `true` to include loyalty information + * in the response. (optional) + * @param giveaways Set to `true` to include giveaways information + * in the response. (optional) + * @param achievements Set to `true` to include achievement + * information in the response. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profile, Boolean referrals, + Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/customer_profiles/{integrationId}/inventory" - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1600,7 +3050,7 @@ public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1608,128 +3058,274 @@ public okhttp3.Call getCustomerInventoryCall(String integrationId, Boolean profi } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerInventoryValidateBeforeCall(String integrationId, Boolean profile, + Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getCustomerInventory(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getCustomerInventory(Async)"); } - - okhttp3.Call localVarCall = getCustomerInventoryCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, _callback); + okhttp3.Call localVarCall = getCustomerInventoryCall(integrationId, profile, referrals, coupons, loyalty, + giveaways, achievements, _callback); return localVarCall; } /** * List customer data - * Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param profile Set to `true` to include customer profile information in the response. (optional) - * @param referrals Set to `true` to include referral information in the response. (optional) - * @param coupons Set to `true` to include coupon information in the response. (optional) - * @param loyalty Set to `true` to include loyalty information in the response. (optional) - * @param giveaways Set to `true` to include giveaways information in the response. (optional) - * @param achievements Set to `true` to include achievement information in the response. (optional) + * Return the customer inventory regarding entities referencing this customer + * profile's `integrationId`. Typical entities returned are: + * customer profile information, referral codes, loyalty points, loyalty cards + * and reserved coupons. Reserved coupons also include redeemed coupons. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param profile Set to `true` to include customer profile + * information in the response. (optional) + * @param referrals Set to `true` to include referral information + * in the response. (optional) + * @param coupons Set to `true` to include coupon information in + * the response. (optional) + * @param loyalty Set to `true` to include loyalty information + * in the response. (optional) + * @param giveaways Set to `true` to include giveaways information + * in the response. (optional) + * @param achievements Set to `true` to include achievement + * information in the response. (optional) * @return CustomerInventory - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
*/ - public CustomerInventory getCustomerInventory(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) throws ApiException { - ApiResponse localVarResp = getCustomerInventoryWithHttpInfo(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements); + public CustomerInventory getCustomerInventory(String integrationId, Boolean profile, Boolean referrals, + Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) throws ApiException { + ApiResponse localVarResp = getCustomerInventoryWithHttpInfo(integrationId, profile, + referrals, coupons, loyalty, giveaways, achievements); return localVarResp.getData(); } /** * List customer data - * Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param profile Set to `true` to include customer profile information in the response. (optional) - * @param referrals Set to `true` to include referral information in the response. (optional) - * @param coupons Set to `true` to include coupon information in the response. (optional) - * @param loyalty Set to `true` to include loyalty information in the response. (optional) - * @param giveaways Set to `true` to include giveaways information in the response. (optional) - * @param achievements Set to `true` to include achievement information in the response. (optional) + * Return the customer inventory regarding entities referencing this customer + * profile's `integrationId`. Typical entities returned are: + * customer profile information, referral codes, loyalty points, loyalty cards + * and reserved coupons. Reserved coupons also include redeemed coupons. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param profile Set to `true` to include customer profile + * information in the response. (optional) + * @param referrals Set to `true` to include referral information + * in the response. (optional) + * @param coupons Set to `true` to include coupon information in + * the response. (optional) + * @param loyalty Set to `true` to include loyalty information + * in the response. (optional) + * @param giveaways Set to `true` to include giveaways information + * in the response. (optional) + * @param achievements Set to `true` to include achievement + * information in the response. (optional) * @return ApiResponse<CustomerInventory> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
*/ - public ApiResponse getCustomerInventoryWithHttpInfo(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) throws ApiException { - okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getCustomerInventoryWithHttpInfo(String integrationId, Boolean profile, + Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements) + throws ApiException { + okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, + loyalty, giveaways, achievements, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer data (asynchronously) - * Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons. - * @param integrationId The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param profile Set to `true` to include customer profile information in the response. (optional) - * @param referrals Set to `true` to include referral information in the response. (optional) - * @param coupons Set to `true` to include coupon information in the response. (optional) - * @param loyalty Set to `true` to include loyalty information in the response. (optional) - * @param giveaways Set to `true` to include giveaways information in the response. (optional) - * @param achievements Set to `true` to include achievement information in the response. (optional) - * @param _callback The callback to be executed when the API call finishes + * Return the customer inventory regarding entities referencing this customer + * profile's `integrationId`. Typical entities returned are: + * customer profile information, referral codes, loyalty points, loyalty cards + * and reserved coupons. Reserved coupons also include redeemed coupons. + * + * @param integrationId The integration ID of the customer profile. You can get + * the `integrationId` of a profile using: - A + * customer session integration ID with the [Update + * customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. - The Management API with the [List + * application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param profile Set to `true` to include customer profile + * information in the response. (optional) + * @param referrals Set to `true` to include referral information + * in the response. (optional) + * @param coupons Set to `true` to include coupon information in + * the response. (optional) + * @param loyalty Set to `true` to include loyalty information + * in the response. (optional) + * @param giveaways Set to `true` to include giveaways information + * in the response. (optional) + * @param achievements Set to `true` to include achievement + * information in the response. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call getCustomerInventoryAsync(String integrationId, Boolean profile, Boolean referrals, Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getCustomerInventoryAsync(String integrationId, Boolean profile, Boolean referrals, + Boolean coupons, Boolean loyalty, Boolean giveaways, Boolean achievements, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerInventoryValidateBeforeCall(integrationId, profile, referrals, coupons, + loyalty, giveaways, achievements, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerSession - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call getCustomerSessionCall(String customerSessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerSessionCall(String customerSessionId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v2/customer_sessions/{customerSessionId}" - .replaceAll("\\{" + "customerSessionId" + "\\}", localVarApiClient.escapeString(customerSessionId.toString())); + .replaceAll("\\{" + "customerSessionId" + "\\}", + localVarApiClient.escapeString(customerSessionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1737,7 +3333,7 @@ public okhttp3.Call getCustomerSessionCall(String customerSessionId, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1745,23 +3341,26 @@ public okhttp3.Call getCustomerSessionCall(String customerSessionId, final ApiCa } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerSessionValidateBeforeCall(String customerSessionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerSessionValidateBeforeCall(String customerSessionId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'customerSessionId' is set if (customerSessionId == null) { - throw new ApiException("Missing the required parameter 'customerSessionId' when calling getCustomerSession(Async)"); + throw new ApiException( + "Missing the required parameter 'customerSessionId' when calling getCustomerSession(Async)"); } - okhttp3.Call localVarCall = getCustomerSessionCall(customerSessionId, _callback); return localVarCall; @@ -1770,92 +3369,238 @@ private okhttp3.Call getCustomerSessionValidateBeforeCall(String customerSession /** * Get customer session - * Get the details of the given customer session. You can get the same data via other endpoints that also apply changes, which can help you save requests and increase performance. See: - [Update customer session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) + * Get the details of the given customer session. You can get the same data via + * other endpoints that also apply changes, which can help you save requests and + * increase performance. See: - [Update customer + * session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update + * customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) * @return IntegrationCustomerSessionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ public IntegrationCustomerSessionResponse getCustomerSession(String customerSessionId) throws ApiException { - ApiResponse localVarResp = getCustomerSessionWithHttpInfo(customerSessionId); + ApiResponse localVarResp = getCustomerSessionWithHttpInfo( + customerSessionId); return localVarResp.getData(); } /** * Get customer session - * Get the details of the given customer session. You can get the same data via other endpoints that also apply changes, which can help you save requests and increase performance. See: - [Update customer session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) + * Get the details of the given customer session. You can get the same data via + * other endpoints that also apply changes, which can help you save requests and + * increase performance. See: - [Update customer + * session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update + * customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) * @return ApiResponse<IntegrationCustomerSessionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public ApiResponse getCustomerSessionWithHttpInfo(String customerSessionId) throws ApiException { + public ApiResponse getCustomerSessionWithHttpInfo(String customerSessionId) + throws ApiException { okhttp3.Call localVarCall = getCustomerSessionValidateBeforeCall(customerSessionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer session (asynchronously) - * Get the details of the given customer session. You can get the same data via other endpoints that also apply changes, which can help you save requests and increase performance. See: - [Update customer session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Get the details of the given customer session. You can get the same data via + * other endpoints that also apply changes, which can help you save requests and + * increase performance. See: - [Update customer + * session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update + * customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param _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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call getCustomerSessionAsync(String customerSessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerSessionAsync(String customerSessionId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerSessionValidateBeforeCall(customerSessionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyBalances - * @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 endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param includeTiers Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier. (optional, default to false) - * @param includeProjectedTier Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance. (optional, default to false) - * @param _callback Callback for upload/download progress + * + * @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 endDate Used to return expired, active, and pending + * loyalty balances before this timestamp. You can + * enter any past, present, or future timestamp + * value. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param includeTiers Indicates whether tier information is included in + * the response. When set to `true`, the + * response includes information about the current + * tier and the number of points required to move to + * next tier. (optional, default to false) + * @param includeProjectedTier Indicates whether the customer's projected + * tier information is included in the response. + * When set to `true`, the response + * includes information about the customer's + * active points and the name of the projected tier. + * **Note** We recommend filtering by + * `subledgerId` for better performance. + * (optional, default to false) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyBalancesCall(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyBalancesCall(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, + String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/balances" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1879,7 +3624,7 @@ public okhttp3.Call getLoyaltyBalancesCall(Integer loyaltyProgramId, String inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1887,138 +3632,386 @@ public okhttp3.Call getLoyaltyBalancesCall(Integer loyaltyProgramId, String inte } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyBalancesValidateBeforeCall(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyBalancesValidateBeforeCall(Long loyaltyProgramId, String integrationId, + OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyBalances(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getLoyaltyBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getLoyaltyBalances(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyBalancesCall(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier, _callback); + okhttp3.Call localVarCall = getLoyaltyBalancesCall(loyaltyProgramId, integrationId, endDate, subledgerId, + includeTiers, includeProjectedTier, _callback); return localVarCall; } /** * Get customer's loyalty balances - * Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID, and include tier-related information in the response. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) - * @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 endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param includeTiers Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier. (optional, default to false) - * @param includeProjectedTier Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance. (optional, default to false) + * Retrieve loyalty ledger balances for the given Integration ID in the + * specified loyalty program. You can filter balances by date and subledger ID, + * and include tier-related information in the response. **Note**: If no + * filtering options are applied, you retrieve all loyalty balances on the + * current date for the given integration ID. Loyalty balances are calculated + * when Talon.One receives your request using the points stored in our database, + * so retrieving a large number of balances at once can impact performance. For + * more information, see: - [Managing card-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) + * - [Managing profile-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) + * + * @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 endDate Used to return expired, active, and pending + * loyalty balances before this timestamp. You can + * enter any past, present, or future timestamp + * value. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param includeTiers Indicates whether tier information is included in + * the response. When set to `true`, the + * response includes information about the current + * tier and the number of points required to move to + * next tier. (optional, default to false) + * @param includeProjectedTier Indicates whether the customer's projected + * tier information is included in the response. + * When set to `true`, the response + * includes information about the customer's + * active points and the name of the projected tier. + * **Note** We recommend filtering by + * `subledgerId` for better performance. + * (optional, default to false) * @return LoyaltyBalancesWithTiers - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public LoyaltyBalancesWithTiers getLoyaltyBalances(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { - ApiResponse localVarResp = getLoyaltyBalancesWithHttpInfo(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier); + public LoyaltyBalancesWithTiers getLoyaltyBalances(Long loyaltyProgramId, String integrationId, + OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) + throws ApiException { + ApiResponse localVarResp = getLoyaltyBalancesWithHttpInfo(loyaltyProgramId, + integrationId, endDate, subledgerId, includeTiers, includeProjectedTier); return localVarResp.getData(); } /** * Get customer's loyalty balances - * Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID, and include tier-related information in the response. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) - * @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 endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param includeTiers Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier. (optional, default to false) - * @param includeProjectedTier Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance. (optional, default to false) + * Retrieve loyalty ledger balances for the given Integration ID in the + * specified loyalty program. You can filter balances by date and subledger ID, + * and include tier-related information in the response. **Note**: If no + * filtering options are applied, you retrieve all loyalty balances on the + * current date for the given integration ID. Loyalty balances are calculated + * when Talon.One receives your request using the points stored in our database, + * so retrieving a large number of balances at once can impact performance. For + * more information, see: - [Managing card-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) + * - [Managing profile-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) + * + * @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 endDate Used to return expired, active, and pending + * loyalty balances before this timestamp. You can + * enter any past, present, or future timestamp + * value. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param includeTiers Indicates whether tier information is included in + * the response. When set to `true`, the + * response includes information about the current + * tier and the number of points required to move to + * next tier. (optional, default to false) + * @param includeProjectedTier Indicates whether the customer's projected + * tier information is included in the response. + * When set to `true`, the response + * includes information about the customer's + * active points and the name of the projected tier. + * **Note** We recommend filtering by + * `subledgerId` for better performance. + * (optional, default to false) * @return ApiResponse<LoyaltyBalancesWithTiers> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyBalancesWithHttpInfo(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLoyaltyBalancesWithHttpInfo(Long loyaltyProgramId, + String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, + Boolean includeProjectedTier) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, + subledgerId, includeTiers, includeProjectedTier, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer's loyalty balances (asynchronously) - * Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID, and include tier-related information in the response. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) - * @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 endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param includeTiers Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier. (optional, default to false) - * @param includeProjectedTier Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance. (optional, default to false) - * @param _callback The callback to be executed when the API call finishes + * Retrieve loyalty ledger balances for the given Integration ID in the + * specified loyalty program. You can filter balances by date and subledger ID, + * and include tier-related information in the response. **Note**: If no + * filtering options are applied, you retrieve all loyalty balances on the + * current date for the given integration ID. Loyalty balances are calculated + * when Talon.One receives your request using the points stored in our database, + * so retrieving a large number of balances at once can impact performance. For + * more information, see: - [Managing card-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) + * - [Managing profile-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) + * + * @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 endDate Used to return expired, active, and pending + * loyalty balances before this timestamp. You can + * enter any past, present, or future timestamp + * value. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param includeTiers Indicates whether tier information is included in + * the response. When set to `true`, the + * response includes information about the current + * tier and the number of points required to move to + * next tier. (optional, default to false) + * @param includeProjectedTier Indicates whether the customer's projected + * tier information is included in the response. + * When set to `true`, the response + * includes information about the customer's + * active points and the name of the projected tier. + * **Note** We recommend filtering by + * `subledgerId` for better performance. + * (optional, default to false) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyBalancesAsync(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getLoyaltyBalancesAsync(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, + String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, + subledgerId, includeTiers, includeProjectedTier, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCardBalances - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardBalancesCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardBalancesCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, + List subledgerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/balances" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2027,14 +4020,15 @@ public okhttp3.Call getLoyaltyCardBalancesCall(Integer loyaltyProgramId, String } if (subledgerId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2042,134 +4036,306 @@ public okhttp3.Call getLoyaltyCardBalancesCall(Integer loyaltyProgramId, String } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardBalancesValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyCardBalancesValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardBalances(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardBalances(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyCardBalancesCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, _callback); + okhttp3.Call localVarCall = getLoyaltyCardBalancesCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, + _callback); return localVarCall; } /** * Get card's point balances - * Retrieve loyalty balances for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, all loyalty balances for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) + * Retrieve loyalty balances for the given loyalty card in the specified loyalty + * program with filtering options applied. If no filtering options are applied, + * all loyalty balances for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) * @return LoyaltyCardBalances - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public LoyaltyCardBalances getLoyaltyCardBalances(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardBalancesWithHttpInfo(loyaltyProgramId, loyaltyCardId, endDate, subledgerId); + public LoyaltyCardBalances getLoyaltyCardBalances(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime endDate, List subledgerId) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardBalancesWithHttpInfo(loyaltyProgramId, + loyaltyCardId, endDate, subledgerId); return localVarResp.getData(); } /** * Get card's point balances - * Retrieve loyalty balances for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, all loyalty balances for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) + * Retrieve loyalty balances for the given loyalty card in the specified loyalty + * program with filtering options applied. If no filtering options are applied, + * all loyalty balances for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) * @return ApiResponse<LoyaltyCardBalances> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyCardBalancesWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLoyaltyCardBalancesWithHttpInfo(Long loyaltyProgramId, + String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, + subledgerId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get card's point balances (asynchronously) - * Retrieve loyalty balances for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, all loyalty balances for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve loyalty balances for the given loyalty card in the specified loyalty + * program with filtering options applied. If no filtering options are applied, + * all loyalty balances for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardBalancesAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardBalancesAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, + List subledgerId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, + subledgerId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCardPoints - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param status Filter points based on their status. (optional, default to active) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param status Filter points based on their status. (optional, + * default to active) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, String status, + List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2178,7 +4344,8 @@ public okhttp3.Call getLoyaltyCardPointsCall(Integer loyaltyProgramId, String lo } if (subledgerId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); } if (pageSize != null) { @@ -2193,7 +4360,7 @@ public okhttp3.Call getLoyaltyCardPointsCall(Integer loyaltyProgramId, String lo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2201,151 +4368,344 @@ public okhttp3.Call getLoyaltyCardPointsCall(Integer loyaltyProgramId, String lo } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + String status, List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardPoints(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardPoints(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, + pageSize, skip, _callback); return localVarCall; } /** * List card's unused loyalty points - * Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param status Filter points based on their status. (optional, default to active) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Get paginated results of loyalty points for a given loyalty card identifier + * in a card-based loyalty program. This endpoint returns only the balances of + * unused points on a loyalty card. You can filter points by status: - + * `active`: Points ready to be redeemed. - `pending`: + * Points with a start date in the future. - `expired`: Points with an + * expiration date in the past. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param status Filter points based on their status. (optional, + * default to active) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return InlineResponse2005 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2005 getLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); + public InlineResponse2005 getLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, String status, + List subledgerId, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, + status, subledgerId, pageSize, skip); return localVarResp.getData(); } /** * List card's unused loyalty points - * Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param status Filter points based on their status. (optional, default to active) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Get paginated results of loyalty points for a given loyalty card identifier + * in a card-based loyalty program. This endpoint returns only the balances of + * unused points on a loyalty card. You can filter points by status: - + * `active`: Points ready to be redeemed. - `pending`: + * Points with a start date in the future. - `expired`: Points with an + * expiration date in the past. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param status Filter points based on their status. (optional, + * default to active) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return ApiResponse<InlineResponse2005> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + String status, List subledgerId, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, + subledgerId, pageSize, skip, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List card's unused loyalty points (asynchronously) - * Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param status Filter points based on their status. (optional, default to active) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get paginated results of loyalty points for a given loyalty card identifier + * in a card-based loyalty program. This endpoint returns only the balances of + * unused points on a loyalty card. You can filter points by status: - + * `active`: Points ready to be redeemed. - `pending`: + * Points with a start date in the future. - `expired`: Points with an + * expiration date in the past. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param status Filter points based on their status. (optional, + * default to active) + * @param subledgerId Filter results by one or more subledger IDs. Must be + * exact match. (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, String status, + List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, + subledgerId, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCardTransactions - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param subledgerId Filter results by one or more subledger IDs. + * Must be exact match. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardTransactionsCall(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + 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 { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transactions" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (subledgerId != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("multi", "subledgerId", subledgerId)); } if (loyaltyTransactionType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); } if (startDate != null) { @@ -2368,7 +4728,7 @@ public okhttp3.Call getLoyaltyCardTransactionsCall(Integer loyaltyProgramId, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2376,146 +4736,383 @@ public okhttp3.Call getLoyaltyCardTransactionsCall(Integer loyaltyProgramId, Str } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + 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 { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardTransactions(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardTransactions(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardTransactions(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardTransactions(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyCardTransactionsCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionsCall(loyaltyProgramId, loyaltyCardId, subledgerId, + loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); return localVarCall; } /** * List card's transactions - * Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve loyalty transaction logs for the given loyalty card in the specified + * loyalty program with filtering options applied. If no filtering options are + * applied, the last 50 loyalty transactions for the given loyalty card are + * returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param subledgerId Filter results by one or more subledger IDs. + * Must be exact match. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return InlineResponse2003 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2003 getLoyaltyCardTransactions(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer 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, + Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardTransactionsWithHttpInfo(loyaltyProgramId, + loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); return localVarResp.getData(); } /** * List card's transactions - * Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve loyalty transaction logs for the given loyalty card in the specified + * loyalty program with filtering options applied. If no filtering options are + * applied, the last 50 loyalty transactions for the given loyalty card are + * returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param subledgerId Filter results by one or more subledger IDs. + * Must be exact match. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return ApiResponse<InlineResponse2003> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List card's transactions (asynchronously) - * Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve loyalty transaction logs for the given loyalty card in the specified + * loyalty program with filtering options applied. If no filtering options are + * applied, the last 50 loyalty transactions for the given loyalty card are + * returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param subledgerId Filter results by one or more subledger IDs. + * Must be exact match. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyCardTransactionsAsync(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 { + + okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, + subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyProgramProfilePoints - * @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 status Filter points based on their status. (optional, default to active) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @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 status Filter points based on their status. (optional, + * default to active) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyProgramProfilePointsCall(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfilePointsCall(Long loyaltyProgramId, String integrationId, String status, + String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2539,7 +5136,7 @@ public okhttp3.Call getLoyaltyProgramProfilePointsCall(Integer loyaltyProgramId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2547,142 +5144,339 @@ public okhttp3.Call getLoyaltyProgramProfilePointsCall(Integer loyaltyProgramId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Long loyaltyProgramId, String integrationId, + String status, String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramProfilePoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramProfilePoints(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getLoyaltyProgramProfilePoints(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getLoyaltyProgramProfilePoints(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsCall(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsCall(loyaltyProgramId, integrationId, status, + subledgerId, pageSize, skip, _callback); return localVarCall; } /** * List customer's unused loyalty points - * Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @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 status Filter points based on their status. (optional, default to active) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Get paginated results of loyalty points for a given Integration ID in the + * specified profile-based loyalty program. This endpoint returns only the + * balances of unused points linked to a customer profile. You can filter points + * by status: - `active`: Points ready to be redeemed. - + * `pending`: Points with a start date in the future. - + * `expired`: Points with an expiration date in the past. + * + * @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 status Filter points based on their status. (optional, + * default to active) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return InlineResponse2006 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2006 getLoyaltyProgramProfilePoints(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramProfilePointsWithHttpInfo(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); + public InlineResponse2006 getLoyaltyProgramProfilePoints(Long loyaltyProgramId, String integrationId, String status, + String subledgerId, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getLoyaltyProgramProfilePointsWithHttpInfo(loyaltyProgramId, + integrationId, status, subledgerId, pageSize, skip); return localVarResp.getData(); } /** * List customer's unused loyalty points - * Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @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 status Filter points based on their status. (optional, default to active) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Get paginated results of loyalty points for a given Integration ID in the + * specified profile-based loyalty program. This endpoint returns only the + * balances of unused points linked to a customer profile. You can filter points + * by status: - `active`: Points ready to be redeemed. - + * `pending`: Points with a start date in the future. - + * `expired`: Points with an expiration date in the past. + * + * @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 status Filter points based on their status. (optional, + * default to active) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return ApiResponse<InlineResponse2006> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyProgramProfilePointsWithHttpInfo(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getLoyaltyProgramProfilePointsWithHttpInfo(Long loyaltyProgramId, + String integrationId, String status, String subledgerId, Long pageSize, Long skip) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, + status, subledgerId, pageSize, skip, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer's unused loyalty points (asynchronously) - * Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. - * @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 status Filter points based on their status. (optional, default to active) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get paginated results of loyalty points for a given Integration ID in the + * specified profile-based loyalty program. This endpoint returns only the + * balances of unused points linked to a customer profile. You can filter points + * by status: - `active`: Points ready to be redeemed. - + * `pending`: Points with a start date in the future. - + * `expired`: Points with an expiration date in the past. + * + * @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 status Filter points based on their status. (optional, + * default to active) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, String integrationId, String status, + String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, + status, subledgerId, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * 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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @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 subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + 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 { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/transactions" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2691,7 +5485,8 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Integer loyaltyProg } if (loyaltyTransactionType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); } if (startDate != null) { @@ -2714,7 +5509,7 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Integer loyaltyProg Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2722,140 +5517,382 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Integer loyaltyProg } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + 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 { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramProfileTransactions(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramProfileTransactions(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getLoyaltyProgramProfileTransactions(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getLoyaltyProgramProfileTransactions(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsCall(loyaltyProgramId, integrationId, + subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); return localVarCall; } /** * List customer's loyalty transactions - * 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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * 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 subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return InlineResponse2004 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public InlineResponse2004 getLoyaltyProgramProfileTransactions(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramProfileTransactionsWithHttpInfo(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + 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); return localVarResp.getData(); } /** * List customer's loyalty transactions - * 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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * 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 subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return ApiResponse<InlineResponse2004> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse getLoyaltyProgramProfileTransactionsWithHttpInfo(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer's loyalty transactions (asynchronously) - * 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 subledgerId The ID of the subledger by which we filter the data. (optional) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * 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 subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call getLoyaltyProgramProfileTransactionsAsync(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 { + + okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, + integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getReservedCustomers + * * @param couponValue The code of the coupon. (required) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ public okhttp3.Call getReservedCustomersCall(String couponValue, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/coupon_reservations/customerprofiles/{couponValue}" - .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); + .replaceAll("\\{" + "couponValue" + "\\}", localVarApiClient.escapeString(couponValue.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2863,7 +5900,7 @@ public okhttp3.Call getReservedCustomersCall(String couponValue, final ApiCallba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2871,23 +5908,26 @@ public okhttp3.Call getReservedCustomersCall(String couponValue, final ApiCallba } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getReservedCustomersValidateBeforeCall(String couponValue, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getReservedCustomersValidateBeforeCall(String couponValue, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'couponValue' is set if (couponValue == null) { - throw new ApiException("Missing the required parameter 'couponValue' when calling getReservedCustomers(Async)"); + throw new ApiException( + "Missing the required parameter 'couponValue' when calling getReservedCustomers(Async)"); } - okhttp3.Call localVarCall = getReservedCustomersCall(couponValue, _callback); return localVarCall; @@ -2896,18 +5936,41 @@ private okhttp3.Call getReservedCustomersValidateBeforeCall(String couponValue, /** * List customers that have this coupon reserved - * Return all customers that have this coupon marked as reserved. This includes hard and soft reservations. + * Return all customers that have this coupon marked as reserved. This includes + * hard and soft reservations. + * * @param couponValue The code of the coupon. (required) * @return InlineResponse200 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ public InlineResponse200 getReservedCustomers(String couponValue) throws ApiException { ApiResponse localVarResp = getReservedCustomersWithHttpInfo(couponValue); @@ -2916,72 +5979,152 @@ public InlineResponse200 getReservedCustomers(String couponValue) throws ApiExce /** * List customers that have this coupon reserved - * Return all customers that have this coupon marked as reserved. This includes hard and soft reservations. + * Return all customers that have this coupon marked as reserved. This includes + * hard and soft reservations. + * * @param couponValue The code of the coupon. (required) * @return ApiResponse<InlineResponse200> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ public ApiResponse getReservedCustomersWithHttpInfo(String couponValue) throws ApiException { okhttp3.Call localVarCall = getReservedCustomersValidateBeforeCall(couponValue, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customers that have this coupon reserved (asynchronously) - * Return all customers that have this coupon marked as reserved. This includes hard and soft reservations. + * Return all customers that have this coupon marked as reserved. This includes + * hard and soft reservations. + * * @param couponValue The code of the coupon. (required) - * @param _callback The callback to be executed when the API call finishes + * @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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call getReservedCustomersAsync(String couponValue, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getReservedCustomersAsync(String couponValue, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getReservedCustomersValidateBeforeCall(couponValue, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for linkLoyaltyCardToProfile - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call linkLoyaltyCardToProfileCall(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call linkLoyaltyCardToProfileCall(Long loyaltyProgramId, String loyaltyCardId, + LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2989,7 +6132,7 @@ public okhttp3.Call linkLoyaltyCardToProfileCall(Integer loyaltyProgramId, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2997,33 +6140,38 @@ public okhttp3.Call linkLoyaltyCardToProfileCall(Integer loyaltyProgramId, Strin } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling linkLoyaltyCardToProfile(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling linkLoyaltyCardToProfile(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling linkLoyaltyCardToProfile(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling linkLoyaltyCardToProfile(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling linkLoyaltyCardToProfile(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling linkLoyaltyCardToProfile(Async)"); } - okhttp3.Call localVarCall = linkLoyaltyCardToProfileCall(loyaltyProgramId, loyaltyCardId, body, _callback); return localVarCall; @@ -3032,94 +6180,255 @@ private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Integer loyaltyP /** * Link customer profile to card - * [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * [Loyalty + * cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * allow customers to collect and spend loyalty points within a [card-based + * loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * They are useful to gamify loyalty programs and can be used with or without + * customer profiles linked to them. Link a customer profile to a given loyalty + * card for the card to be set as **Registered**. This affects how it can be + * used. See the + * [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). + * **Note:** You can link as many customer profiles to a given loyalty card as + * the [**card user + * limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) + * allows. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return LoyaltyCard - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public LoyaltyCard linkLoyaltyCardToProfile(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { - ApiResponse localVarResp = linkLoyaltyCardToProfileWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); + public LoyaltyCard linkLoyaltyCardToProfile(Long loyaltyProgramId, String loyaltyCardId, + LoyaltyCardRegistration body) throws ApiException { + ApiResponse localVarResp = linkLoyaltyCardToProfileWithHttpInfo(loyaltyProgramId, loyaltyCardId, + body); return localVarResp.getData(); } /** * Link customer profile to card - * [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * [Loyalty + * cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * allow customers to collect and spend loyalty points within a [card-based + * loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * They are useful to gamify loyalty programs and can be used with or without + * customer profiles linked to them. Link a customer profile to a given loyalty + * card for the card to be set as **Registered**. This affects how it can be + * used. See the + * [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). + * **Note:** You can link as many customer profiles to a given loyalty card as + * the [**card user + * limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) + * allows. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<LoyaltyCard> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse linkLoyaltyCardToProfileWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { - okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse linkLoyaltyCardToProfileWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + LoyaltyCardRegistration body) throws ApiException { + okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Link customer profile to card (asynchronously) - * [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * [Loyalty + * cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * allow customers to collect and spend loyalty points within a [card-based + * loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * They are useful to gamify loyalty programs and can be used with or without + * customer profiles linked to them. Link a customer profile to a given loyalty + * card for the card to be set as **Registered**. This affects how it can be + * used. See the + * [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). + * **Note:** You can link as many customer profiles to a given loyalty card as + * the [**card user + * limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) + * allows. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call linkLoyaltyCardToProfileAsync(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call linkLoyaltyCardToProfileAsync(Long loyaltyProgramId, String loyaltyCardId, + LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for reopenCustomerSession - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call reopenCustomerSessionCall(String customerSessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reopenCustomerSessionCall(String customerSessionId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v2/customer_sessions/{customerSessionId}/reopen" - .replaceAll("\\{" + "customerSessionId" + "\\}", localVarApiClient.escapeString(customerSessionId.toString())); + .replaceAll("\\{" + "customerSessionId" + "\\}", + localVarApiClient.escapeString(customerSessionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3127,7 +6436,7 @@ public okhttp3.Call reopenCustomerSessionCall(String customerSessionId, final Ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3135,23 +6444,26 @@ public okhttp3.Call reopenCustomerSessionCall(String customerSessionId, final Ap } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call reopenCustomerSessionValidateBeforeCall(String customerSessionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call reopenCustomerSessionValidateBeforeCall(String customerSessionId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'customerSessionId' is set if (customerSessionId == null) { - throw new ApiException("Missing the required parameter 'customerSessionId' when calling reopenCustomerSession(Async)"); + throw new ApiException( + "Missing the required parameter 'customerSessionId' when calling reopenCustomerSession(Async)"); } - okhttp3.Call localVarCall = reopenCustomerSessionCall(customerSessionId, _callback); return localVarCall; @@ -3160,17 +6472,66 @@ private okhttp3.Call reopenCustomerSessionValidateBeforeCall(String customerSess /** * Reopen customer session - * Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The `talon_session_reopened` event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to `open`. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. <details> <summary><strong>Effects and budgets unimpacted by a session reopening</strong></summary> <div> <p>The following effects and budgets are left the way they were once the session was originally closed:</p> <ul> <li>Add free item effect</li> <li>Any <strong>non-pending</strong> loyalty points</li> <li>Award giveaway</li> <li>Coupon and referral creation</li> <li>Coupon reservation</li> <li>Custom effect</li> <li>Update attribute value</li> <li>Update cart item attribute value</li> </ul> </div> <p>To see an example of roll back, see the <a href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling a session with campaign budgets tutorial</a>.</p> </details> **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one. - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) + * Reopen a closed [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * For example, if a session has been completed but still needs to be edited, + * you can reopen it with this endpoint. A reopen session is treated like a + * standard open session. When reopening a session: - The + * `talon_session_reopened` event is triggered. You can see it in the + * **Events** view in the Campaign Manager. - The session state is updated to + * `open`. - Modified budgets and triggered effects when the session + * was closed are rolled back except for the list below. <details> + * <summary><strong>Effects and budgets unimpacted by a session + * reopening</strong></summary> <div> <p>The following + * effects and budgets are left the way they were once the session was + * originally closed:</p> <ul> <li>Add free item + * effect</li> <li>Any <strong>non-pending</strong> + * loyalty points</li> <li>Award giveaway</li> + * <li>Coupon and referral creation</li> <li>Coupon + * reservation</li> <li>Custom effect</li> <li>Update + * attribute value</li> <li>Update cart item attribute + * value</li> </ul> </div> <p>To see an example of roll + * back, see the <a + * href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling + * a session with campaign budgets tutorial</a>.</p> + * </details> **Note:** If your order workflow requires you to create a + * new session instead of reopening a session, use the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint to cancel a closed session and create a new one. + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) * @return ReopenSessionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ public ReopenSessionResponse reopenCustomerSession(String customerSessionId) throws ApiException { ApiResponse localVarResp = reopenCustomerSessionWithHttpInfo(customerSessionId); @@ -3179,68 +6540,199 @@ public ReopenSessionResponse reopenCustomerSession(String customerSessionId) thr /** * Reopen customer session - * Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The `talon_session_reopened` event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to `open`. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. <details> <summary><strong>Effects and budgets unimpacted by a session reopening</strong></summary> <div> <p>The following effects and budgets are left the way they were once the session was originally closed:</p> <ul> <li>Add free item effect</li> <li>Any <strong>non-pending</strong> loyalty points</li> <li>Award giveaway</li> <li>Coupon and referral creation</li> <li>Coupon reservation</li> <li>Custom effect</li> <li>Update attribute value</li> <li>Update cart item attribute value</li> </ul> </div> <p>To see an example of roll back, see the <a href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling a session with campaign budgets tutorial</a>.</p> </details> **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one. - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) + * Reopen a closed [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * For example, if a session has been completed but still needs to be edited, + * you can reopen it with this endpoint. A reopen session is treated like a + * standard open session. When reopening a session: - The + * `talon_session_reopened` event is triggered. You can see it in the + * **Events** view in the Campaign Manager. - The session state is updated to + * `open`. - Modified budgets and triggered effects when the session + * was closed are rolled back except for the list below. <details> + * <summary><strong>Effects and budgets unimpacted by a session + * reopening</strong></summary> <div> <p>The following + * effects and budgets are left the way they were once the session was + * originally closed:</p> <ul> <li>Add free item + * effect</li> <li>Any <strong>non-pending</strong> + * loyalty points</li> <li>Award giveaway</li> + * <li>Coupon and referral creation</li> <li>Coupon + * reservation</li> <li>Custom effect</li> <li>Update + * attribute value</li> <li>Update cart item attribute + * value</li> </ul> </div> <p>To see an example of roll + * back, see the <a + * href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling + * a session with campaign budgets tutorial</a>.</p> + * </details> **Note:** If your order workflow requires you to create a + * new session instead of reopening a session, use the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint to cancel a closed session and create a new one. + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) * @return ApiResponse<ReopenSessionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public ApiResponse reopenCustomerSessionWithHttpInfo(String customerSessionId) throws ApiException { + public ApiResponse reopenCustomerSessionWithHttpInfo(String customerSessionId) + throws ApiException { okhttp3.Call localVarCall = reopenCustomerSessionValidateBeforeCall(customerSessionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Reopen customer session (asynchronously) - * Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The `talon_session_reopened` event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to `open`. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. <details> <summary><strong>Effects and budgets unimpacted by a session reopening</strong></summary> <div> <p>The following effects and budgets are left the way they were once the session was originally closed:</p> <ul> <li>Add free item effect</li> <li>Any <strong>non-pending</strong> loyalty points</li> <li>Award giveaway</li> <li>Coupon and referral creation</li> <li>Coupon reservation</li> <li>Custom effect</li> <li>Update attribute value</li> <li>Update cart item attribute value</li> </ul> </div> <p>To see an example of roll back, see the <a href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling a session with campaign budgets tutorial</a>.</p> </details> **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one. - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Reopen a closed [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * For example, if a session has been completed but still needs to be edited, + * you can reopen it with this endpoint. A reopen session is treated like a + * standard open session. When reopening a session: - The + * `talon_session_reopened` event is triggered. You can see it in the + * **Events** view in the Campaign Manager. - The session state is updated to + * `open`. - Modified budgets and triggered effects when the session + * was closed are rolled back except for the list below. <details> + * <summary><strong>Effects and budgets unimpacted by a session + * reopening</strong></summary> <div> <p>The following + * effects and budgets are left the way they were once the session was + * originally closed:</p> <ul> <li>Add free item + * effect</li> <li>Any <strong>non-pending</strong> + * loyalty points</li> <li>Award giveaway</li> + * <li>Coupon and referral creation</li> <li>Coupon + * reservation</li> <li>Custom effect</li> <li>Update + * attribute value</li> <li>Update cart item attribute + * value</li> </ul> </div> <p>To see an example of roll + * back, see the <a + * href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling + * a session with campaign budgets tutorial</a>.</p> + * </details> **Note:** If your order workflow requires you to create a + * new session instead of reopening a session, use the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint to cancel a closed session and create a new one. + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param _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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call reopenCustomerSessionAsync(String customerSessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call reopenCustomerSessionAsync(String customerSessionId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = reopenCustomerSessionValidateBeforeCall(customerSessionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for returnCartItems - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param _callback Callback for upload/download progress + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call returnCartItemsCall(String customerSessionId, ReturnIntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { + public okhttp3.Call returnCartItemsCall(String customerSessionId, ReturnIntegrationRequest body, Boolean dry, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/customer_sessions/{customerSessionId}/returns" - .replaceAll("\\{" + "customerSessionId" + "\\}", localVarApiClient.escapeString(customerSessionId.toString())); + .replaceAll("\\{" + "customerSessionId" + "\\}", + localVarApiClient.escapeString(customerSessionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3252,7 +6744,7 @@ public okhttp3.Call returnCartItemsCall(String customerSessionId, ReturnIntegrat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3260,28 +6752,31 @@ public okhttp3.Call returnCartItemsCall(String customerSessionId, ReturnIntegrat } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call returnCartItemsValidateBeforeCall(String customerSessionId, ReturnIntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call returnCartItemsValidateBeforeCall(String customerSessionId, ReturnIntegrationRequest body, + Boolean dry, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'customerSessionId' is set if (customerSessionId == null) { - throw new ApiException("Missing the required parameter 'customerSessionId' when calling returnCartItems(Async)"); + throw new ApiException( + "Missing the required parameter 'customerSessionId' when calling returnCartItems(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling returnCartItems(Async)"); } - okhttp3.Call localVarCall = returnCartItemsCall(customerSessionId, body, dry, _callback); return localVarCall; @@ -3290,93 +6785,223 @@ private okhttp3.Call returnCartItemsValidateBeforeCall(String customerSessionId, /** * Return cart items - * Create a new return request for the specified cart items. This endpoint automatically changes the session state from `closed` to `partially_returned`. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) + * Create a new return request for the specified cart items. This endpoint + * automatically changes the session state from `closed` to + * `partially_returned`. **Note:** This will roll back any effects + * associated with these cart items. For more information, see [our + * documentation on session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * and [this + * tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. + * (optional) * @return IntegrationStateV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public IntegrationStateV2 returnCartItems(String customerSessionId, ReturnIntegrationRequest body, Boolean dry) throws ApiException { + public IntegrationStateV2 returnCartItems(String customerSessionId, ReturnIntegrationRequest body, Boolean dry) + throws ApiException { ApiResponse localVarResp = returnCartItemsWithHttpInfo(customerSessionId, body, dry); return localVarResp.getData(); } /** * Return cart items - * Create a new return request for the specified cart items. This endpoint automatically changes the session state from `closed` to `partially_returned`. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) + * Create a new return request for the specified cart items. This endpoint + * automatically changes the session state from `closed` to + * `partially_returned`. **Note:** This will roll back any effects + * associated with these cart items. For more information, see [our + * documentation on session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * and [this + * tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. + * (optional) * @return ApiResponse<IntegrationStateV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public ApiResponse returnCartItemsWithHttpInfo(String customerSessionId, ReturnIntegrationRequest body, Boolean dry) throws ApiException { + public ApiResponse returnCartItemsWithHttpInfo(String customerSessionId, + ReturnIntegrationRequest body, Boolean dry) throws ApiException { okhttp3.Call localVarCall = returnCartItemsValidateBeforeCall(customerSessionId, body, dry, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Return cart items (asynchronously) - * Create a new return request for the specified cart items. This endpoint automatically changes the session state from `closed` to `partially_returned`. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param _callback The callback to be executed when the API call finishes + * Create a new return request for the specified cart items. This endpoint + * automatically changes the session state from `closed` to + * `partially_returned`. **Note:** This will roll back any effects + * associated with these cart items. For more information, see [our + * documentation on session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * and [this + * tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. + * (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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call returnCartItemsAsync(String customerSessionId, ReturnIntegrationRequest body, Boolean dry, final ApiCallback _callback) throws ApiException { + public okhttp3.Call returnCartItemsAsync(String customerSessionId, ReturnIntegrationRequest body, Boolean dry, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = returnCartItemsValidateBeforeCall(customerSessionId, body, dry, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for syncCatalog - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param body body (required) + * + * @param catalogId The ID of the catalog. You can find the ID in the Campaign + * Manager in **Account** > **Tools** > **Cart item + * catalogs**. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call syncCatalogCall(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call syncCatalogCall(Long catalogId, CatalogSyncRequest body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/catalogs/{catalogId}/sync" - .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); + .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3384,7 +7009,7 @@ public okhttp3.Call syncCatalogCall(Integer catalogId, CatalogSyncRequest body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3392,28 +7017,30 @@ public okhttp3.Call syncCatalogCall(Integer catalogId, CatalogSyncRequest body, } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call syncCatalogValidateBeforeCall(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call syncCatalogValidateBeforeCall(Long catalogId, CatalogSyncRequest body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'catalogId' is set if (catalogId == null) { throw new ApiException("Missing the required parameter 'catalogId' when calling syncCatalog(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling syncCatalog(Async)"); } - okhttp3.Call localVarCall = syncCatalogCall(catalogId, body, _callback); return localVarCall; @@ -3422,90 +7049,473 @@ private okhttp3.Call syncCatalogValidateBeforeCall(Integer catalogId, CatalogSyn /** * Sync cart item catalog - * Perform the following actions for a given cart item catalog: - Add an item to the catalog. - Add multiple items to the catalog. - Update the attributes of an item in the catalog. - Update the attributes of multiple items in the catalog. - Remove an item from the catalog. - Remove multiple items from the catalog. You can either add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: You can perform only one type of action in a single sync request. Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding multiple items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of multiple items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing multiple items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param body body (required) + * Perform the following actions for a given cart item catalog: - Add an item to + * the catalog. - Add multiple items to the catalog. - Update the attributes of + * an item in the catalog. - Update the attributes of multiple items in the + * catalog. - Remove an item from the catalog. - Remove multiple items from the + * catalog. You can either add, update, or delete up to 1000 cart items in a + * single request. Each item synced to a catalog must have a unique + * `SKU`. **Important**: You can perform only one type of action in a + * single sync request. Syncing items with duplicate `SKU` values in a + * single request returns an error message with a `400` status code. + * For more information, read [managing cart item + * catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + * ### Filtering cart items Use [cart item + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * to filter items and select the ones you want to edit or delete when editing + * or deleting more than one item at a time. The `filters` array + * contains an object with the following properties: - `attr`: A [cart + * item + * attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * connected to the catalog. It is applied to all items in the catalog. - + * `op`: The filtering operator indicating the relationship between + * the value of each cart item in the catalog and the value of the + * `value` property for the attribute selected in `attr`. + * The value of `op` can be one of the following: - `EQ`: + * Equal to `value` - `LT`: Less than `value` - + * `LE`: Less than or equal to `value` - `GT`: + * Greater than `value` - `GE`: Greater than or equal to + * `value` - `IN`: One of the comma-separated values that + * `value` is set to. **Note:** `GE`, `LE`, + * `GT`, `LT` are for numeric values only. - + * `value`: The value of the attribute selected in `attr`. + * ### Payload examples Synchronization actions are sent as `PUT` + * requests. See the structure for each action: <details> + * <summary><strong>Adding an item to the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"Navy blue\", \"type\": + * \"shoes\" }, \"replaceIfExists\": true, + * \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Adding multiple + * items to the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241027\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" }, { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Updating the + * attributes of an item in the catalog</strong></summary> + * <div> ```json { \"actions\": [ { + * \"payload\": { \"attributes\": { \"age\": 11, + * \"origin\": \"germany\" }, + * \"createIfNotExists\": false, \"sku\": + * \"SKU1241028\", \"product\": { \"name\": + * \"sneakers\" } }, \"type\": \"PATCH\" } ] } + * ``` </div> </details> <details> + * <summary><strong>Updating the attributes of multiple items in the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"red\" }, \"filters\": [ { + * \"attr\": \"color\", \"op\": \"EQ\", + * \"value\": \"blue\" } ] }, \"type\": + * \"PATCH_MANY\" } ] } ``` </div> + * </details> <details> <summary><strong>Removing an + * item from the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"sku\": \"SKU1241028\" }, \"type\": + * \"REMOVE\" } ] } ``` </div> </details> + * <details> <summary><strong>Removing multiple items from the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"color\", \"op\": + * \"EQ\", \"value\": \"blue\" } ] }, + * \"type\": \"REMOVE_MANY\" } ] } ``` + * </div> </details> <details> + * <summary><strong>Removing shoes of sizes above 45 from the + * catalog</strong></summary> <div> <p> Let's + * imagine that we have a shoe store and we have decided to stop selling shoes + * larger than size 45. We can remove from the catalog all the shoes of sizes + * above 45 with a single action:</p> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"size\", \"op\": \"GT\", + * \"value\": \"45\" } ] }, \"type\": + * \"REMOVE_MANY\" } ] } ``` </div> + * </details> + * + * @param catalogId The ID of the catalog. You can find the ID in the Campaign + * Manager in **Account** > **Tools** > **Cart item + * catalogs**. (required) + * @param body body (required) * @return Catalog - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public Catalog syncCatalog(Integer catalogId, CatalogSyncRequest body) throws ApiException { + public Catalog syncCatalog(Long catalogId, CatalogSyncRequest body) throws ApiException { ApiResponse localVarResp = syncCatalogWithHttpInfo(catalogId, body); return localVarResp.getData(); } /** * Sync cart item catalog - * Perform the following actions for a given cart item catalog: - Add an item to the catalog. - Add multiple items to the catalog. - Update the attributes of an item in the catalog. - Update the attributes of multiple items in the catalog. - Remove an item from the catalog. - Remove multiple items from the catalog. You can either add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: You can perform only one type of action in a single sync request. Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding multiple items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of multiple items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing multiple items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param body body (required) + * Perform the following actions for a given cart item catalog: - Add an item to + * the catalog. - Add multiple items to the catalog. - Update the attributes of + * an item in the catalog. - Update the attributes of multiple items in the + * catalog. - Remove an item from the catalog. - Remove multiple items from the + * catalog. You can either add, update, or delete up to 1000 cart items in a + * single request. Each item synced to a catalog must have a unique + * `SKU`. **Important**: You can perform only one type of action in a + * single sync request. Syncing items with duplicate `SKU` values in a + * single request returns an error message with a `400` status code. + * For more information, read [managing cart item + * catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + * ### Filtering cart items Use [cart item + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * to filter items and select the ones you want to edit or delete when editing + * or deleting more than one item at a time. The `filters` array + * contains an object with the following properties: - `attr`: A [cart + * item + * attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * connected to the catalog. It is applied to all items in the catalog. - + * `op`: The filtering operator indicating the relationship between + * the value of each cart item in the catalog and the value of the + * `value` property for the attribute selected in `attr`. + * The value of `op` can be one of the following: - `EQ`: + * Equal to `value` - `LT`: Less than `value` - + * `LE`: Less than or equal to `value` - `GT`: + * Greater than `value` - `GE`: Greater than or equal to + * `value` - `IN`: One of the comma-separated values that + * `value` is set to. **Note:** `GE`, `LE`, + * `GT`, `LT` are for numeric values only. - + * `value`: The value of the attribute selected in `attr`. + * ### Payload examples Synchronization actions are sent as `PUT` + * requests. See the structure for each action: <details> + * <summary><strong>Adding an item to the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"Navy blue\", \"type\": + * \"shoes\" }, \"replaceIfExists\": true, + * \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Adding multiple + * items to the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241027\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" }, { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Updating the + * attributes of an item in the catalog</strong></summary> + * <div> ```json { \"actions\": [ { + * \"payload\": { \"attributes\": { \"age\": 11, + * \"origin\": \"germany\" }, + * \"createIfNotExists\": false, \"sku\": + * \"SKU1241028\", \"product\": { \"name\": + * \"sneakers\" } }, \"type\": \"PATCH\" } ] } + * ``` </div> </details> <details> + * <summary><strong>Updating the attributes of multiple items in the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"red\" }, \"filters\": [ { + * \"attr\": \"color\", \"op\": \"EQ\", + * \"value\": \"blue\" } ] }, \"type\": + * \"PATCH_MANY\" } ] } ``` </div> + * </details> <details> <summary><strong>Removing an + * item from the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"sku\": \"SKU1241028\" }, \"type\": + * \"REMOVE\" } ] } ``` </div> </details> + * <details> <summary><strong>Removing multiple items from the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"color\", \"op\": + * \"EQ\", \"value\": \"blue\" } ] }, + * \"type\": \"REMOVE_MANY\" } ] } ``` + * </div> </details> <details> + * <summary><strong>Removing shoes of sizes above 45 from the + * catalog</strong></summary> <div> <p> Let's + * imagine that we have a shoe store and we have decided to stop selling shoes + * larger than size 45. We can remove from the catalog all the shoes of sizes + * above 45 with a single action:</p> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"size\", \"op\": \"GT\", + * \"value\": \"45\" } ] }, \"type\": + * \"REMOVE_MANY\" } ] } ``` </div> + * </details> + * + * @param catalogId The ID of the catalog. You can find the ID in the Campaign + * Manager in **Account** > **Tools** > **Cart item + * catalogs**. (required) + * @param body body (required) * @return ApiResponse<Catalog> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public ApiResponse syncCatalogWithHttpInfo(Integer catalogId, CatalogSyncRequest body) throws ApiException { + public ApiResponse syncCatalogWithHttpInfo(Long catalogId, CatalogSyncRequest body) throws ApiException { okhttp3.Call localVarCall = syncCatalogValidateBeforeCall(catalogId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Sync cart item catalog (asynchronously) - * Perform the following actions for a given cart item catalog: - Add an item to the catalog. - Add multiple items to the catalog. - Update the attributes of an item in the catalog. - Update the attributes of multiple items in the catalog. - Remove an item from the catalog. - Remove multiple items from the catalog. You can either add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: You can perform only one type of action in a single sync request. Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding multiple items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of multiple items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing multiple items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param body body (required) + * Perform the following actions for a given cart item catalog: - Add an item to + * the catalog. - Add multiple items to the catalog. - Update the attributes of + * an item in the catalog. - Update the attributes of multiple items in the + * catalog. - Remove an item from the catalog. - Remove multiple items from the + * catalog. You can either add, update, or delete up to 1000 cart items in a + * single request. Each item synced to a catalog must have a unique + * `SKU`. **Important**: You can perform only one type of action in a + * single sync request. Syncing items with duplicate `SKU` values in a + * single request returns an error message with a `400` status code. + * For more information, read [managing cart item + * catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + * ### Filtering cart items Use [cart item + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * to filter items and select the ones you want to edit or delete when editing + * or deleting more than one item at a time. The `filters` array + * contains an object with the following properties: - `attr`: A [cart + * item + * attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * connected to the catalog. It is applied to all items in the catalog. - + * `op`: The filtering operator indicating the relationship between + * the value of each cart item in the catalog and the value of the + * `value` property for the attribute selected in `attr`. + * The value of `op` can be one of the following: - `EQ`: + * Equal to `value` - `LT`: Less than `value` - + * `LE`: Less than or equal to `value` - `GT`: + * Greater than `value` - `GE`: Greater than or equal to + * `value` - `IN`: One of the comma-separated values that + * `value` is set to. **Note:** `GE`, `LE`, + * `GT`, `LT` are for numeric values only. - + * `value`: The value of the attribute selected in `attr`. + * ### Payload examples Synchronization actions are sent as `PUT` + * requests. See the structure for each action: <details> + * <summary><strong>Adding an item to the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"Navy blue\", \"type\": + * \"shoes\" }, \"replaceIfExists\": true, + * \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Adding multiple + * items to the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241027\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" }, { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Updating the + * attributes of an item in the catalog</strong></summary> + * <div> ```json { \"actions\": [ { + * \"payload\": { \"attributes\": { \"age\": 11, + * \"origin\": \"germany\" }, + * \"createIfNotExists\": false, \"sku\": + * \"SKU1241028\", \"product\": { \"name\": + * \"sneakers\" } }, \"type\": \"PATCH\" } ] } + * ``` </div> </details> <details> + * <summary><strong>Updating the attributes of multiple items in the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"red\" }, \"filters\": [ { + * \"attr\": \"color\", \"op\": \"EQ\", + * \"value\": \"blue\" } ] }, \"type\": + * \"PATCH_MANY\" } ] } ``` </div> + * </details> <details> <summary><strong>Removing an + * item from the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"sku\": \"SKU1241028\" }, \"type\": + * \"REMOVE\" } ] } ``` </div> </details> + * <details> <summary><strong>Removing multiple items from the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"color\", \"op\": + * \"EQ\", \"value\": \"blue\" } ] }, + * \"type\": \"REMOVE_MANY\" } ] } ``` + * </div> </details> <details> + * <summary><strong>Removing shoes of sizes above 45 from the + * catalog</strong></summary> <div> <p> Let's + * imagine that we have a shoe store and we have decided to stop selling shoes + * larger than size 45. We can remove from the catalog all the shoes of sizes + * above 45 with a single action:</p> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"size\", \"op\": \"GT\", + * \"value\": \"45\" } ] }, \"type\": + * \"REMOVE_MANY\" } ] } ``` </div> + * </details> + * + * @param catalogId The ID of the catalog. You can find the ID in the Campaign + * Manager in **Account** > **Tools** > **Cart item + * catalogs**. (required) + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
*/ - public okhttp3.Call syncCatalogAsync(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call syncCatalogAsync(Long catalogId, CatalogSyncRequest body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = syncCatalogValidateBeforeCall(catalogId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for trackEventV2 - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) - * @param _callback Callback for upload/download progress + * + * @param body body (required) + * @param silent Possible values: `yes` or + * `no`. - `yes`: Increases + * the performance of the API call by returning a + * 204 response. - `no`: Returns a 200 + * response that contains the updated customer + * profiles. (optional, default to + * "yes") + * @param dry Indicates whether to persist the changes. + * Changes are ignored when + * `dry=true`. (optional) + * @param forceCompleteEvaluation Forces evaluation for all matching campaigns + * regardless of the [campaign evaluation + * mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). + * Requires `dry=true`. (optional, + * default to false) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call trackEventV2Call(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call trackEventV2Call(IntegrationEventV2Request body, String silent, Boolean dry, + Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3522,14 +7532,15 @@ public okhttp3.Call trackEventV2Call(IntegrationEventV2Request body, String sile } if (forceCompleteEvaluation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("forceCompleteEvaluation", forceCompleteEvaluation)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("forceCompleteEvaluation", forceCompleteEvaluation)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3537,23 +7548,25 @@ public okhttp3.Call trackEventV2Call(IntegrationEventV2Request body, String sile } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request body, String silent, Boolean dry, + Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling trackEventV2(Async)"); } - okhttp3.Call localVarCall = trackEventV2Call(body, silent, dry, forceCompleteEvaluation, _callback); return localVarCall; @@ -3562,98 +7575,296 @@ private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request bo /** * Track event - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) + * Triggers a custom event. To use this endpoint: 1. Define a [custom + * event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * in the Campaign Manager. 1. Update or create a rule to check for this event. + * 1. Trigger the event with this endpoint. After you have successfully sent an + * event to Talon.One, you can list the received events in the **Events** view + * in the Campaign Manager. Talon.One also offers a set of [built-in + * events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you + * do not create a custom event when you can use a built-in event. For example, + * use this endpoint to trigger an event when a customer shares a link to a + * product. See the + * [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). + * <div class=\"redoc-section\"> <p + * class=\"title\">Important</p> 1. + * `profileId` is required even though the schema does not say it. 1. + * If the customer profile ID is new, a new profile is automatically created but + * the `customer_profile_created` [built-in event + * ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** + * triggered. 1. We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @param body body (required) + * @param silent Possible values: `yes` or + * `no`. - `yes`: Increases + * the performance of the API call by returning a + * 204 response. - `no`: Returns a 200 + * response that contains the updated customer + * profiles. (optional, default to + * "yes") + * @param dry Indicates whether to persist the changes. + * Changes are ignored when + * `dry=true`. (optional) + * @param forceCompleteEvaluation Forces evaluation for all matching campaigns + * regardless of the [campaign evaluation + * mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). + * Requires `dry=true`. (optional, + * default to false) * @return TrackEventV2Response - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { - ApiResponse localVarResp = trackEventV2WithHttpInfo(body, silent, dry, forceCompleteEvaluation); + public TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String silent, Boolean dry, + Boolean forceCompleteEvaluation) throws ApiException { + ApiResponse localVarResp = trackEventV2WithHttpInfo(body, silent, dry, + forceCompleteEvaluation); return localVarResp.getData(); } /** * Track event - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) + * Triggers a custom event. To use this endpoint: 1. Define a [custom + * event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * in the Campaign Manager. 1. Update or create a rule to check for this event. + * 1. Trigger the event with this endpoint. After you have successfully sent an + * event to Talon.One, you can list the received events in the **Events** view + * in the Campaign Manager. Talon.One also offers a set of [built-in + * events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you + * do not create a custom event when you can use a built-in event. For example, + * use this endpoint to trigger an event when a customer shares a link to a + * product. See the + * [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). + * <div class=\"redoc-section\"> <p + * class=\"title\">Important</p> 1. + * `profileId` is required even though the schema does not say it. 1. + * If the customer profile ID is new, a new profile is automatically created but + * the `customer_profile_created` [built-in event + * ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** + * triggered. 1. We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @param body body (required) + * @param silent Possible values: `yes` or + * `no`. - `yes`: Increases + * the performance of the API call by returning a + * 204 response. - `no`: Returns a 200 + * response that contains the updated customer + * profiles. (optional, default to + * "yes") + * @param dry Indicates whether to persist the changes. + * Changes are ignored when + * `dry=true`. (optional) + * @param forceCompleteEvaluation Forces evaluation for all matching campaigns + * regardless of the [campaign evaluation + * mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). + * Requires `dry=true`. (optional, + * default to false) * @return ApiResponse<TrackEventV2Response> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public ApiResponse trackEventV2WithHttpInfo(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { + public ApiResponse trackEventV2WithHttpInfo(IntegrationEventV2Request body, String silent, + Boolean dry, Boolean forceCompleteEvaluation) throws ApiException { okhttp3.Call localVarCall = trackEventV2ValidateBeforeCall(body, silent, dry, forceCompleteEvaluation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Track event (asynchronously) - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) - * @param forceCompleteEvaluation Forces evaluation for all matching campaigns regardless of the [campaign evaluation mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). Requires `dry=true`. (optional, default to false) - * @param _callback The callback to be executed when the API call finishes + * Triggers a custom event. To use this endpoint: 1. Define a [custom + * event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * in the Campaign Manager. 1. Update or create a rule to check for this event. + * 1. Trigger the event with this endpoint. After you have successfully sent an + * event to Talon.One, you can list the received events in the **Events** view + * in the Campaign Manager. Talon.One also offers a set of [built-in + * events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you + * do not create a custom event when you can use a built-in event. For example, + * use this endpoint to trigger an event when a customer shares a link to a + * product. See the + * [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). + * <div class=\"redoc-section\"> <p + * class=\"title\">Important</p> 1. + * `profileId` is required even though the schema does not say it. 1. + * If the customer profile ID is new, a new profile is automatically created but + * the `customer_profile_created` [built-in event + * ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** + * triggered. 1. We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @param body body (required) + * @param silent Possible values: `yes` or + * `no`. - `yes`: Increases + * the performance of the API call by returning a + * 204 response. - `no`: Returns a 200 + * response that contains the updated customer + * profiles. (optional, default to + * "yes") + * @param dry Indicates whether to persist the changes. + * Changes are ignored when + * `dry=true`. (optional) + * @param forceCompleteEvaluation Forces evaluation for all matching campaigns + * regardless of the [campaign evaluation + * mode](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation#setting-campaign-evaluation-mode). + * Requires `dry=true`. (optional, + * default to false) + * @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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call trackEventV2Async(IntegrationEventV2Request body, String silent, Boolean dry, Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call trackEventV2Async(IntegrationEventV2Request body, String silent, Boolean dry, + Boolean forceCompleteEvaluation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = trackEventV2ValidateBeforeCall(body, silent, dry, forceCompleteEvaluation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = trackEventV2ValidateBeforeCall(body, silent, dry, forceCompleteEvaluation, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateAudienceCustomersAttributes + * * @param audienceId The ID of the audience. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateAudienceCustomersAttributesCall(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceCustomersAttributesCall(Long audienceId, Object body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/audience_customers/{audienceId}/attributes" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3661,7 +7872,7 @@ public okhttp3.Call updateAudienceCustomersAttributesCall(Integer audienceId, Ob Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3669,28 +7880,32 @@ public okhttp3.Call updateAudienceCustomersAttributesCall(Integer audienceId, Ob } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Long audienceId, Object body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling updateAudienceCustomersAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceId' when calling updateAudienceCustomersAttributes(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateAudienceCustomersAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling updateAudienceCustomersAttributes(Async)"); } - okhttp3.Call localVarCall = updateAudienceCustomersAttributesCall(audienceId, body, _callback); return localVarCall; @@ -3699,85 +7914,163 @@ private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Integer /** * Update profile attributes for all customers in audience - * Update the specified profile attributes to the provided values for all customers in the specified audience. + * Update the specified profile attributes to the provided values for all + * customers in the specified audience. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public void updateAudienceCustomersAttributes(Integer audienceId, Object body) throws ApiException { + public void updateAudienceCustomersAttributes(Long audienceId, Object body) throws ApiException { updateAudienceCustomersAttributesWithHttpInfo(audienceId, body); } /** * Update profile attributes for all customers in audience - * Update the specified profile attributes to the provided values for all customers in the specified audience. + * Update the specified profile attributes to the provided values for all + * customers in the specified audience. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Integer audienceId, Object body) throws ApiException { + public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Long audienceId, Object body) + throws ApiException { okhttp3.Call localVarCall = updateAudienceCustomersAttributesValidateBeforeCall(audienceId, body, null); return localVarApiClient.execute(localVarCall); } /** * Update profile attributes for all customers in audience (asynchronously) - * Update the specified profile attributes to the provided values for all customers in the specified audience. + * Update the specified profile attributes to the provided values for all + * customers in the specified audience. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateAudienceCustomersAttributesAsync(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceCustomersAttributesAsync(Long audienceId, Object body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAudienceCustomersAttributesValidateBeforeCall(audienceId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for updateAudienceV2 + * * @param audienceId The ID of the audience. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateAudienceV2Call(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceV2Call(Long audienceId, UpdateAudience body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/audiences/{audienceId}" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3785,7 +8078,7 @@ public okhttp3.Call updateAudienceV2Call(Integer audienceId, UpdateAudience body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3793,28 +8086,30 @@ public okhttp3.Call updateAudienceV2Call(Integer audienceId, UpdateAudience body } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAudienceV2ValidateBeforeCall(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAudienceV2ValidateBeforeCall(Long audienceId, UpdateAudience body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { throw new ApiException("Missing the required parameter 'audienceId' when calling updateAudienceV2(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateAudienceV2(Async)"); } - okhttp3.Call localVarCall = updateAudienceV2Call(audienceId, body, _callback); return localVarCall; @@ -3823,84 +8118,174 @@ private okhttp3.Call updateAudienceV2ValidateBeforeCall(Integer audienceId, Upda /** * Update audience name - * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * Update the name of the given audience created by a third-party integration. + * Sending a request to this endpoint does **not** trigger the Rule Engine. To + * update the audience's members, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) + * @param body body (required) * @return Audience - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
*/ - public Audience updateAudienceV2(Integer audienceId, UpdateAudience body) throws ApiException { + public Audience updateAudienceV2(Long audienceId, UpdateAudience body) throws ApiException { ApiResponse localVarResp = updateAudienceV2WithHttpInfo(audienceId, body); return localVarResp.getData(); } /** * Update audience name - * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * Update the name of the given audience created by a third-party integration. + * Sending a request to this endpoint does **not** trigger the Rule Engine. To + * update the audience's members, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<Audience> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
*/ - public ApiResponse updateAudienceV2WithHttpInfo(Integer audienceId, UpdateAudience body) throws ApiException { + public ApiResponse updateAudienceV2WithHttpInfo(Long audienceId, UpdateAudience body) + throws ApiException { okhttp3.Call localVarCall = updateAudienceV2ValidateBeforeCall(audienceId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update audience name (asynchronously) - * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * Update the name of the given audience created by a third-party integration. + * Sending a request to this endpoint does **not** trigger the Rule Engine. To + * update the audience's members, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * * @param audienceId The ID of the audience. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateAudienceV2Async(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceV2Async(Long audienceId, UpdateAudience body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAudienceV2ValidateBeforeCall(audienceId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCustomerProfileAudiences - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateCustomerProfileAudiencesCall(CustomerProfileAudienceRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerProfileAudiencesCall(CustomerProfileAudienceRequest body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3912,7 +8297,7 @@ public okhttp3.Call updateCustomerProfileAudiencesCall(CustomerProfileAudienceRe Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3920,23 +8305,26 @@ public okhttp3.Call updateCustomerProfileAudiencesCall(CustomerProfileAudienceRe } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCustomerProfileAudiencesValidateBeforeCall(CustomerProfileAudienceRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCustomerProfileAudiencesValidateBeforeCall(CustomerProfileAudienceRequest body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateCustomerProfileAudiences(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling updateCustomerProfileAudiences(Async)"); } - okhttp3.Call localVarCall = updateCustomerProfileAudiencesCall(body, _callback); return localVarCall; @@ -3945,17 +8333,43 @@ private okhttp3.Call updateCustomerProfileAudiencesValidateBeforeCall(CustomerPr /** * Update multiple customer profiles' audiences - * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint + * supports 1000 audience actions (`add` or `remove`) per + * request. **Note:** You can also do this using the [Update + * audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) + * effect. + * * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ public void updateCustomerProfileAudiences(CustomerProfileAudienceRequest body) throws ApiException { updateCustomerProfileAudiencesWithHttpInfo(body); @@ -3963,70 +8377,168 @@ public void updateCustomerProfileAudiences(CustomerProfileAudienceRequest body) /** * Update multiple customer profiles' audiences - * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint + * supports 1000 audience actions (`add` or `remove`) per + * request. **Note:** You can also do this using the [Update + * audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) + * effect. + * * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public ApiResponse updateCustomerProfileAudiencesWithHttpInfo(CustomerProfileAudienceRequest body) throws ApiException { + public ApiResponse updateCustomerProfileAudiencesWithHttpInfo(CustomerProfileAudienceRequest body) + throws ApiException { okhttp3.Call localVarCall = updateCustomerProfileAudiencesValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } /** * Update multiple customer profiles' audiences (asynchronously) - * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. - * @param body body (required) + * Add customer profiles to or remove them from an audience. The endpoint + * supports 1000 audience actions (`add` or `remove`) per + * request. **Note:** You can also do this using the [Update + * audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) + * effect. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
*/ - public okhttp3.Call updateCustomerProfileAudiencesAsync(CustomerProfileAudienceRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerProfileAudiencesAsync(CustomerProfileAudienceRequest body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCustomerProfileAudiencesValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for updateCustomerProfileV2 - * @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 body body (required) - * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) - * @param dry (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run. (optional) - * @param _callback Callback for upload/download progress + * + * @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 body body (required) + * @param runRuleEngine Indicates whether to run the Rule Engine. If + * `true`, the response includes: - The effects + * generated by the triggered campaigns are returned in the + * `effects` property. - The created coupons and + * referral objects. If `false`: - The rules are + * not executed and the `effects` property is + * always empty. - The response time improves. - You cannot + * use `responseContent` in the body. (optional, + * default to false) + * @param dry (Only works when `runRuleEngine=true`) + * Indicates whether to persist the changes. Changes are + * ignored when `dry=true`. When set to + * `true`, you can use the + * `evaluableCampaignIds` body property to select + * specific campaigns to run. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call updateCustomerProfileV2Call(String integrationId, CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerProfileV2Call(String integrationId, CustomerProfileIntegrationRequestV2 body, + Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/customer_profiles/{integrationId}" - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4042,7 +8554,7 @@ public okhttp3.Call updateCustomerProfileV2Call(String integrationId, CustomerPr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4050,28 +8562,32 @@ public okhttp3.Call updateCustomerProfileV2Call(String integrationId, CustomerPr } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCustomerProfileV2ValidateBeforeCall(String integrationId, CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCustomerProfileV2ValidateBeforeCall(String integrationId, + CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling updateCustomerProfileV2(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling updateCustomerProfileV2(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCustomerProfileV2(Async)"); } - okhttp3.Call localVarCall = updateCustomerProfileV2Call(integrationId, body, runRuleEngine, dry, _callback); return localVarCall; @@ -4080,93 +8596,293 @@ private okhttp3.Call updateCustomerProfileV2ValidateBeforeCall(String integratio /** * Update customer profile - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @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 body body (required) - * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) - * @param dry (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run. (optional) + * Update or create a [Customer + * Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). + * This endpoint triggers the Rule Builder. You can use this endpoint to: - Set + * attributes on the given customer profile. Ensure you create the attributes in + * the Campaign Manager, first. - Modify the audience the customer profile is a + * member of. <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer profile returns a response with the requested integration state. - + * You can use the `responseContent` property to save yourself extra + * API calls. For example, you can get the customer profile details directly + * without extra requests. - We recommend sending requests sequentially. See + * [Managing parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @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 body body (required) + * @param runRuleEngine Indicates whether to run the Rule Engine. If + * `true`, the response includes: - The effects + * generated by the triggered campaigns are returned in the + * `effects` property. - The created coupons and + * referral objects. If `false`: - The rules are + * not executed and the `effects` property is + * always empty. - The response time improves. - You cannot + * use `responseContent` in the body. (optional, + * default to false) + * @param dry (Only works when `runRuleEngine=true`) + * Indicates whether to persist the changes. Changes are + * ignored when `dry=true`. When set to + * `true`, you can use the + * `evaluableCampaignIds` body property to select + * specific campaigns to run. (optional) * @return CustomerProfileIntegrationResponseV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public CustomerProfileIntegrationResponseV2 updateCustomerProfileV2(String integrationId, CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry) throws ApiException { - ApiResponse localVarResp = updateCustomerProfileV2WithHttpInfo(integrationId, body, runRuleEngine, dry); + public CustomerProfileIntegrationResponseV2 updateCustomerProfileV2(String integrationId, + CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry) throws ApiException { + ApiResponse localVarResp = updateCustomerProfileV2WithHttpInfo( + integrationId, body, runRuleEngine, dry); return localVarResp.getData(); } /** * Update customer profile - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @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 body body (required) - * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) - * @param dry (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run. (optional) + * Update or create a [Customer + * Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). + * This endpoint triggers the Rule Builder. You can use this endpoint to: - Set + * attributes on the given customer profile. Ensure you create the attributes in + * the Campaign Manager, first. - Modify the audience the customer profile is a + * member of. <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer profile returns a response with the requested integration state. - + * You can use the `responseContent` property to save yourself extra + * API calls. For example, you can get the customer profile details directly + * without extra requests. - We recommend sending requests sequentially. See + * [Managing parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @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 body body (required) + * @param runRuleEngine Indicates whether to run the Rule Engine. If + * `true`, the response includes: - The effects + * generated by the triggered campaigns are returned in the + * `effects` property. - The created coupons and + * referral objects. If `false`: - The rules are + * not executed and the `effects` property is + * always empty. - The response time improves. - You cannot + * use `responseContent` in the body. (optional, + * default to false) + * @param dry (Only works when `runRuleEngine=true`) + * Indicates whether to persist the changes. Changes are + * ignored when `dry=true`. When set to + * `true`, you can use the + * `evaluableCampaignIds` body property to select + * specific campaigns to run. (optional) * @return ApiResponse<CustomerProfileIntegrationResponseV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public ApiResponse updateCustomerProfileV2WithHttpInfo(String integrationId, CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry) throws ApiException { - okhttp3.Call localVarCall = updateCustomerProfileV2ValidateBeforeCall(integrationId, body, runRuleEngine, dry, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateCustomerProfileV2WithHttpInfo(String integrationId, + CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry) throws ApiException { + okhttp3.Call localVarCall = updateCustomerProfileV2ValidateBeforeCall(integrationId, body, runRuleEngine, dry, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update customer profile (asynchronously) - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> - * @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 body body (required) - * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) - * @param dry (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run. (optional) - * @param _callback The callback to be executed when the API call finishes + * Update or create a [Customer + * Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). + * This endpoint triggers the Rule Builder. You can use this endpoint to: - Set + * attributes on the given customer profile. Ensure you create the attributes in + * the Campaign Manager, first. - Modify the audience the customer profile is a + * member of. <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer profile returns a response with the requested integration state. - + * You can use the `responseContent` property to save yourself extra + * API calls. For example, you can get the customer profile details directly + * without extra requests. - We recommend sending requests sequentially. See + * [Managing parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> + * + * @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 body body (required) + * @param runRuleEngine Indicates whether to run the Rule Engine. If + * `true`, the response includes: - The effects + * generated by the triggered campaigns are returned in the + * `effects` property. - The created coupons and + * referral objects. If `false`: - The rules are + * not executed and the `effects` property is + * always empty. - The response time improves. - You cannot + * use `responseContent` in the body. (optional, + * default to false) + * @param dry (Only works when `runRuleEngine=true`) + * Indicates whether to persist the changes. Changes are + * ignored when `dry=true`. When set to + * `true`, you can use the + * `evaluableCampaignIds` body property to select + * specific campaigns to run. (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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call updateCustomerProfileV2Async(String integrationId, CustomerProfileIntegrationRequestV2 body, Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCustomerProfileV2ValidateBeforeCall(integrationId, body, runRuleEngine, dry, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + public okhttp3.Call updateCustomerProfileV2Async(String integrationId, CustomerProfileIntegrationRequestV2 body, + Boolean runRuleEngine, Boolean dry, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateCustomerProfileV2ValidateBeforeCall(integrationId, body, runRuleEngine, dry, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCustomerProfilesV2 - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call + * by returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call updateCustomerProfilesV2Call(MultipleCustomerProfileIntegrationRequest body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerProfilesV2Call(MultipleCustomerProfileIntegrationRequest body, String silent, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -4182,7 +8898,7 @@ public okhttp3.Call updateCustomerProfilesV2Call(MultipleCustomerProfileIntegrat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4190,23 +8906,26 @@ public okhttp3.Call updateCustomerProfilesV2Call(MultipleCustomerProfileIntegrat } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCustomerProfilesV2ValidateBeforeCall(MultipleCustomerProfileIntegrationRequest body, String silent, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCustomerProfilesV2ValidateBeforeCall(MultipleCustomerProfileIntegrationRequest body, + String silent, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateCustomerProfilesV2(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling updateCustomerProfilesV2(Async)"); } - okhttp3.Call localVarCall = updateCustomerProfilesV2Call(body, silent, _callback); return localVarCall; @@ -4215,92 +8934,244 @@ private okhttp3.Call updateCustomerProfilesV2ValidateBeforeCall(MultipleCustomer /** * Update multiple customer profiles - * Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Update (or create) up to 1000 [customer + * profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * in 1 request. The `integrationId` must be any identifier that + * remains stable for the customer. Do not use an ID that the customer can + * update themselves. For example, you can use a database ID. A customer profile + * [can be linked to one or more + * sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). + * **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule + * Engine for customer profile updates, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call by + * returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @return MultipleCustomerProfileIntegrationResponseV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public MultipleCustomerProfileIntegrationResponseV2 updateCustomerProfilesV2(MultipleCustomerProfileIntegrationRequest body, String silent) throws ApiException { - ApiResponse localVarResp = updateCustomerProfilesV2WithHttpInfo(body, silent); + public MultipleCustomerProfileIntegrationResponseV2 updateCustomerProfilesV2( + MultipleCustomerProfileIntegrationRequest body, String silent) throws ApiException { + ApiResponse localVarResp = updateCustomerProfilesV2WithHttpInfo( + body, silent); return localVarResp.getData(); } /** * Update multiple customer profiles - * Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Update (or create) up to 1000 [customer + * profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * in 1 request. The `integrationId` must be any identifier that + * remains stable for the customer. Do not use an ID that the customer can + * update themselves. For example, you can use a database ID. A customer profile + * [can be linked to one or more + * sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). + * **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule + * Engine for customer profile updates, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call by + * returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @return ApiResponse<MultipleCustomerProfileIntegrationResponseV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public ApiResponse updateCustomerProfilesV2WithHttpInfo(MultipleCustomerProfileIntegrationRequest body, String silent) throws ApiException { + public ApiResponse updateCustomerProfilesV2WithHttpInfo( + MultipleCustomerProfileIntegrationRequest body, String silent) throws ApiException { okhttp3.Call localVarCall = updateCustomerProfilesV2ValidateBeforeCall(body, silent, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update multiple customer profiles (asynchronously) - * Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Update (or create) up to 1000 [customer + * profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * in 1 request. The `integrationId` must be any identifier that + * remains stable for the customer. Do not use an ID that the customer can + * update themselves. For example, you can use a database ID. A customer profile + * [can be linked to one or more + * sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). + * **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule + * Engine for customer profile updates, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API call + * by returning a 204 response. - `no`: Returns a 200 + * response that contains the updated customer profiles. + * (optional, default to "yes") * @param _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 + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
*/ - public okhttp3.Call updateCustomerProfilesV2Async(MultipleCustomerProfileIntegrationRequest body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerProfilesV2Async(MultipleCustomerProfileIntegrationRequest body, String silent, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCustomerProfilesV2ValidateBeforeCall(body, silent, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCustomerSessionV2 - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) - * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) - * @param _callback Callback for upload/download progress + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. When set + * to `true`: - The endpoint considers + * **only** the payload that you pass when **closing** + * the session. When you do not use the `dry` + * parameter, the endpoint behaves as a typical PUT + * endpoint. Each update builds upon the previous ones. + * - You can use the `evaluableCampaignIds` + * body property to select specific campaigns to run. + * [See the + * docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). + * (optional) + * @param now A timestamp value of a future date that acts as a + * current date when included in the query. Use this + * parameter, for example, to test campaigns that would + * be evaluated for this customer session in the future + * (say, [scheduled + * campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). + * **Note:** - It must be an RFC3339 timestamp string. + * - It can **only** be a date in the future. - It can + * **only** be used if the `dry` parameter in + * the query is set to `true`. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, IntegrationRequest body, Boolean dry, + OffsetDateTime now, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/customer_sessions/{customerSessionId}" - .replaceAll("\\{" + "customerSessionId" + "\\}", localVarApiClient.escapeString(customerSessionId.toString())); + .replaceAll("\\{" + "customerSessionId" + "\\}", + localVarApiClient.escapeString(customerSessionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4316,7 +9187,7 @@ public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, Integr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4324,28 +9195,31 @@ public okhttp3.Call updateCustomerSessionV2Call(String customerSessionId, Integr } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "api_key_v1" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSessionId, IntegrationRequest body, + Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'customerSessionId' is set if (customerSessionId == null) { - throw new ApiException("Missing the required parameter 'customerSessionId' when calling updateCustomerSessionV2(Async)"); + throw new ApiException( + "Missing the required parameter 'customerSessionId' when calling updateCustomerSessionV2(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCustomerSessionV2(Async)"); } - okhttp3.Call localVarCall = updateCustomerSessionV2Call(customerSessionId, body, dry, now, _callback); return localVarCall; @@ -4354,74 +9228,334 @@ private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSe /** * Update customer session - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) - * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) + * Update or create a [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * The endpoint responds with the potential promotion rule + * [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that + * match the current cart. For example, use this endpoint to share the contents + * of a customer's cart with Talon.One. **Note:** The currency for the + * session and the cart items in the session is the currency set for the + * Application that owns this session. ### Session management To use this + * endpoint, start by learning about [customer + * sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) + * and their states and refer to the `state` parameter documentation + * the request body schema docs below. ### Sessions and customer profiles - To + * link a session to a customer profile, set the `profileId` parameter + * in the request body to a customer profile's `integrationId`. - + * While you can create an anonymous session with + * `profileId=\"\"`, we recommend you use a guest ID + * instead. - A profile can be linked to simultaneous sessions in different + * Applications. Either: - Use unique session integration IDs or, - Use the same + * session integration ID across all of the Applications. **Note:** If the + * specified profile does not exist, an empty profile is **created + * automatically**. You can update it with [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). + * <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer session returns a response with the new integration state. Use the + * `responseContent` property to save yourself extra API calls. For + * example, you can get the customer profile details directly without extra + * requests. - We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> For more information, see: - The introductory video in [Getting + * started](https://docs.talon.one/docs/dev/getting-started/overview). - The + * [integration + * tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. When set + * to `true`: - The endpoint considers + * **only** the payload that you pass when **closing** + * the session. When you do not use the `dry` + * parameter, the endpoint behaves as a typical PUT + * endpoint. Each update builds upon the previous ones. + * - You can use the `evaluableCampaignIds` + * body property to select specific campaigns to run. + * [See the + * docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). + * (optional) + * @param now A timestamp value of a future date that acts as a + * current date when included in the query. Use this + * parameter, for example, to test campaigns that would + * be evaluated for this customer session in the future + * (say, [scheduled + * campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). + * **Note:** - It must be an RFC3339 timestamp string. + * - It can **only** be a date in the future. - It can + * **only** be used if the `dry` parameter in + * the query is set to `true`. (optional) * @return IntegrationStateV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now) throws ApiException { - ApiResponse localVarResp = updateCustomerSessionV2WithHttpInfo(customerSessionId, body, dry, now); + public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, IntegrationRequest body, Boolean dry, + OffsetDateTime now) throws ApiException { + ApiResponse localVarResp = updateCustomerSessionV2WithHttpInfo(customerSessionId, body, dry, + now); return localVarResp.getData(); } /** * Update customer session - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) - * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) + * Update or create a [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * The endpoint responds with the potential promotion rule + * [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that + * match the current cart. For example, use this endpoint to share the contents + * of a customer's cart with Talon.One. **Note:** The currency for the + * session and the cart items in the session is the currency set for the + * Application that owns this session. ### Session management To use this + * endpoint, start by learning about [customer + * sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) + * and their states and refer to the `state` parameter documentation + * the request body schema docs below. ### Sessions and customer profiles - To + * link a session to a customer profile, set the `profileId` parameter + * in the request body to a customer profile's `integrationId`. - + * While you can create an anonymous session with + * `profileId=\"\"`, we recommend you use a guest ID + * instead. - A profile can be linked to simultaneous sessions in different + * Applications. Either: - Use unique session integration IDs or, - Use the same + * session integration ID across all of the Applications. **Note:** If the + * specified profile does not exist, an empty profile is **created + * automatically**. You can update it with [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). + * <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer session returns a response with the new integration state. Use the + * `responseContent` property to save yourself extra API calls. For + * example, you can get the customer profile details directly without extra + * requests. - We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> For more information, see: - The introductory video in [Getting + * started](https://docs.talon.one/docs/dev/getting-started/overview). - The + * [integration + * tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. When set + * to `true`: - The endpoint considers + * **only** the payload that you pass when **closing** + * the session. When you do not use the `dry` + * parameter, the endpoint behaves as a typical PUT + * endpoint. Each update builds upon the previous ones. + * - You can use the `evaluableCampaignIds` + * body property to select specific campaigns to run. + * [See the + * docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). + * (optional) + * @param now A timestamp value of a future date that acts as a + * current date when included in the query. Use this + * parameter, for example, to test campaigns that would + * be evaluated for this customer session in the future + * (say, [scheduled + * campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). + * **Note:** - It must be an RFC3339 timestamp string. + * - It can **only** be a date in the future. - It can + * **only** be used if the `dry` parameter in + * the query is set to `true`. (optional) * @return ApiResponse<IntegrationStateV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public ApiResponse updateCustomerSessionV2WithHttpInfo(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now) throws ApiException { + public ApiResponse updateCustomerSessionV2WithHttpInfo(String customerSessionId, + IntegrationRequest body, Boolean dry, OffsetDateTime now) throws ApiException { okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, now, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update customer session (asynchronously) - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). - * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) - * @param body body (required) - * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) - * @param now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. (optional) - * @param _callback The callback to be executed when the API call finishes + * Update or create a [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * The endpoint responds with the potential promotion rule + * [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that + * match the current cart. For example, use this endpoint to share the contents + * of a customer's cart with Talon.One. **Note:** The currency for the + * session and the cart items in the session is the currency set for the + * Application that owns this session. ### Session management To use this + * endpoint, start by learning about [customer + * sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) + * and their states and refer to the `state` parameter documentation + * the request body schema docs below. ### Sessions and customer profiles - To + * link a session to a customer profile, set the `profileId` parameter + * in the request body to a customer profile's `integrationId`. - + * While you can create an anonymous session with + * `profileId=\"\"`, we recommend you use a guest ID + * instead. - A profile can be linked to simultaneous sessions in different + * Applications. Either: - Use unique session integration IDs or, - Use the same + * session integration ID across all of the Applications. **Note:** If the + * specified profile does not exist, an empty profile is **created + * automatically**. You can update it with [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). + * <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer session returns a response with the new integration state. Use the + * `responseContent` property to save yourself extra API calls. For + * example, you can get the customer profile details directly without extra + * requests. - We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> For more information, see: - The introductory video in [Getting + * started](https://docs.talon.one/docs/dev/getting-started/overview). - The + * [integration + * tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * + * @param customerSessionId The `integration ID` of the customer + * session. You set this ID when you create a customer + * session. You can see existing customer session + * integration IDs in the Campaign Manager's + * **Sessions** menu, or via the [List Application + * session](https://docs.talon.one/management-api#operation/getApplicationSessions) + * endpoint. (required) + * @param body body (required) + * @param dry Indicates whether to persist the changes. Changes + * are ignored when `dry=true`. When set + * to `true`: - The endpoint considers + * **only** the payload that you pass when **closing** + * the session. When you do not use the `dry` + * parameter, the endpoint behaves as a typical PUT + * endpoint. Each update builds upon the previous ones. + * - You can use the `evaluableCampaignIds` + * body property to select specific campaigns to run. + * [See the + * docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). + * (optional) + * @param now A timestamp value of a future date that acts as a + * current date when included in the query. Use this + * parameter, for example, to test campaigns that would + * be evaluated for this customer session in the future + * (say, [scheduled + * campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). + * **Note:** - It must be an RFC3339 timestamp string. + * - It can **only** be a date in the future. - It can + * **only** be used if the `dry` parameter in + * the query is set to `true`. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
409 Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
409Too many requests or limit reached - Avoid + * parallel requests. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). + * -
*/ - public okhttp3.Call updateCustomerSessionV2Async(String customerSessionId, IntegrationRequest body, Boolean dry, OffsetDateTime now, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCustomerSessionV2Async(String customerSessionId, IntegrationRequest body, Boolean dry, + OffsetDateTime now, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, now, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = updateCustomerSessionV2ValidateBeforeCall(customerSessionId, body, dry, now, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/one/talon/api/ManagementApi.java b/src/main/java/one/talon/api/ManagementApi.java index e9863030..8f598885 100644 --- a/src/main/java/one/talon/api/ManagementApi.java +++ b/src/main/java/one/talon/api/ManagementApi.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.api; import one.talon.ApiCallback; @@ -26,7 +25,6 @@ import java.io.IOException; - import one.talon.model.Account; import one.talon.model.AccountAdditionalCost; import one.talon.model.AccountAnalytics; @@ -177,17 +175,27 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for activateUserByEmail - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call activateUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call activateUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -199,7 +207,7 @@ public okhttp3.Call activateUserByEmailCall(DeleteUserRequest body, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -207,23 +215,25 @@ public okhttp3.Call activateUserByEmailCall(DeleteUserRequest body, final ApiCal } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call activateUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call activateUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling activateUserByEmail(Async)"); } - okhttp3.Call localVarCall = activateUserByEmailCall(body, _callback); return localVarCall; @@ -232,14 +242,26 @@ private okhttp3.Call activateUserByEmailValidateBeforeCall(DeleteUserRequest bod /** * Enable user by email address - * Enable a [disabled user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * Enable a [disabled + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public void activateUserByEmail(DeleteUserRequest body) throws ApiException { activateUserByEmailWithHttpInfo(body); @@ -247,15 +269,27 @@ public void activateUserByEmail(DeleteUserRequest body) throws ApiException { /** * Enable user by email address - * Enable a [disabled user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * Enable a [disabled + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public ApiResponse activateUserByEmailWithHttpInfo(DeleteUserRequest body) throws ApiException { okhttp3.Call localVarCall = activateUserByEmailValidateBeforeCall(body, null); @@ -264,47 +298,91 @@ public ApiResponse activateUserByEmailWithHttpInfo(DeleteUserRequest body) /** * Enable user by email address (asynchronously) - * Enable a [disabled user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. - * @param body body (required) + * Enable a [disabled + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call activateUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call activateUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = activateUserByEmailValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for addLoyaltyCardPoints - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call addLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call addLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/add_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -312,7 +390,7 @@ public okhttp3.Call addLoyaltyCardPointsCall(Integer loyaltyProgramId, String lo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -320,33 +398,37 @@ public okhttp3.Call addLoyaltyCardPointsCall(Integer loyaltyProgramId, String lo } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling addLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling addLoyaltyCardPoints(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling addLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling addLoyaltyCardPoints(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling addLoyaltyCardPoints(Async)"); } - okhttp3.Call localVarCall = addLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, body, _callback); return localVarCall; @@ -355,94 +437,218 @@ private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgr /** * Add points to card - * Add points to the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public void addLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { + * Add points to the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public void addLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) + throws ApiException { addLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } /** * Add points to card - * Add points to the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * Add points to the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse addLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse addLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + AddLoyaltyPoints body) throws ApiException { okhttp3.Call localVarCall = addLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); return localVarApiClient.execute(localVarCall); } /** * Add points to card (asynchronously) - * Add points to the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Add points to the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call addLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call addLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for addLoyaltyPoints + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @param _callback Callback for upload/download progress + * @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 body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call addLoyaltyPointsCall(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call addLoyaltyPointsCall(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/add_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -450,7 +656,7 @@ public okhttp3.Call addLoyaltyPointsCall(String loyaltyProgramId, String integra Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -458,33 +664,37 @@ public okhttp3.Call addLoyaltyPointsCall(String loyaltyProgramId, String integra } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call addLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, + AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling addLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling addLoyaltyPoints(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling addLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling addLoyaltyPoints(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling addLoyaltyPoints(Async)"); } - okhttp3.Call localVarCall = addLoyaltyPointsCall(loyaltyProgramId, integrationId, body, _callback); return localVarCall; @@ -493,91 +703,202 @@ private okhttp3.Call addLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, /** * Add points to customer profile - * Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Add points in the specified loyalty program for the given customer. To get + * the `integrationId` of the profile from a `sessionId`, + * use the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public void addLoyaltyPoints(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body) throws ApiException { + * @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 body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public void addLoyaltyPoints(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body) + throws ApiException { addLoyaltyPointsWithHttpInfo(loyaltyProgramId, integrationId, body); } /** * Add points to customer profile - * Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Add points in the specified loyalty program for the given customer. To get + * the `integrationId` of the profile from a `sessionId`, + * use the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (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 body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse addLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse addLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId, + AddLoyaltyPoints body) throws ApiException { okhttp3.Call localVarCall = addLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, null); return localVarApiClient.execute(localVarCall); } /** * Add points to customer profile (asynchronously) - * Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Add points in the specified loyalty program for the given customer. To get + * the `integrationId` of the profile from a `sessionId`, + * use the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @param _callback The callback to be executed when the API call finishes + * @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 body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call addLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call addLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, AddLoyaltyPoints body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for copyCampaignToApplications - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call copyCampaignToApplicationsCall(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call copyCampaignToApplicationsCall(Long applicationId, Long campaignId, CampaignCopy body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/copy" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -585,7 +906,7 @@ public okhttp3.Call copyCampaignToApplicationsCall(Integer applicationId, Intege Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -593,33 +914,38 @@ public okhttp3.Call copyCampaignToApplicationsCall(Integer applicationId, Intege } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Long applicationId, Long campaignId, + CampaignCopy body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling copyCampaignToApplications(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling copyCampaignToApplications(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling copyCampaignToApplications(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling copyCampaignToApplications(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling copyCampaignToApplications(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling copyCampaignToApplications(Async)"); } - okhttp3.Call localVarCall = copyCampaignToApplicationsCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -629,80 +955,147 @@ private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Integer applic /** * Copy the campaign into the specified Application * Copy the campaign into all specified Applications. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return InlineResponse2008 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse2008 copyCampaignToApplications(Integer applicationId, Integer campaignId, CampaignCopy body) throws ApiException { - ApiResponse localVarResp = copyCampaignToApplicationsWithHttpInfo(applicationId, campaignId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse2008 copyCampaignToApplications(Long applicationId, Long campaignId, CampaignCopy body) + throws ApiException { + ApiResponse localVarResp = copyCampaignToApplicationsWithHttpInfo(applicationId, campaignId, + body); return localVarResp.getData(); } /** * Copy the campaign into the specified Application * Copy the campaign into all specified Applications. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<InlineResponse2008> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse copyCampaignToApplicationsWithHttpInfo(Integer applicationId, Integer campaignId, CampaignCopy body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse copyCampaignToApplicationsWithHttpInfo(Long applicationId, Long campaignId, + CampaignCopy body) throws ApiException { okhttp3.Call localVarCall = copyCampaignToApplicationsValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Copy the campaign into the specified Application (asynchronously) * Copy the campaign into all specified Applications. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call copyCampaignToApplicationsAsync(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = copyCampaignToApplicationsValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call copyCampaignToApplicationsAsync(Long applicationId, Long campaignId, CampaignCopy body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = copyCampaignToApplicationsValidateBeforeCall(applicationId, campaignId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createAccountCollection - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public okhttp3.Call createAccountCollectionCall(NewCollection body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public okhttp3.Call createAccountCollectionCall(NewCollection body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -714,7 +1107,7 @@ public okhttp3.Call createAccountCollectionCall(NewCollection body, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -722,23 +1115,25 @@ public okhttp3.Call createAccountCollectionCall(NewCollection body, final ApiCal } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAccountCollectionValidateBeforeCall(NewCollection body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createAccountCollectionValidateBeforeCall(NewCollection body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAccountCollection(Async)"); } - okhttp3.Call localVarCall = createAccountCollectionCall(body, _callback); return localVarCall; @@ -748,17 +1143,40 @@ private okhttp3.Call createAccountCollectionValidateBeforeCall(NewCollection bod /** * Create account-level collection * Create an account-level collection. + * * @param body body (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
*/ public Collection createAccountCollection(NewCollection body) throws ApiException { ApiResponse localVarResp = createAccountCollectionWithHttpInfo(body); @@ -768,71 +1186,146 @@ public Collection createAccountCollection(NewCollection body) throws ApiExceptio /** * Create account-level collection * Create an account-level collection. + * * @param body body (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
*/ public ApiResponse createAccountCollectionWithHttpInfo(NewCollection body) throws ApiException { okhttp3.Call localVarCall = createAccountCollectionValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create account-level collection (asynchronously) * Create an account-level collection. - * @param body body (required) + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public okhttp3.Call createAccountCollectionAsync(NewCollection body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public okhttp3.Call createAccountCollectionAsync(NewCollection body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createAccountCollectionValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createAchievement - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
- */ - public okhttp3.Call createAchievementCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An achievement with this name or title + * already exists.-
+ */ + public okhttp3.Call createAchievementCall(Long applicationId, Long campaignId, CreateAchievement body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -840,7 +1333,7 @@ public okhttp3.Call createAchievementCall(Integer applicationId, Integer campaig Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -848,33 +1341,36 @@ public okhttp3.Call createAchievementCall(Integer applicationId, Integer campaig } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createAchievementValidateBeforeCall(Long applicationId, Long campaignId, + CreateAchievement body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createAchievement(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createAchievement(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling createAchievement(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAchievement(Async)"); } - okhttp3.Call localVarCall = createAchievementCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -884,21 +1380,47 @@ private okhttp3.Call createAchievementValidateBeforeCall(Integer applicationId, /** * Create achievement * Create a new achievement in a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return Achievement - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
- */ - public Achievement createAchievement(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An achievement with this name or title + * already exists.-
+ */ + public Achievement createAchievement(Long applicationId, Long campaignId, CreateAchievement body) + throws ApiException { ApiResponse localVarResp = createAchievementWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -906,64 +1428,129 @@ public Achievement createAchievement(Integer applicationId, Integer campaignId, /** * Create achievement * Create a new achievement in a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<Achievement> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
- */ - public ApiResponse createAchievementWithHttpInfo(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An achievement with this name or title + * already exists.-
+ */ + public ApiResponse createAchievementWithHttpInfo(Long applicationId, Long campaignId, + CreateAchievement body) throws ApiException { okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create achievement (asynchronously) * Create a new achievement in a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
401 Unauthorized -
409 Conflict. An achievement with this name or title already exists. -
- */ - public okhttp3.Call createAchievementAsync(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
401Unauthorized-
409Conflict. An achievement with this name or title + * already exists.-
+ */ + public okhttp3.Call createAchievementAsync(Long applicationId, Long campaignId, CreateAchievement body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createAdditionalCost - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createAdditionalCostCall(NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createAdditionalCostCall(NewAdditionalCost body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -975,7 +1562,7 @@ public okhttp3.Call createAdditionalCostCall(NewAdditionalCost body, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -983,23 +1570,25 @@ public okhttp3.Call createAdditionalCostCall(NewAdditionalCost body, final ApiCa } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAdditionalCostValidateBeforeCall(NewAdditionalCost body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createAdditionalCostValidateBeforeCall(NewAdditionalCost body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAdditionalCost(Async)"); } - okhttp3.Call localVarCall = createAdditionalCostCall(body, _callback); return localVarCall; @@ -1008,15 +1597,28 @@ private okhttp3.Call createAdditionalCostValidateBeforeCall(NewAdditionalCost bo /** * Create additional cost - * Create an [additional cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). These additional costs are shared across all applications in your account, and are never required. + * Create an [additional + * cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * These additional costs are shared across all applications in your account, + * and are never required. + * * @param body body (required) * @return AccountAdditionalCost - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public AccountAdditionalCost createAdditionalCost(NewAdditionalCost body) throws ApiException { ApiResponse localVarResp = createAdditionalCostWithHttpInfo(body); @@ -1025,53 +1627,93 @@ public AccountAdditionalCost createAdditionalCost(NewAdditionalCost body) throws /** * Create additional cost - * Create an [additional cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). These additional costs are shared across all applications in your account, and are never required. + * Create an [additional + * cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * These additional costs are shared across all applications in your account, + * and are never required. + * * @param body body (required) * @return ApiResponse<AccountAdditionalCost> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public ApiResponse createAdditionalCostWithHttpInfo(NewAdditionalCost body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public ApiResponse createAdditionalCostWithHttpInfo(NewAdditionalCost body) + throws ApiException { okhttp3.Call localVarCall = createAdditionalCostValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create additional cost (asynchronously) - * Create an [additional cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). These additional costs are shared across all applications in your account, and are never required. - * @param body body (required) + * Create an [additional + * cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * These additional costs are shared across all applications in your account, + * and are never required. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createAdditionalCostAsync(NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createAdditionalCostAsync(NewAdditionalCost body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAdditionalCostValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createAttribute - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createAttributeCall(NewAttribute body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -1085,7 +1727,7 @@ public okhttp3.Call createAttributeCall(NewAttribute body, final ApiCallback _ca Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1093,23 +1735,25 @@ public okhttp3.Call createAttributeCall(NewAttribute body, final ApiCallback _ca } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createAttributeValidateBeforeCall(NewAttribute body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createAttributeValidateBeforeCall(NewAttribute body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAttribute(Async)"); } - okhttp3.Call localVarCall = createAttributeCall(body, _callback); return localVarCall; @@ -1118,15 +1762,32 @@ private okhttp3.Call createAttributeValidateBeforeCall(NewAttribute body, final /** * Create custom attribute - * Create a _custom attribute_ in this account. [Custom attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on. These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all Applications in your account and are never required. + * Create a _custom attribute_ in this account. [Custom + * attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to + * add data to Talon.One domain entities like campaigns, coupons, customers and + * so on. These attributes can then be given values when creating/updating these + * entities, and these values can be used in your campaign rules. For example, + * you could define a `zipCode` field for customer sessions, and add a + * rule to your campaign that only allows certain ZIP codes. These attributes + * are shared across all Applications in your account and are never required. + * * @param body body (required) * @return Attribute - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public Attribute createAttribute(NewAttribute body) throws ApiException { ApiResponse localVarResp = createAttributeWithHttpInfo(body); @@ -1135,64 +1796,129 @@ public Attribute createAttribute(NewAttribute body) throws ApiException { /** * Create custom attribute - * Create a _custom attribute_ in this account. [Custom attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on. These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all Applications in your account and are never required. + * Create a _custom attribute_ in this account. [Custom + * attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to + * add data to Talon.One domain entities like campaigns, coupons, customers and + * so on. These attributes can then be given values when creating/updating these + * entities, and these values can be used in your campaign rules. For example, + * you could define a `zipCode` field for customer sessions, and add a + * rule to your campaign that only allows certain ZIP codes. These attributes + * are shared across all Applications in your account and are never required. + * * @param body body (required) * @return ApiResponse<Attribute> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ApiResponse createAttributeWithHttpInfo(NewAttribute body) throws ApiException { okhttp3.Call localVarCall = createAttributeValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create custom attribute (asynchronously) - * Create a _custom attribute_ in this account. [Custom attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on. These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all Applications in your account and are never required. - * @param body body (required) + * Create a _custom attribute_ in this account. [Custom + * attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to + * add data to Talon.One domain entities like campaigns, coupons, customers and + * so on. These attributes can then be given values when creating/updating these + * entities, and these values can be used in your campaign rules. For example, + * you could define a `zipCode` field for customer sessions, and add a + * rule to your campaign that only allows certain ZIP codes. These attributes + * are shared across all Applications in your account and are never required. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createAttributeAsync(NewAttribute body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createAttributeAsync(NewAttribute body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createAttributeValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createBatchLoyaltyCards - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call createBatchLoyaltyCardsCall(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call createBatchLoyaltyCardsCall(Long loyaltyProgramId, LoyaltyCardBatch body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/batch" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1200,7 +1926,7 @@ public okhttp3.Call createBatchLoyaltyCardsCall(Integer loyaltyProgramId, Loyalt Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1208,28 +1934,31 @@ public okhttp3.Call createBatchLoyaltyCardsCall(Integer loyaltyProgramId, Loyalt } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, LoyaltyCardBatch body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling createBatchLoyaltyCards(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling createBatchLoyaltyCards(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createBatchLoyaltyCards(Async)"); } - okhttp3.Call localVarCall = createBatchLoyaltyCardsCall(loyaltyProgramId, body, _callback); return localVarCall; @@ -1238,90 +1967,205 @@ private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Integer loyaltyPr /** * Create loyalty cards - * Create a batch of loyalty cards in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). Customers can use loyalty cards to collect and spend loyalty points. **Important:** - The specified card-based loyalty program must have a defined card code format that is used to generate the loyalty card codes. - Trying to create more than 20,000 loyalty cards in a single request returns an error message with a `400` status code. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) + * Create a batch of loyalty cards in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * Customers can use loyalty cards to collect and spend loyalty points. + * **Important:** - The specified card-based loyalty program must have a defined + * card code format that is used to generate the loyalty card codes. - Trying to + * create more than 20,000 loyalty cards in a single request returns an error + * message with a `400` status code. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) * @return LoyaltyCardBatchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public LoyaltyCardBatchResponse createBatchLoyaltyCards(Integer loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { - ApiResponse localVarResp = createBatchLoyaltyCardsWithHttpInfo(loyaltyProgramId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public LoyaltyCardBatchResponse createBatchLoyaltyCards(Long loyaltyProgramId, LoyaltyCardBatch body) + throws ApiException { + ApiResponse localVarResp = createBatchLoyaltyCardsWithHttpInfo(loyaltyProgramId, + body); return localVarResp.getData(); } /** * Create loyalty cards - * Create a batch of loyalty cards in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). Customers can use loyalty cards to collect and spend loyalty points. **Important:** - The specified card-based loyalty program must have a defined card code format that is used to generate the loyalty card codes. - Trying to create more than 20,000 loyalty cards in a single request returns an error message with a `400` status code. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) + * Create a batch of loyalty cards in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * Customers can use loyalty cards to collect and spend loyalty points. + * **Important:** - The specified card-based loyalty program must have a defined + * card code format that is used to generate the loyalty card codes. - Trying to + * create more than 20,000 loyalty cards in a single request returns an error + * message with a `400` status code. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<LoyaltyCardBatchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse createBatchLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse createBatchLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, + LoyaltyCardBatch body) throws ApiException { okhttp3.Call localVarCall = createBatchLoyaltyCardsValidateBeforeCall(loyaltyProgramId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create loyalty cards (asynchronously) - * Create a batch of loyalty cards in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). Customers can use loyalty cards to collect and spend loyalty points. **Important:** - The specified card-based loyalty program must have a defined card code format that is used to generate the loyalty card codes. - Trying to create more than 20,000 loyalty cards in a single request returns an error message with a `400` status code. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Create a batch of loyalty cards in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * Customers can use loyalty cards to collect and spend loyalty points. + * **Important:** - The specified card-based loyalty program must have a defined + * card code format that is used to generate the loyalty card codes. - Trying to + * create more than 20,000 loyalty cards in a single request returns an error + * message with a `400` status code. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call createBatchLoyaltyCardsAsync(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call createBatchLoyaltyCardsAsync(Long loyaltyProgramId, LoyaltyCardBatch body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createBatchLoyaltyCardsValidateBeforeCall(loyaltyProgramId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCampaignFromTemplate - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createCampaignFromTemplateCall(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createCampaignFromTemplateCall(Long applicationId, CreateTemplateCampaign body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/create_campaign_from_template" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1329,7 +2173,7 @@ public okhttp3.Call createCampaignFromTemplateCall(Integer applicationId, Create Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1337,28 +2181,32 @@ public okhttp3.Call createCampaignFromTemplateCall(Integer applicationId, Create } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Long applicationId, CreateTemplateCampaign body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createCampaignFromTemplate(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createCampaignFromTemplate(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createCampaignFromTemplate(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling createCampaignFromTemplate(Async)"); } - okhttp3.Call localVarCall = createCampaignFromTemplateCall(applicationId, body, _callback); return localVarCall; @@ -1367,83 +2215,147 @@ private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Integer applic /** * Create campaign from campaign template - * Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications. If the template was created from a campaign with rules referencing [campaign collections](https://docs.talon.one/docs/product/campaigns/managing-collections), the corresponding collections for the new campaign are created automatically. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Use the campaign template referenced in the request body to create a new + * campaign in one of the connected Applications. If the template was created + * from a campaign with rules referencing [campaign + * collections](https://docs.talon.one/docs/product/campaigns/managing-collections), + * the corresponding collections for the new campaign are created automatically. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return CreateTemplateCampaignResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public CreateTemplateCampaignResponse createCampaignFromTemplate(Integer applicationId, CreateTemplateCampaign body) throws ApiException { - ApiResponse localVarResp = createCampaignFromTemplateWithHttpInfo(applicationId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public CreateTemplateCampaignResponse createCampaignFromTemplate(Long applicationId, CreateTemplateCampaign body) + throws ApiException { + ApiResponse localVarResp = createCampaignFromTemplateWithHttpInfo(applicationId, + body); return localVarResp.getData(); } /** * Create campaign from campaign template - * Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications. If the template was created from a campaign with rules referencing [campaign collections](https://docs.talon.one/docs/product/campaigns/managing-collections), the corresponding collections for the new campaign are created automatically. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Use the campaign template referenced in the request body to create a new + * campaign in one of the connected Applications. If the template was created + * from a campaign with rules referencing [campaign + * collections](https://docs.talon.one/docs/product/campaigns/managing-collections), + * the corresponding collections for the new campaign are created automatically. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<CreateTemplateCampaignResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public ApiResponse createCampaignFromTemplateWithHttpInfo(Integer applicationId, CreateTemplateCampaign body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public ApiResponse createCampaignFromTemplateWithHttpInfo(Long applicationId, + CreateTemplateCampaign body) throws ApiException { okhttp3.Call localVarCall = createCampaignFromTemplateValidateBeforeCall(applicationId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create campaign from campaign template (asynchronously) - * Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications. If the template was created from a campaign with rules referencing [campaign collections](https://docs.talon.one/docs/product/campaigns/managing-collections), the corresponding collections for the new campaign are created automatically. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Use the campaign template referenced in the request body to create a new + * campaign in one of the connected Applications. If the template was created + * from a campaign with rules referencing [campaign + * collections](https://docs.talon.one/docs/product/campaigns/managing-collections), + * the corresponding collections for the new campaign are created automatically. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createCampaignFromTemplateAsync(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createCampaignFromTemplateAsync(Long applicationId, CreateTemplateCampaign body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCampaignFromTemplateValidateBeforeCall(applicationId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCollection - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createCollectionCall(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createCollectionCall(Long applicationId, Long campaignId, NewCampaignCollection body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1451,7 +2363,7 @@ public okhttp3.Call createCollectionCall(Integer applicationId, Integer campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1459,33 +2371,36 @@ public okhttp3.Call createCollectionCall(Integer applicationId, Integer campaign } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCollectionValidateBeforeCall(Long applicationId, Long campaignId, + NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createCollection(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling createCollection(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCollection(Async)"); } - okhttp3.Call localVarCall = createCollectionCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -1495,18 +2410,31 @@ private okhttp3.Call createCollectionValidateBeforeCall(Integer applicationId, I /** * Create campaign-level collection * Create a campaign-level collection in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public Collection createCollection(Integer applicationId, Integer campaignId, NewCampaignCollection body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public Collection createCollection(Long applicationId, Long campaignId, NewCampaignCollection body) + throws ApiException { ApiResponse localVarResp = createCollectionWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -1514,68 +2442,118 @@ public Collection createCollection(Integer applicationId, Integer campaignId, Ne /** * Create campaign-level collection * Create a campaign-level collection in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public ApiResponse createCollectionWithHttpInfo(Integer applicationId, Integer campaignId, NewCampaignCollection body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public ApiResponse createCollectionWithHttpInfo(Long applicationId, Long campaignId, + NewCampaignCollection body) throws ApiException { okhttp3.Call localVarCall = createCollectionValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create campaign-level collection (asynchronously) * Create a campaign-level collection in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createCollectionAsync(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createCollectionAsync(Long applicationId, Long campaignId, NewCampaignCollection body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCollectionValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCoupons - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public okhttp3.Call createCouponsCall(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public okhttp3.Call createCouponsCall(Long applicationId, Long campaignId, NewCoupons body, String silent, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1587,7 +2565,7 @@ public okhttp3.Call createCouponsCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1595,33 +2573,35 @@ public okhttp3.Call createCouponsCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCouponsValidateBeforeCall(Long applicationId, Long campaignId, NewCoupons body, + String silent, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling createCoupons(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling createCoupons(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCoupons(Async)"); } - okhttp3.Call localVarCall = createCouponsCall(applicationId, campaignId, body, silent, _callback); return localVarCall; @@ -1630,92 +2610,180 @@ private okhttp3.Call createCouponsValidateBeforeCall(Integer applicationId, Inte /** * Create coupons - * Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Create coupons according to some pattern. Up to 20.000 coupons can be created + * without a unique prefix. When a unique prefix is provided, up to 200.000 + * coupons can be created. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") * @return InlineResponse20010 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public InlineResponse20010 createCoupons(Integer applicationId, Integer campaignId, NewCoupons body, String silent) throws ApiException { - ApiResponse localVarResp = createCouponsWithHttpInfo(applicationId, campaignId, body, silent); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public InlineResponse20010 createCoupons(Long applicationId, Long campaignId, NewCoupons body, String silent) + throws ApiException { + ApiResponse localVarResp = createCouponsWithHttpInfo(applicationId, campaignId, body, + silent); return localVarResp.getData(); } /** * Create coupons - * Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * Create coupons according to some pattern. Up to 20.000 coupons can be created + * without a unique prefix. When a unique prefix is provided, up to 200.000 + * coupons can be created. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") * @return ApiResponse<InlineResponse20010> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public ApiResponse createCouponsWithHttpInfo(Integer applicationId, Integer campaignId, NewCoupons body, String silent) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public ApiResponse createCouponsWithHttpInfo(Long applicationId, Long campaignId, + NewCoupons body, String silent) throws ApiException { okhttp3.Call localVarCall = createCouponsValidateBeforeCall(applicationId, campaignId, body, silent, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create coupons (asynchronously) - * Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param _callback The callback to be executed when the API call finishes + * Create coupons according to some pattern. Up to 20.000 coupons can be created + * without a unique prefix. When a unique prefix is provided, up to 200.000 + * coupons can be created. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public okhttp3.Call createCouponsAsync(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public okhttp3.Call createCouponsAsync(Long applicationId, Long campaignId, NewCoupons body, String silent, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsValidateBeforeCall(applicationId, campaignId, body, silent, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCouponsAsync - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call createCouponsAsyncCall(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call createCouponsAsyncCall(Long applicationId, Long campaignId, NewCouponCreationJob body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1723,7 +2791,7 @@ public okhttp3.Call createCouponsAsyncCall(Integer applicationId, Integer campai Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1731,33 +2799,37 @@ public okhttp3.Call createCouponsAsyncCall(Integer applicationId, Integer campai } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsAsyncValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCouponsAsyncValidateBeforeCall(Long applicationId, Long campaignId, + NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createCouponsAsync(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createCouponsAsync(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling createCouponsAsync(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling createCouponsAsync(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCouponsAsync(Async)"); } - okhttp3.Call localVarCall = createCouponsAsyncCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -1766,86 +2838,157 @@ private okhttp3.Call createCouponsAsyncValidateBeforeCall(Integer applicationId, /** * Create coupons asynchronously - * Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete. If you want to create less than 20,001 coupons, you can use the [Create coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Create up to 5,000,000 coupons asynchronously. You should typically use this + * enpdoint when you create at least 20,001 coupons. You receive an email when + * the creation is complete. If you want to create less than 20,001 coupons, you + * can use the [Create + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return AsyncCouponCreationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public AsyncCouponCreationResponse createCouponsAsync(Integer applicationId, Integer campaignId, NewCouponCreationJob body) throws ApiException { - ApiResponse localVarResp = createCouponsAsyncWithHttpInfo(applicationId, campaignId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public AsyncCouponCreationResponse createCouponsAsync(Long applicationId, Long campaignId, + NewCouponCreationJob body) throws ApiException { + ApiResponse localVarResp = createCouponsAsyncWithHttpInfo(applicationId, + campaignId, body); return localVarResp.getData(); } /** * Create coupons asynchronously - * Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete. If you want to create less than 20,001 coupons, you can use the [Create coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Create up to 5,000,000 coupons asynchronously. You should typically use this + * enpdoint when you create at least 20,001 coupons. You receive an email when + * the creation is complete. If you want to create less than 20,001 coupons, you + * can use the [Create + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<AsyncCouponCreationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse createCouponsAsyncWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponCreationJob body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse createCouponsAsyncWithHttpInfo(Long applicationId, Long campaignId, + NewCouponCreationJob body) throws ApiException { okhttp3.Call localVarCall = createCouponsAsyncValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create coupons asynchronously (asynchronously) - * Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete. If you want to create less than 20,001 coupons, you can use the [Create coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Create up to 5,000,000 coupons asynchronously. You should typically use this + * enpdoint when you create at least 20,001 coupons. You receive an email when + * the creation is complete. If you want to create less than 20,001 coupons, you + * can use the [Create + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call createCouponsAsyncAsync(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call createCouponsAsyncAsync(Long applicationId, Long campaignId, NewCouponCreationJob body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsAsyncValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCouponsDeletionJob - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
202 The deletion request has been accepted and will be processed asynchronously -
- */ - public okhttp3.Call createCouponsDeletionJobCall(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
202The deletion request has been accepted and will be + * processed asynchronously-
+ */ + public okhttp3.Call createCouponsDeletionJobCall(Long applicationId, Long campaignId, NewCouponDeletionJob body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_deletion_jobs" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1853,7 +2996,7 @@ public okhttp3.Call createCouponsDeletionJobCall(Integer applicationId, Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1861,33 +3004,38 @@ public okhttp3.Call createCouponsDeletionJobCall(Integer applicationId, Integer } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Long applicationId, Long campaignId, + NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createCouponsDeletionJob(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createCouponsDeletionJob(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling createCouponsDeletionJob(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling createCouponsDeletionJob(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createCouponsDeletionJob(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling createCouponsDeletionJob(Async)"); } - okhttp3.Call localVarCall = createCouponsDeletionJobCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -1896,88 +3044,156 @@ private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Integer applicat /** * Creates a coupon deletion job - * This endpoint handles creating a job to delete coupons asynchronously. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * This endpoint handles creating a job to delete coupons asynchronously. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return AsyncCouponDeletionJobResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
202 The deletion request has been accepted and will be processed asynchronously -
- */ - public AsyncCouponDeletionJobResponse createCouponsDeletionJob(Integer applicationId, Integer campaignId, NewCouponDeletionJob body) throws ApiException { - ApiResponse localVarResp = createCouponsDeletionJobWithHttpInfo(applicationId, campaignId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
202The deletion request has been accepted and will be + * processed asynchronously-
+ */ + public AsyncCouponDeletionJobResponse createCouponsDeletionJob(Long applicationId, Long campaignId, + NewCouponDeletionJob body) throws ApiException { + ApiResponse localVarResp = createCouponsDeletionJobWithHttpInfo(applicationId, + campaignId, body); return localVarResp.getData(); } /** * Creates a coupon deletion job - * This endpoint handles creating a job to delete coupons asynchronously. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * This endpoint handles creating a job to delete coupons asynchronously. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<AsyncCouponDeletionJobResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
202 The deletion request has been accepted and will be processed asynchronously -
- */ - public ApiResponse createCouponsDeletionJobWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponDeletionJob body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
202The deletion request has been accepted and will be + * processed asynchronously-
+ */ + public ApiResponse createCouponsDeletionJobWithHttpInfo(Long applicationId, + Long campaignId, NewCouponDeletionJob body) throws ApiException { okhttp3.Call localVarCall = createCouponsDeletionJobValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Creates a coupon deletion job (asynchronously) - * This endpoint handles creating a job to delete coupons asynchronously. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * This endpoint handles creating a job to delete coupons asynchronously. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
202 The deletion request has been accepted and will be processed asynchronously -
- */ - public okhttp3.Call createCouponsDeletionJobAsync(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createCouponsDeletionJobValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
202The deletion request has been accepted and will be + * processed asynchronously-
+ */ + public okhttp3.Call createCouponsDeletionJobAsync(Long applicationId, Long campaignId, NewCouponDeletionJob body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createCouponsDeletionJobValidateBeforeCall(applicationId, campaignId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createCouponsForMultipleRecipients - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public okhttp3.Call createCouponsForMultipleRecipientsCall(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public okhttp3.Call createCouponsForMultipleRecipientsCall(Long applicationId, Long campaignId, + NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1989,7 +3205,7 @@ public okhttp3.Call createCouponsForMultipleRecipientsCall(Integer applicationId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1997,35 +3213,41 @@ public okhttp3.Call createCouponsForMultipleRecipientsCall(Integer applicationId } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Long applicationId, Long campaignId, + NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling createCouponsForMultipleRecipients(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling createCouponsForMultipleRecipients(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling createCouponsForMultipleRecipients(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling createCouponsForMultipleRecipients(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createCouponsForMultipleRecipients(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling createCouponsForMultipleRecipients(Async)"); } - - okhttp3.Call localVarCall = createCouponsForMultipleRecipientsCall(applicationId, campaignId, body, silent, _callback); + okhttp3.Call localVarCall = createCouponsForMultipleRecipientsCall(applicationId, campaignId, body, silent, + _callback); return localVarCall; } @@ -2033,81 +3255,163 @@ private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Intege /** * Create coupons for multiple recipients * Create coupons according to some pattern for up to 1000 recipients. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") * @return InlineResponse20010 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public InlineResponse20010 createCouponsForMultipleRecipients(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { - ApiResponse localVarResp = createCouponsForMultipleRecipientsWithHttpInfo(applicationId, campaignId, body, silent); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public InlineResponse20010 createCouponsForMultipleRecipients(Long applicationId, Long campaignId, + NewCouponsForMultipleRecipients body, String silent) throws ApiException { + ApiResponse localVarResp = createCouponsForMultipleRecipientsWithHttpInfo(applicationId, + campaignId, body, silent); return localVarResp.getData(); } /** * Create coupons for multiple recipients * Create coupons according to some pattern for up to 1000 recipients. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") * @return ApiResponse<InlineResponse20010> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public ApiResponse createCouponsForMultipleRecipientsWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { - okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, body, silent, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public ApiResponse createCouponsForMultipleRecipientsWithHttpInfo(Long applicationId, + Long campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { + okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, + body, silent, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create coupons for multiple recipients (asynchronously) * Create coupons according to some pattern for up to 1000 recipients. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param silent Possible values: `yes` or `no`. - + * `yes`: Increases the performance of the API + * call by returning a 204 response. - `no`: + * Returns a 200 response that contains the updated + * customer profiles. (optional, default to + * "yes") + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
204 No Content -
- */ - public okhttp3.Call createCouponsForMultipleRecipientsAsync(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, body, silent, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
204No Content-
+ */ + public okhttp3.Call createCouponsForMultipleRecipientsAsync(Long applicationId, Long campaignId, + NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, + body, silent, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createInviteEmail - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createInviteEmailCall(NewInviteEmail body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -2121,7 +3425,7 @@ public okhttp3.Call createInviteEmailCall(NewInviteEmail body, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2129,23 +3433,25 @@ public okhttp3.Call createInviteEmailCall(NewInviteEmail body, final ApiCallback } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createInviteEmailValidateBeforeCall(NewInviteEmail body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createInviteEmailValidateBeforeCall(NewInviteEmail body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createInviteEmail(Async)"); } - okhttp3.Call localVarCall = createInviteEmailCall(body, _callback); return localVarCall; @@ -2154,15 +3460,26 @@ private okhttp3.Call createInviteEmailValidateBeforeCall(NewInviteEmail body, fi /** * Resend invitation email - * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. + * Resend an email invitation to an existing user. **Note:** The invitation + * token is valid for 24 hours after the email has been sent. + * * @param body body (required) * @return NewInviteEmail - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public NewInviteEmail createInviteEmail(NewInviteEmail body) throws ApiException { ApiResponse localVarResp = createInviteEmailWithHttpInfo(body); @@ -2171,53 +3488,88 @@ public NewInviteEmail createInviteEmail(NewInviteEmail body) throws ApiException /** * Resend invitation email - * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. + * Resend an email invitation to an existing user. **Note:** The invitation + * token is valid for 24 hours after the email has been sent. + * * @param body body (required) * @return ApiResponse<NewInviteEmail> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ApiResponse createInviteEmailWithHttpInfo(NewInviteEmail body) throws ApiException { okhttp3.Call localVarCall = createInviteEmailValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Resend invitation email (asynchronously) - * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. - * @param body body (required) + * Resend an email invitation to an existing user. **Note:** The invitation + * token is valid for 24 hours after the email has been sent. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call createInviteEmailAsync(NewInviteEmail body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call createInviteEmailAsync(NewInviteEmail body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createInviteEmailValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createInviteV2 - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createInviteV2Call(NewInvitation body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -2231,7 +3583,7 @@ public okhttp3.Call createInviteV2Call(NewInvitation body, final ApiCallback _ca Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2239,23 +3591,25 @@ public okhttp3.Call createInviteV2Call(NewInvitation body, final ApiCallback _ca } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createInviteV2ValidateBeforeCall(NewInvitation body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createInviteV2ValidateBeforeCall(NewInvitation body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createInviteV2(Async)"); } - okhttp3.Call localVarCall = createInviteV2Call(body, _callback); return localVarCall; @@ -2264,15 +3618,30 @@ private okhttp3.Call createInviteV2ValidateBeforeCall(NewInvitation body, final /** * Invite user - * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. + * Create a new user in the account and send an invitation to their email + * address. **Note**: The invitation token is valid for 24 hours after the email + * has been sent. You can resend an invitation to a user with the [Resend + * invitation + * email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) + * endpoint. + * * @param body body (required) * @return User - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public User createInviteV2(NewInvitation body) throws ApiException { ApiResponse localVarResp = createInviteV2WithHttpInfo(body); @@ -2281,55 +3650,98 @@ public User createInviteV2(NewInvitation body) throws ApiException { /** * Invite user - * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. + * Create a new user in the account and send an invitation to their email + * address. **Note**: The invitation token is valid for 24 hours after the email + * has been sent. You can resend an invitation to a user with the [Resend + * invitation + * email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) + * endpoint. + * * @param body body (required) * @return ApiResponse<User> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ApiResponse createInviteV2WithHttpInfo(NewInvitation body) throws ApiException { okhttp3.Call localVarCall = createInviteV2ValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Invite user (asynchronously) - * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. - * @param body body (required) + * Create a new user in the account and send an invitation to their email + * address. **Note**: The invitation token is valid for 24 hours after the email + * has been sent. You can resend an invitation to a user with the [Resend + * invitation + * email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) + * endpoint. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createInviteV2Async(NewInvitation body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInviteV2ValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createPasswordRecoveryEmail - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
- */ - public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
+ */ + public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2341,7 +3753,7 @@ public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2349,23 +3761,26 @@ public okhttp3.Call createPasswordRecoveryEmailCall(NewPasswordEmail body, final } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createPasswordRecoveryEmailValidateBeforeCall(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createPasswordRecoveryEmailValidateBeforeCall(NewPasswordEmail body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createPasswordRecoveryEmail(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling createPasswordRecoveryEmail(Async)"); } - okhttp3.Call localVarCall = createPasswordRecoveryEmailCall(body, _callback); return localVarCall; @@ -2374,15 +3789,27 @@ private okhttp3.Call createPasswordRecoveryEmailValidateBeforeCall(NewPasswordEm /** * Request a password reset - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Send an email with a password recovery link to the email address of an + * existing account. **Note:** The password recovery link expires 30 minutes + * after this endpoint is triggered. + * * @param body body (required) * @return NewPasswordEmail - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
*/ public NewPasswordEmail createPasswordRecoveryEmail(NewPasswordEmail body) throws ApiException { ApiResponse localVarResp = createPasswordRecoveryEmailWithHttpInfo(body); @@ -2391,53 +3818,91 @@ public NewPasswordEmail createPasswordRecoveryEmail(NewPasswordEmail body) throw /** * Request a password reset - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Send an email with a password recovery link to the email address of an + * existing account. **Note:** The password recovery link expires 30 minutes + * after this endpoint is triggered. + * * @param body body (required) * @return ApiResponse<NewPasswordEmail> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
- */ - public ApiResponse createPasswordRecoveryEmailWithHttpInfo(NewPasswordEmail body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
+ */ + public ApiResponse createPasswordRecoveryEmailWithHttpInfo(NewPasswordEmail body) + throws ApiException { okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Request a password reset (asynchronously) - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. - * @param body body (required) + * Send an email with a password recovery link to the email address of an + * existing account. **Note:** The password recovery link expires 30 minutes + * after this endpoint is triggered. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
- */ - public okhttp3.Call createPasswordRecoveryEmailAsync(NewPasswordEmail body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
+ */ + public okhttp3.Call createPasswordRecoveryEmailAsync(NewPasswordEmail body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPasswordRecoveryEmailValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createSession - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -2451,7 +3916,7 @@ public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2459,23 +3924,25 @@ public okhttp3.Call createSessionCall(LoginParams body, final ApiCallback _callb } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSession(Async)"); } - okhttp3.Call localVarCall = createSessionCall(body, _callback); return localVarCall; @@ -2484,15 +3951,36 @@ private okhttp3.Call createSessionValidateBeforeCall(LoginParams body, final Api /** * Create session - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Create a session to use the Management API endpoints. Use the value of the + * `token` property provided in the response as bearer token in other + * API calls. A token is valid for 3 months. In accordance with best pratices, + * use your generated token for all your API requests. Do **not** regenerate a + * token for each request. This endpoint has a rate limit of 3 to 6 requests per + * second per account, depending on your setup. <div + * class=\"redoc-section\"> <p + * class=\"title\">Granular API key</p> Instead of using + * a session, you can also use the <a + * href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management + * API key feature</a> in the Campaign Manager to decide which endpoints + * can be used with a given key. </div> + * * @param body body (required) * @return Session - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public Session createSession(LoginParams body) throws ApiException { ApiResponse localVarResp = createSessionWithHttpInfo(body); @@ -2501,63 +3989,128 @@ public Session createSession(LoginParams body) throws ApiException { /** * Create session - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Create a session to use the Management API endpoints. Use the value of the + * `token` property provided in the response as bearer token in other + * API calls. A token is valid for 3 months. In accordance with best pratices, + * use your generated token for all your API requests. Do **not** regenerate a + * token for each request. This endpoint has a rate limit of 3 to 6 requests per + * second per account, depending on your setup. <div + * class=\"redoc-section\"> <p + * class=\"title\">Granular API key</p> Instead of using + * a session, you can also use the <a + * href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management + * API key feature</a> in the Campaign Manager to decide which endpoints + * can be used with a given key. </div> + * * @param body body (required) * @return ApiResponse<Session> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ApiResponse createSessionWithHttpInfo(LoginParams body) throws ApiException { okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create session (asynchronously) - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> - * @param body body (required) + * Create a session to use the Management API endpoints. Use the value of the + * `token` property provided in the response as bearer token in other + * API calls. A token is valid for 3 months. In accordance with best pratices, + * use your generated token for all your API requests. Do **not** regenerate a + * token for each request. This endpoint has a rate limit of 3 to 6 requests per + * second per account, depending on your setup. <div + * class=\"redoc-section\"> <p + * class=\"title\">Granular API key</p> Instead of using + * a session, you can also use the <a + * href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management + * API key feature</a> in the Campaign Manager to decide which endpoints + * can be used with a given key. </div> + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call createSessionAsync(LoginParams body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSessionValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for createStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
- */ - public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
409Conflict. A store with this integration ID already + * exists for this application.-
+ */ + public okhttp3.Call createStoreCall(Long applicationId, NewStore body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/stores" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2565,7 +4118,7 @@ public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2573,28 +4126,30 @@ public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createStoreValidateBeforeCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call createStoreValidateBeforeCall(Long applicationId, NewStore body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling createStore(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStore(Async)"); } - okhttp3.Call localVarCall = createStoreCall(applicationId, body, _callback); return localVarCall; @@ -2604,19 +4159,39 @@ private okhttp3.Call createStoreValidateBeforeCall(Integer applicationId, NewSto /** * Create store * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return Store - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
- */ - public Store createStore(Integer applicationId, NewStore body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
409Conflict. A store with this integration ID already + * exists for this application.-
+ */ + public Store createStore(Long applicationId, NewStore body) throws ApiException { ApiResponse localVarResp = createStoreWithHttpInfo(applicationId, body); return localVarResp.getData(); } @@ -2624,60 +4199,114 @@ public Store createStore(Integer applicationId, NewStore body) throws ApiExcepti /** * Create store * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<Store> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
- */ - public ApiResponse createStoreWithHttpInfo(Integer applicationId, NewStore body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
409Conflict. A store with this integration ID already + * exists for this application.-
+ */ + public ApiResponse createStoreWithHttpInfo(Long applicationId, NewStore body) throws ApiException { okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create store (asynchronously) * Create a new store in a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
201 Created -
400 Bad request -
409 Conflict. A store with this integration ID already exists for this application. -
- */ - public okhttp3.Call createStoreAsync(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
400Bad request-
409Conflict. A store with this integration ID already + * exists for this application.-
+ */ + public okhttp3.Call createStoreAsync(Long applicationId, NewStore body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for deactivateUserByEmail - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deactivateUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deactivateUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2689,7 +4318,7 @@ public okhttp3.Call deactivateUserByEmailCall(DeleteUserRequest body, final ApiC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2697,23 +4326,25 @@ public okhttp3.Call deactivateUserByEmailCall(DeleteUserRequest body, final ApiC } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deactivateUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deactivateUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling deactivateUserByEmail(Async)"); } - okhttp3.Call localVarCall = deactivateUserByEmailCall(body, _callback); return localVarCall; @@ -2722,14 +4353,26 @@ private okhttp3.Call deactivateUserByEmailValidateBeforeCall(DeleteUserRequest b /** * Disable user by email address - * [Disable a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * [Disable a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public void deactivateUserByEmail(DeleteUserRequest body) throws ApiException { deactivateUserByEmailWithHttpInfo(body); @@ -2737,15 +4380,27 @@ public void deactivateUserByEmail(DeleteUserRequest body) throws ApiException { /** * Disable user by email address - * [Disable a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * [Disable a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public ApiResponse deactivateUserByEmailWithHttpInfo(DeleteUserRequest body) throws ApiException { okhttp3.Call localVarCall = deactivateUserByEmailValidateBeforeCall(body, null); @@ -2754,47 +4409,91 @@ public ApiResponse deactivateUserByEmailWithHttpInfo(DeleteUserRequest bod /** * Disable user by email address (asynchronously) - * [Disable a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. - * @param body body (required) + * [Disable a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deactivateUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deactivateUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deactivateUserByEmailValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deductLoyaltyCardPoints - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deductLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, + DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2802,7 +4501,7 @@ public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2810,33 +4509,37 @@ public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deductLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling deductLoyaltyCardPoints(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deductLoyaltyCardPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling deductLoyaltyCardPoints(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling deductLoyaltyCardPoints(Async)"); } - okhttp3.Call localVarCall = deductLoyaltyCardPointsCall(loyaltyProgramId, loyaltyCardId, body, _callback); return localVarCall; @@ -2845,89 +4548,203 @@ private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Integer loyaltyPr /** * Deduct points from card - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public void deductLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { + * Deduct points from the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public void deductLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) + throws ApiException { deductLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } /** * Deduct points from card - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * Deduct points from the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { - okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + DeductLoyaltyPoints body) throws ApiException { + okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + null); return localVarApiClient.execute(localVarCall); } /** * Deduct points from card (asynchronously) - * Deduct points from the given loyalty card in the specified card-based loyalty program. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Deduct points from the given loyalty card in the specified card-based loyalty + * program. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deductLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deductLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, + DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public okhttp3.Call deleteAccountCollectionCall(Long collectionId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/collections/{collectionId}" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2935,7 +4752,7 @@ public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2943,23 +4760,26 @@ public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiC } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Long collectionId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling deleteAccountCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling deleteAccountCollection(Async)"); } - okhttp3.Call localVarCall = deleteAccountCollectionCall(collectionId, _callback); return localVarCall; @@ -2969,33 +4789,67 @@ private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Integer collectio /** * Delete account-level collection * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public void deleteAccountCollection(Integer collectionId) throws ApiException { + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public void deleteAccountCollection(Long collectionId) throws ApiException { deleteAccountCollectionWithHttpInfo(collectionId); } /** * Delete account-level collection * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public ApiResponse deleteAccountCollectionWithHttpInfo(Long collectionId) throws ApiException { okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, null); return localVarApiClient.execute(localVarCall); } @@ -3003,47 +4857,89 @@ public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionI /** * Delete account-level collection (asynchronously) * Delete a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public okhttp3.Call deleteAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public okhttp3.Call deleteAccountCollectionAsync(Long collectionId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteAchievement - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deleteAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deleteAchievementCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3051,7 +4947,7 @@ public okhttp3.Call deleteAchievementCall(Integer applicationId, Integer campaig Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3059,33 +4955,37 @@ public okhttp3.Call deleteAchievementCall(Integer applicationId, Integer campaig } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteAchievement(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling deleteAchievement(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteAchievement(Async)"); } - + // verify the required parameter 'achievementId' is set if (achievementId == null) { - throw new ApiException("Missing the required parameter 'achievementId' when calling deleteAchievement(Async)"); + throw new ApiException( + "Missing the required parameter 'achievementId' when calling deleteAchievement(Async)"); } - okhttp3.Call localVarCall = deleteAchievementCall(applicationId, campaignId, achievementId, _callback); return localVarCall; @@ -3095,39 +4995,86 @@ private okhttp3.Call deleteAchievementValidateBeforeCall(Integer applicationId, /** * Delete achievement * Delete the specified achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public void deleteAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public void deleteAchievement(Long applicationId, Long campaignId, Long achievementId) throws ApiException { deleteAchievementWithHttpInfo(applicationId, campaignId, achievementId); } /** * Delete achievement * Delete the specified achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse deleteAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public ApiResponse deleteAchievementWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) + throws ApiException { okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); return localVarApiClient.execute(localVarCall); } @@ -3135,46 +5082,84 @@ public ApiResponse deleteAchievementWithHttpInfo(Integer applicationId, In /** * Delete achievement (asynchronously) * Delete the specified achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deleteAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deleteAchievementAsync(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCampaign - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCampaignCall(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3182,7 +5167,7 @@ public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3190,28 +5175,30 @@ public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCampaignValidateBeforeCall(Long applicationId, Long campaignId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCampaign(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCampaign(Async)"); } - okhttp3.Call localVarCall = deleteCampaignCall(applicationId, campaignId, _callback); return localVarCall; @@ -3221,33 +5208,57 @@ private okhttp3.Call deleteCampaignValidateBeforeCall(Integer applicationId, Int /** * Delete campaign * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void deleteCampaign(Integer applicationId, Integer campaignId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void deleteCampaign(Long applicationId, Long campaignId) throws ApiException { deleteCampaignWithHttpInfo(applicationId, campaignId); } /** * Delete campaign * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse deleteCampaignWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, null); return localVarApiClient.execute(localVarCall); } @@ -3255,46 +5266,79 @@ public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integ /** * Delete campaign (asynchronously) * Delete the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCampaignAsync(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCollection - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
+ */ + public okhttp3.Call deleteCollectionCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3302,7 +5346,7 @@ public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3310,33 +5354,37 @@ public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaign } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling deleteCollection(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCollection(Async)"); } - + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling deleteCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling deleteCollection(Async)"); } - okhttp3.Call localVarCall = deleteCollectionCall(applicationId, campaignId, collectionId, _callback); return localVarCall; @@ -3346,37 +5394,76 @@ private okhttp3.Call deleteCollectionValidateBeforeCall(Integer applicationId, I /** * Delete campaign-level collection * Delete a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
- */ - public void deleteCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
+ */ + public void deleteCollection(Long applicationId, Long campaignId, Long collectionId) throws ApiException { deleteCollectionWithHttpInfo(applicationId, campaignId, collectionId); } /** * Delete campaign-level collection * Delete a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
+ */ + public ApiResponse deleteCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) + throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); return localVarApiClient.execute(localVarCall); } @@ -3384,47 +5471,84 @@ public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Int /** * Delete campaign-level collection (asynchronously) * Delete a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
+ */ + public okhttp3.Call deleteCollectionAsync(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCoupon - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCouponCall(Long applicationId, Long campaignId, String couponId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3432,7 +5556,7 @@ public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3440,33 +5564,35 @@ public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCouponValidateBeforeCall(Long applicationId, Long campaignId, String couponId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupon(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupon(Async)"); } - + // verify the required parameter 'couponId' is set if (couponId == null) { throw new ApiException("Missing the required parameter 'couponId' when calling deleteCoupon(Async)"); } - okhttp3.Call localVarCall = deleteCouponCall(applicationId, campaignId, couponId, _callback); return localVarCall; @@ -3476,35 +5602,66 @@ private okhttp3.Call deleteCouponValidateBeforeCall(Integer applicationId, Integ /** * Delete coupon * Delete the specified coupon. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void deleteCoupon(Integer applicationId, Integer campaignId, String couponId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void deleteCoupon(Long applicationId, Long campaignId, String couponId) throws ApiException { deleteCouponWithHttpInfo(applicationId, campaignId, couponId); } /** * Delete coupon * Delete the specified coupon. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse deleteCouponWithHttpInfo(Long applicationId, Long campaignId, String couponId) + throws ApiException { okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, null); return localVarApiClient.execute(localVarCall); } @@ -3512,57 +5669,135 @@ public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer /** * Delete coupon (asynchronously) * Delete the specified coupon. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCouponAsync(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCouponAsync(Long applicationId, Long campaignId, String couponId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteCoupons - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which + * the expiration date is set and in the past. - + * `validNow`: Matches coupons in which + * start date is null or in the past and + * expiration date is null or in the future. - + * `validFuture`: Matches coupons in + * which start date is set and in the future. + * (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where + * `usageCounter < usageLimit` will + * be returned. - `false`: only coupons + * where `usageCounter >= + * usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * `RecipientIntegrationId` field. + * (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code (optional, + * default to false) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCouponsCall(Long applicationId, Long campaignId, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, + OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, + String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3611,7 +5846,8 @@ public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, } if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); } if (exactMatch != null) { @@ -3622,7 +5858,7 @@ public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3630,30 +5866,37 @@ public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteCouponsValidateBeforeCall(Long applicationId, Long campaignId, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, + OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, + String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCoupons(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCoupons(Async)"); } - - okhttp3.Call localVarCall = deleteCouponsCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + okhttp3.Call localVarCall = deleteCouponsCall(applicationId, campaignId, value, createdBefore, createdAfter, + startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, + recipientIntegrationId, exactMatch, _callback); return localVarCall; } @@ -3661,118 +5904,337 @@ private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Inte /** * Delete coupons * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void deleteCoupons(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { - deleteCouponsWithHttpInfo(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which + * the expiration date is set and in the past. - + * `validNow`: Matches coupons in which + * start date is null or in the past and + * expiration date is null or in the future. - + * `validFuture`: Matches coupons in + * which start date is set and in the future. + * (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where + * `usageCounter < usageLimit` will + * be returned. - `false`: only coupons + * where `usageCounter >= + * usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * `RecipientIntegrationId` field. + * (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code (optional, + * default to false) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void deleteCoupons(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, + OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, + Long referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { + deleteCouponsWithHttpInfo(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, + startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, + exactMatch); } /** * Delete coupons * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which + * the expiration date is set and in the past. - + * `validNow`: Matches coupons in which + * start date is null or in the past and + * expiration date is null or in the future. - + * `validFuture`: Matches coupons in + * which start date is set and in the future. + * (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where + * `usageCounter < usageLimit` will + * be returned. - `false`: only coupons + * where `usageCounter >= + * usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * `RecipientIntegrationId` field. + * (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code (optional, + * default to false) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse deleteCouponsWithHttpInfo(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { - okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, null); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse deleteCouponsWithHttpInfo(Long applicationId, Long campaignId, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, + OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, + String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch) + throws ApiException { + okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, + createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, + referralId, recipientIntegrationId, exactMatch, null); return localVarApiClient.execute(localVarCall); } /** * Delete coupons (asynchronously) * Deletes all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param usable - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code (optional, default to false) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param valid - `expired`: Matches coupons in which + * the expiration date is set and in the past. - + * `validNow`: Matches coupons in which + * start date is null or in the past and + * expiration date is null or in the future. - + * `validFuture`: Matches coupons in + * which start date is set and in the future. + * (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param usable - `true`: only coupons where + * `usageCounter < usageLimit` will + * be returned. - `false`: only coupons + * where `usageCounter >= + * usageLimit` will be returned. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * `RecipientIntegrationId` field. + * (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code (optional, + * default to false) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteCouponsAsync(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteCouponsAsync(Long applicationId, Long campaignId, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, + OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, + String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, + createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, + referralId, recipientIntegrationId, exactMatch, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deleteLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3780,7 +6242,7 @@ public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3788,28 +6250,32 @@ public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyal } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling deleteLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling deleteLoyaltyCard(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling deleteLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling deleteLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = deleteLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, _callback); return localVarCall; @@ -3819,37 +6285,88 @@ private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Integer loyaltyProgramI /** * Delete loyalty card * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public void deleteLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public void deleteLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { deleteLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); } /** * Delete loyalty card * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public ApiResponse deleteLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId) + throws ApiException { okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); return localVarApiClient.execute(localVarCall); } @@ -3857,47 +6374,87 @@ public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, /** * Delete loyalty card (asynchronously) * Delete the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
204 No Content -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call deleteLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call deleteLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteReferral - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteReferralCall(Long applicationId, Long campaignId, String referralId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3905,7 +6462,7 @@ public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3913,33 +6470,35 @@ public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteReferralValidateBeforeCall(Long applicationId, Long campaignId, String referralId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling deleteReferral(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling deleteReferral(Async)"); } - + // verify the required parameter 'referralId' is set if (referralId == null) { throw new ApiException("Missing the required parameter 'referralId' when calling deleteReferral(Async)"); } - okhttp3.Call localVarCall = deleteReferralCall(applicationId, campaignId, referralId, _callback); return localVarCall; @@ -3949,35 +6508,60 @@ private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Int /** * Delete referral * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void deleteReferral(Integer applicationId, Integer campaignId, String referralId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void deleteReferral(Long applicationId, Long campaignId, String referralId) throws ApiException { deleteReferralWithHttpInfo(applicationId, campaignId, referralId); } /** * Delete referral * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse deleteReferralWithHttpInfo(Long applicationId, Long campaignId, String referralId) + throws ApiException { okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, null); return localVarApiClient.execute(localVarCall); } @@ -3985,45 +6569,76 @@ public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integ /** * Delete referral (asynchronously) * Delete the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteReferralAsync(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteReferralAsync(Long applicationId, Long campaignId, String referralId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public okhttp3.Call deleteStoreCall(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/stores/{storeId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4031,7 +6646,7 @@ public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4039,28 +6654,30 @@ public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteStoreValidateBeforeCall(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling deleteStore(Async)"); } - + // verify the required parameter 'storeId' is set if (storeId == null) { throw new ApiException("Missing the required parameter 'storeId' when calling deleteStore(Async)"); } - okhttp3.Call localVarCall = deleteStoreCall(applicationId, storeId, _callback); return localVarCall; @@ -4070,35 +6687,69 @@ private okhttp3.Call deleteStoreValidateBeforeCall(Integer applicationId, String /** * Delete store * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public void deleteStore(Integer applicationId, String storeId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public void deleteStore(Long applicationId, String storeId) throws ApiException { deleteStoreWithHttpInfo(applicationId, storeId); } /** * Delete store * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public ApiResponse deleteStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public ApiResponse deleteStoreWithHttpInfo(Long applicationId, String storeId) throws ApiException { okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, null); return localVarApiClient.execute(localVarCall); } @@ -4106,42 +6757,70 @@ public ApiResponse deleteStoreWithHttpInfo(Integer applicationId, String s /** * Delete store (asynchronously) * Delete the specified store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
204 No Content -
404 Not found -
- */ - public okhttp3.Call deleteStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
404Not found-
+ */ + public okhttp3.Call deleteStoreAsync(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteUser - * @param userId The ID of the user. (required) + * + * @param userId The ID of the user. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteUserCall(Long userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4149,7 +6828,7 @@ public okhttp3.Call deleteUserCall(Integer userId, final ApiCallback _callback) Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4157,23 +6836,24 @@ public okhttp3.Call deleteUserCall(Integer userId, final ApiCallback _callback) } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling deleteUser(Async)"); } - okhttp3.Call localVarCall = deleteUserCall(userId, _callback); return localVarCall; @@ -4183,31 +6863,51 @@ private okhttp3.Call deleteUserValidateBeforeCall(Integer userId, final ApiCallb /** * Delete user * Delete a specific user. + * * @param userId The ID of the user. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void deleteUser(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void deleteUser(Long userId) throws ApiException { deleteUserWithHttpInfo(userId); } /** * Delete user * Delete a specific user. + * * @param userId The ID of the user. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse deleteUserWithHttpInfo(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse deleteUserWithHttpInfo(Long userId) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, null); return localVarApiClient.execute(localVarCall); } @@ -4215,33 +6915,53 @@ public ApiResponse deleteUserWithHttpInfo(Integer userId) throws ApiExcept /** * Delete user (asynchronously) * Delete a specific user. - * @param userId The ID of the user. (required) + * + * @param userId The ID of the user. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteUserAsync(Long userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for deleteUserByEmail - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public okhttp3.Call deleteUserByEmailCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -4255,7 +6975,7 @@ public okhttp3.Call deleteUserByEmailCall(DeleteUserRequest body, final ApiCallb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4263,23 +6983,25 @@ public okhttp3.Call deleteUserByEmailCall(DeleteUserRequest body, final ApiCallb } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call deleteUserByEmailValidateBeforeCall(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling deleteUserByEmail(Async)"); } - okhttp3.Call localVarCall = deleteUserByEmailCall(body, _callback); return localVarCall; @@ -4288,14 +7010,26 @@ private okhttp3.Call deleteUserByEmailValidateBeforeCall(DeleteUserRequest body, /** * Delete user by email address - * [Delete a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) by their email address. + * [Delete a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) + * by their email address. + * * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public void deleteUserByEmail(DeleteUserRequest body) throws ApiException { deleteUserByEmailWithHttpInfo(body); @@ -4303,15 +7037,27 @@ public void deleteUserByEmail(DeleteUserRequest body) throws ApiException { /** * Delete user by email address - * [Delete a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) by their email address. + * [Delete a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) + * by their email address. + * * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public ApiResponse deleteUserByEmailWithHttpInfo(DeleteUserRequest body) throws ApiException { okhttp3.Call localVarCall = deleteUserByEmailValidateBeforeCall(body, null); @@ -4320,33 +7066,56 @@ public ApiResponse deleteUserByEmailWithHttpInfo(DeleteUserRequest body) t /** * Delete user by email address (asynchronously) - * [Delete a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) by their email address. - * @param body body (required) + * [Delete a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) + * by their email address. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call deleteUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call deleteUserByEmailAsync(DeleteUserRequest body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = deleteUserByEmailValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for destroySession + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -4360,7 +7129,7 @@ public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiEx Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4368,18 +7137,19 @@ public okhttp3.Call destroySessionCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call destroySessionValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = destroySessionCall(_callback); return localVarCall; @@ -4389,12 +7159,22 @@ private okhttp3.Call destroySessionValidateBeforeCall(final ApiCallback _callbac /** * Destroy session * Destroys the session. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public void destroySession() throws ApiException { destroySessionWithHttpInfo(); @@ -4403,13 +7183,23 @@ public void destroySession() throws ApiException { /** * Destroy session * Destroys the session. + * * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public ApiResponse destroySessionWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = destroySessionValidateBeforeCall(null); @@ -4419,14 +7209,24 @@ public ApiResponse destroySessionWithHttpInfo() throws ApiException { /** * Destroy session (asynchronously) * Destroys the session. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
*/ public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throws ApiException { @@ -4434,29 +7234,54 @@ public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throw localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for disconnectCampaignStores - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call disconnectCampaignStoresCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call disconnectCampaignStoresCall(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4464,7 +7289,7 @@ public okhttp3.Call disconnectCampaignStoresCall(Integer applicationId, Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4472,28 +7297,32 @@ public okhttp3.Call disconnectCampaignStoresCall(Integer applicationId, Integer } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling disconnectCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling disconnectCampaignStores(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling disconnectCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling disconnectCampaignStores(Async)"); } - okhttp3.Call localVarCall = disconnectCampaignStoresCall(applicationId, campaignId, _callback); return localVarCall; @@ -4503,39 +7332,88 @@ private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Integer applicat /** * Disconnect stores * Disconnect the stores linked to a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public void disconnectCampaignStores(Integer applicationId, Integer campaignId) throws ApiException { + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public void disconnectCampaignStores(Long applicationId, Long campaignId) throws ApiException { disconnectCampaignStoresWithHttpInfo(applicationId, campaignId); } /** * Disconnect stores * Disconnect the stores linked to a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse disconnectCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse disconnectCampaignStoresWithHttpInfo(Long applicationId, Long campaignId) + throws ApiException { okhttp3.Call localVarCall = disconnectCampaignStoresValidateBeforeCall(applicationId, campaignId, null); return localVarApiClient.execute(localVarCall); } @@ -4543,46 +7421,93 @@ public ApiResponse disconnectCampaignStoresWithHttpInfo(Integer applicatio /** * Disconnect stores (asynchronously) * Disconnect the stores linked to a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call disconnectCampaignStoresAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call disconnectCampaignStoresAsync(Long applicationId, Long campaignId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = disconnectCampaignStoresValidateBeforeCall(applicationId, campaignId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for exportAccountCollectionItems - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportAccountCollectionItemsCall(Long collectionId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/collections/{collectionId}/export" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4590,7 +7515,7 @@ public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4598,23 +7523,26 @@ public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Long collectionId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling exportAccountCollectionItems(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling exportAccountCollectionItems(Async)"); } - okhttp3.Call localVarCall = exportAccountCollectionItemsCall(collectionId, _callback); return localVarCall; @@ -4623,90 +7551,193 @@ private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Integer coll /** * Export account-level collection's items - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Download a CSV file containing items from a given account-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public String exportAccountCollectionItems(Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public String exportAccountCollectionItems(Long collectionId) throws ApiException { ApiResponse localVarResp = exportAccountCollectionItemsWithHttpInfo(collectionId); return localVarResp.getData(); } /** * Export account-level collection's items - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * Download a CSV file containing items from a given account-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse exportAccountCollectionItemsWithHttpInfo(Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse exportAccountCollectionItemsWithHttpInfo(Long collectionId) throws ApiException { okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export account-level collection's items (asynchronously) - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing items from a given account-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportAccountCollectionItemsAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportAccountCollectionItemsAsync(Long collectionId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportAchievements - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportAchievementsCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportAchievementsCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4714,7 +7745,7 @@ public okhttp3.Call exportAchievementsCall(Integer applicationId, Integer campai Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4722,33 +7753,38 @@ public okhttp3.Call exportAchievementsCall(Integer applicationId, Integer campai } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportAchievementsValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportAchievements(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling exportAchievements(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling exportAchievements(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling exportAchievements(Async)"); } - + // verify the required parameter 'achievementId' is set if (achievementId == null) { - throw new ApiException("Missing the required parameter 'achievementId' when calling exportAchievements(Async)"); + throw new ApiException( + "Missing the required parameter 'achievementId' when calling exportAchievements(Async)"); } - okhttp3.Call localVarCall = exportAchievementsCall(applicationId, campaignId, achievementId, _callback); return localVarCall; @@ -4757,95 +7793,247 @@ private okhttp3.Call exportAchievementsValidateBeforeCall(Integer applicationId, /** * Export achievement customer data - * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * Download a CSV file containing a list of all the customers who have + * participated in and are currently participating in the given achievement. The + * CSV file contains the following columns: - `profileIntegrationID`: + * The integration ID of the customer profile participating in the achievement. + * - `title`: The display name of the achievement in the Campaign + * Manager. - `target`: The required number of actions or the + * transactional milestone to complete the achievement. - `progress`: + * The current progress of the customer in the achievement. - + * `status`: The status of the achievement. Can be one of: + * ['inprogress', 'completed', 'expired']. - + * `startDate`: The date on which the customer profile started the + * achievement in RFC3339. - `endDate`: The date on which the + * achievement ends and resets for the customer profile in RFC3339. - + * `completionDate`: The date on which the customer profile completed + * the achievement in RFC3339. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public String exportAchievements(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public String exportAchievements(Long applicationId, Long campaignId, Long achievementId) throws ApiException { ApiResponse localVarResp = exportAchievementsWithHttpInfo(applicationId, campaignId, achievementId); return localVarResp.getData(); } /** * Export achievement customer data - * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * Download a CSV file containing a list of all the customers who have + * participated in and are currently participating in the given achievement. The + * CSV file contains the following columns: - `profileIntegrationID`: + * The integration ID of the customer profile participating in the achievement. + * - `title`: The display name of the achievement in the Campaign + * Manager. - `target`: The required number of actions or the + * transactional milestone to complete the achievement. - `progress`: + * The current progress of the customer in the achievement. - + * `status`: The status of the achievement. Can be one of: + * ['inprogress', 'completed', 'expired']. - + * `startDate`: The date on which the customer profile started the + * achievement in RFC3339. - `endDate`: The date on which the + * achievement ends and resets for the customer profile in RFC3339. - + * `completionDate`: The date on which the customer profile completed + * the achievement in RFC3339. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse exportAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { - okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse exportAchievementsWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) + throws ApiException { + okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export achievement customer data (asynchronously) - * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing a list of all the customers who have + * participated in and are currently participating in the given achievement. The + * CSV file contains the following columns: - `profileIntegrationID`: + * The integration ID of the customer profile participating in the achievement. + * - `title`: The display name of the achievement in the Campaign + * Manager. - `target`: The required number of actions or the + * transactional milestone to complete the achievement. - `progress`: + * The current progress of the customer in the achievement. - + * `status`: The status of the achievement. Can be one of: + * ['inprogress', 'completed', 'expired']. - + * `startDate`: The date on which the customer profile started the + * achievement in RFC3339. - `endDate`: The date on which the + * achievement ends and resets for the customer profile in RFC3339. - + * `completionDate`: The date on which the customer profile completed + * the achievement in RFC3339. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportAchievementsAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportAchievementsAsync(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportAudiencesMemberships + * * @param audienceId The ID of the audience. (required) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportAudiencesMembershipsCall(Integer audienceId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportAudiencesMembershipsCall(Long audienceId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/audiences/{audienceId}/memberships/export" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4853,7 +8041,7 @@ public okhttp3.Call exportAudiencesMembershipsCall(Integer audienceId, final Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4861,23 +8049,26 @@ public okhttp3.Call exportAudiencesMembershipsCall(Integer audienceId, final Api } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Long audienceId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling exportAudiencesMemberships(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceId' when calling exportAudiencesMemberships(Async)"); } - okhttp3.Call localVarCall = exportAudiencesMembershipsCall(audienceId, _callback); return localVarCall; @@ -4886,91 +8077,200 @@ private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Integer audien /** * Export audience members - * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * Download a CSV file containing the integration IDs of the members of an + * audience. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The file contains the following column: - `profileintegrationid`: + * The integration ID of the customer profile. + * * @param audienceId The ID of the audience. (required) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public String exportAudiencesMemberships(Integer audienceId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public String exportAudiencesMemberships(Long audienceId) throws ApiException { ApiResponse localVarResp = exportAudiencesMembershipsWithHttpInfo(audienceId); return localVarResp.getData(); } /** * Export audience members - * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * Download a CSV file containing the integration IDs of the members of an + * audience. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The file contains the following column: - `profileintegrationid`: + * The integration ID of the customer profile. + * * @param audienceId The ID of the audience. (required) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse exportAudiencesMembershipsWithHttpInfo(Integer audienceId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse exportAudiencesMembershipsWithHttpInfo(Long audienceId) throws ApiException { okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export audience members (asynchronously) - * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * Download a CSV file containing the integration IDs of the members of an + * audience. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The file contains the following column: - `profileintegrationid`: + * The integration ID of the customer profile. + * * @param audienceId The ID of the audience. (required) - * @param _callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportAudiencesMembershipsAsync(Integer audienceId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportAudiencesMembershipsAsync(Long audienceId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportCampaignStores - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportCampaignStoresCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportCampaignStoresCall(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/export" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4978,7 +8278,7 @@ public okhttp3.Call exportCampaignStoresCall(Integer applicationId, Integer camp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4986,28 +8286,32 @@ public okhttp3.Call exportCampaignStoresCall(Integer applicationId, Integer camp } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling exportCampaignStores(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling exportCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling exportCampaignStores(Async)"); } - okhttp3.Call localVarCall = exportCampaignStoresCall(applicationId, campaignId, _callback); return localVarCall; @@ -5016,95 +8320,210 @@ private okhttp3.Call exportCampaignStoresValidateBeforeCall(Integer applicationI /** * Export stores - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Download a CSV file containing the stores linked to a specific campaign. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following column: - + * `store_integration_id`: The identifier of the store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public String exportCampaignStores(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public String exportCampaignStores(Long applicationId, Long campaignId) throws ApiException { ApiResponse localVarResp = exportCampaignStoresWithHttpInfo(applicationId, campaignId); return localVarResp.getData(); } /** * Export stores - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * Download a CSV file containing the stores linked to a specific campaign. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following column: - + * `store_integration_id`: The identifier of the store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse exportCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse exportCampaignStoresWithHttpInfo(Long applicationId, Long campaignId) + throws ApiException { okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export stores (asynchronously) - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the stores linked to a specific campaign. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following column: - + * `store_integration_id`: The identifier of the store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call exportCampaignStoresAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call exportCampaignStoresAsync(Long applicationId, Long campaignId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportCollectionItems - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportCollectionItemsCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportCollectionItemsCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5112,7 +8531,7 @@ public okhttp3.Call exportCollectionItemsCall(Integer applicationId, Integer cam Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5120,33 +8539,38 @@ public okhttp3.Call exportCollectionItemsCall(Integer applicationId, Integer cam } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCollectionItemsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportCollectionItemsValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportCollectionItems(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling exportCollectionItems(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling exportCollectionItems(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling exportCollectionItems(Async)"); } - + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling exportCollectionItems(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling exportCollectionItems(Async)"); } - okhttp3.Call localVarCall = exportCollectionItemsCall(applicationId, campaignId, collectionId, _callback); return localVarCall; @@ -5155,103 +8579,251 @@ private okhttp3.Call exportCollectionItemsValidateBeforeCall(Integer application /** * Export campaign-level collection's items - * Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * Download a CSV file containing items from a given campaign-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public String exportCollectionItems(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public String exportCollectionItems(Long applicationId, Long campaignId, Long collectionId) throws ApiException { ApiResponse localVarResp = exportCollectionItemsWithHttpInfo(applicationId, campaignId, collectionId); return localVarResp.getData(); } /** * Export campaign-level collection's items - * Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * Download a CSV file containing items from a given campaign-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse exportCollectionItemsWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { - okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public ApiResponse exportCollectionItemsWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) + throws ApiException { + okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export campaign-level collection's items (asynchronously) - * Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing items from a given campaign-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportCollectionItemsAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportCollectionItemsAsync(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportCoupons - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile id + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCouponsCall(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCouponsCall(Long applicationId, BigDecimal campaignId, String sort, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, + Boolean valuesOnly, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/export_coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5288,7 +8860,8 @@ public okhttp3.Call exportCouponsCall(Integer applicationId, BigDecimal campaign } if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); } if (batchId != null) { @@ -5315,7 +8888,7 @@ public okhttp3.Call exportCouponsCall(Integer applicationId, BigDecimal campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5323,149 +8896,465 @@ public okhttp3.Call exportCouponsCall(Integer applicationId, BigDecimal campaign } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCouponsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportCouponsValidateBeforeCall(Long applicationId, BigDecimal campaignId, String sort, + String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, + Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, + String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling exportCoupons(Async)"); } - - okhttp3.Call localVarCall = exportCouponsCall(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly, _callback); + okhttp3.Call localVarCall = exportCouponsCall(applicationId, campaignId, sort, value, createdBefore, + createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, + campaignState, valuesOnly, _callback); return localVarCall; } /** * Export coupons - * Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date in RFC3339 of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon can be reserved for multiple customers. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) + * Download a CSV file containing the coupons that match the given properties. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file can contain the following columns: - `accountid`: The + * ID of your deployment. - `applicationid`: The ID of the Application + * this coupon is related to. - `attributes`: A json object describing + * _custom_ referral attribute names and their values. - `batchid`: + * The ID of the batch this coupon is part of. - `campaignid`: The ID + * of the campaign this coupon is related to. - `counter`: The number + * of times this coupon has been redeemed. - `created`: The creation + * date in RFC3339 of the coupon code. - `deleted`: Whether the coupon + * code is deleted. - `deleted_changelogid`: The ID of the delete + * event in the logs. - `discount_counter`: The amount of discount + * given by this coupon. - `discount_limitval`: The maximum discount + * amount that can be given be this coupon. - `expirydate`: The end + * date in RFC3339 of the code redemption period. - `id`: The internal + * ID of the coupon code. - `importid`: The ID of the import job that + * created this coupon. - `is_reservation_mandatory`: Whether this + * coupon requires a reservation to be redeemed. - `limits`: The + * limits set on this coupon. - `limitval`: The maximum number of + * redemptions of this code. - `recipientintegrationid`: The + * integration ID of the recipient of the coupon. Only the customer with this + * integration ID can redeem this code. Available only for personal codes. - + * `referralid`: The ID of the referral code that triggered the + * creation of this coupon (create coupon effect). - `reservation`: + * Whether the coupon can be reserved for multiple customers. - + * `reservation_counter`: How many times this coupon has been + * reserved. - `reservation_limitval`: The maximum of number of + * reservations this coupon can have. - `startdate`: The start date in + * RFC3339 of the code redemption period. - `value`: The coupon code. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile id + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportCoupons(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { - ApiResponse localVarResp = exportCouponsWithHttpInfo(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportCoupons(Long applicationId, BigDecimal campaignId, String sort, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, + Boolean valuesOnly) throws ApiException { + ApiResponse localVarResp = exportCouponsWithHttpInfo(applicationId, campaignId, sort, value, + createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, + dateFormat, campaignState, valuesOnly); return localVarResp.getData(); } /** * Export coupons - * Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date in RFC3339 of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon can be reserved for multiple customers. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) + * Download a CSV file containing the coupons that match the given properties. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file can contain the following columns: - `accountid`: The + * ID of your deployment. - `applicationid`: The ID of the Application + * this coupon is related to. - `attributes`: A json object describing + * _custom_ referral attribute names and their values. - `batchid`: + * The ID of the batch this coupon is part of. - `campaignid`: The ID + * of the campaign this coupon is related to. - `counter`: The number + * of times this coupon has been redeemed. - `created`: The creation + * date in RFC3339 of the coupon code. - `deleted`: Whether the coupon + * code is deleted. - `deleted_changelogid`: The ID of the delete + * event in the logs. - `discount_counter`: The amount of discount + * given by this coupon. - `discount_limitval`: The maximum discount + * amount that can be given be this coupon. - `expirydate`: The end + * date in RFC3339 of the code redemption period. - `id`: The internal + * ID of the coupon code. - `importid`: The ID of the import job that + * created this coupon. - `is_reservation_mandatory`: Whether this + * coupon requires a reservation to be redeemed. - `limits`: The + * limits set on this coupon. - `limitval`: The maximum number of + * redemptions of this code. - `recipientintegrationid`: The + * integration ID of the recipient of the coupon. Only the customer with this + * integration ID can redeem this code. Available only for personal codes. - + * `referralid`: The ID of the referral code that triggered the + * creation of this coupon (create coupon effect). - `reservation`: + * Whether the coupon can be reserved for multiple customers. - + * `reservation_counter`: How many times this coupon has been + * reserved. - `reservation_limitval`: The maximum of number of + * reservations this coupon can have. - `startdate`: The start date in + * RFC3339 of the code redemption period. - `value`: The coupon code. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile id + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportCouponsWithHttpInfo(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { - okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportCouponsWithHttpInfo(Long applicationId, BigDecimal campaignId, String sort, + String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, + Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, + String campaignState, Boolean valuesOnly) throws ApiException { + okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, + createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, + dateFormat, campaignState, valuesOnly, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export coupons (asynchronously) - * Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date in RFC3339 of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon can be reserved for multiple customers. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the coupons that match the given properties. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file can contain the following columns: - `accountid`: The + * ID of your deployment. - `applicationid`: The ID of the Application + * this coupon is related to. - `attributes`: A json object describing + * _custom_ referral attribute names and their values. - `batchid`: + * The ID of the batch this coupon is part of. - `campaignid`: The ID + * of the campaign this coupon is related to. - `counter`: The number + * of times this coupon has been redeemed. - `created`: The creation + * date in RFC3339 of the coupon code. - `deleted`: Whether the coupon + * code is deleted. - `deleted_changelogid`: The ID of the delete + * event in the logs. - `discount_counter`: The amount of discount + * given by this coupon. - `discount_limitval`: The maximum discount + * amount that can be given be this coupon. - `expirydate`: The end + * date in RFC3339 of the code redemption period. - `id`: The internal + * ID of the coupon code. - `importid`: The ID of the import job that + * created this coupon. - `is_reservation_mandatory`: Whether this + * coupon requires a reservation to be redeemed. - `limits`: The + * limits set on this coupon. - `limitval`: The maximum number of + * redemptions of this code. - `recipientintegrationid`: The + * integration ID of the recipient of the coupon. Only the customer with this + * integration ID can redeem this code. Available only for personal codes. - + * `referralid`: The ID of the referral code that triggered the + * creation of this coupon (create coupon effect). - `reservation`: + * Whether the coupon can be reserved for multiple customers. - + * `reservation_counter`: How many times this coupon has been + * reserved. - `reservation_limitval`: The maximum of number of + * reservations this coupon can have. - `startdate`: The start date in + * RFC3339 of the code redemption period. - `value`: The coupon code. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile id + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCouponsAsync(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCouponsAsync(Long applicationId, BigDecimal campaignId, String sort, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, + Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, + createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, + dateFormat, campaignState, valuesOnly, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportCustomerSessions - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param profileIntegrationId Only return sessions for the customer that matches this customer integration ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param profileIntegrationId Only return sessions for the customer that + * matches this customer integration ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @param customerSessionState Filter results by state. (optional) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCustomerSessionsCall(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCustomerSessionsCall(Long applicationId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/export_customer_sessions" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5493,7 +9382,7 @@ public okhttp3.Call exportCustomerSessionsCall(Integer applicationId, OffsetDate Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5501,124 +9390,284 @@ public okhttp3.Call exportCustomerSessionsCall(Integer applicationId, OffsetDate } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Long applicationId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportCustomerSessions(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling exportCustomerSessions(Async)"); } - - okhttp3.Call localVarCall = exportCustomerSessionsCall(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState, _callback); + okhttp3.Call localVarCall = exportCustomerSessionsCall(applicationId, createdBefore, createdAfter, + profileIntegrationId, dateFormat, customerSessionState, _callback); return localVarCall; } /** * Export customer sessions - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param profileIntegrationId Only return sessions for the customer that matches this customer integration ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the customer sessions that match the request. + * **Important:** Archived sessions cannot be exported. See the [retention + * policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * - `id`: The internal ID of the session. - `firstsession`: + * Whether this is a first session. - `integrationid`: The integration + * ID of the session. - `applicationid`: The ID of the Application. - + * `profileid`: The internal ID of the customer profile. - + * `profileintegrationid`: The integration ID of the customer profile. + * - `created`: The timestamp when the session was created. - + * `state`: The + * [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * of the session. - `cartitems`: The cart items in the session. - + * `discounts`: The discounts in the session. - `total`: The + * total value of cart items and additional costs in the session, before any + * discounts are applied. - `attributes`: The attributes set in the + * session. - `closedat`: Timestamp when the session was closed. - + * `cancelledat`: Timestamp when the session was cancelled. - + * `referral`: The referral code in the session. - + * `identifiers`: The identifiers in the session. - + * `additional_costs`: The [additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) + * in the session. - `updated`: Timestamp of the last session update. + * - `store_integration_id`: The integration ID of the store. - + * `coupons`: Coupon codes in the session. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param profileIntegrationId Only return sessions for the customer that + * matches this customer integration ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @param customerSessionState Filter results by state. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportCustomerSessions(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { - ApiResponse localVarResp = exportCustomerSessionsWithHttpInfo(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportCustomerSessions(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { + ApiResponse localVarResp = exportCustomerSessionsWithHttpInfo(applicationId, createdBefore, + createdAfter, profileIntegrationId, dateFormat, customerSessionState); return localVarResp.getData(); } /** * Export customer sessions - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param profileIntegrationId Only return sessions for the customer that matches this customer integration ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the customer sessions that match the request. + * **Important:** Archived sessions cannot be exported. See the [retention + * policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * - `id`: The internal ID of the session. - `firstsession`: + * Whether this is a first session. - `integrationid`: The integration + * ID of the session. - `applicationid`: The ID of the Application. - + * `profileid`: The internal ID of the customer profile. - + * `profileintegrationid`: The integration ID of the customer profile. + * - `created`: The timestamp when the session was created. - + * `state`: The + * [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * of the session. - `cartitems`: The cart items in the session. - + * `discounts`: The discounts in the session. - `total`: The + * total value of cart items and additional costs in the session, before any + * discounts are applied. - `attributes`: The attributes set in the + * session. - `closedat`: Timestamp when the session was closed. - + * `cancelledat`: Timestamp when the session was cancelled. - + * `referral`: The referral code in the session. - + * `identifiers`: The identifiers in the session. - + * `additional_costs`: The [additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) + * in the session. - `updated`: Timestamp of the last session update. + * - `store_integration_id`: The integration ID of the store. - + * `coupons`: Coupon codes in the session. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param profileIntegrationId Only return sessions for the customer that + * matches this customer integration ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @param customerSessionState Filter results by state. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportCustomerSessionsWithHttpInfo(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { - okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportCustomerSessionsWithHttpInfo(Long applicationId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) + throws ApiException { + okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, + profileIntegrationId, dateFormat, customerSessionState, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export customer sessions (asynchronously) - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) - * @param profileIntegrationId Only return sessions for the customer that matches this customer integration ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the customer sessions that match the request. + * **Important:** Archived sessions cannot be exported. See the [retention + * policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * - `id`: The internal ID of the session. - `firstsession`: + * Whether this is a first session. - `integrationid`: The integration + * ID of the session. - `applicationid`: The ID of the Application. - + * `profileid`: The internal ID of the customer profile. - + * `profileintegrationid`: The integration ID of the customer profile. + * - `created`: The timestamp when the session was created. - + * `state`: The + * [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * of the session. - `cartitems`: The cart items in the session. - + * `discounts`: The discounts in the session. - `total`: The + * total value of cart items and additional costs in the session, before any + * discounts are applied. - `attributes`: The attributes set in the + * session. - `closedat`: Timestamp when the session was closed. - + * `cancelledat`: Timestamp when the session was cancelled. - + * `referral`: The referral code in the session. - + * `identifiers`: The identifiers in the session. - + * `additional_costs`: The [additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) + * in the session. - `updated`: Timestamp of the last session update. + * - `store_integration_id`: The integration ID of the store. - + * `coupons`: Coupon codes in the session. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string. + * (optional) + * @param profileIntegrationId Only return sessions for the customer that + * matches this customer integration ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @param customerSessionState Filter results by state. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCustomerSessionsAsync(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCustomerSessionsAsync(Long applicationId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, + profileIntegrationId, dateFormat, customerSessionState, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportCustomersTiers + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param subledgerIds An array of subledgers IDs to filter the export by. (optional) - * @param tierNames An array of tier names to filter the export by. (optional) - * @param _callback Callback for upload/download progress + * @param subledgerIds An array of subledgers IDs to filter the export by. + * (optional) + * @param tierNames An array of tier names to filter the export by. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCustomersTiersCall(String loyaltyProgramId, List subledgerIds, List tierNames, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCustomersTiersCall(String loyaltyProgramId, List subledgerIds, + List tierNames, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/export_customers_tiers" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (subledgerIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "subledgerIds", subledgerIds)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("csv", "subledgerIds", subledgerIds)); } if (tierNames != null) { @@ -5629,7 +9678,7 @@ public okhttp3.Call exportCustomersTiersCall(String loyaltyProgramId, List localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5637,23 +9686,26 @@ public okhttp3.Call exportCustomersTiersCall(String loyaltyProgramId, List subledgerIds, List tierNames, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportCustomersTiersValidateBeforeCall(String loyaltyProgramId, List subledgerIds, + List tierNames, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportCustomersTiers(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportCustomersTiers(Async)"); } - okhttp3.Call localVarCall = exportCustomersTiersCall(loyaltyProgramId, subledgerIds, tierNames, _callback); return localVarCall; @@ -5662,87 +9714,195 @@ private okhttp3.Call exportCustomersTiersValidateBeforeCall(String loyaltyProgra /** * Export customers' tier data - * Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerIds` (optional): Filter results by an array of subledger IDs. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierNames` (optional): Filter results by an array of tier names. If no value is provided, all tier data for the specified loyalty program will be exported. + * Download a CSV file containing the tier information for customers of the + * specified loyalty program. The generated file contains the following columns: + * - `programid`: The identifier of the loyalty program. It is + * displayed in your Talon.One deployment URL. - `subledgerid`: The ID + * of the subledger associated with the loyalty program. This column is empty if + * the loyalty program has no subledger. In this case, refer to the export file + * name to get the ID of the loyalty program. - `customerprofileid`: + * The ID used to integrate customer profiles with the loyalty program. - + * `tiername`: The name of the tier. - `startdate`: The tier + * start date in RFC3339. - `expirydate`: The tier expiry date in + * RFC3339. You can filter the results by providing the following optional input + * parameters: - `subledgerIds` (optional): Filter results by an array + * of subledger IDs. If no value is provided, all subledger data for the + * specified loyalty program will be exported. - `tierNames` + * (optional): Filter results by an array of tier names. If no value is + * provided, all tier data for the specified loyalty program will be exported. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param subledgerIds An array of subledgers IDs to filter the export by. (optional) - * @param tierNames An array of tier names to filter the export by. (optional) + * @param subledgerIds An array of subledgers IDs to filter the export by. + * (optional) + * @param tierNames An array of tier names to filter the export by. + * (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportCustomersTiers(String loyaltyProgramId, List subledgerIds, List tierNames) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportCustomersTiers(String loyaltyProgramId, List subledgerIds, List tierNames) + throws ApiException { ApiResponse localVarResp = exportCustomersTiersWithHttpInfo(loyaltyProgramId, subledgerIds, tierNames); return localVarResp.getData(); } /** * Export customers' tier data - * Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerIds` (optional): Filter results by an array of subledger IDs. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierNames` (optional): Filter results by an array of tier names. If no value is provided, all tier data for the specified loyalty program will be exported. + * Download a CSV file containing the tier information for customers of the + * specified loyalty program. The generated file contains the following columns: + * - `programid`: The identifier of the loyalty program. It is + * displayed in your Talon.One deployment URL. - `subledgerid`: The ID + * of the subledger associated with the loyalty program. This column is empty if + * the loyalty program has no subledger. In this case, refer to the export file + * name to get the ID of the loyalty program. - `customerprofileid`: + * The ID used to integrate customer profiles with the loyalty program. - + * `tiername`: The name of the tier. - `startdate`: The tier + * start date in RFC3339. - `expirydate`: The tier expiry date in + * RFC3339. You can filter the results by providing the following optional input + * parameters: - `subledgerIds` (optional): Filter results by an array + * of subledger IDs. If no value is provided, all subledger data for the + * specified loyalty program will be exported. - `tierNames` + * (optional): Filter results by an array of tier names. If no value is + * provided, all tier data for the specified loyalty program will be exported. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param subledgerIds An array of subledgers IDs to filter the export by. (optional) - * @param tierNames An array of tier names to filter the export by. (optional) + * @param subledgerIds An array of subledgers IDs to filter the export by. + * (optional) + * @param tierNames An array of tier names to filter the export by. + * (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportCustomersTiersWithHttpInfo(String loyaltyProgramId, List subledgerIds, List tierNames) throws ApiException { - okhttp3.Call localVarCall = exportCustomersTiersValidateBeforeCall(loyaltyProgramId, subledgerIds, tierNames, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportCustomersTiersWithHttpInfo(String loyaltyProgramId, List subledgerIds, + List tierNames) throws ApiException { + okhttp3.Call localVarCall = exportCustomersTiersValidateBeforeCall(loyaltyProgramId, subledgerIds, tierNames, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export customers' tier data (asynchronously) - * Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerIds` (optional): Filter results by an array of subledger IDs. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierNames` (optional): Filter results by an array of tier names. If no value is provided, all tier data for the specified loyalty program will be exported. + * Download a CSV file containing the tier information for customers of the + * specified loyalty program. The generated file contains the following columns: + * - `programid`: The identifier of the loyalty program. It is + * displayed in your Talon.One deployment URL. - `subledgerid`: The ID + * of the subledger associated with the loyalty program. This column is empty if + * the loyalty program has no subledger. In this case, refer to the export file + * name to get the ID of the loyalty program. - `customerprofileid`: + * The ID used to integrate customer profiles with the loyalty program. - + * `tiername`: The name of the tier. - `startdate`: The tier + * start date in RFC3339. - `expirydate`: The tier expiry date in + * RFC3339. You can filter the results by providing the following optional input + * parameters: - `subledgerIds` (optional): Filter results by an array + * of subledger IDs. If no value is provided, all subledger data for the + * specified loyalty program will be exported. - `tierNames` + * (optional): Filter results by an array of tier names. If no value is + * provided, all tier data for the specified loyalty program will be exported. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param subledgerIds An array of subledgers IDs to filter the export by. (optional) - * @param tierNames An array of tier names to filter the export by. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param subledgerIds An array of subledgers IDs to filter the export by. + * (optional) + * @param tierNames An array of tier names to filter the export by. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportCustomersTiersAsync(String loyaltyProgramId, List subledgerIds, List tierNames, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportCustomersTiersValidateBeforeCall(loyaltyProgramId, subledgerIds, tierNames, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportCustomersTiersAsync(String loyaltyProgramId, List subledgerIds, + List tierNames, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportCustomersTiersValidateBeforeCall(loyaltyProgramId, subledgerIds, tierNames, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportEffects - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportEffectsCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportEffectsCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/export_effects" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5766,7 +9926,7 @@ public okhttp3.Call exportEffectsCall(Integer applicationId, BigDecimal campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5774,119 +9934,283 @@ public okhttp3.Call exportEffectsCall(Integer applicationId, BigDecimal campaign } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportEffectsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportEffectsValidateBeforeCall(Long applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling exportEffects(Async)"); } - - okhttp3.Call localVarCall = exportEffectsCall(applicationId, campaignId, createdBefore, createdAfter, dateFormat, _callback); + okhttp3.Call localVarCall = exportEffectsCall(applicationId, campaignId, createdBefore, createdAfter, + dateFormat, _callback); return localVarCall; } /** * Export triggered effects - * Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the triggered effects that match the given + * attributes. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `applicationid`: The ID of the Application. - + * `campaignid`: The ID of the campaign. - `couponid`: The + * ID of the coupon, when applicable to the effect. - `created`: The + * timestamp of the effect. - `event_type`: The name of the event. See + * the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - + * `eventid`: The internal ID of the effect. - `name`: The + * effect name. See the + * [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - + * `profileintegrationid`: The ID of the customer profile, when + * applicable. - `props`: The + * [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of + * the effect. - `ruleindex`: The index of the rule. - + * `rulesetid`: The ID of the rule set. - `sessionid`: The + * internal ID of the session that triggered the effect. - + * `profileid`: The internal ID of the customer profile. - + * `sessionintegrationid`: The integration ID of the session. - + * `total_revenue`: The total revenue. - + * `store_integration_id`: The integration ID of the store. You choose + * this ID when you create a store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportEffects(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { - ApiResponse localVarResp = exportEffectsWithHttpInfo(applicationId, campaignId, createdBefore, createdAfter, dateFormat); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportEffects(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String dateFormat) throws ApiException { + ApiResponse localVarResp = exportEffectsWithHttpInfo(applicationId, campaignId, createdBefore, + createdAfter, dateFormat); return localVarResp.getData(); } /** * Export triggered effects - * Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the triggered effects that match the given + * attributes. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `applicationid`: The ID of the Application. - + * `campaignid`: The ID of the campaign. - `couponid`: The + * ID of the coupon, when applicable to the effect. - `created`: The + * timestamp of the effect. - `event_type`: The name of the event. See + * the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - + * `eventid`: The internal ID of the effect. - `name`: The + * effect name. See the + * [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - + * `profileintegrationid`: The ID of the customer profile, when + * applicable. - `props`: The + * [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of + * the effect. - `ruleindex`: The index of the rule. - + * `rulesetid`: The ID of the rule set. - `sessionid`: The + * internal ID of the session that triggered the effect. - + * `profileid`: The internal ID of the customer profile. - + * `sessionintegrationid`: The integration ID of the session. - + * `total_revenue`: The total revenue. - + * `store_integration_id`: The integration ID of the store. You choose + * this ID when you create a store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportEffectsWithHttpInfo(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { - okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, dateFormat, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportEffectsWithHttpInfo(Long applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { + okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, + createdAfter, dateFormat, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export triggered effects (asynchronously) - * Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the triggered effects that match the given + * attributes. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `applicationid`: The ID of the Application. - + * `campaignid`: The ID of the campaign. - `couponid`: The + * ID of the coupon, when applicable to the effect. - `created`: The + * timestamp of the effect. - `event_type`: The name of the event. See + * the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - + * `eventid`: The internal ID of the effect. - `name`: The + * effect name. See the + * [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - + * `profileintegrationid`: The ID of the customer profile, when + * applicable. - `props`: The + * [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of + * the effect. - `ruleindex`: The index of the rule. - + * `rulesetid`: The ID of the rule set. - `sessionid`: The + * internal ID of the session that triggered the effect. - + * `profileid`: The internal ID of the customer profile. - + * `sessionintegrationid`: The integration ID of the session. - + * `total_revenue`: The total revenue. - + * `store_integration_id`: The integration ID of the store. You choose + * this ID when you create a store. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC internally. + * (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportEffectsAsync(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, dateFormat, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportEffectsAsync(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, + createdAfter, dateFormat, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyBalance + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback Callback for upload/download progress + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
* @deprecated */ @Deprecated - public okhttp3.Call exportLoyaltyBalanceCall(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyBalanceCall(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/export_customer_balance" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5898,7 +10222,7 @@ public okhttp3.Call exportLoyaltyBalanceCall(String loyaltyProgramId, OffsetDate Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5906,24 +10230,27 @@ public okhttp3.Call exportLoyaltyBalanceCall(String loyaltyProgramId, OffsetDate } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyBalanceValidateBeforeCall(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyBalanceValidateBeforeCall(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyBalance(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyBalance(Async)"); } - okhttp3.Call localVarCall = exportLoyaltyBalanceCall(loyaltyProgramId, endDate, _callback); return localVarCall; @@ -5932,18 +10259,51 @@ private okhttp3.Call exportLoyaltyBalanceValidateBeforeCall(String loyaltyProgra /** * Export customer loyalty balance to CSV - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To export customer loyalty balances to CSV, use the [Export customer loyalty + * balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) + * endpoint. Download a CSV file containing the balance of each customer in the + * loyalty program. **Tip:** If the exported CSV file is too large to view, you + * can [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
* @deprecated */ @Deprecated @@ -5954,73 +10314,173 @@ public String exportLoyaltyBalance(String loyaltyProgramId, OffsetDateTime endDa /** * Export customer loyalty balance to CSV - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To export customer loyalty balances to CSV, use the [Export customer loyalty + * balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) + * endpoint. Download a CSV file containing the balance of each customer in the + * loyalty program. **Tip:** If the exported CSV file is too large to view, you + * can [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
* @deprecated */ @Deprecated - public ApiResponse exportLoyaltyBalanceWithHttpInfo(String loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + public ApiResponse exportLoyaltyBalanceWithHttpInfo(String loyaltyProgramId, OffsetDateTime endDate) + throws ApiException { okhttp3.Call localVarCall = exportLoyaltyBalanceValidateBeforeCall(loyaltyProgramId, endDate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export customer loyalty balance to CSV (asynchronously) - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To export customer loyalty balances to CSV, use the [Export customer loyalty + * balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) + * endpoint. Download a CSV file containing the balance of each customer in the + * loyalty program. **Tip:** If the exported CSV file is too large to view, you + * can [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
* @deprecated */ @Deprecated - public okhttp3.Call exportLoyaltyBalanceAsync(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyBalanceAsync(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyBalanceValidateBeforeCall(loyaltyProgramId, endDate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyBalances + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback Callback for upload/download progress + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyBalancesCall(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyBalancesCall(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/export_customer_balances" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6032,7 +10492,7 @@ public okhttp3.Call exportLoyaltyBalancesCall(String loyaltyProgramId, OffsetDat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6040,23 +10500,26 @@ public okhttp3.Call exportLoyaltyBalancesCall(String loyaltyProgramId, OffsetDat } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyBalancesValidateBeforeCall(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyBalancesValidateBeforeCall(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyBalances(Async)"); } - okhttp3.Call localVarCall = exportLoyaltyBalancesCall(loyaltyProgramId, endDate, _callback); return localVarCall; @@ -6065,18 +10528,58 @@ private okhttp3.Call exportLoyaltyBalancesValidateBeforeCall(String loyaltyProgr /** * Export customer loyalty balances - * Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. + * Download a CSV file containing the balance of each customer in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `loyaltyProgramID`: The ID of the loyalty program. - + * `loyaltySubledger`: The name of the subdleger, when applicatble. - + * `profileIntegrationID`: The integration ID of the customer profile. + * - `currentBalance`: The current point balance. - + * `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. - + * `currentTier`: The tier that the customer is in at the time of the + * export. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
*/ public String exportLoyaltyBalances(String loyaltyProgramId, OffsetDateTime endDate) throws ApiException { ApiResponse localVarResp = exportLoyaltyBalancesWithHttpInfo(loyaltyProgramId, endDate); @@ -6085,69 +10588,187 @@ public String exportLoyaltyBalances(String loyaltyProgramId, OffsetDateTime endD /** * Export customer loyalty balances - * Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. + * Download a CSV file containing the balance of each customer in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `loyaltyProgramID`: The ID of the loyalty program. - + * `loyaltySubledger`: The name of the subdleger, when applicatble. - + * `profileIntegrationID`: The integration ID of the customer profile. + * - `currentBalance`: The current point balance. - + * `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. - + * `currentTier`: The tier that the customer is in at the time of the + * export. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse exportLoyaltyBalancesWithHttpInfo(String loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse exportLoyaltyBalancesWithHttpInfo(String loyaltyProgramId, OffsetDateTime endDate) + throws ApiException { okhttp3.Call localVarCall = exportLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, endDate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export customer loyalty balances (asynchronously) - * Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. + * Download a CSV file containing the balance of each customer in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `loyaltyProgramID`: The ID of the loyalty program. - + * `loyaltySubledger`: The name of the subdleger, when applicatble. - + * `profileIntegrationID`: The integration ID of the customer profile. + * - `currentBalance`: The current point balance. - + * `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. - + * `currentTier`: The tier that the customer is in at the time of the + * export. + * * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyBalancesAsync(String loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyBalancesAsync(String loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, endDate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyCardBalances - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyCardBalancesCall(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyCardBalancesCall(Long loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/export_card_balances" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6159,7 +10780,7 @@ public okhttp3.Call exportLoyaltyCardBalancesCall(Integer loyaltyProgramId, Offs Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6167,23 +10788,26 @@ public okhttp3.Call exportLoyaltyCardBalancesCall(Integer loyaltyProgramId, Offs } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Long loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCardBalances(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCardBalances(Async)"); } - okhttp3.Call localVarCall = exportLoyaltyCardBalancesCall(loyaltyProgramId, endDate, _callback); return localVarCall; @@ -6192,93 +10816,272 @@ private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Integer loyalty /** * Export all card transaction logs - * Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * Download a CSV file containing the balances of all cards in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `loyaltyProgramID`: + * The ID of the loyalty program. - `loyaltySubledger`: The name of + * the subdleger, when applicatble. - `cardIdentifier`: The + * alphanumeric identifier of the loyalty card. - `cardState`:The + * state of the loyalty card. It can be `active` or + * `inactive`. - `currentBalance`: The current point + * balance. - `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public String exportLoyaltyCardBalances(Integer loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public String exportLoyaltyCardBalances(Long loyaltyProgramId, OffsetDateTime endDate) throws ApiException { ApiResponse localVarResp = exportLoyaltyCardBalancesWithHttpInfo(loyaltyProgramId, endDate); return localVarResp.getData(); } /** * Export all card transaction logs - * Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) + * Download a CSV file containing the balances of all cards in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `loyaltyProgramID`: + * The ID of the loyalty program. - `loyaltySubledger`: The name of + * the subdleger, when applicatble. - `cardIdentifier`: The + * alphanumeric identifier of the loyalty card. - `cardState`:The + * state of the loyalty card. It can be `active` or + * `inactive`. - `currentBalance`: The current point + * balance. - `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse exportLoyaltyCardBalancesWithHttpInfo(Integer loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse exportLoyaltyCardBalancesWithHttpInfo(Long loyaltyProgramId, OffsetDateTime endDate) + throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, endDate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export all card transaction logs (asynchronously) - * Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param endDate Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the balances of all cards in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `loyaltyProgramID`: + * The ID of the loyalty program. - `loyaltySubledger`: The name of + * the subdleger, when applicatble. - `cardIdentifier`: The + * alphanumeric identifier of the loyalty card. - `cardState`:The + * state of the loyalty card. It can be `active` or + * `inactive`. - `currentBalance`: The current point + * balance. - `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param endDate Used to return expired, active, and pending loyalty + * balances before this timestamp. You can enter any + * past, present, or future timestamp value. **Note:** - + * It must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. + * The time zone setting considered is `UTC`. + * If you do not include a time component, a default + * time value of `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyCardBalancesAsync(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyCardBalancesAsync(Long loyaltyProgramId, OffsetDateTime endDate, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, endDate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyCardLedger - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportLoyaltyCardLedgerCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportLoyaltyCardLedgerCall(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6298,7 +11101,7 @@ public okhttp3.Call exportLoyaltyCardLedgerCall(Integer loyaltyProgramId, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6306,139 +11109,317 @@ public okhttp3.Call exportLoyaltyCardLedgerCall(Integer loyaltyProgramId, String } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCardLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCardLedger(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling exportLoyaltyCardLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling exportLoyaltyCardLedger(Async)"); } - + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling exportLoyaltyCardLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling exportLoyaltyCardLedger(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling exportLoyaltyCardLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling exportLoyaltyCardLedger(Async)"); } - - okhttp3.Call localVarCall = exportLoyaltyCardLedgerCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat, _callback); + okhttp3.Call localVarCall = exportLoyaltyCardLedgerCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, + dateFormat, _callback); return localVarCall; } /** * Export card's ledger log - * Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing a loyalty card ledger log of the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public String exportLoyaltyCardLedger(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { - ApiResponse localVarResp = exportLoyaltyCardLedgerWithHttpInfo(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public String exportLoyaltyCardLedger(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String dateFormat) throws ApiException { + ApiResponse localVarResp = exportLoyaltyCardLedgerWithHttpInfo(loyaltyProgramId, loyaltyCardId, + rangeStart, rangeEnd, dateFormat); return localVarResp.getData(); } /** * Export card's ledger log - * Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing a loyalty card ledger log of the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { - okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { + okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, + rangeStart, rangeEnd, dateFormat, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export card's ledger log (asynchronously) - * Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing a loyalty card ledger log of the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call exportLoyaltyCardLedgerAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call exportLoyaltyCardLedgerAsync(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, + rangeStart, rangeEnd, dateFormat, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyCards - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyCardsCall(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyCardsCall(Long loyaltyProgramId, String batchId, String dateFormat, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/export" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6454,7 +11435,7 @@ public okhttp3.Call exportLoyaltyCardsCall(Integer loyaltyProgramId, String batc Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6462,23 +11443,26 @@ public okhttp3.Call exportLoyaltyCardsCall(Integer loyaltyProgramId, String batc } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, String batchId, String dateFormat, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCards(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyCards(Async)"); } - okhttp3.Call localVarCall = exportLoyaltyCardsCall(loyaltyProgramId, batchId, dateFormat, _callback); return localVarCall; @@ -6487,94 +11471,240 @@ private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Integer loyaltyProgram /** * Export loyalty cards - * Download a CSV file containing the loyalty cards from a specified loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `identifier`: The unique identifier of the loyalty card. - `created`: The date and time the loyalty card was created. - `status`: The status of the loyalty card. - `userpercardlimit`: The maximum number of customer profiles that can be linked to the card. - `customerprofileids`: Integration IDs of the customer profiles linked to the card. - `blockreason`: The reason for transferring and blocking the loyalty card. - `generated`: An indicator of whether the loyalty card was generated. - `batchid`: The ID of the batch the loyalty card is in. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the loyalty cards from a specified loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `identifier`: The + * unique identifier of the loyalty card. - `created`: The date and + * time the loyalty card was created. - `status`: The status of the + * loyalty card. - `userpercardlimit`: The maximum number of customer + * profiles that can be linked to the card. - `customerprofileids`: + * Integration IDs of the customer profiles linked to the card. - + * `blockreason`: The reason for transferring and blocking the loyalty + * card. - `generated`: An indicator of whether the loyalty card was + * generated. - `batchid`: The ID of the batch the loyalty card is in. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public String exportLoyaltyCards(Integer loyaltyProgramId, String batchId, String dateFormat) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public String exportLoyaltyCards(Long loyaltyProgramId, String batchId, String dateFormat) throws ApiException { ApiResponse localVarResp = exportLoyaltyCardsWithHttpInfo(loyaltyProgramId, batchId, dateFormat); return localVarResp.getData(); } /** * Export loyalty cards - * Download a CSV file containing the loyalty cards from a specified loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `identifier`: The unique identifier of the loyalty card. - `created`: The date and time the loyalty card was created. - `status`: The status of the loyalty card. - `userpercardlimit`: The maximum number of customer profiles that can be linked to the card. - `customerprofileids`: Integration IDs of the customer profiles linked to the card. - `blockreason`: The reason for transferring and blocking the loyalty card. - `generated`: An indicator of whether the loyalty card was generated. - `batchid`: The ID of the batch the loyalty card is in. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the loyalty cards from a specified loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `identifier`: The + * unique identifier of the loyalty card. - `created`: The date and + * time the loyalty card was created. - `status`: The status of the + * loyalty card. - `userpercardlimit`: The maximum number of customer + * profiles that can be linked to the card. - `customerprofileids`: + * Integration IDs of the customer profiles linked to the card. - + * `blockreason`: The reason for transferring and blocking the loyalty + * card. - `generated`: An indicator of whether the loyalty card was + * generated. - `batchid`: The ID of the batch the loyalty card is in. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse exportLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, String batchId, String dateFormat) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse exportLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, String batchId, String dateFormat) + throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardsValidateBeforeCall(loyaltyProgramId, batchId, dateFormat, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export loyalty cards (asynchronously) - * Download a CSV file containing the loyalty cards from a specified loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `identifier`: The unique identifier of the loyalty card. - `created`: The date and time the loyalty card was created. - `status`: The status of the loyalty card. - `userpercardlimit`: The maximum number of customer profiles that can be linked to the card. - `customerprofileids`: Integration IDs of the customer profiles linked to the card. - `blockreason`: The reason for transferring and blocking the loyalty card. - `generated`: An indicator of whether the loyalty card was generated. - `batchid`: The ID of the batch the loyalty card is in. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the loyalty cards from a specified loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `identifier`: The + * unique identifier of the loyalty card. - `created`: The date and + * time the loyalty card was created. - `status`: The status of the + * loyalty card. - `userpercardlimit`: The maximum number of customer + * profiles that can be linked to the card. - `customerprofileids`: + * Integration IDs of the customer profiles linked to the card. - + * `blockreason`: The reason for transferring and blocking the loyalty + * card. - `generated`: An indicator of whether the loyalty card was + * generated. - `batchid`: The ID of the batch the loyalty card is in. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call exportLoyaltyCardsAsync(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportLoyaltyCardsValidateBeforeCall(loyaltyProgramId, batchId, dateFormat, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call exportLoyaltyCardsAsync(Long loyaltyProgramId, String batchId, String dateFormat, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportLoyaltyCardsValidateBeforeCall(loyaltyProgramId, batchId, dateFormat, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportLoyaltyLedger - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) + * + * @param rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) * @param loyaltyProgramId The identifier for the loyalty program. (required) - * @param integrationId The 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 dateFormat Determines the format of dates in the export document. (optional) - * @param _callback Callback for upload/download progress + * @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 dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportLoyaltyLedgerCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportLoyaltyLedgerCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/export_log" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6594,7 +11724,7 @@ public okhttp3.Call exportLoyaltyLedgerCall(OffsetDateTime rangeStart, OffsetDat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6602,132 +11732,325 @@ public okhttp3.Call exportLoyaltyLedgerCall(OffsetDateTime rangeStart, OffsetDat } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyLedgerValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportLoyaltyLedgerValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling exportLoyaltyLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling exportLoyaltyLedger(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { throw new ApiException("Missing the required parameter 'rangeEnd' when calling exportLoyaltyLedger(Async)"); } - + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling exportLoyaltyLedger(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling exportLoyaltyLedger(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling exportLoyaltyLedger(Async)"); } - - okhttp3.Call localVarCall = exportLoyaltyLedgerCall(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat, _callback); + okhttp3.Call localVarCall = exportLoyaltyLedgerCall(rangeStart, rangeEnd, loyaltyProgramId, integrationId, + dateFormat, _callback); return localVarCall; } /** * 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. - * @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) + * 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. + * + * @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) - * @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 dateFormat Determines the format of dates in the export document. (optional) + * @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 dateFormat Determines the format of dates in the export + * document. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportLoyaltyLedger(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, String integrationId, String dateFormat) throws ApiException { - ApiResponse localVarResp = exportLoyaltyLedgerWithHttpInfo(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportLoyaltyLedger(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, + String integrationId, String dateFormat) throws ApiException { + ApiResponse localVarResp = exportLoyaltyLedgerWithHttpInfo(rangeStart, rangeEnd, loyaltyProgramId, + integrationId, dateFormat); return localVarResp.getData(); } /** * 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. - * @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) + * 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. + * + * @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) - * @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 dateFormat Determines the format of dates in the export document. (optional) + * @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 dateFormat Determines the format of dates in the export + * document. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportLoyaltyLedgerWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, String integrationId, String dateFormat) throws ApiException { - okhttp3.Call localVarCall = exportLoyaltyLedgerValidateBeforeCall(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportLoyaltyLedgerWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + String loyaltyProgramId, String integrationId, String dateFormat) throws ApiException { + okhttp3.Call localVarCall = exportLoyaltyLedgerValidateBeforeCall(rangeStart, rangeEnd, loyaltyProgramId, + integrationId, dateFormat, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * 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. - * @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) + * 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. + * + * @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) - * @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 dateFormat Determines the format of dates in the export document. (optional) - * @param _callback The callback to be executed when the API call finishes + * @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 dateFormat Determines the format of dates in the export + * document. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportLoyaltyLedgerAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportLoyaltyLedgerValidateBeforeCall(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportLoyaltyLedgerAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + String loyaltyProgramId, String integrationId, String dateFormat, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = exportLoyaltyLedgerValidateBeforeCall(rangeStart, rangeEnd, loyaltyProgramId, + integrationId, dateFormat, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportPoolGiveaways - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param createdBefore Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. (optional) - * @param createdAfter Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. (optional) - * @param _callback Callback for upload/download progress + * + * @param poolId The ID of the pool. You can find it in the Campaign + * Manager, in the **Giveaways** section. (required) + * @param createdBefore Timestamp that filters the results to only contain + * giveaways created before this date. Must be an RFC3339 + * timestamp string. (optional) + * @param createdAfter Timestamp that filters the results to only contain + * giveaways created after this date. Must be an RFC3339 + * timestamp string. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public okhttp3.Call exportPoolGiveawaysCall(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public okhttp3.Call exportPoolGiveawaysCall(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/giveaways/pools/{poolId}/export" - .replaceAll("\\{" + "poolId" + "\\}", localVarApiClient.escapeString(poolId.toString())); + .replaceAll("\\{" + "poolId" + "\\}", localVarApiClient.escapeString(poolId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6743,7 +12066,7 @@ public okhttp3.Call exportPoolGiveawaysCall(Integer poolId, OffsetDateTime creat Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6751,23 +12074,25 @@ public okhttp3.Call exportPoolGiveawaysCall(Integer poolId, OffsetDateTime creat } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Long poolId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'poolId' is set if (poolId == null) { throw new ApiException("Missing the required parameter 'poolId' when calling exportPoolGiveaways(Async)"); } - okhttp3.Call localVarCall = exportPoolGiveawaysCall(poolId, createdBefore, createdAfter, _callback); return localVarCall; @@ -6776,93 +12101,237 @@ private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Integer poolId, Offse /** * Export giveaway codes of a giveaway pool - * Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param createdBefore Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. (optional) - * @param createdAfter Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. (optional) + * Download a CSV file containing the giveaway codes of a specific giveaway + * pool. **Tip:** If the exported CSV file is too large to view, you can [split + * it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `id`: The internal + * ID of the giveaway. - `poolid`: The internal ID of the giveaway + * pool. - `code`: The giveaway code. - `startdate`: The + * validity start date in RFC3339 of the giveaway (can be empty). - + * `enddate`: The validity end date in RFC3339 of the giveaway (can be + * empty). - `attributes`: Any custom attributes associated with the + * giveaway code (can be empty). - `used`: An indication of whether + * the giveaway is already awarded. - `importid`: The ID of the import + * which created the giveaway. - `created`: The creation time of the + * giveaway code. - `profileintegrationid`: The third-party + * integration ID of the customer profile that was awarded the giveaway. Can be + * empty if the giveaway was not awarded. - `profileid`: The internal + * ID of the customer profile that was awarded the giveaway. Can be empty if the + * giveaway was not awarded or an internal ID does not exist. + * + * @param poolId The ID of the pool. You can find it in the Campaign + * Manager, in the **Giveaways** section. (required) + * @param createdBefore Timestamp that filters the results to only contain + * giveaways created before this date. Must be an RFC3339 + * timestamp string. (optional) + * @param createdAfter Timestamp that filters the results to only contain + * giveaways created after this date. Must be an RFC3339 + * timestamp string. (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public String exportPoolGiveaways(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public String exportPoolGiveaways(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) + throws ApiException { ApiResponse localVarResp = exportPoolGiveawaysWithHttpInfo(poolId, createdBefore, createdAfter); return localVarResp.getData(); } /** * Export giveaway codes of a giveaway pool - * Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param createdBefore Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. (optional) - * @param createdAfter Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. (optional) + * Download a CSV file containing the giveaway codes of a specific giveaway + * pool. **Tip:** If the exported CSV file is too large to view, you can [split + * it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `id`: The internal + * ID of the giveaway. - `poolid`: The internal ID of the giveaway + * pool. - `code`: The giveaway code. - `startdate`: The + * validity start date in RFC3339 of the giveaway (can be empty). - + * `enddate`: The validity end date in RFC3339 of the giveaway (can be + * empty). - `attributes`: Any custom attributes associated with the + * giveaway code (can be empty). - `used`: An indication of whether + * the giveaway is already awarded. - `importid`: The ID of the import + * which created the giveaway. - `created`: The creation time of the + * giveaway code. - `profileintegrationid`: The third-party + * integration ID of the customer profile that was awarded the giveaway. Can be + * empty if the giveaway was not awarded. - `profileid`: The internal + * ID of the customer profile that was awarded the giveaway. Can be empty if the + * giveaway was not awarded or an internal ID does not exist. + * + * @param poolId The ID of the pool. You can find it in the Campaign + * Manager, in the **Giveaways** section. (required) + * @param createdBefore Timestamp that filters the results to only contain + * giveaways created before this date. Must be an RFC3339 + * timestamp string. (optional) + * @param createdAfter Timestamp that filters the results to only contain + * giveaways created after this date. Must be an RFC3339 + * timestamp string. (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public ApiResponse exportPoolGiveawaysWithHttpInfo(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public ApiResponse exportPoolGiveawaysWithHttpInfo(Long poolId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = exportPoolGiveawaysValidateBeforeCall(poolId, createdBefore, createdAfter, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export giveaway codes of a giveaway pool (asynchronously) - * Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param createdBefore Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. (optional) - * @param createdAfter Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the giveaway codes of a specific giveaway + * pool. **Tip:** If the exported CSV file is too large to view, you can [split + * it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `id`: The internal + * ID of the giveaway. - `poolid`: The internal ID of the giveaway + * pool. - `code`: The giveaway code. - `startdate`: The + * validity start date in RFC3339 of the giveaway (can be empty). - + * `enddate`: The validity end date in RFC3339 of the giveaway (can be + * empty). - `attributes`: Any custom attributes associated with the + * giveaway code (can be empty). - `used`: An indication of whether + * the giveaway is already awarded. - `importid`: The ID of the import + * which created the giveaway. - `created`: The creation time of the + * giveaway code. - `profileintegrationid`: The third-party + * integration ID of the customer profile that was awarded the giveaway. Can be + * empty if the giveaway was not awarded. - `profileid`: The internal + * ID of the customer profile that was awarded the giveaway. Can be empty if the + * giveaway was not awarded or an internal ID does not exist. + * + * @param poolId The ID of the pool. You can find it in the Campaign + * Manager, in the **Giveaways** section. (required) + * @param createdBefore Timestamp that filters the results to only contain + * giveaways created before this date. Must be an RFC3339 + * timestamp string. (optional) + * @param createdAfter Timestamp that filters the results to only contain + * giveaways created after this date. Must be an RFC3339 + * timestamp string. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public okhttp3.Call exportPoolGiveawaysAsync(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportPoolGiveawaysValidateBeforeCall(poolId, createdBefore, createdAfter, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public okhttp3.Call exportPoolGiveawaysAsync(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportPoolGiveawaysValidateBeforeCall(poolId, createdBefore, createdAfter, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for exportReferrals - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. (optional) - * @param usable - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. (optional) - * @param batchId Filter results by batches of referrals (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches referrals in which the + * expiration date is set and in the past. - + * `validNow`: Matches referrals in which start + * date is null or in the past and expiration date is null + * or in the future. - `validFuture`: Matches + * referrals in which start date is set and in the future. + * (optional) + * @param usable - `true`, only referrals where + * `usageCounter < usageLimit` will be + * returned. - `false`, only referrals where + * `usageCounter >= usageLimit` will be + * returned. (optional) + * @param batchId Filter results by batches of referrals (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportReferralsCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportReferralsCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/export_referrals" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6898,7 +12367,7 @@ public okhttp3.Call exportReferralsCall(Integer applicationId, BigDecimal campai Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/csv" + "application/csv" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6906,131 +12375,300 @@ public okhttp3.Call exportReferralsCall(Integer applicationId, BigDecimal campai } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call exportReferralsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call exportReferralsValidateBeforeCall(Long applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, + String dateFormat, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportReferrals(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling exportReferrals(Async)"); } - - okhttp3.Call localVarCall = exportReferralsCall(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat, _callback); + okhttp3.Call localVarCall = exportReferralsCall(applicationId, campaignId, createdBefore, createdAfter, valid, + usable, batchId, dateFormat, _callback); return localVarCall; } /** * Export referrals - * Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. (optional) - * @param usable - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. (optional) - * @param batchId Filter results by batches of referrals (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the referrals that match the given parameters. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `code`: The referral + * code. - `advocateprofileintegrationid`: The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A json object describing _custom_ referral attribute + * names and their values. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches referrals in which the + * expiration date is set and in the past. - + * `validNow`: Matches referrals in which start + * date is null or in the past and expiration date is null + * or in the future. - `validFuture`: Matches + * referrals in which start date is set and in the future. + * (optional) + * @param usable - `true`, only referrals where + * `usageCounter < usageLimit` will be + * returned. - `false`, only referrals where + * `usageCounter >= usageLimit` will be + * returned. (optional) + * @param batchId Filter results by batches of referrals (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) * @return String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public String exportReferrals(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { - ApiResponse localVarResp = exportReferralsWithHttpInfo(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public String exportReferrals(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) + throws ApiException { + ApiResponse localVarResp = exportReferralsWithHttpInfo(applicationId, campaignId, createdBefore, + createdAfter, valid, usable, batchId, dateFormat); return localVarResp.getData(); } /** * Export referrals - * Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. (optional) - * @param usable - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. (optional) - * @param batchId Filter results by batches of referrals (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) + * Download a CSV file containing the referrals that match the given parameters. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `code`: The referral + * code. - `advocateprofileintegrationid`: The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A json object describing _custom_ referral attribute + * names and their values. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches referrals in which the + * expiration date is set and in the past. - + * `validNow`: Matches referrals in which start + * date is null or in the past and expiration date is null + * or in the future. - `validFuture`: Matches + * referrals in which start date is set and in the future. + * (optional) + * @param usable - `true`, only referrals where + * `usageCounter < usageLimit` will be + * returned. - `false`, only referrals where + * `usageCounter >= usageLimit` will be + * returned. (optional) + * @param batchId Filter results by batches of referrals (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) * @return ApiResponse<String> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse exportReferralsWithHttpInfo(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { - okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse exportReferralsWithHttpInfo(Long applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, + String dateFormat) throws ApiException { + okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, + createdAfter, valid, usable, batchId, dateFormat, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Export referrals (asynchronously) - * Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future. (optional) - * @param usable - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned. (optional) - * @param batchId Filter results by batches of referrals (optional) - * @param dateFormat Determines the format of dates in the export document. (optional) - * @param _callback The callback to be executed when the API call finishes + * Download a CSV file containing the referrals that match the given parameters. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `code`: The referral + * code. - `advocateprofileintegrationid`: The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A json object describing _custom_ referral attribute + * names and their values. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid - `expired`: Matches referrals in which the + * expiration date is set and in the past. - + * `validNow`: Matches referrals in which start + * date is null or in the past and expiration date is null + * or in the future. - `validFuture`: Matches + * referrals in which start date is set and in the future. + * (optional) + * @param usable - `true`, only referrals where + * `usageCounter < usageLimit` will be + * returned. - `false`, only referrals where + * `usageCounter >= usageLimit` will be + * returned. (optional) + * @param batchId Filter results by batches of referrals (optional) + * @param dateFormat Determines the format of dates in the export document. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call exportReferralsAsync(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call exportReferralsAsync(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, + createdAfter, valid, usable, batchId, dateFormat, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAccessLogsWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param path Only return results where the request path matches the given regular expression. (optional) - * @param method Only return results where the request method matches the given regular expression. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param path Only return results where the request path matches the + * given regular expression. (optional) + * @param method Only return results where the request method matches the + * given regular expression. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccessLogsWithoutTotalCountCall(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccessLogsWithoutTotalCountCall(Long applicationId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/access_logs/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7070,7 +12708,7 @@ public okhttp3.Call getAccessLogsWithoutTotalCountCall(Integer applicationId, Of Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7078,136 +12716,269 @@ public okhttp3.Call getAccessLogsWithoutTotalCountCall(Integer applicationId, Of } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long applicationId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getAccessLogsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getAccessLogsWithoutTotalCount(Async)"); } - + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getAccessLogsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling getAccessLogsWithoutTotalCount(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getAccessLogsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling getAccessLogsWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback); + okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountCall(applicationId, rangeStart, rangeEnd, path, + method, status, pageSize, skip, sort, _callback); return localVarCall; } /** * Get access logs for Application - * Retrieve the list of API calls sent to the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param path Only return results where the request path matches the given regular expression. (optional) - * @param method Only return results where the request method matches the given regular expression. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Retrieve the list of API calls sent to the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param path Only return results where the request path matches the + * given regular expression. (optional) + * @param method Only return results where the request method matches the + * given regular expression. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return InlineResponse20022 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20022 getAccessLogsWithoutTotalCount(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getAccessLogsWithoutTotalCountWithHttpInfo(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) + throws ApiException { + ApiResponse localVarResp = getAccessLogsWithoutTotalCountWithHttpInfo(applicationId, + rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); return localVarResp.getData(); } /** * Get access logs for Application - * Retrieve the list of API calls sent to the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param path Only return results where the request path matches the given regular expression. (optional) - * @param method Only return results where the request method matches the given regular expression. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Retrieve the list of API calls sent to the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param path Only return results where the request path matches the + * given regular expression. (optional) + * @param method Only return results where the request method matches the + * given regular expression. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return ApiResponse<InlineResponse20022> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException { - okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Long applicationId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, + Long pageSize, Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, + rangeEnd, path, method, status, pageSize, skip, sort, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get access logs for Application (asynchronously) - * Retrieve the list of API calls sent to the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param path Only return results where the request path matches the given regular expression. (optional) - * @param method Only return results where the request method matches the given regular expression. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the list of API calls sent to the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param path Only return results where the request path matches the + * given regular expression. (optional) + * @param method Only return results where the request method matches the + * given regular expression. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Long applicationId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, + rangeEnd, path, method, status, pageSize, skip, sort, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAccount - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccountCall(Integer accountId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccountCall(Long accountId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/accounts/{accountId}" - .replaceAll("\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())); + .replaceAll("\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7215,7 +12986,7 @@ public okhttp3.Call getAccountCall(Integer accountId, final ApiCallback _callbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7223,23 +12994,24 @@ public okhttp3.Call getAccountCall(Integer accountId, final ApiCallback _callbac } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountValidateBeforeCall(Integer accountId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAccountValidateBeforeCall(Long accountId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set if (accountId == null) { throw new ApiException("Missing the required parameter 'accountId' when calling getAccount(Async)"); } - okhttp3.Call localVarCall = getAccountCall(accountId, _callback); return localVarCall; @@ -7248,77 +13020,131 @@ private okhttp3.Call getAccountValidateBeforeCall(Integer accountId, final ApiCa /** * Get account details - * Return the details of your companies Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the details of your companies Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @return Account - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Account getAccount(Integer accountId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Account getAccount(Long accountId) throws ApiException { ApiResponse localVarResp = getAccountWithHttpInfo(accountId); return localVarResp.getData(); } /** * Get account details - * Return the details of your companies Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the details of your companies Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @return ApiResponse<Account> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAccountWithHttpInfo(Integer accountId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAccountWithHttpInfo(Long accountId) throws ApiException { okhttp3.Call localVarCall = getAccountValidateBeforeCall(accountId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account details (asynchronously) - * Return the details of your companies Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the details of your companies Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccountAsync(Integer accountId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccountAsync(Long accountId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountValidateBeforeCall(accountId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAccountAnalytics - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccountAnalyticsCall(Integer accountId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccountAnalyticsCall(Long accountId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/accounts/{accountId}/analytics" - .replaceAll("\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())); + .replaceAll("\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7326,7 +13152,7 @@ public okhttp3.Call getAccountAnalyticsCall(Integer accountId, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7334,23 +13160,26 @@ public okhttp3.Call getAccountAnalyticsCall(Integer accountId, final ApiCallback } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Integer accountId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Long accountId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'accountId' is set if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling getAccountAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'accountId' when calling getAccountAnalytics(Async)"); } - okhttp3.Call localVarCall = getAccountAnalyticsCall(accountId, _callback); return localVarCall; @@ -7359,78 +13188,137 @@ private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Integer accountId, fi /** * Get account analytics - * Return the analytics of your Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the analytics of your Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @return AccountAnalytics - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public AccountAnalytics getAccountAnalytics(Integer accountId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public AccountAnalytics getAccountAnalytics(Long accountId) throws ApiException { ApiResponse localVarResp = getAccountAnalyticsWithHttpInfo(accountId); return localVarResp.getData(); } /** * Get account analytics - * Return the analytics of your Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the analytics of your Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @return ApiResponse<AccountAnalytics> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAccountAnalyticsWithHttpInfo(Integer accountId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAccountAnalyticsWithHttpInfo(Long accountId) throws ApiException { okhttp3.Call localVarCall = getAccountAnalyticsValidateBeforeCall(accountId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account analytics (asynchronously) - * Return the analytics of your Talon.One account. - * @param accountId The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. (required) + * Return the analytics of your Talon.One account. + * + * @param accountId The identifier of the account. Retrieve it via the [List + * users in + * account](https://docs.talon.one/management-api#operation/getUsers) + * endpoint in the `accountId` property. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAccountAnalyticsAsync(Integer accountId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAccountAnalyticsAsync(Long accountId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getAccountAnalyticsValidateBeforeCall(accountId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getAccountCollectionCall(Long collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/collections/{collectionId}" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7438,7 +13326,7 @@ public okhttp3.Call getAccountCollectionCall(Integer collectionId, final ApiCall Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7446,23 +13334,26 @@ public okhttp3.Call getAccountCollectionCall(Integer collectionId, final ApiCall } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAccountCollectionValidateBeforeCall(Long collectionId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling getAccountCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling getAccountCollection(Async)"); } - okhttp3.Call localVarCall = getAccountCollectionCall(collectionId, _callback); return localVarCall; @@ -7472,17 +13363,34 @@ private okhttp3.Call getAccountCollectionValidateBeforeCall(Integer collectionId /** * Get account-level collection * Retrieve a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public Collection getAccountCollection(Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public Collection getAccountCollection(Long collectionId) throws ApiException { ApiResponse localVarResp = getAccountCollectionWithHttpInfo(collectionId); return localVarResp.getData(); } @@ -7490,67 +13398,128 @@ public Collection getAccountCollection(Integer collectionId) throws ApiException /** * Get account-level collection * Retrieve a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse getAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse getAccountCollectionWithHttpInfo(Long collectionId) throws ApiException { okhttp3.Call localVarCall = getAccountCollectionValidateBeforeCall(collectionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get account-level collection (asynchronously) * Retrieve a given account-level collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getAccountCollectionAsync(Long collectionId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getAccountCollectionValidateBeforeCall(collectionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAchievement - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getAchievementCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7558,7 +13527,7 @@ public okhttp3.Call getAchievementCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7566,33 +13535,35 @@ public okhttp3.Call getAchievementCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getAchievement(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling getAchievement(Async)"); } - + // verify the required parameter 'achievementId' is set if (achievementId == null) { throw new ApiException("Missing the required parameter 'achievementId' when calling getAchievement(Async)"); } - okhttp3.Call localVarCall = getAchievementCall(applicationId, campaignId, achievementId, _callback); return localVarCall; @@ -7602,20 +13573,43 @@ private okhttp3.Call getAchievementValidateBeforeCall(Integer applicationId, Int /** * Get achievement * Get the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) * @return Achievement - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public Achievement getAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public Achievement getAchievement(Long applicationId, Long campaignId, Long achievementId) throws ApiException { ApiResponse localVarResp = getAchievementWithHttpInfo(applicationId, campaignId, achievementId); return localVarResp.getData(); } @@ -7623,67 +13617,132 @@ public Achievement getAchievement(Integer applicationId, Integer campaignId, Int /** * Get achievement * Get the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) * @return ApiResponse<Achievement> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse getAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public ApiResponse getAchievementWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) + throws ApiException { okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get achievement (asynchronously) * Get the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getAchievementAsync(Long applicationId, Long campaignId, Long achievementId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAdditionalCost - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param _callback Callback for upload/download progress + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAdditionalCostCall(Integer additionalCostId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAdditionalCostCall(Long additionalCostId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/additional_costs/{additionalCostId}" - .replaceAll("\\{" + "additionalCostId" + "\\}", localVarApiClient.escapeString(additionalCostId.toString())); + .replaceAll("\\{" + "additionalCostId" + "\\}", + localVarApiClient.escapeString(additionalCostId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7691,7 +13750,7 @@ public okhttp3.Call getAdditionalCostCall(Integer additionalCostId, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7699,23 +13758,26 @@ public okhttp3.Call getAdditionalCostCall(Integer additionalCostId, final ApiCal } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAdditionalCostValidateBeforeCall(Integer additionalCostId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAdditionalCostValidateBeforeCall(Long additionalCostId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'additionalCostId' is set if (additionalCostId == null) { - throw new ApiException("Missing the required parameter 'additionalCostId' when calling getAdditionalCost(Async)"); + throw new ApiException( + "Missing the required parameter 'additionalCostId' when calling getAdditionalCost(Async)"); } - okhttp3.Call localVarCall = getAdditionalCostCall(additionalCostId, _callback); return localVarCall; @@ -7724,74 +13786,134 @@ private okhttp3.Call getAdditionalCostValidateBeforeCall(Integer additionalCostI /** * Get additional cost - * Returns the additional cost. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) + * Returns the additional cost. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) * @return AccountAdditionalCost - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public AccountAdditionalCost getAdditionalCost(Integer additionalCostId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public AccountAdditionalCost getAdditionalCost(Long additionalCostId) throws ApiException { ApiResponse localVarResp = getAdditionalCostWithHttpInfo(additionalCostId); return localVarResp.getData(); } /** * Get additional cost - * Returns the additional cost. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) + * Returns the additional cost. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) * @return ApiResponse<AccountAdditionalCost> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAdditionalCostWithHttpInfo(Integer additionalCostId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAdditionalCostWithHttpInfo(Long additionalCostId) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostValidateBeforeCall(additionalCostId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get additional cost (asynchronously) - * Returns the additional cost. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param _callback The callback to be executed when the API call finishes + * Returns the additional cost. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAdditionalCostAsync(Integer additionalCostId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAdditionalCostAsync(Long additionalCostId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostValidateBeforeCall(additionalCostId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAdditionalCosts - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAdditionalCostsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAdditionalCostsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7815,7 +13937,7 @@ public okhttp3.Call getAdditionalCostsCall(Integer pageSize, Integer skip, Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7823,18 +13945,20 @@ public okhttp3.Call getAdditionalCostsCall(Integer pageSize, Integer skip, Strin } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsCall(pageSize, skip, sort, _callback); return localVarCall; @@ -7843,83 +13967,146 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Inte /** * List additional costs - * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Returns all the defined additional costs for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return InlineResponse20038 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20038 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String sort) throws ApiException { ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } /** * List additional costs - * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Returns all the defined additional costs for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20038> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAdditionalCostsWithHttpInfo(Long pageSize, Long skip, String sort) + throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List additional costs (asynchronously) - * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Returns all the defined additional costs for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAdditionalCostsAsync(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplication - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCall(Integer applicationId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCall(Long applicationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7927,7 +14114,7 @@ public okhttp3.Call getApplicationCall(Integer applicationId, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7935,23 +14122,25 @@ public okhttp3.Call getApplicationCall(Integer applicationId, final ApiCallback } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationValidateBeforeCall(Integer applicationId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationValidateBeforeCall(Long applicationId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getApplication(Async)"); } - okhttp3.Call localVarCall = getApplicationCall(applicationId, _callback); return localVarCall; @@ -7961,16 +14150,27 @@ private okhttp3.Call getApplicationValidateBeforeCall(Integer applicationId, fin /** * Get Application * Get the application specified by the ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) * @return Application - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Application getApplication(Integer applicationId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Application getApplication(Long applicationId) throws ApiException { ApiResponse localVarResp = getApplicationWithHttpInfo(applicationId); return localVarResp.getData(); } @@ -7978,59 +14178,96 @@ public Application getApplication(Integer applicationId) throws ApiException { /** * Get Application * Get the application specified by the ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<Application> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationWithHttpInfo(Integer applicationId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationWithHttpInfo(Long applicationId) throws ApiException { okhttp3.Call localVarCall = getApplicationValidateBeforeCall(applicationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Application (asynchronously) * Get the application specified by the ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationAsync(Integer applicationId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationAsync(Long applicationId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getApplicationValidateBeforeCall(applicationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationApiHealth - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationApiHealthCall(Integer applicationId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationApiHealthCall(Long applicationId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/health_report" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8038,7 +14275,7 @@ public okhttp3.Call getApplicationApiHealthCall(Integer applicationId, final Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8046,23 +14283,26 @@ public okhttp3.Call getApplicationApiHealthCall(Integer applicationId, final Api } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Integer applicationId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Long applicationId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationApiHealth(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationApiHealth(Async)"); } - okhttp3.Call localVarCall = getApplicationApiHealthCall(applicationId, _callback); return localVarCall; @@ -8071,79 +14311,140 @@ private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Integer applicati /** * Get Application health - * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Display the health of the Application and show the last time the Application + * was used. You can also find this information in the Campaign Manager. In your + * Application, click **Settings** > **Integration API Keys**. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) * @return ApplicationApiHealth - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApplicationApiHealth getApplicationApiHealth(Integer applicationId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApplicationApiHealth getApplicationApiHealth(Long applicationId) throws ApiException { ApiResponse localVarResp = getApplicationApiHealthWithHttpInfo(applicationId); return localVarResp.getData(); } /** * Get Application health - * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * Display the health of the Application and show the last time the Application + * was used. You can also find this information in the Campaign Manager. In your + * Application, click **Settings** > **Integration API Keys**. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<ApplicationApiHealth> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationApiHealthWithHttpInfo(Integer applicationId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationApiHealthWithHttpInfo(Long applicationId) + throws ApiException { okhttp3.Call localVarCall = getApplicationApiHealthValidateBeforeCall(applicationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Application health (asynchronously) - * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * Display the health of the Application and show the last time the Application + * was used. You can also find this information in the Campaign Manager. In your + * Application, click **Settings** > **Integration API Keys**. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationApiHealthAsync(Integer applicationId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationApiHealthAsync(Long applicationId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationApiHealthValidateBeforeCall(applicationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationCustomer - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomerCall(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomerCall(Long applicationId, Long customerId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customers/{customerId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8151,7 +14452,7 @@ public okhttp3.Call getApplicationCustomerCall(Integer applicationId, Integer cu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8159,28 +14460,32 @@ public okhttp3.Call getApplicationCustomerCall(Integer applicationId, Integer cu } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomerValidateBeforeCall(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationCustomerValidateBeforeCall(Long applicationId, Long customerId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationCustomer(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationCustomer(Async)"); } - + // verify the required parameter 'customerId' is set if (customerId == null) { - throw new ApiException("Missing the required parameter 'customerId' when calling getApplicationCustomer(Async)"); + throw new ApiException( + "Missing the required parameter 'customerId' when calling getApplicationCustomer(Async)"); } - okhttp3.Call localVarCall = getApplicationCustomerCall(applicationId, customerId, _callback); return localVarCall; @@ -8189,86 +14494,160 @@ private okhttp3.Call getApplicationCustomerValidateBeforeCall(Integer applicatio /** * Get application's customer - * Retrieve the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) + * Retrieve the customers of the specified application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) * @return ApplicationCustomer - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApplicationCustomer getApplicationCustomer(Integer applicationId, Integer customerId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApplicationCustomer getApplicationCustomer(Long applicationId, Long customerId) throws ApiException { ApiResponse localVarResp = getApplicationCustomerWithHttpInfo(applicationId, customerId); return localVarResp.getData(); } /** * Get application's customer - * Retrieve the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) + * Retrieve the customers of the specified application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) * @return ApiResponse<ApplicationCustomer> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationCustomerWithHttpInfo(Integer applicationId, Integer customerId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationCustomerWithHttpInfo(Long applicationId, Long customerId) + throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerValidateBeforeCall(applicationId, customerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get application's customer (asynchronously) - * Retrieve the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the customers of the specified application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomerAsync(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomerAsync(Long applicationId, Long customerId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerValidateBeforeCall(applicationId, customerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationCustomerFriends - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The Integration ID of the Advocate's Profile. + * (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomerFriendsCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomerFriendsCall(Long applicationId, String integrationId, Long pageSize, + Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/profile/{integrationId}/friends" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8292,7 +14671,7 @@ public okhttp3.Call getApplicationCustomerFriendsCall(Integer applicationId, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8300,126 +14679,251 @@ public okhttp3.Call getApplicationCustomerFriendsCall(Integer applicationId, Str } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applicationId, String integrationId, + Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationCustomerFriends(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationCustomerFriends(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getApplicationCustomerFriends(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getApplicationCustomerFriends(Async)"); } - - okhttp3.Call localVarCall = getApplicationCustomerFriendsCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, _callback); + okhttp3.Call localVarCall = getApplicationCustomerFriendsCall(applicationId, integrationId, pageSize, skip, + sort, withTotalResultSize, _callback); return localVarCall; } /** * List friends referred by customer profile - * List the friends referred by the specified customer profile in this Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * List the friends referred by the specified customer profile in this + * Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The Integration ID of the Advocate's Profile. + * (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return InlineResponse20035 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20035 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, String integrationId, Long pageSize, + Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, + integrationId, pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } /** * List friends referred by customer profile - * List the friends referred by the specified customer profile in this Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * List the friends referred by the specified customer profile in this + * Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The Integration ID of the Advocate's Profile. + * (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return ApiResponse<InlineResponse20035> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Long applicationId, + String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) + throws ApiException { + okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, + pageSize, skip, sort, withTotalResultSize, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List friends referred by customer profile (asynchronously) - * List the friends referred by the specified customer profile in this Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback The callback to be executed when the API call finishes + * List the friends referred by the specified customer profile in this + * Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The Integration ID of the Advocate's Profile. + * (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, String integrationId, Long pageSize, + Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, + pageSize, skip, sort, withTotalResultSize, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationCustomers - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId Filter results performing an exact matching + * against the profile integration identifier. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomersCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomersCall(Long applicationId, String integrationId, Long pageSize, Long skip, + Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customers" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8443,7 +14947,7 @@ public okhttp3.Call getApplicationCustomersCall(Integer applicationId, String in Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8451,25 +14955,29 @@ public okhttp3.Call getApplicationCustomersCall(Integer applicationId, String in } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationId, String integrationId, + Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationCustomers(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationCustomers(Async)"); } - - okhttp3.Call localVarCall = getApplicationCustomersCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, _callback); + okhttp3.Call localVarCall = getApplicationCustomersCall(applicationId, integrationId, pageSize, skip, + withTotalResultSize, _callback); return localVarCall; } @@ -8477,92 +14985,192 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicati /** * List application's customers * List all the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId Filter results performing an exact matching + * against the profile integration identifier. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return InlineResponse20024 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20024 getApplicationCustomers(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20024 getApplicationCustomers(Long applicationId, String integrationId, Long pageSize, + Long skip, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, + integrationId, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } /** * List application's customers * List all the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId Filter results performing an exact matching + * against the profile integration identifier. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return ApiResponse<InlineResponse20024> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationCustomersWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { - okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationCustomersWithHttpInfo(Long applicationId, + String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, + skip, withTotalResultSize, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List application's customers (asynchronously) * List all the customers of the specified application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId Filter results performing an exact matching + * against the profile integration identifier. + * (optional) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomersAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String integrationId, Long pageSize, Long skip, + Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, + skip, withTotalResultSize, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationCustomersByAttributes - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomersByAttributesCall(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomersByAttributesCall(Long applicationId, CustomerProfileSearchQuery body, + Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customer_search" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8582,7 +15190,7 @@ public okhttp3.Call getApplicationCustomersByAttributesCall(Integer applicationI Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8590,122 +15198,230 @@ public okhttp3.Call getApplicationCustomersByAttributesCall(Integer applicationI } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long applicationId, + CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationCustomersByAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationCustomersByAttributes(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling getApplicationCustomersByAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling getApplicationCustomersByAttributes(Async)"); } - - okhttp3.Call localVarCall = getApplicationCustomersByAttributesCall(applicationId, body, pageSize, skip, withTotalResultSize, _callback); + okhttp3.Call localVarCall = getApplicationCustomersByAttributesCall(applicationId, body, pageSize, skip, + withTotalResultSize, _callback); return localVarCall; } /** * List application customers matching the given attributes - * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * Get a list of the application customers matching the provided criteria. The + * match is successful if all the attributes of the request are found in a + * profile, even if the profile has more attributes that are not present on the + * request. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return InlineResponse20025 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20025 getApplicationCustomersByAttributes(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationId, CustomerProfileSearchQuery body, + Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, + body, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } /** * List application customers matching the given attributes - * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * Get a list of the application customers matching the provided criteria. The + * match is successful if all the attributes of the request are found in a + * profile, even if the profile has more attributes that are not present on the + * request. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return ApiResponse<InlineResponse20025> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { - okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Long applicationId, + CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) + throws ApiException { + okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, + skip, withTotalResultSize, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List application customers matching the given attributes (asynchronously) - * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get a list of the application customers matching the provided criteria. The + * match is successful if all the attributes of the request are found in a + * profile, even if the profile has more attributes that are not present on the + * request. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationCustomersByAttributesAsync(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, CustomerProfileSearchQuery body, + Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, + skip, withTotalResultSize, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationEventTypes - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationEventTypesCall(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationEventTypesCall(Long applicationId, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/event_types" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8725,7 +15441,7 @@ public okhttp3.Call getApplicationEventTypesCall(Integer applicationId, Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8733,23 +15449,26 @@ public okhttp3.Call getApplicationEventTypesCall(Integer applicationId, Integer } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long applicationId, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationEventTypes(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationEventTypes(Async)"); } - okhttp3.Call localVarCall = getApplicationEventTypesCall(applicationId, pageSize, skip, sort, _callback); return localVarCall; @@ -8758,100 +15477,198 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicat /** * List Applications event types - * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get all of the distinct values of the Event `type` property for + * events recorded in the application. See also: [Track an + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return InlineResponse20031 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20031 getApplicationEventTypes(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pageSize, Long skip, String sort) + throws ApiException { + ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, + skip, sort); return localVarResp.getData(); } /** * List Applications event types - * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get all of the distinct values of the Event `type` property for + * events recorded in the application. See also: [Track an + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return ApiResponse<InlineResponse20031> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationEventTypesWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException { - okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationEventTypesWithHttpInfo(Long applicationId, Long pageSize, + Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Applications event types (asynchronously) - * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get all of the distinct values of the Event `type` property for + * events recorded in the application. See also: [Track an + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationEventTypesAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationEventsWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param session Session integration ID filter for events. Must be exact match. (optional) - * @param profile Profile integration ID filter for events. Must be exact match. (optional) - * @param customerName Customer name filter for events. Will match substrings case-insensitively. (optional) - * @param customerEmail Customer e-mail address filter for events. Will match substrings case-insensitively. (optional) - * @param couponCode Coupon code (optional) - * @param referralCode Referral code (optional) - * @param ruleQuery Rule name filter for events (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param type Comma-separated list of types by which to filter events. + * Must be exact match(es). (optional) + * @param createdBefore Only return events created before this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Only return events created after this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param session Session integration ID filter for events. Must be exact + * match. (optional) + * @param profile Profile integration ID filter for events. Must be exact + * match. (optional) + * @param customerName Customer name filter for events. Will match substrings + * case-insensitively. (optional) + * @param customerEmail Customer e-mail address filter for events. Will match + * substrings case-insensitively. (optional) + * @param couponCode Coupon code (optional) + * @param referralCode Referral code (optional) + * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Long applicationId, Long pageSize, Long skip, + String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, + String profile, String customerName, String customerEmail, String couponCode, String referralCode, + String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/events/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8915,7 +15732,7 @@ public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Integer applicatio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -8923,146 +15740,274 @@ public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Integer applicatio } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Long applicationId, Long pageSize, + Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String session, String profile, String customerName, String customerEmail, String couponCode, + String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationEventsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationEventsWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, _callback); + okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountCall(applicationId, pageSize, skip, sort, type, + createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, + ruleQuery, campaignQuery, _callback); return localVarCall; } /** * List Applications events - * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param session Session integration ID filter for events. Must be exact match. (optional) - * @param profile Profile integration ID filter for events. Must be exact match. (optional) - * @param customerName Customer name filter for events. Will match substrings case-insensitively. (optional) - * @param customerEmail Customer e-mail address filter for events. Will match substrings case-insensitively. (optional) - * @param couponCode Coupon code (optional) - * @param referralCode Referral code (optional) - * @param ruleQuery Rule name filter for events (optional) + * Lists all events recorded for an application. Instead of having the total + * number of results in the response, this endpoint only mentions whether there + * are more results. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param type Comma-separated list of types by which to filter events. + * Must be exact match(es). (optional) + * @param createdBefore Only return events created before this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Only return events created after this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param session Session integration ID filter for events. Must be exact + * match. (optional) + * @param profile Profile integration ID filter for events. Must be exact + * match. (optional) + * @param customerName Customer name filter for events. Will match substrings + * case-insensitively. (optional) + * @param customerEmail Customer e-mail address filter for events. Will match + * substrings case-insensitively. (optional) + * @param couponCode Coupon code (optional) + * @param referralCode Referral code (optional) + * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) * @return InlineResponse20030 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20030 getApplicationEventsWithoutTotalCount(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { - ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicationId, Long pageSize, Long skip, + String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, + String profile, String customerName, String customerEmail, String couponCode, String referralCode, + String ruleQuery, String campaignQuery) throws ApiException { + ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, + pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, + couponCode, referralCode, ruleQuery, campaignQuery); return localVarResp.getData(); } /** * List Applications events - * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param session Session integration ID filter for events. Must be exact match. (optional) - * @param profile Profile integration ID filter for events. Must be exact match. (optional) - * @param customerName Customer name filter for events. Will match substrings case-insensitively. (optional) - * @param customerEmail Customer e-mail address filter for events. Will match substrings case-insensitively. (optional) - * @param couponCode Coupon code (optional) - * @param referralCode Referral code (optional) - * @param ruleQuery Rule name filter for events (optional) + * Lists all events recorded for an application. Instead of having the total + * number of results in the response, this endpoint only mentions whether there + * are more results. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param type Comma-separated list of types by which to filter events. + * Must be exact match(es). (optional) + * @param createdBefore Only return events created before this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Only return events created after this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param session Session integration ID filter for events. Must be exact + * match. (optional) + * @param profile Profile integration ID filter for events. Must be exact + * match. (optional) + * @param customerName Customer name filter for events. Will match substrings + * case-insensitively. (optional) + * @param customerEmail Customer e-mail address filter for events. Will match + * substrings case-insensitively. (optional) + * @param couponCode Coupon code (optional) + * @param referralCode Referral code (optional) + * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) * @return ApiResponse<InlineResponse20030> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { - okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Long applicationId, + Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, + String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { + okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, + skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, + couponCode, referralCode, ruleQuery, campaignQuery, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Applications events (asynchronously) - * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param session Session integration ID filter for events. Must be exact match. (optional) - * @param profile Profile integration ID filter for events. Must be exact match. (optional) - * @param customerName Customer name filter for events. Will match substrings case-insensitively. (optional) - * @param customerEmail Customer e-mail address filter for events. Will match substrings case-insensitively. (optional) - * @param couponCode Coupon code (optional) - * @param referralCode Referral code (optional) - * @param ruleQuery Rule name filter for events (optional) + * Lists all events recorded for an application. Instead of having the total + * number of results in the response, this endpoint only mentions whether there + * are more results. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param type Comma-separated list of types by which to filter events. + * Must be exact match(es). (optional) + * @param createdBefore Only return events created before this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Only return events created after this date. You can use + * any time zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param session Session integration ID filter for events. Must be exact + * match. (optional) + * @param profile Profile integration ID filter for events. Must be exact + * match. (optional) + * @param customerName Customer name filter for events. Will match substrings + * case-insensitively. (optional) + * @param customerEmail Customer e-mail address filter for events. Will match + * substrings case-insensitively. (optional) + * @param couponCode Coupon code (optional) + * @param referralCode Referral code (optional) + * @param ruleQuery Rule name filter for events (optional) * @param campaignQuery Campaign name filter for events (optional) - * @param _callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Long applicationId, Long pageSize, Long skip, + String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, + String profile, String customerName, String customerEmail, String couponCode, String referralCode, + String ruleQuery, String campaignQuery, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, + skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, + couponCode, referralCode, ruleQuery, campaignQuery, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationSession - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param sessionId The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param sessionId The **internal** ID of the session. You can get the ID + * with the [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationSessionCall(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationSessionCall(Long applicationId, Long sessionId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/sessions/{sessionId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "sessionId" + "\\}", localVarApiClient.escapeString(sessionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "sessionId" + "\\}", localVarApiClient.escapeString(sessionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9070,7 +16015,7 @@ public okhttp3.Call getApplicationSessionCall(Integer applicationId, Integer ses Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9078,28 +16023,32 @@ public okhttp3.Call getApplicationSessionCall(Integer applicationId, Integer ses } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationSessionValidateBeforeCall(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationSessionValidateBeforeCall(Long applicationId, Long sessionId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationSession(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationSession(Async)"); } - + // verify the required parameter 'sessionId' is set if (sessionId == null) { - throw new ApiException("Missing the required parameter 'sessionId' when calling getApplicationSession(Async)"); + throw new ApiException( + "Missing the required parameter 'sessionId' when calling getApplicationSession(Async)"); } - okhttp3.Call localVarCall = getApplicationSessionCall(applicationId, sessionId, _callback); return localVarCall; @@ -9108,91 +16057,177 @@ private okhttp3.Call getApplicationSessionValidateBeforeCall(Integer application /** * Get Application session - * Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param sessionId The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. (required) + * Get the details of the given session. You can list the sessions with the + * [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param sessionId The **internal** ID of the session. You can get the ID + * with the [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. (required) * @return ApplicationSession - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApplicationSession getApplicationSession(Integer applicationId, Integer sessionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApplicationSession getApplicationSession(Long applicationId, Long sessionId) throws ApiException { ApiResponse localVarResp = getApplicationSessionWithHttpInfo(applicationId, sessionId); return localVarResp.getData(); } /** * Get Application session - * Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param sessionId The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. (required) + * Get the details of the given session. You can list the sessions with the + * [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param sessionId The **internal** ID of the session. You can get the ID + * with the [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. (required) * @return ApiResponse<ApplicationSession> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationSessionWithHttpInfo(Integer applicationId, Integer sessionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationSessionWithHttpInfo(Long applicationId, Long sessionId) + throws ApiException { okhttp3.Call localVarCall = getApplicationSessionValidateBeforeCall(applicationId, sessionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Application session (asynchronously) - * Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param sessionId The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Get the details of the given session. You can list the sessions with the + * [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param sessionId The **internal** ID of the session. You can get the ID + * with the [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationSessionAsync(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationSessionAsync(Long applicationId, Long sessionId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationSessionValidateBeforeCall(applicationId, sessionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplicationSessions - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) - * @param state Filter by sessions with this state. Must be exact match. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) - * @param referral Filter by sessions with this referral. Must be exact match. (optional) - * @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional) - * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param profile Profile integration ID filter for sessions. Must be + * exact match. (optional) + * @param state Filter by sessions with this state. Must be exact + * match. (optional) + * @param createdBefore Only return events created before this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You can + * use any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param coupon Filter by sessions with this coupon. Must be exact + * match. (optional) + * @param referral Filter by sessions with this referral. Must be + * exact match. (optional) + * @param integrationId Filter by sessions with this integration ID. Must + * be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID + * when you create a store. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationSessionsCall(Long applicationId, Long pageSize, Long skip, String sort, + String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, + String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/sessions" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9244,7 +16279,7 @@ public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9252,132 +16287,255 @@ public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pa } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId, Long pageSize, Long skip, + String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String coupon, String referral, String integrationId, String storeIntegrationId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getApplicationSessions(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getApplicationSessions(Async)"); } - - okhttp3.Call localVarCall = getApplicationSessionsCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); + okhttp3.Call localVarCall = getApplicationSessionsCall(applicationId, pageSize, skip, sort, profile, state, + createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); return localVarCall; } /** * List Application sessions - * List all the sessions of the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) - * @param state Filter by sessions with this state. Must be exact match. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) - * @param referral Filter by sessions with this referral. Must be exact match. (optional) - * @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional) - * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) + * List all the sessions of the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param profile Profile integration ID filter for sessions. Must be + * exact match. (optional) + * @param state Filter by sessions with this state. Must be exact + * match. (optional) + * @param createdBefore Only return events created before this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You can + * use any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param coupon Filter by sessions with this coupon. Must be exact + * match. (optional) + * @param referral Filter by sessions with this referral. Must be + * exact match. (optional) + * @param integrationId Filter by sessions with this integration ID. Must + * be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID + * when you create a store. (optional) * @return InlineResponse20029 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20029 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { - ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageSize, Long skip, String sort, + String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, + String referral, String integrationId, String storeIntegrationId) throws ApiException { + ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, + skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, + storeIntegrationId); return localVarResp.getData(); } /** * List Application sessions - * List all the sessions of the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) - * @param state Filter by sessions with this state. Must be exact match. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) - * @param referral Filter by sessions with this referral. Must be exact match. (optional) - * @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional) - * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) + * List all the sessions of the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param profile Profile integration ID filter for sessions. Must be + * exact match. (optional) + * @param state Filter by sessions with this state. Must be exact + * match. (optional) + * @param createdBefore Only return events created before this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You can + * use any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param coupon Filter by sessions with this coupon. Must be exact + * match. (optional) + * @param referral Filter by sessions with this referral. Must be + * exact match. (optional) + * @param integrationId Filter by sessions with this integration ID. Must + * be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID + * when you create a store. (optional) * @return ApiResponse<InlineResponse20029> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { - okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationSessionsWithHttpInfo(Long applicationId, Long pageSize, + Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String coupon, String referral, String integrationId, + String storeIntegrationId) throws ApiException { + okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, + profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Application sessions (asynchronously) - * List all the sessions of the specified Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) - * @param state Filter by sessions with this state. Must be exact match. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param coupon Filter by sessions with this coupon. Must be exact match. (optional) - * @param referral Filter by sessions with this referral. Must be exact match. (optional) - * @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional) - * @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional) - * @param _callback The callback to be executed when the API call finishes + * List all the sessions of the specified Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param profile Profile integration ID filter for sessions. Must be + * exact match. (optional) + * @param state Filter by sessions with this state. Must be exact + * match. (optional) + * @param createdBefore Only return events created before this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You can + * use any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param coupon Filter by sessions with this coupon. Must be exact + * match. (optional) + * @param referral Filter by sessions with this referral. Must be + * exact match. (optional) + * @param integrationId Filter by sessions with this integration ID. Must + * be exact match. (optional) + * @param storeIntegrationId The integration ID of the store. You choose this ID + * when you create a store. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSize, Long skip, String sort, + String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, + String referral, String integrationId, String storeIntegrationId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, + profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getApplications - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9401,7 +16559,7 @@ public okhttp3.Call getApplicationsCall(Integer pageSize, Integer skip, String s Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9409,18 +16567,20 @@ public okhttp3.Call getApplicationsCall(Integer pageSize, Integer skip, String s } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getApplicationsValidateBeforeCall(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationsCall(pageSize, skip, sort, _callback); return localVarCall; @@ -9430,18 +16590,34 @@ private okhttp3.Call getApplicationsValidateBeforeCall(Integer pageSize, Integer /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return InlineResponse2007 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse2007 getApplications(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse2007 getApplications(Long pageSize, Long skip, String sort) throws ApiException { ApiResponse localVarResp = getApplicationsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -9449,63 +16625,112 @@ public InlineResponse2007 getApplications(Integer pageSize, Integer skip, String /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse2007> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getApplicationsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getApplicationsWithHttpInfo(Long pageSize, Long skip, String sort) + throws ApiException { okhttp3.Call localVarCall = getApplicationsValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Applications (asynchronously) * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getApplicationsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getApplicationsAsync(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationsValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAttribute - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param _callback Callback for upload/download progress + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAttributeCall(Integer attributeId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAttributeCall(Long attributeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/attributes/{attributeId}" - .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); + .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9513,7 +16738,7 @@ public okhttp3.Call getAttributeCall(Integer attributeId, final ApiCallback _cal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9521,23 +16746,25 @@ public okhttp3.Call getAttributeCall(Integer attributeId, final ApiCallback _cal } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeValidateBeforeCall(Integer attributeId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAttributeValidateBeforeCall(Long attributeId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'attributeId' is set if (attributeId == null) { throw new ApiException("Missing the required parameter 'attributeId' when calling getAttribute(Async)"); } - okhttp3.Call localVarCall = getAttributeCall(attributeId, _callback); return localVarCall; @@ -9546,75 +16773,135 @@ private okhttp3.Call getAttributeValidateBeforeCall(Integer attributeId, final A /** * Get custom attribute - * Retrieve the specified custom attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) + * Retrieve the specified custom attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) * @return Attribute - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Attribute getAttribute(Integer attributeId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Attribute getAttribute(Long attributeId) throws ApiException { ApiResponse localVarResp = getAttributeWithHttpInfo(attributeId); return localVarResp.getData(); } /** * Get custom attribute - * Retrieve the specified custom attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) + * Retrieve the specified custom attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) * @return ApiResponse<Attribute> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAttributeWithHttpInfo(Integer attributeId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAttributeWithHttpInfo(Long attributeId) throws ApiException { okhttp3.Call localVarCall = getAttributeValidateBeforeCall(attributeId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get custom attribute (asynchronously) - * Retrieve the specified custom attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the specified custom attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAttributeAsync(Integer attributeId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAttributeAsync(Long attributeId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getAttributeValidateBeforeCall(attributeId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAttributes - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param entity Returned attributes will be filtered by supplied entity. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param entity Returned attributes will be filtered by supplied entity. + * (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAttributesCall(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAttributesCall(Long pageSize, Long skip, String sort, String entity, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9642,7 +16929,7 @@ public okhttp3.Call getAttributesCall(Integer pageSize, Integer skip, String sor Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9650,18 +16937,20 @@ public okhttp3.Call getAttributesCall(Integer pageSize, Integer skip, String sor } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, String sort, String entity, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributesCall(pageSize, skip, sort, entity, _callback); return localVarCall; @@ -9670,91 +16959,168 @@ private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer s /** * List custom attributes - * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param entity Returned attributes will be filtered by supplied entity. (optional) + * Return all the custom attributes for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param entity Returned attributes will be filtered by supplied entity. + * (optional) * @return InlineResponse20036 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20036 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, String entity) throws ApiException { ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity); return localVarResp.getData(); } /** * List custom attributes - * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param entity Returned attributes will be filtered by supplied entity. (optional) + * Return all the custom attributes for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param entity Returned attributes will be filtered by supplied entity. + * (optional) * @return ApiResponse<InlineResponse20036> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAttributesWithHttpInfo(Long pageSize, Long skip, String sort, + String entity) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List custom attributes (asynchronously) - * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param entity Returned attributes will be filtered by supplied entity. (optional) + * Return all the custom attributes for the account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param entity Returned attributes will be filtered by supplied entity. + * (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, String entity, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAudienceMemberships - * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @param profileQuery The filter to select a profile. (optional) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getAudienceMembershipsCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getAudienceMembershipsCall(Long audienceId, Long pageSize, Long skip, String sort, + String profileQuery, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/audiences/{audienceId}/memberships" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9778,7 +17144,7 @@ public okhttp3.Call getAudienceMembershipsCall(Integer audienceId, Integer pageS Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9786,115 +17152,219 @@ public okhttp3.Call getAudienceMembershipsCall(Integer audienceId, Integer pageS } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, Long pageSize, Long skip, + String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling getAudienceMemberships(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceId' when calling getAudienceMemberships(Async)"); } - - okhttp3.Call localVarCall = getAudienceMembershipsCall(audienceId, pageSize, skip, sort, profileQuery, _callback); + okhttp3.Call localVarCall = getAudienceMembershipsCall(audienceId, pageSize, skip, sort, profileQuery, + _callback); return localVarCall; } /** * List audience members - * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. - * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get a paginated list of the customer profiles in a given audience. A maximum + * of 1000 customer profiles per page is allowed. + * + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @param profileQuery The filter to select a profile. (optional) * @return InlineResponse20034 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public InlineResponse20034 getAudienceMemberships(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { - ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize, Long skip, String sort, + String profileQuery) throws ApiException { + ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, + sort, profileQuery); return localVarResp.getData(); } /** * List audience members - * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. - * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get a paginated list of the customer profiles in a given audience. A maximum + * of 1000 customer profiles per page is allowed. + * + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @param profileQuery The filter to select a profile. (optional) * @return ApiResponse<InlineResponse20034> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse getAudienceMembershipsWithHttpInfo(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { - okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse getAudienceMembershipsWithHttpInfo(Long audienceId, Long pageSize, + Long skip, String sort, String profileQuery) throws ApiException { + okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, + profileQuery, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List audience members (asynchronously) - * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. - * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get a paginated list of the customer profiles in a given audience. A maximum + * of 1000 customer profiles per page is allowed. + * + * @param audienceId The ID of the audience. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @param profileQuery The filter to select a profile. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getAudienceMembershipsAsync(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, Long skip, String sort, + String profileQuery, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, + profileQuery, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAudiences - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback Callback for upload/download progress + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAudiencesCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9922,7 +17392,7 @@ public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9930,18 +17400,20 @@ public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesCall(pageSize, skip, sort, withTotalResultSize, _callback); return localVarCall; @@ -9950,82 +17422,185 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer sk /** * List audiences - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * Get all audiences created in the account. To create an audience, use [Create + * audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return InlineResponse20032 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20032 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { - ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) + throws ApiException { + ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, + withTotalResultSize); return localVarResp.getData(); } /** * List audiences - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * Get all audiences created in the account. To create an audience, use [Create + * audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) * @return ApiResponse<InlineResponse20032> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAudiencesWithHttpInfo(Long pageSize, Long skip, String sort, + Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List audiences (asynchronously) - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get all audiences created in the account. To create an audience, use [Create + * audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAudiencesAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getAudiencesAnalytics - * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param audienceIds The IDs of one or more audiences, separated by commas, by + * which to filter results. (required) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAudiencesAnalyticsCall(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAudiencesAnalyticsCall(String audienceIds, String sort, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10045,7 +17620,7 @@ public okhttp3.Call getAudiencesAnalyticsCall(String audienceIds, String sort, f Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10053,23 +17628,26 @@ public okhttp3.Call getAudiencesAnalyticsCall(String audienceIds, String sort, f } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds, String sort, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceIds' is set if (audienceIds == null) { - throw new ApiException("Missing the required parameter 'audienceIds' when calling getAudiencesAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceIds' when calling getAudiencesAnalytics(Async)"); } - okhttp3.Call localVarCall = getAudiencesAnalyticsCall(audienceIds, sort, _callback); return localVarCall; @@ -10078,16 +17656,32 @@ private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds, /** * List audience analytics - * Get a list of audience IDs and their member count. - * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get a list of audience IDs and their member count. + * + * @param audienceIds The IDs of one or more audiences, separated by commas, by + * which to filter results. (required) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return InlineResponse20033 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public InlineResponse20033 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException { ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort); @@ -10096,64 +17690,113 @@ public InlineResponse20033 getAudiencesAnalytics(String audienceIds, String sort /** * List audience analytics - * Get a list of audience IDs and their member count. - * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Get a list of audience IDs and their member count. + * + * @param audienceIds The IDs of one or more audiences, separated by commas, by + * which to filter results. (required) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return ApiResponse<InlineResponse20033> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) + throws ApiException { okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List audience analytics (asynchronously) - * Get a list of audience IDs and their member count. - * @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get a list of audience IDs and their member count. + * + * @param audienceIds The IDs of one or more audiences, separated by commas, by + * which to filter results. (required) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaign - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignCall(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10161,7 +17804,7 @@ public okhttp3.Call getCampaignCall(Integer applicationId, Integer campaignId, f Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10169,28 +17812,30 @@ public okhttp3.Call getCampaignCall(Integer applicationId, Integer campaignId, f } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignValidateBeforeCall(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getCampaign(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaign(Async)"); } - okhttp3.Call localVarCall = getCampaignCall(applicationId, campaignId, _callback); return localVarCall; @@ -10200,17 +17845,29 @@ private okhttp3.Call getCampaignValidateBeforeCall(Integer applicationId, Intege /** * Get campaign * Retrieve the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return Campaign - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Campaign getCampaign(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Campaign getCampaign(Long applicationId, Long campaignId) throws ApiException { ApiResponse localVarResp = getCampaignWithHttpInfo(applicationId, campaignId); return localVarResp.getData(); } @@ -10218,66 +17875,121 @@ public Campaign getCampaign(Integer applicationId, Integer campaignId) throws Ap /** * Get campaign * Retrieve the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) * @return ApiResponse<Campaign> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { okhttp3.Call localVarCall = getCampaignValidateBeforeCall(applicationId, campaignId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get campaign (asynchronously) * Retrieve the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignAsync(Long applicationId, Long campaignId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getCampaignValidateBeforeCall(applicationId, campaignId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaignAnalytics - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param granularity The time interval between the results in the returned time-series. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param granularity The time interval between the results in the returned + * time-series. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignAnalyticsCall(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignAnalyticsCall(Long applicationId, Long campaignId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/analytics" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10297,7 +18009,7 @@ public okhttp3.Call getCampaignAnalyticsCall(Integer applicationId, Integer camp Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10305,40 +18017,48 @@ public okhttp3.Call getCampaignAnalyticsCall(Integer applicationId, Integer camp } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Long applicationId, Long campaignId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCampaignAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCampaignAnalytics(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaignAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling getCampaignAnalytics(Async)"); } - + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getCampaignAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling getCampaignAnalytics(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getCampaignAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling getCampaignAnalytics(Async)"); } - - okhttp3.Call localVarCall = getCampaignAnalyticsCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, _callback); + okhttp3.Call localVarCall = getCampaignAnalyticsCall(applicationId, campaignId, rangeStart, rangeEnd, + granularity, _callback); return localVarCall; } @@ -10346,93 +18066,209 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationI /** * Get analytics of campaigns * Retrieve statistical data about the performance of the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param granularity The time interval between the results in the returned time-series. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param granularity The time interval between the results in the returned + * time-series. (optional) * @return InlineResponse20023 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20023 getCampaignAnalytics(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { - ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaignId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String granularity) throws ApiException { + ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, + rangeStart, rangeEnd, granularity); return localVarResp.getData(); } /** * Get analytics of campaigns * Retrieve statistical data about the performance of the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param granularity The time interval between the results in the returned time-series. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param granularity The time interval between the results in the returned + * time-series. (optional) * @return ApiResponse<InlineResponse20023> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { - okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignAnalyticsWithHttpInfo(Long applicationId, Long campaignId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { + okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, + rangeEnd, granularity, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get analytics of campaigns (asynchronously) * Retrieve statistical data about the performance of the given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param granularity The time interval between the results in the returned time-series. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param granularity The time interval between the results in the returned + * time-series. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignAnalyticsAsync(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, + rangeEnd, granularity, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaignByAttributes - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - `running`: + * Campaigns that are running (activated). - + * `disabled`: Campaigns that are disabled. - + * `expired`: Campaigns that are expired. - + * `archived`: Campaigns that are archived. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignByAttributesCall(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignByAttributesCall(Long applicationId, CampaignSearch body, Long pageSize, Long skip, + String sort, String campaignState, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns_search" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10456,7 +18292,7 @@ public okhttp3.Call getCampaignByAttributesCall(Integer applicationId, CampaignS Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10464,122 +18300,221 @@ public okhttp3.Call getCampaignByAttributesCall(Integer applicationId, CampaignS } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Long applicationId, CampaignSearch body, + Long pageSize, Long skip, String sort, String campaignState, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCampaignByAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCampaignByAttributes(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling getCampaignByAttributes(Async)"); } - - okhttp3.Call localVarCall = getCampaignByAttributesCall(applicationId, body, pageSize, skip, sort, campaignState, _callback); + okhttp3.Call localVarCall = getCampaignByAttributesCall(applicationId, body, pageSize, skip, sort, + campaignState, _callback); return localVarCall; } /** * List campaigns that match the given attributes - * Get a list of all the campaigns that match a set of attributes. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) + * Get a list of all the campaigns that match a set of attributes. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - `running`: + * Campaigns that are running (activated). - + * `disabled`: Campaigns that are disabled. - + * `expired`: Campaigns that are expired. - + * `archived`: Campaigns that are archived. + * (optional) * @return InlineResponse2008 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse2008 getCampaignByAttributes(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { - ApiResponse localVarResp = getCampaignByAttributesWithHttpInfo(applicationId, body, pageSize, skip, sort, campaignState); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse2008 getCampaignByAttributes(Long applicationId, CampaignSearch body, Long pageSize, Long skip, + String sort, String campaignState) throws ApiException { + ApiResponse localVarResp = getCampaignByAttributesWithHttpInfo(applicationId, body, + pageSize, skip, sort, campaignState); return localVarResp.getData(); } /** * List campaigns that match the given attributes - * Get a list of all the campaigns that match a set of attributes. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) + * Get a list of all the campaigns that match a set of attributes. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - `running`: + * Campaigns that are running (activated). - + * `disabled`: Campaigns that are disabled. - + * `expired`: Campaigns that are expired. - + * `archived`: Campaigns that are archived. + * (optional) * @return ApiResponse<InlineResponse2008> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignByAttributesWithHttpInfo(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { - okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignByAttributesWithHttpInfo(Long applicationId, CampaignSearch body, + Long pageSize, Long skip, String sort, String campaignState) throws ApiException { + okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, + campaignState, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaigns that match the given attributes (asynchronously) - * Get a list of all the campaigns that match a set of attributes. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param _callback The callback to be executed when the API call finishes + * Get a list of all the campaigns that match a set of attributes. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - `running`: + * Campaigns that are running (activated). - + * `disabled`: Campaigns that are disabled. - + * `expired`: Campaigns that are expired. - + * `archived`: Campaigns that are archived. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignByAttributesAsync(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignByAttributesAsync(Long applicationId, CampaignSearch body, Long pageSize, Long skip, + String sort, String campaignState, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, + campaignState, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaignGroup + * * @param campaignGroupId The ID of the campaign access group. (required) - * @param _callback Callback for upload/download progress + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignGroupCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignGroupCall(Long campaignGroupId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/campaign_groups/{campaignGroupId}" - .replaceAll("\\{" + "campaignGroupId" + "\\}", localVarApiClient.escapeString(campaignGroupId.toString())); + .replaceAll("\\{" + "campaignGroupId" + "\\}", + localVarApiClient.escapeString(campaignGroupId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10587,7 +18522,7 @@ public okhttp3.Call getCampaignGroupCall(Integer campaignGroupId, final ApiCallb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10595,23 +18530,26 @@ public okhttp3.Call getCampaignGroupCall(Integer campaignGroupId, final ApiCallb } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignGroupValidateBeforeCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignGroupValidateBeforeCall(Long campaignGroupId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'campaignGroupId' is set if (campaignGroupId == null) { - throw new ApiException("Missing the required parameter 'campaignGroupId' when calling getCampaignGroup(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignGroupId' when calling getCampaignGroup(Async)"); } - okhttp3.Call localVarCall = getCampaignGroupCall(campaignGroupId, _callback); return localVarCall; @@ -10621,16 +18559,26 @@ private okhttp3.Call getCampaignGroupValidateBeforeCall(Integer campaignGroupId, /** * Get campaign access group * Get a campaign access group specified by its ID. + * * @param campaignGroupId The ID of the campaign access group. (required) * @return CampaignGroup - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public CampaignGroup getCampaignGroup(Integer campaignGroupId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public CampaignGroup getCampaignGroup(Long campaignGroupId) throws ApiException { ApiResponse localVarResp = getCampaignGroupWithHttpInfo(campaignGroupId); return localVarResp.getData(); } @@ -10638,56 +18586,96 @@ public CampaignGroup getCampaignGroup(Integer campaignGroupId) throws ApiExcepti /** * Get campaign access group * Get a campaign access group specified by its ID. + * * @param campaignGroupId The ID of the campaign access group. (required) * @return ApiResponse<CampaignGroup> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignGroupWithHttpInfo(Integer campaignGroupId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignGroupWithHttpInfo(Long campaignGroupId) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get campaign access group (asynchronously) * Get a campaign access group specified by its ID. + * * @param campaignGroupId The ID of the campaign access group. (required) - * @param _callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignGroupAsync(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignGroupAsync(Long campaignGroupId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaignGroups - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignGroupsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignGroupsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10711,7 +18699,7 @@ public okhttp3.Call getCampaignGroupsCall(Integer pageSize, Integer skip, String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10719,18 +18707,20 @@ public okhttp3.Call getCampaignGroupsCall(Integer pageSize, Integer skip, String } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignGroupsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignGroupsValidateBeforeCall(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsCall(pageSize, skip, sort, _callback); return localVarCall; @@ -10740,18 +18730,34 @@ private okhttp3.Call getCampaignGroupsValidateBeforeCall(Integer pageSize, Integ /** * List campaign access groups * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return InlineResponse20013 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20013 getCampaignGroups(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20013 getCampaignGroups(Long pageSize, Long skip, String sort) throws ApiException { ApiResponse localVarResp = getCampaignGroupsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -10759,64 +18765,123 @@ public InlineResponse20013 getCampaignGroups(Integer pageSize, Integer skip, Str /** * List campaign access groups * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20013> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignGroupsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignGroupsWithHttpInfo(Long pageSize, Long skip, String sort) + throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaign access groups (asynchronously) * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignGroupsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignGroupsAsync(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaignTemplates - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param state Filter results by the state of the campaign template. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) - * @param userId Filter results by user ID. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param state Filter results by the state of the campaign template. + * (optional) + * @param name Filter results performing case-insensitive matching against + * the name of the campaign template. (optional) + * @param tags Filter results performing case-insensitive matching against + * the tags of the campaign template. When used in conjunction + * with the \"name\" query parameter, a logical OR + * will be performed to search both tags and name for the + * provided values. (optional) + * @param userId Filter results by user ID. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignTemplatesCall(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignTemplatesCall(Long pageSize, Long skip, String sort, String state, String name, + String tags, Long userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10856,7 +18921,7 @@ public okhttp3.Call getCampaignTemplatesCall(Integer pageSize, Integer skip, Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10864,20 +18929,23 @@ public okhttp3.Call getCampaignTemplatesCall(Integer pageSize, Integer skip, Str } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Long pageSize, Long skip, String sort, String state, + String name, String tags, Long userId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCampaignTemplatesCall(pageSize, skip, sort, state, name, tags, userId, _callback); + okhttp3.Call localVarCall = getCampaignTemplatesCall(pageSize, skip, sort, state, name, tags, userId, + _callback); return localVarCall; } @@ -10885,106 +18953,225 @@ private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Integer pageSize, In /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param state Filter results by the state of the campaign template. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) - * @param userId Filter results by user ID. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param state Filter results by the state of the campaign template. + * (optional) + * @param name Filter results performing case-insensitive matching against + * the name of the campaign template. (optional) + * @param tags Filter results performing case-insensitive matching against + * the tags of the campaign template. When used in conjunction + * with the \"name\" query parameter, a logical OR + * will be performed to search both tags and name for the + * provided values. (optional) + * @param userId Filter results by user ID. (optional) * @return InlineResponse20014 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20014 getCampaignTemplates(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { - ApiResponse localVarResp = getCampaignTemplatesWithHttpInfo(pageSize, skip, sort, state, name, tags, userId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20014 getCampaignTemplates(Long pageSize, Long skip, String sort, String state, String name, + String tags, Long userId) throws ApiException { + ApiResponse localVarResp = getCampaignTemplatesWithHttpInfo(pageSize, skip, sort, state, + name, tags, userId); return localVarResp.getData(); } /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param state Filter results by the state of the campaign template. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) - * @param userId Filter results by user ID. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param state Filter results by the state of the campaign template. + * (optional) + * @param name Filter results performing case-insensitive matching against + * the name of the campaign template. (optional) + * @param tags Filter results performing case-insensitive matching against + * the tags of the campaign template. When used in conjunction + * with the \"name\" query parameter, a logical OR + * will be performed to search both tags and name for the + * provided values. (optional) + * @param userId Filter results by user ID. (optional) * @return ApiResponse<InlineResponse20014> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCampaignTemplatesWithHttpInfo(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { - okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCampaignTemplatesWithHttpInfo(Long pageSize, Long skip, String sort, + String state, String name, String tags, Long userId) throws ApiException { + okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, + userId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaign templates (asynchronously) * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param state Filter results by the state of the campaign template. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign template. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. (optional) - * @param userId Filter results by user ID. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) + * @param state Filter results by the state of the campaign template. + * (optional) + * @param name Filter results performing case-insensitive matching against + * the name of the campaign template. (optional) + * @param tags Filter results performing case-insensitive matching against + * the tags of the campaign template. When used in conjunction + * with the \"name\" query parameter, a logical OR + * will be performed to search both tags and name for the + * provided values. (optional) + * @param userId Filter results by user ID. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCampaignTemplatesAsync(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCampaignTemplatesAsync(Long pageSize, Long skip, String sort, String state, String name, + String tags, Long userId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, + userId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCampaigns - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param campaignGroupId Filter results to campaigns owned by the specified campaign access group ID. (optional) - * @param templateId The ID of the campaign template this campaign was created from. (optional) - * @param storeId Filter results to campaigns linked to the specified store ID. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns that + * are disabled. - `expired`: Campaigns that + * are expired. - `archived`: Campaigns that + * are archived. (optional) + * @param name Filter results performing case-insensitive matching + * against the name of the campaign. (optional) + * @param tags Filter results performing case-insensitive matching + * against the tags of the campaign. When used in + * conjunction with the \"name\" query + * parameter, a logical OR will be performed to search + * both tags and name for the provided values (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param campaignGroupId Filter results to campaigns owned by the specified + * campaign access group ID. (optional) + * @param templateId The ID of the campaign template this campaign was + * created from. (optional) + * @param storeId Filter results to campaigns linked to the specified + * store ID. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public okhttp3.Call getCampaignsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public okhttp3.Call getCampaignsCall(Long applicationId, Long pageSize, Long skip, String sort, + String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11036,7 +19223,7 @@ public okhttp3.Call getCampaignsCall(Integer applicationId, Integer pageSize, In Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11044,143 +19231,331 @@ public okhttp3.Call getCampaignsCall(Integer applicationId, Integer pageSize, In } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCampaignsValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, + String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getCampaigns(Async)"); } - - okhttp3.Call localVarCall = getCampaignsCall(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, _callback); + okhttp3.Call localVarCall = getCampaignsCall(applicationId, pageSize, skip, sort, campaignState, name, tags, + createdBefore, createdAfter, campaignGroupId, templateId, storeId, _callback); return localVarCall; } /** * List campaigns - * List the campaigns of the specified application that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param campaignGroupId Filter results to campaigns owned by the specified campaign access group ID. (optional) - * @param templateId The ID of the campaign template this campaign was created from. (optional) - * @param storeId Filter results to campaigns linked to the specified store ID. (optional) + * List the campaigns of the specified application that match your filter + * criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns that + * are disabled. - `expired`: Campaigns that + * are expired. - `archived`: Campaigns that + * are archived. (optional) + * @param name Filter results performing case-insensitive matching + * against the name of the campaign. (optional) + * @param tags Filter results performing case-insensitive matching + * against the tags of the campaign. When used in + * conjunction with the \"name\" query + * parameter, a logical OR will be performed to search + * both tags and name for the provided values (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param campaignGroupId Filter results to campaigns owned by the specified + * campaign access group ID. (optional) + * @param templateId The ID of the campaign template this campaign was + * created from. (optional) + * @param storeId Filter results to campaigns linked to the specified + * store ID. (optional) * @return InlineResponse2008 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public InlineResponse2008 getCampaigns(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId) throws ApiException { - ApiResponse localVarResp = getCampaignsWithHttpInfo(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public InlineResponse2008 getCampaigns(Long applicationId, Long pageSize, Long skip, String sort, + String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Long campaignGroupId, Long templateId, Long storeId) throws ApiException { + ApiResponse localVarResp = getCampaignsWithHttpInfo(applicationId, pageSize, skip, sort, + campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); return localVarResp.getData(); } /** * List campaigns - * List the campaigns of the specified application that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param campaignGroupId Filter results to campaigns owned by the specified campaign access group ID. (optional) - * @param templateId The ID of the campaign template this campaign was created from. (optional) - * @param storeId Filter results to campaigns linked to the specified store ID. (optional) + * List the campaigns of the specified application that match your filter + * criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns that + * are disabled. - `expired`: Campaigns that + * are expired. - `archived`: Campaigns that + * are archived. (optional) + * @param name Filter results performing case-insensitive matching + * against the name of the campaign. (optional) + * @param tags Filter results performing case-insensitive matching + * against the tags of the campaign. When used in + * conjunction with the \"name\" query + * parameter, a logical OR will be performed to search + * both tags and name for the provided values (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param campaignGroupId Filter results to campaigns owned by the specified + * campaign access group ID. (optional) + * @param templateId The ID of the campaign template this campaign was + * created from. (optional) + * @param storeId Filter results to campaigns linked to the specified + * store ID. (optional) * @return ApiResponse<InlineResponse2008> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public ApiResponse getCampaignsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId) throws ApiException { - okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public ApiResponse getCampaignsWithHttpInfo(Long applicationId, Long pageSize, Long skip, + String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId) throws ApiException { + okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, + name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaigns (asynchronously) - * List the campaigns of the specified application that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param name Filter results performing case-insensitive matching against the name of the campaign. (optional) - * @param tags Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param campaignGroupId Filter results to campaigns owned by the specified campaign access group ID. (optional) - * @param templateId The ID of the campaign template this campaign was created from. (optional) - * @param storeId Filter results to campaigns linked to the specified store ID. (optional) - * @param _callback The callback to be executed when the API call finishes + * List the campaigns of the specified application that match your filter + * criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to performance + * limitations. (optional) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are scheduled, + * running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns that + * are disabled. - `expired`: Campaigns that + * are expired. - `archived`: Campaigns that + * are archived. (optional) + * @param name Filter results performing case-insensitive matching + * against the name of the campaign. (optional) + * @param tags Filter results performing case-insensitive matching + * against the tags of the campaign. When used in + * conjunction with the \"name\" query + * parameter, a logical OR will be performed to search + * both tags and name for the provided values (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the campaign + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param campaignGroupId Filter results to campaigns owned by the specified + * campaign access group ID. (optional) + * @param templateId The ID of the campaign template this campaign was + * created from. (optional) + * @param storeId Filter results to campaigns linked to the specified + * store ID. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
- */ - public okhttp3.Call getCampaignsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
+ */ + public okhttp3.Call getCampaignsAsync(Long applicationId, Long pageSize, Long skip, String sort, + String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, + name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getChanges - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param entityPath Filter results on a case insensitive matching of the url path of the entity (optional) - * @param userId Filter results by user ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param managementKeyId Filter results that match the given management key ID. (optional) - * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) - * @param _callback Callback for upload/download progress + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param entityPath Filter results on a case insensitive matching of + * the url path of the entity (optional) + * @param userId Filter results by user ID. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param managementKeyId Filter results that match the given management key + * ID. (optional) + * @param includeOld When this flag is set to false, the state without + * the change will not be returned. The default value + * is true. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getChangesCall(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getChangesCall(Long pageSize, Long skip, String sort, BigDecimal applicationId, + String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11236,7 +19611,7 @@ public okhttp3.Call getChangesCall(Integer pageSize, Integer skip, String sort, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11244,132 +19619,282 @@ public okhttp3.Call getChangesCall(Integer pageSize, Integer skip, String sort, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, String sort, BigDecimal applicationId, + String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) + throws ApiException { - okhttp3.Call localVarCall = getChangesCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); + okhttp3.Call localVarCall = getChangesCall(pageSize, skip, sort, applicationId, entityPath, userId, + createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); return localVarCall; } /** * Get audit logs for an account - * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param entityPath Filter results on a case insensitive matching of the url path of the entity (optional) - * @param userId Filter results by user ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param managementKeyId Filter results that match the given management key ID. (optional) - * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) + * Retrieve the audit logs displayed in **Accounts > Audit logs**. + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param entityPath Filter results on a case insensitive matching of + * the url path of the entity (optional) + * @param userId Filter results by user ID. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param managementKeyId Filter results that match the given management key + * ID. (optional) + * @param includeOld When this flag is set to false, the state without + * the change will not be returned. The default value + * is true. (optional) * @return InlineResponse20044 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20044 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { - ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20044 getChanges(Long pageSize, Long skip, String sort, BigDecimal applicationId, + String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { + ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, + entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); return localVarResp.getData(); } /** * Get audit logs for an account - * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param entityPath Filter results on a case insensitive matching of the url path of the entity (optional) - * @param userId Filter results by user ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param managementKeyId Filter results that match the given management key ID. (optional) - * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) + * Retrieve the audit logs displayed in **Accounts > Audit logs**. + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param entityPath Filter results on a case insensitive matching of + * the url path of the entity (optional) + * @param userId Filter results by user ID. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param managementKeyId Filter results that match the given management key + * ID. (optional) + * @param includeOld When this flag is set to false, the state without + * the change will not be returned. The default value + * is true. (optional) * @return ApiResponse<InlineResponse20044> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { - okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getChangesWithHttpInfo(Long pageSize, Long skip, String sort, + BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) + throws ApiException { + okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, + userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get audit logs for an account (asynchronously) - * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param entityPath Filter results on a case insensitive matching of the url path of the entity (optional) - * @param userId Filter results by user ID. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param managementKeyId Filter results that match the given management key ID. (optional) - * @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the audit logs displayed in **Accounts > Audit logs**. + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param entityPath Filter results on a case insensitive matching of + * the url path of the entity (optional) + * @param userId Filter results by user ID. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to the + * change creation timestamp. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param managementKeyId Filter results that match the given management key + * ID. (optional) + * @param includeOld When this flag is set to false, the state without + * the change will not be returned. The default value + * is true. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getChangesAsync(Long pageSize, Long skip, String sort, BigDecimal applicationId, + String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, + userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCollection - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getCollectionCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11377,7 +19902,7 @@ public okhttp3.Call getCollectionCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11385,33 +19910,35 @@ public okhttp3.Call getCollectionCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getCollection(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling getCollection(Async)"); } - + // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling getCollection(Async)"); } - okhttp3.Call localVarCall = getCollectionCall(applicationId, campaignId, collectionId, _callback); return localVarCall; @@ -11421,19 +19948,38 @@ private okhttp3.Call getCollectionValidateBeforeCall(Integer applicationId, Inte /** * Get campaign-level collection * Retrieve a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public Collection getCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public Collection getCollection(Long applicationId, Long campaignId, Long collectionId) throws ApiException { ApiResponse localVarResp = getCollectionWithHttpInfo(applicationId, campaignId, collectionId); return localVarResp.getData(); } @@ -11441,68 +19987,130 @@ public Collection getCollection(Integer applicationId, Integer campaignId, Integ /** * Get campaign-level collection * Retrieve a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse getCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse getCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) + throws ApiException { okhttp3.Call localVarCall = getCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get campaign-level collection (asynchronously) * Retrieve a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getCollectionAsync(Long applicationId, Long campaignId, Long collectionId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCollectionItems - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getCollectionItemsCall(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getCollectionItemsCall(Long collectionId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/collections/{collectionId}/items" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11518,7 +20126,7 @@ public okhttp3.Call getCollectionItemsCall(Integer collectionId, Integer pageSiz Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11526,23 +20134,26 @@ public okhttp3.Call getCollectionItemsCall(Integer collectionId, Integer pageSiz } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCollectionItemsValidateBeforeCall(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling getCollectionItems(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling getCollectionItems(Async)"); } - okhttp3.Call localVarCall = getCollectionItemsCall(collectionId, pageSize, skip, _callback); return localVarCall; @@ -11551,106 +20162,251 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Integer collectionId, /** * Get collection items - * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve items from a given collection. You can retrieve items from both + * account-level collections and campaign-level collections using this endpoint. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return InlineResponse20021 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public InlineResponse20021 getCollectionItems(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, Long skip) throws ApiException { ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); return localVarResp.getData(); } /** * Get collection items - * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve items from a given collection. You can retrieve items from both + * account-level collections and campaign-level collections using this endpoint. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return ApiResponse<InlineResponse20021> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse getCollectionItemsWithHttpInfo(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse getCollectionItemsWithHttpInfo(Long collectionId, Long pageSize, Long skip) + throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get collection items (asynchronously) - * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve items from a given collection. You can retrieve items from both + * account-level collections and campaign-level collections using this endpoint. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getCollectionItemsAsync(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCouponsWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param redeemed - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param redeemed - `true`: only coupons where + * `usageCounter > 0` will be + * returned. - `false`: only coupons + * where `usageCounter = 0` will be + * returned. - This field cannot be used in + * conjunction with the `usable` query + * parameter. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCouponsWithoutTotalCountCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCouponsWithoutTotalCountCall(Long applicationId, Long campaignId, Long pageSize, Long skip, + String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, + String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, + Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, + OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11695,7 +20451,8 @@ public okhttp3.Call getCouponsWithoutTotalCountCall(Integer applicationId, Integ } if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); } if (batchId != null) { @@ -11730,7 +20487,7 @@ public okhttp3.Call getCouponsWithoutTotalCountCall(Integer applicationId, Integ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11738,170 +20495,469 @@ public okhttp3.Call getCouponsWithoutTotalCountCall(Integer applicationId, Integ } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, + OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCouponsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCouponsWithoutTotalCount(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getCouponsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling getCouponsWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = getCouponsWithoutTotalCountCall(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, _callback); + okhttp3.Call localVarCall = getCouponsWithoutTotalCountCall(applicationId, campaignId, pageSize, skip, sort, + value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, + batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, _callback); return localVarCall; } /** * List coupons - * List all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param redeemed - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) + * List all the coupons matching the specified criteria. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param redeemed - `true`: only coupons where + * `usageCounter > 0` will be + * returned. - `false`: only coupons + * where `usageCounter = 0` will be + * returned. - This field cannot be used in + * conjunction with the `usable` query + * parameter. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) * @return InlineResponse20011 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20011 getCouponsWithoutTotalCount(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { - ApiResponse localVarResp = getCouponsWithoutTotalCountWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20011 getCouponsWithoutTotalCount(Long applicationId, Long campaignId, Long pageSize, + Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, + String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, + OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { + ApiResponse localVarResp = getCouponsWithoutTotalCountWithHttpInfo(applicationId, + campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, + referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, + startsAfter, valuesOnly); return localVarResp.getData(); } /** * List coupons - * List all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param redeemed - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) + * List all the coupons matching the specified criteria. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param redeemed - `true`: only coupons where + * `usageCounter > 0` will be + * returned. - `false`: only coupons + * where `usageCounter = 0` will be + * returned. - This field cannot be used in + * conjunction with the `usable` query + * parameter. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) * @return ApiResponse<InlineResponse20011> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCouponsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { - okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCouponsWithoutTotalCountWithHttpInfo(Long applicationId, Long campaignId, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, + OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) + throws ApiException { + okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, + skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, + recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, + valuesOnly, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List coupons (asynchronously) - * List all the coupons matching the specified criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param redeemed - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param expiresBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param expiresAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param startsAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valuesOnly Filter results to only return the coupon codes (`value` column) without the associated coupon data. (optional, default to false) - * @param _callback The callback to be executed when the API call finishes + * List all the coupons matching the specified criteria. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param redeemed - `true`: only coupons where + * `usageCounter > 0` will be + * returned. - `false`: only coupons + * where `usageCounter = 0` will be + * returned. - This field cannot be used in + * conjunction with the `usable` query + * parameter. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param expiresBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param expiresAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon expiration date timestamp. You can + * use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param startsBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param startsAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon start date timestamp. You can use + * any time zone setting. Talon.One will convert + * to UTC internally. (optional) + * @param valuesOnly Filter results to only return the coupon codes + * (`value` column) without the + * associated coupon data. (optional, default to + * false) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCouponsWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCouponsWithoutTotalCountAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, + String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, + String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, + Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, + OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, + skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, + recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, + valuesOnly, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerActivityReport - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @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 applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + Long applicationId, Long customerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customer_activity_reports/{customerId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -11925,7 +20981,7 @@ public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, Off Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -11933,141 +20989,291 @@ public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, Off } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + Long applicationId, Long customerId, Long pageSize, Long skip, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getCustomerActivityReport(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling getCustomerActivityReport(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getCustomerActivityReport(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling getCustomerActivityReport(Async)"); } - + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCustomerActivityReport(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCustomerActivityReport(Async)"); } - + // verify the required parameter 'customerId' is set if (customerId == null) { - throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerActivityReport(Async)"); + throw new ApiException( + "Missing the required parameter 'customerId' when calling getCustomerActivityReport(Async)"); } - - okhttp3.Call localVarCall = getCustomerActivityReportCall(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip, _callback); + okhttp3.Call localVarCall = getCustomerActivityReportCall(rangeStart, rangeEnd, applicationId, customerId, + pageSize, skip, _callback); return localVarCall; } /** * Get customer's activity report - * Fetch the summary report of a given customer in the given application, in a time range. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Fetch the summary report of a given customer in the given application, in a + * time range. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return CustomerActivityReport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getCustomerActivityReportWithHttpInfo(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + Long applicationId, Long customerId, Long pageSize, Long skip) throws ApiException { + ApiResponse localVarResp = getCustomerActivityReportWithHttpInfo(rangeStart, rangeEnd, + applicationId, customerId, pageSize, skip); return localVarResp.getData(); } /** * Get customer's activity report - * Fetch the summary report of a given customer in the given application, in a time range. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Fetch the summary report of a given customer in the given application, in a + * time range. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @return ApiResponse<CustomerActivityReport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomerActivityReportWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomerActivityReportWithHttpInfo(OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip) + throws ApiException { + okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, + customerId, pageSize, skip, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer's activity report (asynchronously) - * Fetch the summary report of a given customer in the given application, in a time range. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Fetch the summary report of a given customer in the given application, in a + * time range. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, + Long applicationId, Long customerId, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, + customerId, pageSize, skip, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerActivityReportsWithoutTotalCount - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param name Only return reports matching the customer name. (optional) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param campaignName Only return reports matching the campaign name. (optional) - * @param advocateName Only return reports matching the current customer referrer name. (optional) - * @param _callback Callback for upload/download progress + * + * @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 applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param name Only return reports matching the customer name. + * (optional) + * @param integrationId Filter results performing an exact matching against the + * profile integration identifier. (optional) + * @param campaignName Only return reports matching the campaign name. + * (optional) + * @param advocateName Only return reports matching the current customer + * referrer name. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, + String integrationId, String campaignName, String advocateName, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customer_activity_reports/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -12111,7 +21317,7 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12119,144 +21325,302 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTi } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, + String integrationId, String campaignName, String advocateName, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); } - + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCustomerActivityReportsWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); + okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountCall(rangeStart, rangeEnd, applicationId, + pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); return localVarCall; } /** * Get Activity Reports for Application Customers - * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param name Only return reports matching the customer name. (optional) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param campaignName Only return reports matching the campaign name. (optional) - * @param advocateName Only return reports matching the current customer referrer name. (optional) + * Fetch summary reports for all application customers based on a time range. + * Instead of having the total number of results in the response, this endpoint + * only mentions whether there are more results. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param name Only return reports matching the customer name. + * (optional) + * @param integrationId Filter results performing an exact matching against the + * profile integration identifier. (optional) + * @param campaignName Only return reports matching the campaign name. + * (optional) + * @param advocateName Only return reports matching the current customer + * referrer name. (optional) * @return InlineResponse20028 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { - ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, + String integrationId, String campaignName, String advocateName) throws ApiException { + ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo( + rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, + advocateName); return localVarResp.getData(); } /** * Get Activity Reports for Application Customers - * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param name Only return reports matching the customer name. (optional) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param campaignName Only return reports matching the campaign name. (optional) - * @param advocateName Only return reports matching the current customer referrer name. (optional) + * Fetch summary reports for all application customers based on a time range. + * Instead of having the total number of results in the response, this endpoint + * only mentions whether there are more results. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param name Only return reports matching the customer name. + * (optional) + * @param integrationId Filter results performing an exact matching against the + * profile integration identifier. (optional) + * @param campaignName Only return reports matching the campaign name. + * (optional) + * @param advocateName Only return reports matching the current customer + * referrer name. (optional) * @return ApiResponse<InlineResponse20028> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { - okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo( + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, + String sort, String name, String integrationId, String campaignName, String advocateName) + throws ApiException { + okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, + applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Activity Reports for Application Customers (asynchronously) - * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. - * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param name Only return reports matching the customer name. (optional) - * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param campaignName Only return reports matching the campaign name. (optional) - * @param advocateName Only return reports matching the current customer referrer name. (optional) - * @param _callback The callback to be executed when the API call finishes + * Fetch summary reports for all application customers based on a time range. + * Instead of having the total number of results in the response, this endpoint + * only mentions whether there are more results. + * + * @param rangeStart Only return results from after this timestamp. **Note:** + * - This must be an RFC3339 timestamp string. - You can + * include a time component in your string, for example, + * `T23:59:59` to specify the end of the day. The + * time zone setting considered is `UTC`. If you + * do not include a time component, a default time value of + * `T00:00:00` (midnight) in `UTC` is + * considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time component, + * a default time value of `T00:00:00` (midnight) + * in `UTC` is considered. (required) + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param name Only return reports matching the customer name. + * (optional) + * @param integrationId Filter results performing an exact matching against the + * profile integration identifier. (optional) + * @param campaignName Only return reports matching the campaign name. + * (optional) + * @param advocateName Only return reports matching the current customer + * referrer name. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, + String integrationId, String campaignName, String advocateName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, + applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerAnalytics - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerAnalyticsCall(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerAnalyticsCall(Long applicationId, Long customerId, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/customers/{customerId}/analytics" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -12276,7 +21640,7 @@ public okhttp3.Call getCustomerAnalyticsCall(Integer applicationId, Integer cust Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12284,30 +21648,35 @@ public okhttp3.Call getCustomerAnalyticsCall(Integer applicationId, Integer cust } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Long applicationId, Long customerId, Long pageSize, + Long skip, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCustomerAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCustomerAnalytics(Async)"); } - + // verify the required parameter 'customerId' is set if (customerId == null) { - throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerAnalytics(Async)"); + throw new ApiException( + "Missing the required parameter 'customerId' when calling getCustomerAnalytics(Async)"); } - - okhttp3.Call localVarCall = getCustomerAnalyticsCall(applicationId, customerId, pageSize, skip, sort, _callback); + okhttp3.Call localVarCall = getCustomerAnalyticsCall(applicationId, customerId, pageSize, skip, sort, + _callback); return localVarCall; } @@ -12315,88 +21684,172 @@ private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Integer applicationI /** * Get customer's analytics report * Fetch analytics for a given customer in the given application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return CustomerAnalytics - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public CustomerAnalytics getCustomerAnalytics(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getCustomerAnalyticsWithHttpInfo(applicationId, customerId, pageSize, skip, sort); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public CustomerAnalytics getCustomerAnalytics(Long applicationId, Long customerId, Long pageSize, Long skip, + String sort) throws ApiException { + ApiResponse localVarResp = getCustomerAnalyticsWithHttpInfo(applicationId, customerId, + pageSize, skip, sort); return localVarResp.getData(); } /** * Get customer's analytics report * Fetch analytics for a given customer in the given application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return ApiResponse<CustomerAnalytics> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomerAnalyticsWithHttpInfo(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort) throws ApiException { - okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomerAnalyticsWithHttpInfo(Long applicationId, Long customerId, + Long pageSize, Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, + sort, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer's analytics report (asynchronously) * Fetch analytics for a given customer in the given application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerAnalyticsAsync(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerAnalyticsAsync(Long applicationId, Long customerId, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, + sort, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerProfile - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerProfileCall(Integer customerId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerProfileCall(Long customerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/customers/{customerId}" - .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); + .replaceAll("\\{" + "customerId" + "\\}", localVarApiClient.escapeString(customerId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -12404,7 +21857,7 @@ public okhttp3.Call getCustomerProfileCall(Integer customerId, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12412,23 +21865,26 @@ public okhttp3.Call getCustomerProfileCall(Integer customerId, final ApiCallback } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfileValidateBeforeCall(Integer customerId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerProfileValidateBeforeCall(Long customerId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'customerId' is set if (customerId == null) { - throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerProfile(Async)"); + throw new ApiException( + "Missing the required parameter 'customerId' when calling getCustomerProfile(Async)"); } - okhttp3.Call localVarCall = getCustomerProfileCall(customerId, _callback); return localVarCall; @@ -12437,85 +21893,186 @@ private okhttp3.Call getCustomerProfileValidateBeforeCall(Integer customerId, fi /** * Get customer profile - * Return the details of the specified customer profile. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> You can retrieve the same information via the Integration API, which can save you extra API requests. consider these options: - Request the customer profile to be part of the response content using [Update Customer Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). - Send an empty update with the [Update Customer Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint with `runRuleEngine=false`. </div> - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) + * Return the details of the specified customer profile. <div + * class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> You can retrieve + * the same information via the Integration API, which can save you extra API + * requests. consider these options: - Request the customer profile to be part + * of the response content using [Update Customer + * Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). + * - Send an empty update with the [Update Customer + * Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint with `runRuleEngine=false`. </div> + * + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) * @return CustomerProfile - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public CustomerProfile getCustomerProfile(Integer customerId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public CustomerProfile getCustomerProfile(Long customerId) throws ApiException { ApiResponse localVarResp = getCustomerProfileWithHttpInfo(customerId); return localVarResp.getData(); } /** * Get customer profile - * Return the details of the specified customer profile. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> You can retrieve the same information via the Integration API, which can save you extra API requests. consider these options: - Request the customer profile to be part of the response content using [Update Customer Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). - Send an empty update with the [Update Customer Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint with `runRuleEngine=false`. </div> - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) + * Return the details of the specified customer profile. <div + * class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> You can retrieve + * the same information via the Integration API, which can save you extra API + * requests. consider these options: - Request the customer profile to be part + * of the response content using [Update Customer + * Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). + * - Send an empty update with the [Update Customer + * Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint with `runRuleEngine=false`. </div> + * + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) * @return ApiResponse<CustomerProfile> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomerProfileWithHttpInfo(Integer customerId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomerProfileWithHttpInfo(Long customerId) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileValidateBeforeCall(customerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer profile (asynchronously) - * Return the details of the specified customer profile. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> You can retrieve the same information via the Integration API, which can save you extra API requests. consider these options: - Request the customer profile to be part of the response content using [Update Customer Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). - Send an empty update with the [Update Customer Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint with `runRuleEngine=false`. </div> - * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Return the details of the specified customer profile. <div + * class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> You can retrieve + * the same information via the Integration API, which can save you extra API + * requests. consider these options: - Request the customer profile to be part + * of the response content using [Update Customer + * Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). + * - Send an empty update with the [Update Customer + * Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint with `runRuleEngine=false`. </div> + * + * @param customerId The value of the `id` property of a customer + * profile. Get it with the [List Application's + * customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) + * endpoint. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerProfileAsync(Integer customerId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerProfileAsync(Long customerId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getCustomerProfileValidateBeforeCall(customerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerProfileAchievementProgress - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The 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 pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) - * @param title Filter results by the `title` of an achievement. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (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 pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (optional) + * @param title Filter results by the `title` of an + * achievement. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call getCustomerProfileAchievementProgressCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call getCustomerProfileAchievementProgressCall(Long applicationId, String integrationId, + Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/achievement_progress/{integrationId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -12539,7 +22096,7 @@ public okhttp3.Call getCustomerProfileAchievementProgressCall(Integer applicatio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12547,125 +22104,247 @@ public okhttp3.Call getCustomerProfileAchievementProgressCall(Integer applicatio } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Long applicationId, + String integrationId, Long pageSize, Long skip, Long achievementId, String title, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getCustomerProfileAchievementProgress(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getCustomerProfileAchievementProgress(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getCustomerProfileAchievementProgress(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getCustomerProfileAchievementProgress(Async)"); } - - okhttp3.Call localVarCall = getCustomerProfileAchievementProgressCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressCall(applicationId, integrationId, pageSize, + skip, achievementId, title, _callback); return localVarCall; } /** * List customer achievements - * For the given customer profile, list all the achievements that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The 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 pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) - * @param title Filter results by the `title` of an achievement. (optional) + * For the given customer profile, list all the achievements that match your + * filter criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The 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 pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (optional) + * @param title Filter results by the `title` of an + * achievement. (optional) * @return InlineResponse20049 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public InlineResponse20049 getCustomerProfileAchievementProgress(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { - ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicationId, String integrationId, + Long pageSize, Long skip, Long achievementId, String title) throws ApiException { + ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, + integrationId, pageSize, skip, achievementId, title); return localVarResp.getData(); } /** * List customer achievements - * For the given customer profile, list all the achievements that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The 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 pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) - * @param title Filter results by the `title` of an achievement. (optional) + * For the given customer profile, list all the achievements that match your + * filter criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The 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 pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (optional) + * @param title Filter results by the `title` of an + * achievement. (optional) * @return ApiResponse<InlineResponse20049> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { - okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Long applicationId, + String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, + integrationId, pageSize, skip, achievementId, title, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer achievements (asynchronously) - * For the given customer profile, list all the achievements that match your filter criteria. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param integrationId The 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 pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) - * @param title Filter results by the `title` of an achievement. (optional) - * @param _callback The callback to be executed when the API call finishes + * For the given customer profile, list all the achievements that match your + * filter criteria. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param integrationId The 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 pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (optional) + * @param title Filter results by the `title` of an + * achievement. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call getCustomerProfileAchievementProgressAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call getCustomerProfileAchievementProgressAsync(Long applicationId, String integrationId, + Long pageSize, Long skip, Long achievementId, String title, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, + integrationId, pageSize, skip, achievementId, title, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomerProfiles - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerProfilesCall(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerProfilesCall(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12689,7 +22368,7 @@ public okhttp3.Call getCustomerProfilesCall(Integer pageSize, Integer skip, Bool Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12697,18 +22376,20 @@ public okhttp3.Call getCustomerProfilesCall(Integer pageSize, Integer skip, Bool } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long skip, Boolean sandbox, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesCall(pageSize, skip, sandbox, _callback); return localVarCall; @@ -12718,18 +22399,31 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Int /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @return InlineResponse20027 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20027 getCustomerProfiles(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean sandbox) throws ApiException { ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox); return localVarResp.getData(); } @@ -12737,61 +22431,105 @@ public InlineResponse20027 getCustomerProfiles(Integer pageSize, Integer skip, B /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @return ApiResponse<InlineResponse20027> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomerProfilesWithHttpInfo(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomerProfilesWithHttpInfo(Long pageSize, Long skip, Boolean sandbox) + throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer profiles (asynchronously) * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomerProfilesAsync(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean sandbox, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getCustomersByAttributes - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body, Long pageSize, Long skip, + Boolean sandbox, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12815,7 +22553,7 @@ public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12823,23 +22561,26 @@ public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileSearchQuery body, Long pageSize, + Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling getCustomersByAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling getCustomersByAttributes(Async)"); } - okhttp3.Call localVarCall = getCustomersByAttributesCall(body, pageSize, skip, sandbox, _callback); return localVarCall; @@ -12848,89 +22589,173 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS /** * List customer profiles matching the given attributes - * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * Get a list of the customer profiles matching the provided criteria. The match + * is successful if all the attributes of the request are found in a profile, + * even if the profile has more attributes that are not present on the request. + * + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @return InlineResponse20026 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { - ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery body, Long pageSize, Long skip, + Boolean sandbox) throws ApiException { + ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, + sandbox); return localVarResp.getData(); } /** * List customer profiles matching the given attributes - * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * Get a list of the customer profiles matching the provided criteria. The match + * is successful if all the attributes of the request are found in a profile, + * even if the profile has more attributes that are not present on the request. + * + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @return ApiResponse<InlineResponse20026> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, + Long pageSize, Long skip, Boolean sandbox) throws ApiException { okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List customer profiles matching the given attributes (asynchronously) - * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) + * Get a list of the customer profiles matching the provided criteria. The match + * is successful if all the attributes of the request are found in a profile, + * even if the profile has more attributes that are not present on the request. + * + * @param body body (required) + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sandbox Indicates whether you are pointing to a sandbox or live + * customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Long pageSize, Long skip, + Boolean sandbox, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getDashboardStatistics - * @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 rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param _callback Callback for upload/download progress + * + * @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 rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getDashboardStatisticsCall(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getDashboardStatisticsCall(Long loyaltyProgramId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/dashboard" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -12950,7 +22775,7 @@ public okhttp3.Call getDashboardStatisticsCall(Integer loyaltyProgramId, OffsetD Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -12958,120 +22783,259 @@ public okhttp3.Call getDashboardStatisticsCall(Integer loyaltyProgramId, OffsetD } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Long loyaltyProgramId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getDashboardStatistics(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getDashboardStatistics(Async)"); } - + // verify the required parameter 'rangeStart' is set if (rangeStart == null) { - throw new ApiException("Missing the required parameter 'rangeStart' when calling getDashboardStatistics(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeStart' when calling getDashboardStatistics(Async)"); } - + // verify the required parameter 'rangeEnd' is set if (rangeEnd == null) { - throw new ApiException("Missing the required parameter 'rangeEnd' when calling getDashboardStatistics(Async)"); + throw new ApiException( + "Missing the required parameter 'rangeEnd' when calling getDashboardStatistics(Async)"); } - - okhttp3.Call localVarCall = getDashboardStatisticsCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, _callback); + okhttp3.Call localVarCall = getDashboardStatisticsCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, + _callback); return localVarCall; } /** * Get statistics for loyalty dashboard - * Retrieve the statistics displayed on the specified loyalty program's dashboard, such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * Retrieve the statistics displayed on the specified loyalty program's + * dashboard, such as the total active points, pending points, spent points, and + * expired points. **Important:** The returned data does not include the current + * day. All statistics are updated daily at 11:59 PM in the loyalty program time + * zone. + * + * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) * @return InlineResponse20016 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20016 getDashboardStatistics(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { - ApiResponse localVarResp = getDashboardStatisticsWithHttpInfo(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + ApiResponse localVarResp = getDashboardStatisticsWithHttpInfo(loyaltyProgramId, rangeStart, + rangeEnd, subledgerId); return localVarResp.getData(); } /** * Get statistics for loyalty dashboard - * Retrieve the statistics displayed on the specified loyalty program's dashboard, such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * Retrieve the statistics displayed on the specified loyalty program's + * dashboard, such as the total active points, pending points, spent points, and + * expired points. **Important:** The returned data does not include the current + * day. All statistics are updated daily at 11:59 PM in the loyalty program time + * zone. + * + * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) * @return ApiResponse<InlineResponse20016> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getDashboardStatisticsWithHttpInfo(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { - okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getDashboardStatisticsWithHttpInfo(Long loyaltyProgramId, + OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, + subledgerId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get statistics for loyalty dashboard (asynchronously) - * Retrieve the statistics displayed on the specified loyalty program's dashboard, such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. - * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the statistics displayed on the specified loyalty program's + * dashboard, such as the total active points, pending points, spent points, and + * expired points. **Important:** The returned data does not include the current + * day. All statistics are updated daily at 11:59 PM in the loyalty program time + * zone. + * + * @param loyaltyProgramId Identifier of the 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 rangeStart Only return results from after this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param rangeEnd Only return results from before this timestamp. + * **Note:** - This must be an RFC3339 timestamp string. + * - You can include a time component in your string, + * for example, `T23:59:59` to specify the end + * of the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (required) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getDashboardStatisticsAsync(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDateTime rangeStart, + OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, + subledgerId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getEventTypes - * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) - * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param name Filter results to event types with the given name. + * This parameter implies + * `includeOldVersions`. (optional) + * @param includeOldVersions Include all versions of every event type. + * (optional, default to false) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13103,7 +23067,7 @@ public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13111,18 +23075,20 @@ public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, I } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includeOldVersions, Long pageSize, + Long skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEventTypesCall(name, includeOldVersions, pageSize, skip, sort, _callback); return localVarCall; @@ -13131,88 +23097,172 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ /** * List event types - * Fetch all event type definitions for your account. - * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) - * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Fetch all event type definitions for your account. + * + * @param name Filter results to event types with the given name. + * This parameter implies + * `includeOldVersions`. (optional) + * @param includeOldVersions Include all versions of every event type. + * (optional, default to false) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) * @return InlineResponse20042 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions, Long pageSize, Long skip, + String sort) throws ApiException { + ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, + skip, sort); return localVarResp.getData(); } /** * List event types - * Fetch all event type definitions for your account. - * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) - * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Fetch all event type definitions for your account. + * + * @param name Filter results to event types with the given name. + * This parameter implies + * `includeOldVersions`. (optional) + * @param includeOldVersions Include all versions of every event type. + * (optional, default to false) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) * @return ApiResponse<InlineResponse20042> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { - okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, + Long pageSize, Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List event types (asynchronously) - * Fetch all event type definitions for your account. - * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) - * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * Fetch all event type definitions for your account. + * + * @param name Filter results to event types with the given name. + * This parameter implies + * `includeOldVersions`. (optional) + * @param includeOldVersions Include all versions of every event type. + * (optional, default to false) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getExports - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) - * @param entity The name of the entity type that was exported. (optional) - * @param _callback Callback for upload/download progress + * @param campaignId Filter by the campaign ID on which the limit counters + * are used. (optional) + * @param entity The name of the entity type that was exported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getExportsCall(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getExportsCall(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, + String entity, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13244,7 +23294,7 @@ public okhttp3.Call getExportsCall(Integer pageSize, Integer skip, BigDecimal ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13252,18 +23302,20 @@ public okhttp3.Call getExportsCall(Integer pageSize, Integer skip, BigDecimal ap } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigDecimal applicationId, + Long campaignId, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExportsCall(pageSize, skip, applicationId, campaignId, entity, _callback); return localVarCall; @@ -13272,94 +23324,175 @@ private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip /** * Get exports - * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List all past exports + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) - * @param entity The name of the entity type that was exported. (optional) + * @param campaignId Filter by the campaign ID on which the limit counters + * are used. (optional) + * @param entity The name of the entity type that was exported. + * (optional) * @return InlineResponse20045 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20045 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { - ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20045 getExports(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, + String entity) throws ApiException { + ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, + campaignId, entity); return localVarResp.getData(); } /** * Get exports - * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List all past exports + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) - * @param entity The name of the entity type that was exported. (optional) + * @param campaignId Filter by the campaign ID on which the limit counters + * are used. (optional) + * @param entity The name of the entity type that was exported. + * (optional) * @return ApiResponse<InlineResponse20045> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { - okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getExportsWithHttpInfo(Long pageSize, Long skip, BigDecimal applicationId, + Long campaignId, String entity) throws ApiException { + okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get exports (asynchronously) - * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) + * List all past exports + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) - * @param entity The name of the entity type that was exported. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param campaignId Filter by the campaign ID on which the limit counters + * are used. (optional) + * @param entity The name of the entity type that was exported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getExportsAsync(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getExportsAsync(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, + String entity, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13367,7 +23500,7 @@ public okhttp3.Call getLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13375,28 +23508,31 @@ public okhttp3.Call getLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyC } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCard(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = getLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, _callback); return localVarCall; @@ -13406,20 +23542,49 @@ private okhttp3.Call getLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, /** * Get loyalty card * Get the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) * @return LoyaltyCard - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public LoyaltyCard getLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public LoyaltyCard getLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { ApiResponse localVarResp = getLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); return localVarResp.getData(); } @@ -13427,76 +23592,187 @@ public LoyaltyCard getLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId /** * Get loyalty card * Get the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) * @return ApiResponse<LoyaltyCard> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse getLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse getLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId) + throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get loyalty card (asynchronously) * Get the given loyalty card. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCardTransactionLogs - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation date. + * **Note:** - It must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of + * the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (optional) + * @param 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 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyCardTransactionLogsCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/logs" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13524,7 +23800,7 @@ public okhttp3.Call getLoyaltyCardTransactionLogsCall(Integer loyaltyProgramId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13532,139 +23808,339 @@ public okhttp3.Call getLoyaltyCardTransactionLogsCall(Integer loyaltyProgramId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer 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, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardTransactionLogs(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCardTransactionLogs(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardTransactionLogs(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling getLoyaltyCardTransactionLogs(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); + okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsCall(loyaltyProgramId, loyaltyCardId, startDate, + endDate, pageSize, skip, subledgerId, _callback); return localVarCall; } /** * List card's transactions - * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * Retrieve the transaction logs for the given [loyalty + * card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * within the specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) + * with filtering options applied. If no filtering options are applied, the last + * 50 loyalty transactions for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation date. + * **Note:** - It must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of + * the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (optional) + * @param 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 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) * @return InlineResponse20019 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public InlineResponse20019 getLoyaltyCardTransactionLogs(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not 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); return localVarResp.getData(); } /** * List card's transactions - * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) + * Retrieve the transaction logs for the given [loyalty + * card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * within the specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) + * with filtering options applied. If no filtering options are applied, the last + * 50 loyalty transactions for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation date. + * **Note:** - It must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of + * the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (optional) + * @param 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 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) * @return ApiResponse<InlineResponse20019> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not 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); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List card's transactions (asynchronously) - * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve the transaction logs for the given [loyalty + * card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * within the specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) + * with filtering options applied. If no filtering options are applied, the last + * 50 loyalty transactions for the given loyalty card are returned. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation date. + * **Note:** - It must be an RFC3339 timestamp string. - + * You can include a time component in your string, for + * example, `T23:59:59` to specify the end of + * the day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in `UTC` + * is considered. (optional) + * @param 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 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param subledgerId The ID of the subledger by which we filter the data. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, + OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, + startDate, endDate, pageSize, skip, subledgerId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyCards - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param identifier The card code by which to filter loyalty cards in the response. (optional) - * @param profileId Filter results by customer profile ID. (optional) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to + * performance limitations. (optional) + * @param identifier The card code by which to filter loyalty cards in the + * response. (optional) + * @param profileId Filter results by customer profile ID. (optional) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call getLoyaltyCardsCall(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call getLoyaltyCardsCall(Long loyaltyProgramId, Long pageSize, Long skip, String sort, + String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13696,7 +24172,7 @@ public okhttp3.Call getLoyaltyCardsCall(Integer loyaltyProgramId, Integer pageSi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13704,128 +24180,252 @@ public okhttp3.Call getLoyaltyCardsCall(Integer loyaltyProgramId, Integer pageSi } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Long pageSize, Long skip, String sort, + String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCards(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyCards(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyCardsCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, _callback); + okhttp3.Call localVarCall = getLoyaltyCardsCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, + batchId, _callback); return localVarCall; } /** * List loyalty cards - * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param identifier The card code by which to filter loyalty cards in the response. (optional) - * @param profileId Filter results by customer profile ID. (optional) - * @param batchId Filter results by loyalty card batch ID. (optional) + * For the given card-based loyalty program, list the loyalty cards that match + * your filter criteria. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to + * performance limitations. (optional) + * @param identifier The card code by which to filter loyalty cards in the + * response. (optional) + * @param profileId Filter results by customer profile ID. (optional) + * @param batchId Filter results by loyalty card batch ID. (optional) * @return InlineResponse20018 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public InlineResponse20018 getLoyaltyCards(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId) throws ApiException { - ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, Long skip, String sort, + String identifier, Long profileId, String batchId) throws ApiException { + ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, + sort, identifier, profileId, batchId); return localVarResp.getData(); } /** * List loyalty cards - * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param identifier The card code by which to filter loyalty cards in the response. (optional) - * @param profileId Filter results by customer profile ID. (optional) - * @param batchId Filter results by loyalty card batch ID. (optional) + * For the given card-based loyalty program, list the loyalty cards that match + * your filter criteria. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to + * performance limitations. (optional) + * @param identifier The card code by which to filter loyalty cards in the + * response. (optional) + * @param profileId Filter results by customer profile ID. (optional) + * @param batchId Filter results by loyalty card batch ID. (optional) * @return ApiResponse<InlineResponse20018> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, Long pageSize, Long skip, + String sort, String identifier, Long profileId, String batchId) throws ApiException { + okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, + identifier, profileId, batchId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List loyalty cards (asynchronously) - * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param identifier The card code by which to filter loyalty cards in the response. (optional) - * @param profileId Filter results by customer profile ID. (optional) - * @param batchId Filter results by loyalty card batch ID. (optional) - * @param _callback The callback to be executed when the API call finishes + * For the given card-based loyalty program, list the loyalty cards that match + * your filter criteria. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field name + * with `-`. **Note:** You may not be able to + * use all fields for sorting. This is due to + * performance limitations. (optional) + * @param identifier The card code by which to filter loyalty cards in the + * response. (optional) + * @param profileId Filter results by customer profile ID. (optional) + * @param batchId Filter results by loyalty card batch ID. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call getLoyaltyCardsAsync(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call getLoyaltyCardsAsync(Long loyaltyProgramId, Long pageSize, Long skip, String sort, + String identifier, Long profileId, String batchId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, + identifier, profileId, batchId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyPoints + * * @param loyaltyProgramId The identifier for the loyalty program. (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 _callback Callback for upload/download progress + * @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 _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getLoyaltyPointsCall(String loyaltyProgramId, String integrationId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getLoyaltyPointsCall(String loyaltyProgramId, String integrationId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13833,7 +24433,7 @@ public okhttp3.Call getLoyaltyPointsCall(String loyaltyProgramId, String integra Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13841,28 +24441,32 @@ public okhttp3.Call getLoyaltyPointsCall(String loyaltyProgramId, String integra } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyPoints(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling getLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling getLoyaltyPoints(Async)"); } - okhttp3.Call localVarCall = getLoyaltyPointsCall(loyaltyProgramId, integrationId, _callback); return localVarCall; @@ -13871,16 +24475,38 @@ private okhttp3.Call getLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, /** * Get customer's full loyalty ledger - * Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Get the loyalty ledger for this profile integration ID. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. **Important:** To get loyalty transaction logs for a given + * Integration ID in a loyalty program, we recommend using the Integration + * API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * * @param loyaltyProgramId The identifier for the loyalty program. (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 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) * @return LoyaltyLedger - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public LoyaltyLedger getLoyaltyPoints(String loyaltyProgramId, String integrationId) throws ApiException { ApiResponse localVarResp = getLoyaltyPointsWithHttpInfo(loyaltyProgramId, integrationId); @@ -13889,62 +24515,125 @@ public LoyaltyLedger getLoyaltyPoints(String loyaltyProgramId, String integratio /** * Get customer's full loyalty ledger - * Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Get the loyalty ledger for this profile integration ID. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. **Important:** To get loyalty transaction logs for a given + * Integration ID in a loyalty program, we recommend using the Integration + * API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * * @param loyaltyProgramId The identifier for the loyalty program. (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 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) * @return ApiResponse<LoyaltyLedger> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId) + throws ApiException { okhttp3.Call localVarCall = getLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get customer's full loyalty ledger (asynchronously) - * Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Get the loyalty ledger for this profile integration ID. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. **Important:** To get loyalty transaction logs for a given + * Integration ID in a loyalty program, we recommend using the Integration + * API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * * @param loyaltyProgramId The identifier for the loyalty program. (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 _callback The callback to be executed when the API call finishes + * @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 _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyProgram - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getLoyaltyProgramCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getLoyaltyProgramCall(Long loyaltyProgramId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -13952,7 +24641,7 @@ public okhttp3.Call getLoyaltyProgramCall(Integer loyaltyProgramId, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -13960,23 +24649,26 @@ public okhttp3.Call getLoyaltyProgramCall(Integer loyaltyProgramId, final ApiCal } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Long loyaltyProgramId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgram(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgram(Async)"); } - okhttp3.Call localVarCall = getLoyaltyProgramCall(loyaltyProgramId, _callback); return localVarCall; @@ -13985,91 +24677,207 @@ private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Integer loyaltyProgramI /** * Get loyalty program - * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * Get the specified [loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview). To + * list all loyalty programs in your Application, use [List loyalty + * programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a + * customer profile is part of, use the [List customer + * data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) * @return LoyaltyProgram - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public LoyaltyProgram getLoyaltyProgram(Integer loyaltyProgramId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public LoyaltyProgram getLoyaltyProgram(Long loyaltyProgramId) throws ApiException { ApiResponse localVarResp = getLoyaltyProgramWithHttpInfo(loyaltyProgramId); return localVarResp.getData(); } /** * Get loyalty program - * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * Get the specified [loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview). To + * list all loyalty programs in your Application, use [List loyalty + * programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a + * customer profile is part of, use the [List customer + * data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) * @return ApiResponse<LoyaltyProgram> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getLoyaltyProgramWithHttpInfo(Integer loyaltyProgramId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getLoyaltyProgramWithHttpInfo(Long loyaltyProgramId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramValidateBeforeCall(loyaltyProgramId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get loyalty program (asynchronously) - * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * Get the specified [loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview). To + * list all loyalty programs in your Application, use [List loyalty + * programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a + * customer profile is part of, use the [List customer + * data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getLoyaltyProgramAsync(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramValidateBeforeCall(loyaltyProgramId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyProgramTransactions - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get + * the ID with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyProgramTransactionsCall(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, String loyaltyTransactionType, + String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/transactions" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (loyaltyTransactionType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("loyaltyTransactionType", loyaltyTransactionType)); } if (subledgerId != null) { @@ -14096,7 +24904,7 @@ public okhttp3.Call getLoyaltyProgramTransactionsCall(Integer loyaltyProgramId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14104,121 +24912,328 @@ public okhttp3.Call getLoyaltyProgramTransactionsCall(Integer loyaltyProgramId, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyaltyProgramId, + String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, + Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramTransactions(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyProgramTransactions(Async)"); } - - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); + okhttp3.Call localVarCall = getLoyaltyProgramTransactionsCall(loyaltyProgramId, loyaltyTransactionType, + subledgerId, startDate, endDate, pageSize, skip, _callback); return localVarCall; } /** * List loyalty program transactions - * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve loyalty program transaction logs in a given loyalty program with + * filtering options applied. Manual and imported transactions are also + * included. **Note:** If no filters are applied, the last 50 loyalty + * transactions for the given loyalty program are returned. **Important:** To + * get loyalty transaction logs for a given Integration ID in a loyalty program, + * we recommend using the Integration API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get + * the ID with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return InlineResponse20017 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public InlineResponse20017 getLoyaltyProgramTransactions(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not 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); return localVarResp.getData(); } /** * List loyalty program transactions - * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) + * Retrieve loyalty program transaction logs in a given loyalty program with + * filtering options applied. Manual and imported transactions are also + * included. **Note:** If no filters are applied, the last 50 loyalty + * transactions for the given loyalty program are returned. **Important:** To + * get loyalty transaction logs for a given Integration ID in a loyalty program, + * we recommend using the Integration API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get + * the ID with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) * @return ApiResponse<InlineResponse20017> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not 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); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List loyalty program transactions (asynchronously) - * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) - * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param 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 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param _callback The callback to be executed when the API call finishes + * Retrieve loyalty program transaction logs in a given loyalty program with + * filtering options applied. Manual and imported transactions are also + * included. **Note:** If no filters are applied, the last 50 loyalty + * transactions for the given loyalty program are returned. **Important:** To + * get loyalty transaction logs for a given Integration ID in a loyalty program, + * we recommend using the Integration API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get + * the ID with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyTransactionType Filter results by loyalty transaction type: - + * `manual`: Loyalty transaction that + * was done manually. - `session`: + * Loyalty transaction that resulted from a + * customer session. - `import`: Loyalty + * transaction that was imported from a CSV file. + * (optional) + * @param subledgerId The ID of the subledger by which we filter the + * data. (optional) + * @param startDate Date and time from which results are returned. + * Results are filtered by transaction creation + * date. **Note:** - It must be an RFC3339 + * timestamp string. - You can include a time + * component in your string, for example, + * `T23:59:59` to specify the end of the + * day. The time zone setting considered is + * `UTC`. If you do not include a time + * component, a default time value of + * `T00:00:00` (midnight) in + * `UTC` is considered. (optional) + * @param 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 50) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call getLoyaltyProgramTransactionsAsync(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, + String subledgerId, 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); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyPrograms + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call getLoyaltyProgramsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -14232,7 +25247,7 @@ public okhttp3.Call getLoyaltyProgramsCall(final ApiCallback _callback) throws A Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14240,18 +25255,19 @@ public okhttp3.Call getLoyaltyProgramsCall(final ApiCallback _callback) throws A } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLoyaltyProgramsCall(_callback); return localVarCall; @@ -14261,13 +25277,23 @@ private okhttp3.Call getLoyaltyProgramsValidateBeforeCall(final ApiCallback _cal /** * List loyalty programs * List the loyalty programs of the account. + * * @return InlineResponse20015 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public InlineResponse20015 getLoyaltyPrograms() throws ApiException { ApiResponse localVarResp = getLoyaltyProgramsWithHttpInfo(); @@ -14277,59 +25303,96 @@ public InlineResponse20015 getLoyaltyPrograms() throws ApiException { /** * List loyalty programs * List the loyalty programs of the account. + * * @return ApiResponse<InlineResponse20015> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public ApiResponse getLoyaltyProgramsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List loyalty programs (asynchronously) * List the loyalty programs of the account. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call getLoyaltyProgramsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getLoyaltyStatistics - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
* @deprecated */ @Deprecated - public okhttp3.Call getLoyaltyStatisticsCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyStatisticsCall(Long loyaltyProgramId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/statistics" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -14337,7 +25400,7 @@ public okhttp3.Call getLoyaltyStatisticsCall(Integer loyaltyProgramId, final Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14345,24 +25408,27 @@ public okhttp3.Call getLoyaltyStatisticsCall(Integer loyaltyProgramId, final Api } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyStatisticsValidateBeforeCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getLoyaltyStatisticsValidateBeforeCall(Long loyaltyProgramId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyStatistics(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling getLoyaltyStatistics(Async)"); } - okhttp3.Call localVarCall = getLoyaltyStatisticsCall(loyaltyProgramId, _callback); return localVarCall; @@ -14371,91 +25437,182 @@ private okhttp3.Call getLoyaltyStatisticsValidateBeforeCall(Integer loyaltyProgr /** * Get loyalty program statistics - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To retrieve statistics for a loyalty program, use the [Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) endpoint. Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points. - * @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) + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To retrieve statistics for a loyalty program, use the [Get statistics for + * loyalty + * dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) + * endpoint. Retrieve the statistics of the specified loyalty program, such as + * the total active points, pending points, spent points, and expired points. + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) * @return LoyaltyDashboardData - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
* @deprecated */ @Deprecated - public LoyaltyDashboardData getLoyaltyStatistics(Integer loyaltyProgramId) throws ApiException { + public LoyaltyDashboardData getLoyaltyStatistics(Long loyaltyProgramId) throws ApiException { ApiResponse localVarResp = getLoyaltyStatisticsWithHttpInfo(loyaltyProgramId); return localVarResp.getData(); } /** * Get loyalty program statistics - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To retrieve statistics for a loyalty program, use the [Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) endpoint. Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points. - * @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) + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To retrieve statistics for a loyalty program, use the [Get statistics for + * loyalty + * dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) + * endpoint. Retrieve the statistics of the specified loyalty program, such as + * the total active points, pending points, spent points, and expired points. + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) * @return ApiResponse<LoyaltyDashboardData> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
* @deprecated */ @Deprecated - public ApiResponse getLoyaltyStatisticsWithHttpInfo(Integer loyaltyProgramId) throws ApiException { + public ApiResponse getLoyaltyStatisticsWithHttpInfo(Long loyaltyProgramId) + throws ApiException { okhttp3.Call localVarCall = getLoyaltyStatisticsValidateBeforeCall(loyaltyProgramId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get loyalty program statistics (asynchronously) - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To retrieve statistics for a loyalty program, use the [Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) endpoint. Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points. - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To retrieve statistics for a loyalty program, use the [Get statistics for + * loyalty + * dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) + * endpoint. Retrieve the statistics of the specified loyalty program, such as + * the total active points, pending points, spent points, and expired points. + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
* @deprecated */ @Deprecated - public okhttp3.Call getLoyaltyStatisticsAsync(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyStatisticsAsync(Long loyaltyProgramId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyStatisticsValidateBeforeCall(loyaltyProgramId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getMessageLogs - * @param entityType The entity type the log is related to. (required) - * @param messageID Filter results by message ID. (optional) - * @param changeType Filter results by change type. (optional) - * @param notificationIDs Filter results by notification ID (include up to 30 values, separated by a comma). (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param cursor A specific unique value in the database. If this value is not given, the server fetches results starting with the first record. (optional) - * @param period Filter results by time period. Choose between the available relative time frames. (optional) - * @param isSuccessful Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) + * + * @param entityType The entity type the log is related to. (required) + * @param messageID Filter results by message ID. (optional) + * @param changeType Filter results by change type. (optional) + * @param notificationIDs Filter results by notification ID (include up to 30 + * values, separated by a comma). (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param cursor A specific unique value in the database. If this + * value is not given, the server fetches results + * starting with the first record. (optional) + * @param period Filter results by time period. Choose between the + * available relative time frames. (optional) + * @param isSuccessful Indicates whether to return log entries with either + * successful or unsuccessful HTTP response codes. When + * set to`true`, only log entries with + * `2xx` response codes are returned. When set + * to `false`, only log entries with + * `4xx` and `5xx` response codes + * are returned. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) * @param loyaltyProgramId Identifier of the loyalty program. (optional) - * @param responseCode Filter results by response status code. (optional) - * @param webhookIDs Filter results by webhook ID (include up to 30 values, separated by a comma). (optional) - * @param _callback Callback for upload/download progress + * @param responseCode Filter results by response status code. (optional) + * @param webhookIDs Filter results by webhook ID (include up to 30 + * values, separated by a comma). (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getMessageLogsCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getMessageLogsCall(String entityType, String messageID, String changeType, + String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, + String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, + Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14523,7 +25680,7 @@ public okhttp3.Call getMessageLogsCall(String entityType, String messageID, Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14531,25 +25688,31 @@ public okhttp3.Call getMessageLogsCall(String entityType, String messageID, Stri } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String messageID, String changeType, + String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, + String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, + Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityType' is set if (entityType == null) { throw new ApiException("Missing the required parameter 'entityType' when calling getMessageLogs(Async)"); } - - okhttp3.Call localVarCall = getMessageLogsCall(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs, _callback); + okhttp3.Call localVarCall = getMessageLogsCall(entityType, messageID, changeType, notificationIDs, + createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, + responseCode, webhookIDs, _callback); return localVarCall; } @@ -14557,126 +25720,274 @@ private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String /** * List message log entries * Retrieve all message log entries. - * @param entityType The entity type the log is related to. (required) - * @param messageID Filter results by message ID. (optional) - * @param changeType Filter results by change type. (optional) - * @param notificationIDs Filter results by notification ID (include up to 30 values, separated by a comma). (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param cursor A specific unique value in the database. If this value is not given, the server fetches results starting with the first record. (optional) - * @param period Filter results by time period. Choose between the available relative time frames. (optional) - * @param isSuccessful Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) + * + * @param entityType The entity type the log is related to. (required) + * @param messageID Filter results by message ID. (optional) + * @param changeType Filter results by change type. (optional) + * @param notificationIDs Filter results by notification ID (include up to 30 + * values, separated by a comma). (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param cursor A specific unique value in the database. If this + * value is not given, the server fetches results + * starting with the first record. (optional) + * @param period Filter results by time period. Choose between the + * available relative time frames. (optional) + * @param isSuccessful Indicates whether to return log entries with either + * successful or unsuccessful HTTP response codes. When + * set to`true`, only log entries with + * `2xx` response codes are returned. When set + * to `false`, only log entries with + * `4xx` and `5xx` response codes + * are returned. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) * @param loyaltyProgramId Identifier of the loyalty program. (optional) - * @param responseCode Filter results by response status code. (optional) - * @param webhookIDs Filter results by webhook ID (include up to 30 values, separated by a comma). (optional) + * @param responseCode Filter results by response status code. (optional) + * @param webhookIDs Filter results by webhook ID (include up to 30 + * values, separated by a comma). (optional) * @return MessageLogEntries - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public MessageLogEntries getMessageLogs(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs) throws ApiException { - ApiResponse localVarResp = getMessageLogsWithHttpInfo(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public MessageLogEntries getMessageLogs(String entityType, String messageID, String changeType, + String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, + String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, + Long responseCode, String webhookIDs) throws ApiException { + ApiResponse localVarResp = getMessageLogsWithHttpInfo(entityType, messageID, changeType, + notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, + loyaltyProgramId, responseCode, webhookIDs); return localVarResp.getData(); } /** * List message log entries * Retrieve all message log entries. - * @param entityType The entity type the log is related to. (required) - * @param messageID Filter results by message ID. (optional) - * @param changeType Filter results by change type. (optional) - * @param notificationIDs Filter results by notification ID (include up to 30 values, separated by a comma). (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param cursor A specific unique value in the database. If this value is not given, the server fetches results starting with the first record. (optional) - * @param period Filter results by time period. Choose between the available relative time frames. (optional) - * @param isSuccessful Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) + * + * @param entityType The entity type the log is related to. (required) + * @param messageID Filter results by message ID. (optional) + * @param changeType Filter results by change type. (optional) + * @param notificationIDs Filter results by notification ID (include up to 30 + * values, separated by a comma). (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param cursor A specific unique value in the database. If this + * value is not given, the server fetches results + * starting with the first record. (optional) + * @param period Filter results by time period. Choose between the + * available relative time frames. (optional) + * @param isSuccessful Indicates whether to return log entries with either + * successful or unsuccessful HTTP response codes. When + * set to`true`, only log entries with + * `2xx` response codes are returned. When set + * to `false`, only log entries with + * `4xx` and `5xx` response codes + * are returned. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) * @param loyaltyProgramId Identifier of the loyalty program. (optional) - * @param responseCode Filter results by response status code. (optional) - * @param webhookIDs Filter results by webhook ID (include up to 30 values, separated by a comma). (optional) + * @param responseCode Filter results by response status code. (optional) + * @param webhookIDs Filter results by webhook ID (include up to 30 + * values, separated by a comma). (optional) * @return ApiResponse<MessageLogEntries> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getMessageLogsWithHttpInfo(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs) throws ApiException { - okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getMessageLogsWithHttpInfo(String entityType, String messageID, + String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, + Long loyaltyProgramId, Long responseCode, String webhookIDs) throws ApiException { + okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, + createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, + responseCode, webhookIDs, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List message log entries (asynchronously) * Retrieve all message log entries. - * @param entityType The entity type the log is related to. (required) - * @param messageID Filter results by message ID. (optional) - * @param changeType Filter results by change type. (optional) - * @param notificationIDs Filter results by notification ID (include up to 30 values, separated by a comma). (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param cursor A specific unique value in the database. If this value is not given, the server fetches results starting with the first record. (optional) - * @param period Filter results by time period. Choose between the available relative time frames. (optional) - * @param isSuccessful Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) + * + * @param entityType The entity type the log is related to. (required) + * @param messageID Filter results by message ID. (optional) + * @param changeType Filter results by change type. (optional) + * @param notificationIDs Filter results by notification ID (include up to 30 + * values, separated by a comma). (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be + * an RFC3339 timestamp string. You can use any time + * zone setting. Talon.One will convert to UTC + * internally. (optional) + * @param cursor A specific unique value in the database. If this + * value is not given, the server fetches results + * starting with the first record. (optional) + * @param period Filter results by time period. Choose between the + * available relative time frames. (optional) + * @param isSuccessful Indicates whether to return log entries with either + * successful or unsuccessful HTTP response codes. When + * set to`true`, only log entries with + * `2xx` response codes are returned. When set + * to `false`, only log entries with + * `4xx` and `5xx` response codes + * are returned. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) * @param loyaltyProgramId Identifier of the loyalty program. (optional) - * @param responseCode Filter results by response status code. (optional) - * @param webhookIDs Filter results by webhook ID (include up to 30 values, separated by a comma). (optional) - * @param _callback The callback to be executed when the API call finishes + * @param responseCode Filter results by response status code. (optional) + * @param webhookIDs Filter results by webhook ID (include up to 30 + * values, separated by a comma). (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, String changeType, + String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, + String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, + Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, + createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, + responseCode, webhookIDs, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getReferralsWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. (optional) - * @param advocate Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param code Filter results performing case-insensitive matching + * against the referral code. Both the code and the query + * are folded to remove all non-alpha-numeric characters. + * (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid Either \"expired\", \"validNow\", or + * \"validFuture\". The first option matches + * referrals in which the expiration date is set and in the + * past. The second matches referrals in which start date + * is null or in the past and expiration date is null or in + * the future, the third matches referrals in which start + * date is set and in the future. (optional) + * @param usable Either \"true\" or \"false\". If + * \"true\", only referrals where + * `usageCounter < usageLimit` will be + * returned, \"false\" will return only referrals + * where `usageCounter >= usageLimit`. + * (optional) + * @param advocate Filter results by match with a profile ID specified in + * the referral's AdvocateProfileIntegrationId field. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getReferralsWithoutTotalCountCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getReferralsWithoutTotalCountCall(Long applicationId, Long campaignId, Long pageSize, Long skip, + String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, + String usable, String advocate, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -14720,7 +26031,7 @@ public okhttp3.Call getReferralsWithoutTotalCountCall(Integer applicationId, Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14728,30 +26039,37 @@ public okhttp3.Call getReferralsWithoutTotalCountCall(Integer applicationId, Int } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, + Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling getReferralsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling getReferralsWithoutTotalCount(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling getReferralsWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling getReferralsWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = getReferralsWithoutTotalCountCall(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, _callback); + okhttp3.Call localVarCall = getReferralsWithoutTotalCountCall(applicationId, campaignId, pageSize, skip, sort, + code, createdBefore, createdAfter, valid, usable, advocate, _callback); return localVarCall; } @@ -14759,106 +26077,254 @@ private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Integer app /** * List referrals * List all referrals of the specified campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. (optional) - * @param advocate Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param code Filter results performing case-insensitive matching + * against the referral code. Both the code and the query + * are folded to remove all non-alpha-numeric characters. + * (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid Either \"expired\", \"validNow\", or + * \"validFuture\". The first option matches + * referrals in which the expiration date is set and in the + * past. The second matches referrals in which start date + * is null or in the past and expiration date is null or in + * the future, the third matches referrals in which start + * date is set and in the future. (optional) + * @param usable Either \"true\" or \"false\". If + * \"true\", only referrals where + * `usageCounter < usageLimit` will be + * returned, \"false\" will return only referrals + * where `usageCounter >= usageLimit`. + * (optional) + * @param advocate Filter results by match with a profile ID specified in + * the referral's AdvocateProfileIntegrationId field. + * (optional) * @return InlineResponse20012 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20012 getReferralsWithoutTotalCount(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { - ApiResponse localVarResp = getReferralsWithoutTotalCountWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20012 getReferralsWithoutTotalCount(Long applicationId, Long campaignId, Long pageSize, + Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String valid, String usable, String advocate) throws ApiException { + ApiResponse localVarResp = getReferralsWithoutTotalCountWithHttpInfo(applicationId, + campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate); return localVarResp.getData(); } /** * List referrals * List all referrals of the specified campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. (optional) - * @param advocate Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param code Filter results performing case-insensitive matching + * against the referral code. Both the code and the query + * are folded to remove all non-alpha-numeric characters. + * (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid Either \"expired\", \"validNow\", or + * \"validFuture\". The first option matches + * referrals in which the expiration date is set and in the + * past. The second matches referrals in which start date + * is null or in the past and expiration date is null or in + * the future, the third matches referrals in which start + * date is set and in the future. (optional) + * @param usable Either \"true\" or \"false\". If + * \"true\", only referrals where + * `usageCounter < usageLimit` will be + * returned, \"false\" will return only referrals + * where `usageCounter >= usageLimit`. + * (optional) + * @param advocate Filter results by match with a profile ID specified in + * the referral's AdvocateProfileIntegrationId field. + * (optional) * @return ApiResponse<InlineResponse20012> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getReferralsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { - okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getReferralsWithoutTotalCountWithHttpInfo(Long applicationId, + Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { + okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, + skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List referrals (asynchronously) * List all referrals of the specified campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. (optional) - * @param advocate Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param code Filter results performing case-insensitive matching + * against the referral code. Both the code and the query + * are folded to remove all non-alpha-numeric characters. + * (optional) + * @param createdBefore Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, expected + * to be an RFC3339 timestamp string, to the referral + * creation timestamp. You can use any time zone setting. + * Talon.One will convert to UTC internally. (optional) + * @param valid Either \"expired\", \"validNow\", or + * \"validFuture\". The first option matches + * referrals in which the expiration date is set and in the + * past. The second matches referrals in which start date + * is null or in the past and expiration date is null or in + * the future, the third matches referrals in which start + * date is set and in the future. (optional) + * @param usable Either \"true\" or \"false\". If + * \"true\", only referrals where + * `usageCounter < usageLimit` will be + * returned, \"false\" will return only referrals + * where `usageCounter >= usageLimit`. + * (optional) + * @param advocate Filter results by match with a profile ID specified in + * the referral's AdvocateProfileIntegrationId field. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getReferralsWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getReferralsWithoutTotalCountAsync(Long applicationId, Long campaignId, Long pageSize, + Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, + String valid, String usable, String advocate, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, + skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getRoleV2 - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRoleV2Call(Integer roleId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRoleV2Call(Long roleId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v2/roles/{roleId}" - .replaceAll("\\{" + "roleId" + "\\}", localVarApiClient.escapeString(roleId.toString())); + .replaceAll("\\{" + "roleId" + "\\}", localVarApiClient.escapeString(roleId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -14866,7 +26332,7 @@ public okhttp3.Call getRoleV2Call(Integer roleId, final ApiCallback _callback) t Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14874,23 +26340,24 @@ public okhttp3.Call getRoleV2Call(Integer roleId, final ApiCallback _callback) t } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getRoleV2ValidateBeforeCall(Integer roleId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getRoleV2ValidateBeforeCall(Long roleId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'roleId' is set if (roleId == null) { throw new ApiException("Missing the required parameter 'roleId' when calling getRoleV2(Async)"); } - okhttp3.Call localVarCall = getRoleV2Call(roleId, _callback); return localVarCall; @@ -14899,81 +26366,138 @@ private okhttp3.Call getRoleV2ValidateBeforeCall(Integer roleId, final ApiCallba /** * Get role - * Get the details of a specific role. To see all the roles, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) + * Get the details of a specific role. To see all the roles, use the [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) * @return RoleV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public RoleV2 getRoleV2(Integer roleId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public RoleV2 getRoleV2(Long roleId) throws ApiException { ApiResponse localVarResp = getRoleV2WithHttpInfo(roleId); return localVarResp.getData(); } /** * Get role - * Get the details of a specific role. To see all the roles, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) + * Get the details of a specific role. To see all the roles, use the [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) * @return ApiResponse<RoleV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getRoleV2WithHttpInfo(Integer roleId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getRoleV2WithHttpInfo(Long roleId) throws ApiException { okhttp3.Call localVarCall = getRoleV2ValidateBeforeCall(roleId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get role (asynchronously) - * Get the details of a specific role. To see all the roles, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) + * Get the details of a specific role. To see all the roles, use the [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRoleV2Async(Integer roleId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRoleV2Async(Long roleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRoleV2ValidateBeforeCall(roleId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getRuleset - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rulesetId The ID of the ruleset. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rulesetId The ID of the ruleset. (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRulesetCall(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRulesetCall(Long applicationId, Long campaignId, Long rulesetId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "rulesetId" + "\\}", localVarApiClient.escapeString(rulesetId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "rulesetId" + "\\}", localVarApiClient.escapeString(rulesetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -14981,7 +26505,7 @@ public okhttp3.Call getRulesetCall(Integer applicationId, Integer campaignId, In Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -14989,33 +26513,35 @@ public okhttp3.Call getRulesetCall(Integer applicationId, Integer campaignId, In } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetValidateBeforeCall(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getRulesetValidateBeforeCall(Long applicationId, Long campaignId, Long rulesetId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getRuleset(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling getRuleset(Async)"); } - + // verify the required parameter 'rulesetId' is set if (rulesetId == null) { throw new ApiException("Missing the required parameter 'rulesetId' when calling getRuleset(Async)"); } - okhttp3.Call localVarCall = getRulesetCall(applicationId, campaignId, rulesetId, _callback); return localVarCall; @@ -15025,18 +26551,30 @@ private okhttp3.Call getRulesetValidateBeforeCall(Integer applicationId, Integer /** * Get ruleset * Retrieve the specified ruleset. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rulesetId The ID of the ruleset. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rulesetId The ID of the ruleset. (required) * @return Ruleset - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Ruleset getRuleset(Integer applicationId, Integer campaignId, Integer rulesetId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Ruleset getRuleset(Long applicationId, Long campaignId, Long rulesetId) throws ApiException { ApiResponse localVarResp = getRulesetWithHttpInfo(applicationId, campaignId, rulesetId); return localVarResp.getData(); } @@ -15044,68 +26582,116 @@ public Ruleset getRuleset(Integer applicationId, Integer campaignId, Integer rul /** * Get ruleset * Retrieve the specified ruleset. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rulesetId The ID of the ruleset. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rulesetId The ID of the ruleset. (required) * @return ApiResponse<Ruleset> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getRulesetWithHttpInfo(Integer applicationId, Integer campaignId, Integer rulesetId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getRulesetWithHttpInfo(Long applicationId, Long campaignId, Long rulesetId) + throws ApiException { okhttp3.Call localVarCall = getRulesetValidateBeforeCall(applicationId, campaignId, rulesetId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get ruleset (asynchronously) * Retrieve the specified ruleset. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param rulesetId The ID of the ruleset. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param rulesetId The ID of the ruleset. (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRulesetAsync(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRulesetAsync(Long applicationId, Long campaignId, Long rulesetId, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRulesetValidateBeforeCall(applicationId, campaignId, rulesetId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getRulesets - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRulesetsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRulesetsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -15125,7 +26711,7 @@ public okhttp3.Call getRulesetsCall(Integer applicationId, Integer campaignId, I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15133,28 +26719,30 @@ public okhttp3.Call getRulesetsCall(Integer applicationId, Integer campaignId, I } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getRulesetsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, + String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getRulesets(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling getRulesets(Async)"); } - okhttp3.Call localVarCall = getRulesetsCall(applicationId, campaignId, pageSize, skip, sort, _callback); return localVarCall; @@ -15163,92 +26751,181 @@ private okhttp3.Call getRulesetsValidateBeforeCall(Integer applicationId, Intege /** * List campaign rulesets - * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * List all rulesets of this campaign. A ruleset is a revision of the rules of a + * campaign. **Important:** The response also includes deleted rules. You should + * only consider the latest revision of the returned rulesets. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return InlineResponse2009 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse2009 getRulesets(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort) throws ApiException { - ApiResponse localVarResp = getRulesetsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse2009 getRulesets(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort) + throws ApiException { + ApiResponse localVarResp = getRulesetsWithHttpInfo(applicationId, campaignId, pageSize, + skip, sort); return localVarResp.getData(); } /** * List campaign rulesets - * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * List all rulesets of this campaign. A ruleset is a revision of the rules of a + * campaign. **Important:** The response also includes deleted rules. You should + * only consider the latest revision of the returned rulesets. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) * @return ApiResponse<InlineResponse2009> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getRulesetsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort) throws ApiException { - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getRulesetsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, + Long skip, String sort) throws ApiException { + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List campaign rulesets (asynchronously) - * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param _callback The callback to be executed when the API call finishes + * List all rulesets of this campaign. A ruleset is a revision of the rules of a + * campaign. **Important:** The response also includes deleted rules. You should + * only consider the latest revision of the returned rulesets. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getRulesetsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getRulesetsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getStoreCall(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/stores/{storeId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -15256,7 +26933,7 @@ public okhttp3.Call getStoreCall(Integer applicationId, String storeId, final Ap Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15264,28 +26941,30 @@ public okhttp3.Call getStoreCall(Integer applicationId, String storeId, final Ap } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getStoreValidateBeforeCall(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling getStore(Async)"); } - + // verify the required parameter 'storeId' is set if (storeId == null) { throw new ApiException("Missing the required parameter 'storeId' when calling getStore(Async)"); } - okhttp3.Call localVarCall = getStoreCall(applicationId, storeId, _callback); return localVarCall; @@ -15295,18 +26974,35 @@ private okhttp3.Call getStoreValidateBeforeCall(Integer applicationId, String st /** * Get store * Get store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) * @return Store - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public Store getStore(Integer applicationId, String storeId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public Store getStore(Long applicationId, String storeId) throws ApiException { ApiResponse localVarResp = getStoreWithHttpInfo(applicationId, storeId); return localVarResp.getData(); } @@ -15314,63 +27010,110 @@ public Store getStore(Integer applicationId, String storeId) throws ApiException /** * Get store * Get store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) * @return ApiResponse<Store> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse getStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse getStoreWithHttpInfo(Long applicationId, String storeId) throws ApiException { okhttp3.Call localVarCall = getStoreValidateBeforeCall(applicationId, storeId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get store (asynchronously) * Get store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call getStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call getStoreAsync(Long applicationId, String storeId, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getStoreValidateBeforeCall(applicationId, storeId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getUser - * @param userId The ID of the user. (required) + * + * @param userId The ID of the user. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getUserCall(Long userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -15378,7 +27121,7 @@ public okhttp3.Call getUserCall(Integer userId, final ApiCallback _callback) thr Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15386,23 +27129,24 @@ public okhttp3.Call getUserCall(Integer userId, final ApiCallback _callback) thr } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling getUser(Async)"); } - okhttp3.Call localVarCall = getUserCall(userId, _callback); return localVarCall; @@ -15411,74 +27155,126 @@ private okhttp3.Call getUserValidateBeforeCall(Integer userId, final ApiCallback /** * Get user - * Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile. + * Retrieve the data (including an invitation code) for a user. Non-admin users + * can only get their own profile. + * * @param userId The ID of the user. (required) * @return User - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public User getUser(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public User getUser(Long userId) throws ApiException { ApiResponse localVarResp = getUserWithHttpInfo(userId); return localVarResp.getData(); } /** * Get user - * Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile. + * Retrieve the data (including an invitation code) for a user. Non-admin users + * can only get their own profile. + * * @param userId The ID of the user. (required) * @return ApiResponse<User> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getUserWithHttpInfo(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getUserWithHttpInfo(Long userId) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get user (asynchronously) - * Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile. - * @param userId The ID of the user. (required) + * Retrieve the data (including an invitation code) for a user. Non-admin users + * can only get their own profile. + * + * @param userId The ID of the user. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getUserAsync(Long userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getUsers - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getUsersCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getUsersCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15502,7 +27298,7 @@ public okhttp3.Call getUsersCall(Integer pageSize, Integer skip, String sort, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15510,18 +27306,20 @@ public okhttp3.Call getUsersCall(Integer pageSize, Integer skip, String sort, fi } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getUsersCall(pageSize, skip, sort, _callback); return localVarCall; @@ -15530,83 +27328,147 @@ private okhttp3.Call getUsersValidateBeforeCall(Integer pageSize, Integer skip, /** * List users in account - * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Retrieve all users in your account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return InlineResponse20043 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20043 getUsers(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20043 getUsers(Long pageSize, Long skip, String sort) throws ApiException { ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } /** * List users in account - * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Retrieve all users in your account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20043> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getUsersWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getUsersWithHttpInfo(Long pageSize, Long skip, String sort) + throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List users in account (asynchronously) - * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * Retrieve all users in your account. + * + * @param pageSize The number of items in the response. (optional, default to + * 1000) + * @param skip The number of items to skip when paging through large result + * sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with `-`. + * **Note:** You may not be able to use all fields for sorting. + * This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getUsersAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getUsersAsync(Long pageSize, Long skip, String sort, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getWebhook - * @param webhookId The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. (required) + * + * @param webhookId The ID of the webhook. You can find the ID in the Campaign + * Manager's URL when you display the details of the + * webhook in **Account** > **Webhooks**. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookCall(Integer webhookId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookCall(Long webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/webhooks/{webhookId}" - .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); + .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -15614,7 +27476,7 @@ public okhttp3.Call getWebhookCall(Integer webhookId, final ApiCallback _callbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15622,23 +27484,24 @@ public okhttp3.Call getWebhookCall(Integer webhookId, final ApiCallback _callbac } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookValidateBeforeCall(Integer webhookId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getWebhookValidateBeforeCall(Long webhookId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhook(Async)"); } - okhttp3.Call localVarCall = getWebhookCall(webhookId, _callback); return localVarCall; @@ -15648,16 +27511,28 @@ private okhttp3.Call getWebhookValidateBeforeCall(Integer webhookId, final ApiCa /** * Get webhook * Returns a webhook by its id. - * @param webhookId The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. (required) + * + * @param webhookId The ID of the webhook. You can find the ID in the Campaign + * Manager's URL when you display the details of the + * webhook in **Account** > **Webhooks**. (required) * @return Webhook - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Webhook getWebhook(Integer webhookId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Webhook getWebhook(Long webhookId) throws ApiException { ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId); return localVarResp.getData(); } @@ -15665,62 +27540,114 @@ public Webhook getWebhook(Integer webhookId) throws ApiException { /** * Get webhook * Returns a webhook by its id. - * @param webhookId The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. (required) + * + * @param webhookId The ID of the webhook. You can find the ID in the Campaign + * Manager's URL when you display the details of the + * webhook in **Account** > **Webhooks**. (required) * @return ApiResponse<Webhook> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getWebhookWithHttpInfo(Integer webhookId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getWebhookWithHttpInfo(Long webhookId) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook (asynchronously) * Returns a webhook by its id. - * @param webhookId The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. (required) + * + * @param webhookId The ID of the webhook. You can find the ID in the Campaign + * Manager's URL when you display the details of the + * webhook in **Account** > **Webhooks**. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookAsync(Integer webhookId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookAsync(Long webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getWebhookActivationLogs - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param integrationRequestUuid Filter results by integration request UUID. (optional) - * @param webhookId Filter results by webhook id. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param _callback Callback for upload/download progress + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param integrationRequestUuid Filter results by integration request UUID. + * (optional) + * @param webhookId Filter results by webhook id. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Only return events created before this date. + * You can use any time zone setting. Talon.One + * will convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookActivationLogsCall(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookActivationLogsCall(Long pageSize, Long skip, String sort, + String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15741,7 +27668,8 @@ public okhttp3.Call getWebhookActivationLogsCall(Integer pageSize, Integer skip, } if (integrationRequestUuid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("integrationRequestUuid", integrationRequestUuid)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("integrationRequestUuid", integrationRequestUuid)); } if (webhookId != null) { @@ -15768,7 +27696,7 @@ public okhttp3.Call getWebhookActivationLogsCall(Integer pageSize, Integer skip, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15776,125 +27704,245 @@ public okhttp3.Call getWebhookActivationLogsCall(Integer pageSize, Integer skip, } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Long pageSize, Long skip, String sort, + String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) + throws ApiException { - okhttp3.Call localVarCall = getWebhookActivationLogsCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); + okhttp3.Call localVarCall = getWebhookActivationLogsCall(pageSize, skip, sort, integrationRequestUuid, + webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); return localVarCall; } /** * List webhook activation log entries - * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param integrationRequestUuid Filter results by integration request UUID. (optional) - * @param webhookId Filter results by webhook id. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * Webhook activation log entries are created as soon as an integration request + * triggers a webhook effect. See the + * [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param integrationRequestUuid Filter results by integration request UUID. + * (optional) + * @param webhookId Filter results by webhook id. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Only return events created before this date. + * You can use any time zone setting. Talon.One + * will convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) * @return InlineResponse20040 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20040 getWebhookActivationLogs(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - ApiResponse localVarResp = getWebhookActivationLogsWithHttpInfo(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20040 getWebhookActivationLogs(Long pageSize, Long skip, String sort, + String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + ApiResponse localVarResp = getWebhookActivationLogsWithHttpInfo(pageSize, skip, sort, + integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); return localVarResp.getData(); } /** * List webhook activation log entries - * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param integrationRequestUuid Filter results by integration request UUID. (optional) - * @param webhookId Filter results by webhook id. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * Webhook activation log entries are created as soon as an integration request + * triggers a webhook effect. See the + * [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param integrationRequestUuid Filter results by integration request UUID. + * (optional) + * @param webhookId Filter results by webhook id. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Only return events created before this date. + * You can use any time zone setting. Talon.One + * will convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) * @return ApiResponse<InlineResponse20040> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getWebhookActivationLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getWebhookActivationLogsWithHttpInfo(Long pageSize, Long skip, String sort, + String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, + integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhook activation log entries (asynchronously) - * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param integrationRequestUuid Filter results by integration request UUID. (optional) - * @param webhookId Filter results by webhook id. (optional) - * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param createdBefore Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param _callback The callback to be executed when the API call finishes + * Webhook activation log entries are created as soon as an integration request + * triggers a webhook effect. See the + * [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param integrationRequestUuid Filter results by integration request UUID. + * (optional) + * @param webhookId Filter results by webhook id. (optional) + * @param applicationId Filter results by Application ID. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param createdBefore Only return events created before this date. + * You can use any time zone setting. Talon.One + * will convert to UTC internally. (optional) + * @param createdAfter Only return events created after this date. You + * can use any time zone setting. Talon.One will + * convert to UTC internally. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookActivationLogsAsync(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookActivationLogsAsync(Long pageSize, Long skip, String sort, + String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, + integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getWebhookLogs - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param webhookId Filter results by webhook id. (optional) + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param webhookId Filter results by webhook id. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param requestUuid Filter results by request UUID. (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param _callback Callback for upload/download progress + * @param campaignId Filter results by campaign ID. (optional) + * @param requestUuid Filter results by request UUID. (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookLogsCall(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookLogsCall(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, + BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15946,7 +27994,7 @@ public okhttp3.Call getWebhookLogsCall(Integer pageSize, Integer skip, String so Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -15954,20 +28002,25 @@ public okhttp3.Call getWebhookLogsCall(Integer pageSize, Integer skip, String so } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getWebhookLogsValidateBeforeCall(Long pageSize, Long skip, String sort, String status, + BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) + throws ApiException { - okhttp3.Call localVarCall = getWebhookLogsCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); + okhttp3.Call localVarCall = getWebhookLogsCall(pageSize, skip, sort, status, webhookId, applicationId, + campaignId, requestUuid, createdBefore, createdAfter, _callback); return localVarCall; } @@ -15975,105 +28028,218 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param webhookId Filter results by webhook id. (optional) + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param webhookId Filter results by webhook id. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param requestUuid Filter results by request UUID. (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param requestUuid Filter results by request UUID. (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) * @return InlineResponse20041 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20041 getWebhookLogs(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - ApiResponse localVarResp = getWebhookLogsWithHttpInfo(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20041 getWebhookLogs(Long pageSize, Long skip, String sort, String status, + BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, + OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + ApiResponse localVarResp = getWebhookLogsWithHttpInfo(pageSize, skip, sort, status, + webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); return localVarResp.getData(); } /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param webhookId Filter results by webhook id. (optional) + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param webhookId Filter results by webhook id. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param requestUuid Filter results by request UUID. (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param requestUuid Filter results by request UUID. (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) * @return ApiResponse<InlineResponse20041> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getWebhookLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { - okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getWebhookLogsWithHttpInfo(Long pageSize, Long skip, String sort, + String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, + OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, + applicationId, campaignId, requestUuid, createdBefore, createdAfter, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhook log entries (asynchronously) * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param status Filter results by HTTP status codes. (optional) - * @param webhookId Filter results by webhook id. (optional) + * + * @param pageSize The number of items in the response. (optional, default + * to 1000) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param sort The field by which results should be sorted. By default, + * results are sorted in ascending order. To sort them in + * descending order, prefix the field name with + * `-`. **Note:** You may not be able to use all + * fields for sorting. This is due to performance + * limitations. (optional) + * @param status Filter results by HTTP status codes. (optional) + * @param webhookId Filter results by webhook id. (optional) * @param applicationId Filter results by Application ID. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param requestUuid Filter results by request UUID. (optional) - * @param createdBefore Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param campaignId Filter results by campaign ID. (optional) + * @param requestUuid Filter results by request UUID. (optional) + * @param createdBefore Filter results where request and response times to + * return entries before parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param createdAfter Filter results where request and response times to + * return entries after parameter value, expected to be an + * RFC3339 timestamp string. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhookLogsAsync(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhookLogsAsync(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, + BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, + applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for getWebhooks - * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param creationType Filter results by creation type. (optional) - * @param visibility Filter results by visibility. (optional) - * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) - * @param title Filter results performing case-insensitive matching against the webhook title. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationIds Checks if the given catalog or its + * attributes are referenced in the specified + * Application ID. **Note**: If no Application + * ID is provided, we check for all connected + * Applications. (optional) + * @param sort The field by which results should be + * sorted. By default, results are sorted in + * ascending order. To sort them in descending + * order, prefix the field name with + * `-`. **Note:** You may not be + * able to use all fields for sorting. This is + * due to performance limitations. (optional) + * @param pageSize The number of items in the response. + * (optional, default to 1000) + * @param skip The number of items to skip when paging + * through large result sets. (optional) + * @param creationType Filter results by creation type. (optional) + * @param visibility Filter results by visibility. (optional) + * @param outgoingIntegrationsTypeId Filter results by outgoing integration type + * ID. (optional) + * @param title Filter results performing case-insensitive + * matching against the webhook title. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Long pageSize, Long skip, + String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -16106,7 +28272,8 @@ public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Integer } if (outgoingIntegrationsTypeId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("outgoingIntegrationsTypeId", outgoingIntegrationsTypeId)); + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("outgoingIntegrationsTypeId", outgoingIntegrationsTypeId)); } if (title != null) { @@ -16117,7 +28284,7 @@ public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16125,20 +28292,24 @@ public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Integer } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String sort, Long pageSize, Long skip, + String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, + final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getWebhooksCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, _callback); + okhttp3.Call localVarCall = getWebhooksCall(applicationIds, sort, pageSize, skip, creationType, visibility, + outgoingIntegrationsTypeId, title, _callback); return localVarCall; } @@ -16146,100 +28317,209 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String /** * List webhooks * List all webhooks. - * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param creationType Filter results by creation type. (optional) - * @param visibility Filter results by visibility. (optional) - * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) - * @param title Filter results performing case-insensitive matching against the webhook title. (optional) + * + * @param applicationIds Checks if the given catalog or its + * attributes are referenced in the specified + * Application ID. **Note**: If no Application + * ID is provided, we check for all connected + * Applications. (optional) + * @param sort The field by which results should be + * sorted. By default, results are sorted in + * ascending order. To sort them in descending + * order, prefix the field name with + * `-`. **Note:** You may not be + * able to use all fields for sorting. This is + * due to performance limitations. (optional) + * @param pageSize The number of items in the response. + * (optional, default to 1000) + * @param skip The number of items to skip when paging + * through large result sets. (optional) + * @param creationType Filter results by creation type. (optional) + * @param visibility Filter results by visibility. (optional) + * @param outgoingIntegrationsTypeId Filter results by outgoing integration type + * ID. (optional) + * @param title Filter results performing case-insensitive + * matching against the webhook title. + * (optional) * @return InlineResponse20039 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20039 getWebhooks(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { - ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long pageSize, Long skip, + String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { + ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, + creationType, visibility, outgoingIntegrationsTypeId, title); return localVarResp.getData(); } /** * List webhooks * List all webhooks. - * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param creationType Filter results by creation type. (optional) - * @param visibility Filter results by visibility. (optional) - * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) - * @param title Filter results performing case-insensitive matching against the webhook title. (optional) + * + * @param applicationIds Checks if the given catalog or its + * attributes are referenced in the specified + * Application ID. **Note**: If no Application + * ID is provided, we check for all connected + * Applications. (optional) + * @param sort The field by which results should be + * sorted. By default, results are sorted in + * ascending order. To sort them in descending + * order, prefix the field name with + * `-`. **Note:** You may not be + * able to use all fields for sorting. This is + * due to performance limitations. (optional) + * @param pageSize The number of items in the response. + * (optional, default to 1000) + * @param skip The number of items to skip when paging + * through large result sets. (optional) + * @param creationType Filter results by creation type. (optional) + * @param visibility Filter results by visibility. (optional) + * @param outgoingIntegrationsTypeId Filter results by outgoing integration type + * ID. (optional) + * @param title Filter results performing case-insensitive + * matching against the webhook title. + * (optional) * @return ApiResponse<InlineResponse20039> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Long pageSize, + Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) + throws ApiException { + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, + visibility, outgoingIntegrationsTypeId, title, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhooks (asynchronously) * List all webhooks. - * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param creationType Filter results by creation type. (optional) - * @param visibility Filter results by visibility. (optional) - * @param outgoingIntegrationsTypeId Filter results by outgoing integration type ID. (optional) - * @param title Filter results performing case-insensitive matching against the webhook title. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationIds Checks if the given catalog or its + * attributes are referenced in the specified + * Application ID. **Note**: If no Application + * ID is provided, we check for all connected + * Applications. (optional) + * @param sort The field by which results should be + * sorted. By default, results are sorted in + * ascending order. To sort them in descending + * order, prefix the field name with + * `-`. **Note:** You may not be + * able to use all fields for sorting. This is + * due to performance limitations. (optional) + * @param pageSize The number of items in the response. + * (optional, default to 1000) + * @param skip The number of items to skip when paging + * through large result sets. (optional) + * @param creationType Filter results by creation type. (optional) + * @param visibility Filter results by visibility. (optional) + * @param outgoingIntegrationsTypeId Filter results by outgoing integration type + * ID. (optional) + * @param title Filter results performing case-insensitive + * matching against the webhook title. + * (optional) + * @param _callback The callback to be executed when the API + * call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Long pageSize, Long skip, + String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, + visibility, outgoingIntegrationsTypeId, title, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call importAccountCollectionCall(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call importAccountCollectionCall(Long collectionId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/collections/{collectionId}/import" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16251,7 +28531,7 @@ public okhttp3.Call importAccountCollectionCall(Integer collectionId, String upF } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16259,23 +28539,26 @@ public okhttp3.Call importAccountCollectionCall(Integer collectionId, String upF } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importAccountCollectionValidateBeforeCall(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importAccountCollectionValidateBeforeCall(Long collectionId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling importAccountCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling importAccountCollection(Async)"); } - okhttp3.Call localVarCall = importAccountCollectionCall(collectionId, upFile, _callback); return localVarCall; @@ -16284,90 +28567,208 @@ private okhttp3.Call importAccountCollectionValidateBeforeCall(Integer collectio /** * Import data into existing account-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ModelImport importAccountCollection(Integer collectionId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ModelImport importAccountCollection(Long collectionId, String upFile) throws ApiException { ApiResponse localVarResp = importAccountCollectionWithHttpInfo(collectionId, upFile); return localVarResp.getData(); } /** * Import data into existing account-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public ApiResponse importAccountCollectionWithHttpInfo(Integer collectionId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public ApiResponse importAccountCollectionWithHttpInfo(Long collectionId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importAccountCollectionValidateBeforeCall(collectionId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import data into existing account-level collection (asynchronously) - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
- */ - public okhttp3.Call importAccountCollectionAsync(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
+ */ + public okhttp3.Call importAccountCollectionAsync(Long collectionId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAccountCollectionValidateBeforeCall(collectionId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importAllowedList - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importAllowedListCall(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importAllowedListCall(Long attributeId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/attributes/{attributeId}/allowed_list/import" - .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); + .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16379,7 +28780,7 @@ public okhttp3.Call importAllowedListCall(Integer attributeId, String upFile, fi } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16387,23 +28788,26 @@ public okhttp3.Call importAllowedListCall(Integer attributeId, String upFile, fi } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importAllowedListValidateBeforeCall(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importAllowedListValidateBeforeCall(Long attributeId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'attributeId' is set if (attributeId == null) { - throw new ApiException("Missing the required parameter 'attributeId' when calling importAllowedList(Async)"); + throw new ApiException( + "Missing the required parameter 'attributeId' when calling importAllowedList(Async)"); } - okhttp3.Call localVarCall = importAllowedListCall(attributeId, upFile, _callback); return localVarCall; @@ -16412,93 +28816,222 @@ private okhttp3.Call importAllowedListValidateBeforeCall(Integer attributeId, St /** * Import allowed values for attribute - * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing a list of [picklist + * values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) + * for the specified attribute. The file should be sent as multipart data. The + * import **replaces** the previous list of allowed values for this attribute, + * if any. The CSV file **must** only contain the following column: - + * `item` (required): the values in your allowed list, for example a + * list of SKU's. An allowed list is limited to 500,000 items. Example: + * ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 + * CS-DG-02082021-UP-50G-07 ``` + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ModelImport importAllowedList(Integer attributeId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ModelImport importAllowedList(Long attributeId, String upFile) throws ApiException { ApiResponse localVarResp = importAllowedListWithHttpInfo(attributeId, upFile); return localVarResp.getData(); } /** * Import allowed values for attribute - * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing a list of [picklist + * values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) + * for the specified attribute. The file should be sent as multipart data. The + * import **replaces** the previous list of allowed values for this attribute, + * if any. The CSV file **must** only contain the following column: - + * `item` (required): the values in your allowed list, for example a + * list of SKU's. An allowed list is limited to 500,000 items. Example: + * ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 + * CS-DG-02082021-UP-50G-07 ``` + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse importAllowedListWithHttpInfo(Integer attributeId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse importAllowedListWithHttpInfo(Long attributeId, String upFile) throws ApiException { okhttp3.Call localVarCall = importAllowedListValidateBeforeCall(attributeId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import allowed values for attribute (asynchronously) - * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing a list of [picklist + * values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) + * for the specified attribute. The file should be sent as multipart data. The + * import **replaces** the previous list of allowed values for this attribute, + * if any. The CSV file **must** only contain the following column: - + * `item` (required): the values in your allowed list, for example a + * list of SKU's. An allowed list is limited to 500,000 items. Example: + * ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 + * CS-DG-02082021-UP-50G-07 ``` + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importAllowedListAsync(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importAllowedListAsync(Long attributeId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAllowedListValidateBeforeCall(attributeId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importAudiencesMemberships + * * @param audienceId The ID of the audience. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importAudiencesMembershipsCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importAudiencesMembershipsCall(Long audienceId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/audiences/{audienceId}/memberships/import" - .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); + .replaceAll("\\{" + "audienceId" + "\\}", localVarApiClient.escapeString(audienceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16510,7 +29043,7 @@ public okhttp3.Call importAudiencesMembershipsCall(Integer audienceId, String up } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16518,23 +29051,26 @@ public okhttp3.Call importAudiencesMembershipsCall(Integer audienceId, String up } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Long audienceId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'audienceId' is set if (audienceId == null) { - throw new ApiException("Missing the required parameter 'audienceId' when calling importAudiencesMemberships(Async)"); + throw new ApiException( + "Missing the required parameter 'audienceId' when calling importAudiencesMemberships(Async)"); } - okhttp3.Call localVarCall = importAudiencesMembershipsCall(audienceId, upFile, _callback); return localVarCall; @@ -16543,95 +29079,212 @@ private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Integer audien /** * Import audience members - * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * Upload a CSV file containing the integration IDs of the members you want to + * add to an audience. The file should be sent as multipart data and should + * contain only the following column (required): - + * `profileintegrationid`: The integration ID of the customer profile. + * The import **replaces** the previous list of audience members. **Note:** We + * recommend limiting your file size to 500MB. Example: ```text + * profileintegrationid charles alexa ``` + * * @param audienceId The ID of the audience. (required) - * @param upFile The file containing the data that is being imported. (optional) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ModelImport importAudiencesMemberships(Integer audienceId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ModelImport importAudiencesMemberships(Long audienceId, String upFile) throws ApiException { ApiResponse localVarResp = importAudiencesMembershipsWithHttpInfo(audienceId, upFile); return localVarResp.getData(); } /** * Import audience members - * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * Upload a CSV file containing the integration IDs of the members you want to + * add to an audience. The file should be sent as multipart data and should + * contain only the following column (required): - + * `profileintegrationid`: The integration ID of the customer profile. + * The import **replaces** the previous list of audience members. **Note:** We + * recommend limiting your file size to 500MB. Example: ```text + * profileintegrationid charles alexa ``` + * * @param audienceId The ID of the audience. (required) - * @param upFile The file containing the data that is being imported. (optional) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse importAudiencesMembershipsWithHttpInfo(Integer audienceId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse importAudiencesMembershipsWithHttpInfo(Long audienceId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import audience members (asynchronously) - * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * Upload a CSV file containing the integration IDs of the members you want to + * add to an audience. The file should be sent as multipart data and should + * contain only the following column (required): - + * `profileintegrationid`: The integration ID of the customer profile. + * The import **replaces** the previous list of audience members. **Note:** We + * recommend limiting your file size to 500MB. Example: ```text + * profileintegrationid charles alexa ``` + * * @param audienceId The ID of the audience. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importAudiencesMembershipsAsync(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importAudiencesMembershipsAsync(Long audienceId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importCampaignStores - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importCampaignStoresCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importCampaignStoresCall(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/import" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16643,7 +29296,7 @@ public okhttp3.Call importCampaignStoresCall(Integer applicationId, Integer camp } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16651,28 +29304,32 @@ public okhttp3.Call importCampaignStoresCall(Integer applicationId, Integer camp } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling importCampaignStores(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling importCampaignStores(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling importCampaignStores(Async)"); } - okhttp3.Call localVarCall = importCampaignStoresCall(applicationId, campaignId, upFile, _callback); return localVarCall; @@ -16681,98 +29338,211 @@ private okhttp3.Call importCampaignStoresValidateBeforeCall(Integer applicationI /** * Import stores - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the stores you want to link to a specific + * campaign. Send the file as multipart data. The CSV file **must** only contain + * the following column: - `store_integration_id`: The identifier of + * the store. The import **replaces** the previous list of stores linked to the + * campaign. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ModelImport importCampaignStores(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ModelImport importCampaignStores(Long applicationId, Long campaignId, String upFile) throws ApiException { ApiResponse localVarResp = importCampaignStoresWithHttpInfo(applicationId, campaignId, upFile); return localVarResp.getData(); } /** * Import stores - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the stores you want to link to a specific + * campaign. Send the file as multipart data. The CSV file **must** only contain + * the following column: - `store_integration_id`: The identifier of + * the store. The import **replaces** the previous list of stores linked to the + * campaign. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public ApiResponse importCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public ApiResponse importCampaignStoresWithHttpInfo(Long applicationId, Long campaignId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import stores (asynchronously) - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the stores you want to link to a specific + * campaign. Send the file as multipart data. The CSV file **must** only contain + * the following column: - `store_integration_id`: The identifier of + * the store. The import **replaces** the previous list of stores linked to the + * campaign. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
- */ - public okhttp3.Call importCampaignStoresAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized - Invalid API key-
404Not found-
+ */ + public okhttp3.Call importCampaignStoresAsync(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importCollection - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call importCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public okhttp3.Call importCollectionCall(Long applicationId, Long campaignId, Long collectionId, String upFile, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16784,7 +29554,7 @@ public okhttp3.Call importCollectionCall(Integer applicationId, Integer campaign } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16792,33 +29562,37 @@ public okhttp3.Call importCollectionCall(Integer applicationId, Integer campaign } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, + String upFile, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling importCollection(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling importCollection(Async)"); } - + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling importCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling importCollection(Async)"); } - okhttp3.Call localVarCall = importCollectionCall(applicationId, campaignId, collectionId, upFile, _callback); return localVarCall; @@ -16827,93 +29601,199 @@ private okhttp3.Call importCollectionValidateBeforeCall(Integer applicationId, I /** * Import data into existing campaign-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ModelImport importCollection(Integer applicationId, Integer campaignId, Integer collectionId, String upFile) throws ApiException { - ApiResponse localVarResp = importCollectionWithHttpInfo(applicationId, campaignId, collectionId, upFile); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public ModelImport importCollection(Long applicationId, Long campaignId, Long collectionId, String upFile) + throws ApiException { + ApiResponse localVarResp = importCollectionWithHttpInfo(applicationId, campaignId, collectionId, + upFile); return localVarResp.getData(); } /** * Import data into existing campaign-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse importCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId, String upFile) throws ApiException { - okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public ApiResponse importCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId, + String upFile) throws ApiException { + okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import data into existing campaign-level collection (asynchronously) - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call importCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public okhttp3.Call importCollectionAsync(Long applicationId, Long campaignId, Long collectionId, String upFile, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importCoupons - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values + * instead of causing an error. Duplicate values are + * ignored when `skipDuplicates=true`. + * (optional) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importCouponsCall(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16929,7 +29809,7 @@ public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -16937,28 +29817,30 @@ public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importCouponsValidateBeforeCall(Long applicationId, Long campaignId, Boolean skipDuplicates, + String upFile, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling importCoupons(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling importCoupons(Async)"); } - okhttp3.Call localVarCall = importCouponsCall(applicationId, campaignId, skipDuplicates, upFile, _callback); return localVarCall; @@ -16967,89 +29849,248 @@ private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Inte /** * Import coupons - * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the coupons that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `value` (required): The coupon code. - + * `expirydate`: The end date in RFC3339 of the code redemption + * period. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `recipientintegrationid`: The integration ID + * of the recipient of the coupon. Only the customer with this integration ID + * can redeem this code. Available only for personal codes. - + * `limitval`: The maximum number of redemptions of this code. For + * unlimited redemptions, use `0`. Defaults to `1` when not + * provided. - `discountlimit`: The total discount value that the code + * can give. This is typically used to represent a gift card value. - + * `attributes`: A JSON object describing _custom_ coupon attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the coupon entity, the object in + * the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Note:** We recommend limiting your file size to 500MB. + * **Example:** ```text + * \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" + * COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": + * \"\"10_off\"\"}\",2.4 ``` Once + * imported, you can find the `batchId` in the Campaign Manager or by + * using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values + * instead of causing an error. Duplicate values are + * ignored when `skipDuplicates=true`. + * (optional) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ModelImport importCoupons(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { - ApiResponse localVarResp = importCouponsWithHttpInfo(applicationId, campaignId, skipDuplicates, upFile); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ModelImport importCoupons(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile) + throws ApiException { + ApiResponse localVarResp = importCouponsWithHttpInfo(applicationId, campaignId, skipDuplicates, + upFile); return localVarResp.getData(); } /** * Import coupons - * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the coupons that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `value` (required): The coupon code. - + * `expirydate`: The end date in RFC3339 of the code redemption + * period. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `recipientintegrationid`: The integration ID + * of the recipient of the coupon. Only the customer with this integration ID + * can redeem this code. Available only for personal codes. - + * `limitval`: The maximum number of redemptions of this code. For + * unlimited redemptions, use `0`. Defaults to `1` when not + * provided. - `discountlimit`: The total discount value that the code + * can give. This is typically used to represent a gift card value. - + * `attributes`: A JSON object describing _custom_ coupon attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the coupon entity, the object in + * the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Note:** We recommend limiting your file size to 500MB. + * **Example:** ```text + * \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" + * COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": + * \"\"10_off\"\"}\",2.4 ``` Once + * imported, you can find the `batchId` in the Campaign Manager or by + * using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values + * instead of causing an error. Duplicate values are + * ignored when `skipDuplicates=true`. + * (optional) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse importCouponsWithHttpInfo(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { - okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse importCouponsWithHttpInfo(Long applicationId, Long campaignId, + Boolean skipDuplicates, String upFile) throws ApiException { + okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import coupons (asynchronously) - * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the coupons that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `value` (required): The coupon code. - + * `expirydate`: The end date in RFC3339 of the code redemption + * period. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `recipientintegrationid`: The integration ID + * of the recipient of the coupon. Only the customer with this integration ID + * can redeem this code. Available only for personal codes. - + * `limitval`: The maximum number of redemptions of this code. For + * unlimited redemptions, use `0`. Defaults to `1` when not + * provided. - `discountlimit`: The total discount value that the code + * can give. This is typically used to represent a gift card value. - + * `attributes`: A JSON object describing _custom_ coupon attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the coupon entity, the object in + * the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Note:** We recommend limiting your file size to 500MB. + * **Example:** ```text + * \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" + * COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": + * \"\"10_off\"\"}\",2.4 ``` Once + * imported, you can find the `batchId` in the Campaign Manager or by + * using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values + * instead of causing an error. Duplicate values are + * ignored when `skipDuplicates=true`. + * (optional) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importCouponsAsync(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importCouponsAsync(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importLoyaltyCards - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call importLoyaltyCardsCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call importLoyaltyCardsCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/import_cards" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17061,7 +30102,7 @@ public okhttp3.Call importLoyaltyCardsCall(Integer loyaltyProgramId, String upFi } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17069,23 +30110,26 @@ public okhttp3.Call importLoyaltyCardsCall(Integer loyaltyProgramId, String upFi } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyCards(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyCards(Async)"); } - okhttp3.Call localVarCall = importLoyaltyCardsCall(loyaltyProgramId, upFile, _callback); return localVarCall; @@ -17094,90 +30138,222 @@ private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Integer loyaltyProgram /** * Import loyalty cards - * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the loyalty cards that you want to use in your + * card-based loyalty program. Send the file as multipart data. It contains the + * following columns for each card: - `identifier` (required): The + * alphanumeric identifier of the loyalty card. - `state` (required): + * The state of the loyalty card. It can be `active` or + * `inactive`. - `customerprofileids` (optional): An array + * of strings representing the identifiers of the customer profiles linked to + * the loyalty card. The identifiers should be separated with a semicolon (;). + * **Note:** We recommend limiting your file size to 500MB. **Example:** + * ```csv identifier,state,customerprofileids + * 123-456-789AT,active,Alexa001;UserA ``` + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ModelImport importLoyaltyCards(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public ModelImport importLoyaltyCards(Long loyaltyProgramId, String upFile) throws ApiException { ApiResponse localVarResp = importLoyaltyCardsWithHttpInfo(loyaltyProgramId, upFile); return localVarResp.getData(); } /** * Import loyalty cards - * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the loyalty cards that you want to use in your + * card-based loyalty program. Send the file as multipart data. It contains the + * following columns for each card: - `identifier` (required): The + * alphanumeric identifier of the loyalty card. - `state` (required): + * The state of the loyalty card. It can be `active` or + * `inactive`. - `customerprofileids` (optional): An array + * of strings representing the identifiers of the customer profiles linked to + * the loyalty card. The identifiers should be separated with a semicolon (;). + * **Note:** We recommend limiting your file size to 500MB. **Example:** + * ```csv identifier,state,customerprofileids + * 123-456-789AT,active,Alexa001;UserA ``` + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse importLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public ApiResponse importLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importLoyaltyCardsValidateBeforeCall(loyaltyProgramId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import loyalty cards (asynchronously) - * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the loyalty cards that you want to use in your + * card-based loyalty program. Send the file as multipart data. It contains the + * following columns for each card: - `identifier` (required): The + * alphanumeric identifier of the loyalty card. - `state` (required): + * The state of the loyalty card. It can be `active` or + * `inactive`. - `customerprofileids` (optional): An array + * of strings representing the identifiers of the customer profiles linked to + * the loyalty card. The identifiers should be separated with a semicolon (;). + * **Note:** We recommend limiting your file size to 500MB. **Example:** + * ```csv identifier,state,customerprofileids + * 123-456-789AT,active,Alexa001;UserA ``` + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call importLoyaltyCardsAsync(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call importLoyaltyCardsAsync(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCardsValidateBeforeCall(loyaltyProgramId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importLoyaltyCustomersTiers - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call importLoyaltyCustomersTiersCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call importLoyaltyCustomersTiersCall(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/import_customers_tiers" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17189,7 +30365,7 @@ public okhttp3.Call importLoyaltyCustomersTiersCall(Integer loyaltyProgramId, St } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17197,23 +30373,26 @@ public okhttp3.Call importLoyaltyCustomersTiersCall(Integer loyaltyProgramId, St } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyCustomersTiers(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyCustomersTiers(Async)"); } - okhttp3.Call localVarCall = importLoyaltyCustomersTiersCall(loyaltyProgramId, upFile, _callback); return localVarCall; @@ -17222,90 +30401,258 @@ private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Integer loyal /** * Import customers into loyalty tiers - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier when the tier is reevaluated. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing existing customers to be assigned to existing + * tiers. Send the file as multipart data. **Important:** This endpoint only + * works with loyalty programs with advanced tiers (with expiration and + * downgrade policy) feature enabled. The CSV file should contain the following + * columns: - `subledgerid` (optional): The ID of the subledger. If + * this field is empty, the main ledger will be used. - + * `customerprofileid`: The integration ID of the customer profile to + * whom the tier should be assigned. - `tiername`: The name of an + * existing tier to assign to the customer. - `expirydate`: The + * expiration date of the tier when the tier is reevaluated. It should be a + * future date. About customer assignment to a tier: - If the customer isn't + * already in a tier, the customer is assigned to the specified tier during the + * tier import. - If the customer is already in the tier that's specified in + * the CSV file, only the expiration date is updated. **Note:** We recommend not + * using this endpoint to update the tier of a customer. To update a + * customer's tier, you can + * [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or + * [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their + * loyalty points. You can use the time zone of your choice. It is converted to + * UTC internally by Talon.One. **Note:** We recommend limiting your file size + * to 500MB. **Example:** ```csv + * subledgerid,customerprofileid,tiername,expirydate + * SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z + * SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ModelImport importLoyaltyCustomersTiers(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ModelImport importLoyaltyCustomersTiers(Long loyaltyProgramId, String upFile) throws ApiException { ApiResponse localVarResp = importLoyaltyCustomersTiersWithHttpInfo(loyaltyProgramId, upFile); return localVarResp.getData(); } /** * Import customers into loyalty tiers - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier when the tier is reevaluated. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing existing customers to be assigned to existing + * tiers. Send the file as multipart data. **Important:** This endpoint only + * works with loyalty programs with advanced tiers (with expiration and + * downgrade policy) feature enabled. The CSV file should contain the following + * columns: - `subledgerid` (optional): The ID of the subledger. If + * this field is empty, the main ledger will be used. - + * `customerprofileid`: The integration ID of the customer profile to + * whom the tier should be assigned. - `tiername`: The name of an + * existing tier to assign to the customer. - `expirydate`: The + * expiration date of the tier when the tier is reevaluated. It should be a + * future date. About customer assignment to a tier: - If the customer isn't + * already in a tier, the customer is assigned to the specified tier during the + * tier import. - If the customer is already in the tier that's specified in + * the CSV file, only the expiration date is updated. **Note:** We recommend not + * using this endpoint to update the tier of a customer. To update a + * customer's tier, you can + * [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or + * [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their + * loyalty points. You can use the time zone of your choice. It is converted to + * UTC internally by Talon.One. **Note:** We recommend limiting your file size + * to 500MB. **Example:** ```csv + * subledgerid,customerprofileid,tiername,expirydate + * SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z + * SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Long loyaltyProgramId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importLoyaltyCustomersTiersValidateBeforeCall(loyaltyProgramId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import customers into loyalty tiers (asynchronously) - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier when the tier is reevaluated. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing existing customers to be assigned to existing + * tiers. Send the file as multipart data. **Important:** This endpoint only + * works with loyalty programs with advanced tiers (with expiration and + * downgrade policy) feature enabled. The CSV file should contain the following + * columns: - `subledgerid` (optional): The ID of the subledger. If + * this field is empty, the main ledger will be used. - + * `customerprofileid`: The integration ID of the customer profile to + * whom the tier should be assigned. - `tiername`: The name of an + * existing tier to assign to the customer. - `expirydate`: The + * expiration date of the tier when the tier is reevaluated. It should be a + * future date. About customer assignment to a tier: - If the customer isn't + * already in a tier, the customer is assigned to the specified tier during the + * tier import. - If the customer is already in the tier that's specified in + * the CSV file, only the expiration date is updated. **Note:** We recommend not + * using this endpoint to update the tier of a customer. To update a + * customer's tier, you can + * [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or + * [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their + * loyalty points. You can use the time zone of your choice. It is converted to + * UTC internally by Talon.One. **Note:** We recommend limiting your file size + * to 500MB. **Example:** ```csv + * subledgerid,customerprofileid,tiername,expirydate + * SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z + * SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call importLoyaltyCustomersTiersAsync(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call importLoyaltyCustomersTiersAsync(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCustomersTiersValidateBeforeCall(loyaltyProgramId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importLoyaltyPoints - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importLoyaltyPointsCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importLoyaltyPointsCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/import_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17317,7 +30664,7 @@ public okhttp3.Call importLoyaltyPointsCall(Integer loyaltyProgramId, String upF } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17325,23 +30672,26 @@ public okhttp3.Call importLoyaltyPointsCall(Integer loyaltyProgramId, String upF } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling importLoyaltyPoints(Async)"); } - okhttp3.Call localVarCall = importLoyaltyPointsCall(loyaltyProgramId, upFile, _callback); return localVarCall; @@ -17350,81 +30700,249 @@ private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Integer loyaltyProgra /** * Import loyalty points - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the loyalty points you want to import into a + * given loyalty program. Send the file as multipart data. Depending on the type + * of loyalty program, you can import points into a given customer profile or + * loyalty card. The CSV file contains the following columns: - + * `customerprofileid` (optional): For profile-based loyalty programs, + * the integration ID of the customer profile where the loyalty points are + * imported. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `identifier` + * (optional): For card-based loyalty programs, the identifier of the loyalty + * card where the loyalty points are imported. - `amount`: The amount + * of points to award to the customer profile. - `startdate` + * (optional): The earliest date when the points can be redeemed. The points are + * `active` from this date until the expiration date. **Note**: It + * must be an RFC3339 timestamp string or string `immediate`. Empty or + * missing values are considered `immediate`. - `expirydate` + * (optional): The latest date when the points can be redeemed. The points are + * `expired` after this date. **Note**: It must be an RFC3339 + * timestamp string or string `unlimited`. Empty or missing values are + * considered `unlimited`. - `subledgerid` (optional): The + * ID of the subledger that should received the points. - `reason` + * (optional): The reason why these points are awarded. You can use the time + * zone of your choice. It is converted to UTC internally by Talon.One. + * **Note:** For existing customer profiles and loyalty cards, the imported + * points are added to any previous active or pending points, depending on the + * value provided for `startdate`. If `startdate` matches + * the current date, the imported points are _active_. If it is later, the + * points are _pending_ until the date provided for `startdate` is + * reached. **Note:** We recommend limiting your file size to 500MB. **Example + * for profile-based programs:** ```text + * customerprofileid,amount,startdate,expirydate,subledgerid,reason + * URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` **Example for card-based programs:** + * ```text + * identifier,amount,startdate,expirydate,subledgerid,reason + * summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ModelImport importLoyaltyPoints(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ModelImport importLoyaltyPoints(Long loyaltyProgramId, String upFile) throws ApiException { ApiResponse localVarResp = importLoyaltyPointsWithHttpInfo(loyaltyProgramId, upFile); return localVarResp.getData(); } /** * Import loyalty points - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the loyalty points you want to import into a + * given loyalty program. Send the file as multipart data. Depending on the type + * of loyalty program, you can import points into a given customer profile or + * loyalty card. The CSV file contains the following columns: - + * `customerprofileid` (optional): For profile-based loyalty programs, + * the integration ID of the customer profile where the loyalty points are + * imported. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `identifier` + * (optional): For card-based loyalty programs, the identifier of the loyalty + * card where the loyalty points are imported. - `amount`: The amount + * of points to award to the customer profile. - `startdate` + * (optional): The earliest date when the points can be redeemed. The points are + * `active` from this date until the expiration date. **Note**: It + * must be an RFC3339 timestamp string or string `immediate`. Empty or + * missing values are considered `immediate`. - `expirydate` + * (optional): The latest date when the points can be redeemed. The points are + * `expired` after this date. **Note**: It must be an RFC3339 + * timestamp string or string `unlimited`. Empty or missing values are + * considered `unlimited`. - `subledgerid` (optional): The + * ID of the subledger that should received the points. - `reason` + * (optional): The reason why these points are awarded. You can use the time + * zone of your choice. It is converted to UTC internally by Talon.One. + * **Note:** For existing customer profiles and loyalty cards, the imported + * points are added to any previous active or pending points, depending on the + * value provided for `startdate`. If `startdate` matches + * the current date, the imported points are _active_. If it is later, the + * points are _pending_ until the date provided for `startdate` is + * reached. **Note:** We recommend limiting your file size to 500MB. **Example + * for profile-based programs:** ```text + * customerprofileid,amount,startdate,expirydate,subledgerid,reason + * URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` **Example for card-based programs:** + * ```text + * identifier,amount,startdate,expirydate,subledgerid,reason + * summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse importLoyaltyPointsWithHttpInfo(Integer loyaltyProgramId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse importLoyaltyPointsWithHttpInfo(Long loyaltyProgramId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import loyalty points (asynchronously) - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the loyalty points you want to import into a + * given loyalty program. Send the file as multipart data. Depending on the type + * of loyalty program, you can import points into a given customer profile or + * loyalty card. The CSV file contains the following columns: - + * `customerprofileid` (optional): For profile-based loyalty programs, + * the integration ID of the customer profile where the loyalty points are + * imported. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `identifier` + * (optional): For card-based loyalty programs, the identifier of the loyalty + * card where the loyalty points are imported. - `amount`: The amount + * of points to award to the customer profile. - `startdate` + * (optional): The earliest date when the points can be redeemed. The points are + * `active` from this date until the expiration date. **Note**: It + * must be an RFC3339 timestamp string or string `immediate`. Empty or + * missing values are considered `immediate`. - `expirydate` + * (optional): The latest date when the points can be redeemed. The points are + * `expired` after this date. **Note**: It must be an RFC3339 + * timestamp string or string `unlimited`. Empty or missing values are + * considered `unlimited`. - `subledgerid` (optional): The + * ID of the subledger that should received the points. - `reason` + * (optional): The reason why these points are awarded. You can use the time + * zone of your choice. It is converted to UTC internally by Talon.One. + * **Note:** For existing customer profiles and loyalty cards, the imported + * points are added to any previous active or pending points, depending on the + * value provided for `startdate`. If `startdate` matches + * the current date, the imported points are _active_. If it is later, the + * points are _pending_ until the date provided for `startdate` is + * reached. **Note:** We recommend limiting your file size to 500MB. **Example + * for profile-based programs:** ```text + * customerprofileid,amount,startdate,expirydate,subledgerid,reason + * URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` **Example for card-based programs:** + * ```text + * identifier,amount,startdate,expirydate,subledgerid,reason + * summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` + * + * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID + * with the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importLoyaltyPointsAsync(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importLoyaltyPointsAsync(Long loyaltyProgramId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importPoolGiveaways - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file containing the data that is being imported. (optional) + * + * @param poolId The ID of the pool. You can find it in the Campaign Manager, + * in the **Giveaways** section. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importPoolGiveawaysCall(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importPoolGiveawaysCall(Long poolId, String upFile, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/giveaways/pools/{poolId}/import" - .replaceAll("\\{" + "poolId" + "\\}", localVarApiClient.escapeString(poolId.toString())); + .replaceAll("\\{" + "poolId" + "\\}", localVarApiClient.escapeString(poolId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17436,7 +30954,7 @@ public okhttp3.Call importPoolGiveawaysCall(Integer poolId, String upFile, final } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17444,23 +30962,25 @@ public okhttp3.Call importPoolGiveawaysCall(Integer poolId, String upFile, final } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Long poolId, String upFile, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'poolId' is set if (poolId == null) { throw new ApiException("Missing the required parameter 'poolId' when calling importPoolGiveaways(Async)"); } - okhttp3.Call localVarCall = importPoolGiveawaysCall(poolId, upFile, _callback); return localVarCall; @@ -17469,83 +30989,209 @@ private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Integer poolId, Strin /** * Import giveaway codes into a giveaway pool - * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) + * Upload a CSV file containing the giveaway codes that should be created. Send + * the file as multipart data. The CSV file contains the following columns: - + * `code` (required): The code of your giveaway, for instance, a gift + * card redemption code. - `startdate`: The start date in RFC3339 of + * the code redemption period. - `enddate`: The last date in RFC3339 + * of the code redemption period. - `attributes`: A JSON object + * describing _custom_ giveaway attribute names and their values, enclosed with + * double quotation marks. For example, if you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `provider` associated with the giveaway entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"provider\": + * \"myPartnerCompany\"}\"`. The `startdate` and + * `enddate` have nothing to do with the _validity_ of the codes. They + * are only used by the Rule Engine to award the codes or not. You can use the + * time zone setting of your choice. The values are converted to UTC internally + * by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - + * You can import the same code multiple times. Duplicate codes are treated and + * distributed to customers as unique codes. **Example:** ```text + * code,startdate,enddate,attributes + * GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Aliexpress\"\"}\" ``` + * + * @param poolId The ID of the pool. You can find it in the Campaign Manager, in + * the **Giveaways** section. (required) * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ModelImport importPoolGiveaways(Integer poolId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ModelImport importPoolGiveaways(Long poolId, String upFile) throws ApiException { ApiResponse localVarResp = importPoolGiveawaysWithHttpInfo(poolId, upFile); return localVarResp.getData(); } /** * Import giveaway codes into a giveaway pool - * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) + * Upload a CSV file containing the giveaway codes that should be created. Send + * the file as multipart data. The CSV file contains the following columns: - + * `code` (required): The code of your giveaway, for instance, a gift + * card redemption code. - `startdate`: The start date in RFC3339 of + * the code redemption period. - `enddate`: The last date in RFC3339 + * of the code redemption period. - `attributes`: A JSON object + * describing _custom_ giveaway attribute names and their values, enclosed with + * double quotation marks. For example, if you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `provider` associated with the giveaway entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"provider\": + * \"myPartnerCompany\"}\"`. The `startdate` and + * `enddate` have nothing to do with the _validity_ of the codes. They + * are only used by the Rule Engine to award the codes or not. You can use the + * time zone setting of your choice. The values are converted to UTC internally + * by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - + * You can import the same code multiple times. Duplicate codes are treated and + * distributed to customers as unique codes. **Example:** ```text + * code,startdate,enddate,attributes + * GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Aliexpress\"\"}\" ``` + * + * @param poolId The ID of the pool. You can find it in the Campaign Manager, in + * the **Giveaways** section. (required) * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse importPoolGiveawaysWithHttpInfo(Integer poolId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse importPoolGiveawaysWithHttpInfo(Long poolId, String upFile) throws ApiException { okhttp3.Call localVarCall = importPoolGiveawaysValidateBeforeCall(poolId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import giveaway codes into a giveaway pool (asynchronously) - * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` - * @param poolId The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the giveaway codes that should be created. Send + * the file as multipart data. The CSV file contains the following columns: - + * `code` (required): The code of your giveaway, for instance, a gift + * card redemption code. - `startdate`: The start date in RFC3339 of + * the code redemption period. - `enddate`: The last date in RFC3339 + * of the code redemption period. - `attributes`: A JSON object + * describing _custom_ giveaway attribute names and their values, enclosed with + * double quotation marks. For example, if you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `provider` associated with the giveaway entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"provider\": + * \"myPartnerCompany\"}\"`. The `startdate` and + * `enddate` have nothing to do with the _validity_ of the codes. They + * are only used by the Rule Engine to award the codes or not. You can use the + * time zone setting of your choice. The values are converted to UTC internally + * by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - + * You can import the same code multiple times. Duplicate codes are treated and + * distributed to customers as unique codes. **Example:** ```text + * code,startdate,enddate,attributes + * GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Aliexpress\"\"}\" ``` + * + * @param poolId The ID of the pool. You can find it in the Campaign Manager, + * in the **Giveaways** section. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importPoolGiveawaysAsync(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importPoolGiveawaysAsync(Long poolId, String upFile, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = importPoolGiveawaysValidateBeforeCall(poolId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for importReferrals - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importReferralsCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importReferralsCall(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17557,7 +31203,7 @@ public okhttp3.Call importReferralsCall(Integer applicationId, Integer campaignI } final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17565,28 +31211,31 @@ public okhttp3.Call importReferralsCall(Integer applicationId, Integer campaignI } final String[] localVarContentTypes = { - "multipart/form-data" + "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call importReferralsValidateBeforeCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call importReferralsValidateBeforeCall(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importReferrals(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling importReferrals(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling importReferrals(Async)"); } - okhttp3.Call localVarCall = importReferralsCall(applicationId, campaignId, upFile, _callback); return localVarCall; @@ -17595,78 +31244,225 @@ private okhttp3.Call importReferralsValidateBeforeCall(Integer applicationId, In /** * Import referrals - * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the referrals that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `code` (required): The referral code. - + * `advocateprofileintegrationid` (required): The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A JSON object describing _custom_ referral attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the referral entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Important:** When you import a CSV file with referrals, a + * [customer + * profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * is **not** automatically created for each + * `advocateprofileintegrationid` column value. Use the [Update + * customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint or the [Update multiple customer + * profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) + * endpoint to create the customer profiles. **Note:** We recommend limiting + * your file size to 500MB. **Example:** ```text + * code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes + * REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": + * \"\"10_off\"\"}\" + * REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": + * \"\"20_off\"\"}\" ``` + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ModelImport - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ModelImport importReferrals(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ModelImport importReferrals(Long applicationId, Long campaignId, String upFile) throws ApiException { ApiResponse localVarResp = importReferralsWithHttpInfo(applicationId, campaignId, upFile); return localVarResp.getData(); } /** * Import referrals - * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) + * Upload a CSV file containing the referrals that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `code` (required): The referral code. - + * `advocateprofileintegrationid` (required): The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A JSON object describing _custom_ referral attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the referral entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Important:** When you import a CSV file with referrals, a + * [customer + * profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * is **not** automatically created for each + * `advocateprofileintegrationid` column value. Use the [Update + * customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint or the [Update multiple customer + * profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) + * endpoint to create the customer profiles. **Note:** We recommend limiting + * your file size to 500MB. **Example:** ```text + * code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes + * REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": + * \"\"10_off\"\"}\" + * REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": + * \"\"20_off\"\"}\" ``` + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) * @return ApiResponse<ModelImport> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse importReferralsWithHttpInfo(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse importReferralsWithHttpInfo(Long applicationId, Long campaignId, String upFile) + throws ApiException { okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Import referrals (asynchronously) - * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param upFile The file containing the data that is being imported. (optional) - * @param _callback The callback to be executed when the API call finishes + * Upload a CSV file containing the referrals that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `code` (required): The referral code. - + * `advocateprofileintegrationid` (required): The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A JSON object describing _custom_ referral attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the referral entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Important:** When you import a CSV file with referrals, a + * [customer + * profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * is **not** automatically created for each + * `advocateprofileintegrationid` column value. Use the [Update + * customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint or the [Update multiple customer + * profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) + * endpoint to create the customer profiles. **Note:** We recommend limiting + * your file size to 500MB. **Example:** ```text + * code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes + * REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": + * \"\"10_off\"\"}\" + * REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": + * \"\"20_off\"\"}\" ``` + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param upFile The file containing the data that is being imported. + * (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call importReferralsAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call importReferralsAsync(Long applicationId, Long campaignId, String upFile, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for inviteUserExternal - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 Invitation email sent -
- */ - public okhttp3.Call inviteUserExternalCall(NewExternalInvitation body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Invitation email sent-
+ */ + public okhttp3.Call inviteUserExternalCall(NewExternalInvitation body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -17678,7 +31474,7 @@ public okhttp3.Call inviteUserExternalCall(NewExternalInvitation body, final Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17686,23 +31482,25 @@ public okhttp3.Call inviteUserExternalCall(NewExternalInvitation body, final Api } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call inviteUserExternalValidateBeforeCall(NewExternalInvitation body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call inviteUserExternalValidateBeforeCall(NewExternalInvitation body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling inviteUserExternal(Async)"); } - okhttp3.Call localVarCall = inviteUserExternalCall(body, _callback); return localVarCall; @@ -17711,14 +31509,27 @@ private okhttp3.Call inviteUserExternalValidateBeforeCall(NewExternalInvitation /** * Invite user from identity provider - * [Invite a user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) from an external identity provider to Talon.One by sending an invitation to their email address. + * [Invite a + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) + * from an external identity provider to Talon.One by sending an invitation to + * their email address. + * * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Invitation email sent -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Invitation email sent-
*/ public void inviteUserExternal(NewExternalInvitation body) throws ApiException { inviteUserExternalWithHttpInfo(body); @@ -17726,15 +31537,28 @@ public void inviteUserExternal(NewExternalInvitation body) throws ApiException { /** * Invite user from identity provider - * [Invite a user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) from an external identity provider to Talon.One by sending an invitation to their email address. + * [Invite a + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) + * from an external identity provider to Talon.One by sending an invitation to + * their email address. + * * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Invitation email sent -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Invitation email sent-
*/ public ApiResponse inviteUserExternalWithHttpInfo(NewExternalInvitation body) throws ApiException { okhttp3.Call localVarCall = inviteUserExternalValidateBeforeCall(body, null); @@ -17743,43 +31567,95 @@ public ApiResponse inviteUserExternalWithHttpInfo(NewExternalInvitation bo /** * Invite user from identity provider (asynchronously) - * [Invite a user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) from an external identity provider to Talon.One by sending an invitation to their email address. - * @param body body (required) + * [Invite a + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) + * from an external identity provider to Talon.One by sending an invitation to + * their email address. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 Invitation email sent -
- */ - public okhttp3.Call inviteUserExternalAsync(NewExternalInvitation body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Invitation email sent-
+ */ + public okhttp3.Call inviteUserExternalAsync(NewExternalInvitation body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = inviteUserExternalValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for listAccountCollections - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback Callback for upload/download progress + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call listAccountCollectionsCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, + String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17811,7 +31687,7 @@ public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, S Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17819,20 +31695,23 @@ public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, S } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listAccountCollectionsValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAccountCollectionsCall(pageSize, skip, sort, withTotalResultSize, name, _callback); + okhttp3.Call localVarCall = listAccountCollectionsCall(pageSize, skip, sort, withTotalResultSize, name, + _callback); return localVarCall; } @@ -17840,102 +31719,240 @@ private okhttp3.Call listAccountCollectionsValidateBeforeCall(Integer pageSize, /** * List collections in account * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return InlineResponse20020 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public InlineResponse20020 listAccountCollections(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, + withTotalResultSize, name); return localVarResp.getData(); } /** * List collections in account * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return ApiResponse<InlineResponse20020> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse listAccountCollectionsWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse listAccountCollectionsWithHttpInfo(Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name) throws ApiException { + okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, + name, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List collections in account (asynchronously) * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call listAccountCollectionsAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, + String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, + name, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listAchievements - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param title Filter by the display name for the achievement in the + * campaign manager. **Note**: If no `title` is + * provided, all the achievements from the campaign are + * returned. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listAchievementsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listAchievementsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, + String title, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -17955,7 +31972,7 @@ public okhttp3.Call listAchievementsCall(Integer applicationId, Integer campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -17963,28 +31980,31 @@ public okhttp3.Call listAchievementsCall(Integer applicationId, Integer campaign } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, + Long skip, String title, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling listAchievements(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling listAchievements(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling listAchievements(Async)"); } - okhttp3.Call localVarCall = listAchievementsCall(applicationId, campaignId, pageSize, skip, title, _callback); return localVarCall; @@ -17994,80 +32014,149 @@ private okhttp3.Call listAchievementsValidateBeforeCall(Integer applicationId, I /** * List achievements * List all the achievements for a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param title Filter by the display name for the achievement in the + * campaign manager. **Note**: If no `title` is + * provided, all the achievements from the campaign are + * returned. (optional) * @return InlineResponse20048 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20048 listAchievements(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { - ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20048 listAchievements(Long applicationId, Long campaignId, Long pageSize, Long skip, + String title) throws ApiException { + ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, + pageSize, skip, title); return localVarResp.getData(); } /** * List achievements * List all the achievements for a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param title Filter by the display name for the achievement in the + * campaign manager. **Note**: If no `title` is + * provided, all the achievements from the campaign are + * returned. (optional) * @return ApiResponse<InlineResponse20048> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse listAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { - okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse listAchievementsWithHttpInfo(Long applicationId, Long campaignId, + Long pageSize, Long skip, String title) throws ApiException { + okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List achievements (asynchronously) * List all the achievements for a specific campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default + * to 50) + * @param skip The number of items to skip when paging through large + * result sets. (optional) + * @param title Filter by the display name for the achievement in the + * campaign manager. **Note**: If no `title` is + * provided, all the achievements from the campaign are + * returned. (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listAchievementsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listAchievementsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, + String title, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listAllRolesV2 + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call listAllRolesV2Call(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -18081,7 +32170,7 @@ public okhttp3.Call listAllRolesV2Call(final ApiCallback _callback) throws ApiEx Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18089,18 +32178,19 @@ public okhttp3.Call listAllRolesV2Call(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listAllRolesV2ValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAllRolesV2Call(_callback); return localVarCall; @@ -18110,13 +32200,23 @@ private okhttp3.Call listAllRolesV2ValidateBeforeCall(final ApiCallback _callbac /** * List roles * List all roles. + * * @return InlineResponse20046 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public InlineResponse20046 listAllRolesV2() throws ApiException { ApiResponse localVarResp = listAllRolesV2WithHttpInfo(); @@ -18126,62 +32226,109 @@ public InlineResponse20046 listAllRolesV2() throws ApiException { /** * List roles * List all roles. + * * @return ApiResponse<InlineResponse20046> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public ApiResponse listAllRolesV2WithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listAllRolesV2ValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List roles (asynchronously) * List all roles. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call listAllRolesV2Async(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAllRolesV2ValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listCatalogItems - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) - * @param _callback Callback for upload/download progress + * + * @param catalogId The ID of the catalog. You can find the ID in the + * Campaign Manager in **Account** > **Tools** + * > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact + * match. (optional) + * @param productNames Filter results by one or more product names. Must + * be exact match. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listCatalogItemsCall(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, + List sku, List productNames, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/catalogs/{catalogId}/items" - .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); + .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18202,14 +32349,15 @@ public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, In } if (productNames != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "productNames", productNames)); + localVarCollectionQueryParams + .addAll(localVarApiClient.parameterToPairs("csv", "productNames", productNames)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18217,125 +32365,243 @@ public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, In } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listCatalogItemsValidateBeforeCall(Long catalogId, Long pageSize, Long skip, + Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'catalogId' is set if (catalogId == null) { throw new ApiException("Missing the required parameter 'catalogId' when calling listCatalogItems(Async)"); } - - okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); + okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, + productNames, _callback); return localVarCall; } /** * List items in a catalog - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * Return a paginated list of cart items in the given catalog. + * + * @param catalogId The ID of the catalog. You can find the ID in the + * Campaign Manager in **Account** > **Tools** + * > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact + * match. (optional) + * @param productNames Filter results by one or more product names. Must + * be exact match. (optional) * @return InlineResponse20037 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20037 listCatalogItems(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { - ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20037 listCatalogItems(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, + List sku, List productNames) throws ApiException { + ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, + withTotalResultSize, sku, productNames); return localVarResp.getData(); } /** * List items in a catalog - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * Return a paginated list of cart items in the given catalog. + * + * @param catalogId The ID of the catalog. You can find the ID in the + * Campaign Manager in **Account** > **Tools** + * > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact + * match. (optional) + * @param productNames Filter results by one or more product names. Must + * be exact match. (optional) * @return ApiResponse<InlineResponse20037> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse listCatalogItemsWithHttpInfo(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse listCatalogItemsWithHttpInfo(Long catalogId, Long pageSize, Long skip, + Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, + sku, productNames, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List items in a catalog (asynchronously) - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) - * @param _callback The callback to be executed when the API call finishes + * Return a paginated list of cart items in the given catalog. + * + * @param catalogId The ID of the catalog. You can find the ID in the + * Campaign Manager in **Account** > **Tools** + * > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact + * match. (optional) + * @param productNames Filter results by one or more product names. Must + * be exact match. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listCatalogItemsAsync(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listCatalogItemsAsync(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, + List sku, List productNames, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, + sku, productNames, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listCollections - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call listCollectionsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call listCollectionsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18363,7 +32629,7 @@ public okhttp3.Call listCollectionsCall(Integer applicationId, Integer campaignI Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18371,30 +32637,35 @@ public okhttp3.Call listCollectionsCall(Integer applicationId, Integer campaignI } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listCollectionsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, + Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling listCollections(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling listCollections(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling listCollections(Async)"); } - - okhttp3.Call localVarCall = listCollectionsCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, _callback); + okhttp3.Call localVarCall = listCollectionsCall(applicationId, campaignId, pageSize, skip, sort, + withTotalResultSize, name, _callback); return localVarCall; } @@ -18402,103 +32673,237 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Integer applicationId, In /** * List collections in campaign * List collections in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return InlineResponse20020 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public InlineResponse20020 listCollections(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public InlineResponse20020 listCollections(Long applicationId, Long campaignId, Long pageSize, Long skip, + String sort, Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, + skip, sort, withTotalResultSize, name); return localVarResp.getData(); } /** * List collections in campaign * List collections in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return ApiResponse<InlineResponse20020> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse listCollectionsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse listCollectionsWithHttpInfo(Long applicationId, Long campaignId, + Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, + withTotalResultSize, name, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List collections in campaign (asynchronously) * List collections in a given campaign. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call listCollectionsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, + withTotalResultSize, name, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listCollectionsInApplication - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call listCollectionsInApplicationCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call listCollectionsInApplicationCall(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/collections" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18526,7 +32931,7 @@ public okhttp3.Call listCollectionsInApplicationCall(Integer applicationId, Inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18534,25 +32939,29 @@ public okhttp3.Call listCollectionsInApplicationCall(Integer applicationId, Inte } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applicationId, Long pageSize, Long skip, + String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling listCollectionsInApplication(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling listCollectionsInApplication(Async)"); } - - okhttp3.Call localVarCall = listCollectionsInApplicationCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, _callback); + okhttp3.Call localVarCall = listCollectionsInApplicationCall(applicationId, pageSize, skip, sort, + withTotalResultSize, name, _callback); return localVarCall; } @@ -18560,102 +32969,231 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Integer appl /** * List collections in Application * List campaign-level collections from all campaigns in a given Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return InlineResponse20020 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public InlineResponse20020 listCollectionsInApplication(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name) throws ApiException { + ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, + pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } /** * List collections in Application * List campaign-level collections from all campaigns in a given Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) * @return ApiResponse<InlineResponse20020> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public ApiResponse listCollectionsInApplicationWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { - okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public ApiResponse listCollectionsInApplicationWithHttpInfo(Long applicationId, Long pageSize, + Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, + withTotalResultSize, name, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List collections in Application (asynchronously) * List campaign-level collections from all campaigns in a given Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param name Filter by collection name. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
404 Not found -
- */ - public okhttp3.Call listCollectionsInApplicationAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
404Not found-
+ */ + public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, + withTotalResultSize, name, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for listStores - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param name The name of the store. (optional) - * @param integrationId The integration ID of the store. (optional) - * @param query Filter results by `name` or `integrationId`. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param name The name of the store. (optional) + * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or + * `integrationId`. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listStoresCall(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/stores" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18695,7 +33233,7 @@ public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18703,25 +33241,29 @@ public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Inte } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling listStores(Async)"); } - - okhttp3.Call localVarCall = listStoresCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, _callback); + okhttp3.Call localVarCall = listStoresCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, + name, integrationId, query, _callback); return localVarCall; } @@ -18729,92 +33271,195 @@ private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer /** * List stores * List all stores for a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param name The name of the store. (optional) - * @param integrationId The integration ID of the store. (optional) - * @param query Filter results by `name` or `integrationId`. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param name The name of the store. (optional) + * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or + * `integrationId`. (optional) * @return InlineResponse20047 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20047 listStores(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { - ApiResponse localVarResp = listStoresWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20047 listStores(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) + throws ApiException { + ApiResponse localVarResp = listStoresWithHttpInfo(applicationId, pageSize, skip, sort, + withTotalResultSize, campaignId, name, integrationId, query); return localVarResp.getData(); } /** * List stores * List all stores for a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param name The name of the store. (optional) - * @param integrationId The integration ID of the store. (optional) - * @param query Filter results by `name` or `integrationId`. (optional) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param name The name of the store. (optional) + * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or + * `integrationId`. (optional) * @return ApiResponse<InlineResponse20047> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse listStoresWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { - okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse listStoresWithHttpInfo(Long applicationId, Long pageSize, Long skip, + String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, + String query) throws ApiException { + okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, + withTotalResultSize, campaignId, name, integrationId, query, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List stores (asynchronously) * List all stores for a specific Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param campaignId Filter results by campaign ID. (optional) - * @param name The name of the store. (optional) - * @param integrationId The integration ID of the store. (optional) - * @param query Filter results by `name` or `integrationId`. (optional) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. To + * sort them in descending order, prefix the field + * name with `-`. **Note:** You may not be + * able to use all fields for sorting. This is due to + * performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the + * total size of the result, across all pages. This + * might decrease performance on large data sets. - + * When `true`: `hasMore` is true + * when there is a next page. + * `totalResultSize` is always zero. - When + * `false`: `hasMore` is always + * false. `totalResultSize` contains the + * total number of results for this query. (optional) + * @param campaignId Filter results by campaign ID. (optional) + * @param name The name of the store. (optional) + * @param integrationId The integration ID of the store. (optional) + * @param query Filter results by `name` or + * `integrationId`. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call listStoresAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call listStoresAsync(Long applicationId, Long pageSize, Long skip, String sort, + Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, + withTotalResultSize, campaignId, name, integrationId, query, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for oktaEventHandlerChallenge + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call oktaEventHandlerChallengeCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -18828,7 +33473,7 @@ public okhttp3.Call oktaEventHandlerChallengeCall(final ApiCallback _callback) t Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18836,18 +33481,19 @@ public okhttp3.Call oktaEventHandlerChallengeCall(final ApiCallback _callback) t } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call oktaEventHandlerChallengeValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = oktaEventHandlerChallengeCall(_callback); return localVarCall; @@ -18856,13 +33502,27 @@ private okhttp3.Call oktaEventHandlerChallengeValidateBeforeCall(final ApiCallba /** * Validate Okta API ownership - * Validate the ownership of the API through a challenge-response mechanism. This challenger endpoint is used by Okta to confirm that communication between Talon.One and Okta is correctly configured and accessible for provisioning and deprovisioning of Talon.One users, and that only Talon.One can receive and respond to events from Okta. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * Validate the ownership of the API through a challenge-response mechanism. + * This challenger endpoint is used by Okta to confirm that communication + * between Talon.One and Okta is correctly configured and accessible for + * provisioning and deprovisioning of Talon.One users, and that only Talon.One + * can receive and respond to events from Okta. + * + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public void oktaEventHandlerChallenge() throws ApiException { oktaEventHandlerChallengeWithHttpInfo(); @@ -18870,14 +33530,28 @@ public void oktaEventHandlerChallenge() throws ApiException { /** * Validate Okta API ownership - * Validate the ownership of the API through a challenge-response mechanism. This challenger endpoint is used by Okta to confirm that communication between Talon.One and Okta is correctly configured and accessible for provisioning and deprovisioning of Talon.One users, and that only Talon.One can receive and respond to events from Okta. + * Validate the ownership of the API through a challenge-response mechanism. + * This challenger endpoint is used by Okta to confirm that communication + * between Talon.One and Okta is correctly configured and accessible for + * provisioning and deprovisioning of Talon.One users, and that only Talon.One + * can receive and respond to events from Okta. + * * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public ApiResponse oktaEventHandlerChallengeWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = oktaEventHandlerChallengeValidateBeforeCall(null); @@ -18886,15 +33560,29 @@ public ApiResponse oktaEventHandlerChallengeWithHttpInfo() throws ApiExcep /** * Validate Okta API ownership (asynchronously) - * Validate the ownership of the API through a challenge-response mechanism. This challenger endpoint is used by Okta to confirm that communication between Talon.One and Okta is correctly configured and accessible for provisioning and deprovisioning of Talon.One users, and that only Talon.One can receive and respond to events from Okta. + * Validate the ownership of the API through a challenge-response mechanism. + * This challenger endpoint is used by Okta to confirm that communication + * between Talon.One and Okta is correctly configured and accessible for + * provisioning and deprovisioning of Talon.One users, and that only Talon.One + * can receive and respond to events from Okta. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
*/ public okhttp3.Call oktaEventHandlerChallengeAsync(final ApiCallback _callback) throws ApiException { @@ -18902,30 +33590,59 @@ public okhttp3.Call oktaEventHandlerChallengeAsync(final ApiCallback _call localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for removeLoyaltyPoints + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @param _callback Callback for upload/download progress + * @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 body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call removeLoyaltyPointsCall(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call removeLoyaltyPointsCall(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "integrationId" + "\\}", localVarApiClient.escapeString(integrationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18933,7 +33650,7 @@ public okhttp3.Call removeLoyaltyPointsCall(String loyaltyProgramId, String inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -18941,33 +33658,37 @@ public okhttp3.Call removeLoyaltyPointsCall(String loyaltyProgramId, String inte } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call removeLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call removeLoyaltyPointsValidateBeforeCall(String loyaltyProgramId, String integrationId, + DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling removeLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling removeLoyaltyPoints(Async)"); } - + // verify the required parameter 'integrationId' is set if (integrationId == null) { - throw new ApiException("Missing the required parameter 'integrationId' when calling removeLoyaltyPoints(Async)"); + throw new ApiException( + "Missing the required parameter 'integrationId' when calling removeLoyaltyPoints(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling removeLoyaltyPoints(Async)"); } - okhttp3.Call localVarCall = removeLoyaltyPointsCall(loyaltyProgramId, integrationId, body, _callback); return localVarCall; @@ -18976,81 +33697,195 @@ private okhttp3.Call removeLoyaltyPointsValidateBeforeCall(String loyaltyProgram /** * Deduct points from customer profile - * Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Deduct points from the specified loyalty program and specified customer + * profile. **Important:** - Only active points can be deducted. - Only pending + * points are rolled back when a session is cancelled or reopened. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public void removeLoyaltyPoints(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body) throws ApiException { + * @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 body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public void removeLoyaltyPoints(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body) + throws ApiException { removeLoyaltyPointsWithHttpInfo(loyaltyProgramId, integrationId, body); } /** * Deduct points from customer profile - * Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Deduct points from the specified loyalty program and specified customer + * profile. **Important:** - Only active points can be deducted. - Only pending + * points are rolled back when a session is cancelled or reopened. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (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 body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse removeLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse removeLoyaltyPointsWithHttpInfo(String loyaltyProgramId, String integrationId, + DeductLoyaltyPoints body) throws ApiException { okhttp3.Call localVarCall = removeLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, null); return localVarApiClient.execute(localVarCall); } /** * Deduct points from customer profile (asynchronously) - * Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Deduct points from the specified loyalty program and specified customer + * profile. **Important:** - Only active points can be deducted. - Only pending + * points are rolled back when a session is cancelled or reopened. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. + * * @param loyaltyProgramId The identifier for the loyalty program. (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 body body (required) - * @param _callback The callback to be executed when the API call finishes + * @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 body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call removeLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = removeLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call removeLoyaltyPointsAsync(String loyaltyProgramId, String integrationId, + DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeLoyaltyPointsValidateBeforeCall(loyaltyProgramId, integrationId, body, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for resetPassword - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
*/ public okhttp3.Call resetPasswordCall(NewPassword body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -19064,7 +33899,7 @@ public okhttp3.Call resetPasswordCall(NewPassword body, final ApiCallback _callb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19072,23 +33907,25 @@ public okhttp3.Call resetPasswordCall(NewPassword body, final ApiCallback _callb } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call resetPasswordValidateBeforeCall(NewPassword body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call resetPasswordValidateBeforeCall(NewPassword body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling resetPassword(Async)"); } - okhttp3.Call localVarCall = resetPasswordCall(body, _callback); return localVarCall; @@ -19097,15 +33934,26 @@ private okhttp3.Call resetPasswordValidateBeforeCall(NewPassword body, final Api /** * Reset password - * Consumes the supplied password reset token and updates the password for the associated account. + * Consumes the supplied password reset token and updates the password for the + * associated account. + * * @param body body (required) * @return NewPassword - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
*/ public NewPassword resetPassword(NewPassword body) throws ApiException { ApiResponse localVarResp = resetPasswordWithHttpInfo(body); @@ -19114,53 +33962,88 @@ public NewPassword resetPassword(NewPassword body) throws ApiException { /** * Reset password - * Consumes the supplied password reset token and updates the password for the associated account. + * Consumes the supplied password reset token and updates the password for the + * associated account. + * * @param body body (required) * @return ApiResponse<NewPassword> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
*/ public ApiResponse resetPasswordWithHttpInfo(NewPassword body) throws ApiException { okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Reset password (asynchronously) - * Consumes the supplied password reset token and updates the password for the associated account. - * @param body body (required) + * Consumes the supplied password reset token and updates the password for the + * associated account. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 Created -
- */ - public okhttp3.Call resetPasswordAsync(NewPassword body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204Created-
+ */ + public okhttp3.Call resetPasswordAsync(NewPassword body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimCreateUser - * @param body body (required) + * + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; @@ -19174,7 +34057,7 @@ public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _call Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19182,23 +34065,25 @@ public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _call } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling scimCreateUser(Async)"); } - okhttp3.Call localVarCall = scimCreateUserCall(body, _callback); return localVarCall; @@ -19207,15 +34092,26 @@ private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final Ap /** * Create SCIM user - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create a new Talon.One user using the SCIM provisioning protocol with an + * identity provider, for example, Microsoft Entra ID. + * * @param body body (required) * @return ScimUser - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ScimUser scimCreateUser(ScimNewUser body) throws ApiException { ApiResponse localVarResp = scimCreateUserWithHttpInfo(body); @@ -19224,60 +34120,95 @@ public ScimUser scimCreateUser(ScimNewUser body) throws ApiException { /** * Create SCIM user - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create a new Talon.One user using the SCIM provisioning protocol with an + * identity provider, for example, Microsoft Entra ID. + * * @param body body (required) * @return ApiResponse<ScimUser> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
*/ public ApiResponse scimCreateUserWithHttpInfo(ScimNewUser body) throws ApiException { okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create SCIM user (asynchronously) - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param body body (required) + * Create a new Talon.One user using the SCIM provisioning protocol with an + * identity provider, for example, Microsoft Entra ID. + * + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
201 Created -
- */ - public okhttp3.Call scimCreateUserAsync(ScimNewUser body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
201Created-
+ */ + public okhttp3.Call scimCreateUserAsync(ScimNewUser body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimDeleteUser - * @param userId The ID of the user. (required) + * + * @param userId The ID of the user. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call scimDeleteUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call scimDeleteUserCall(Long userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19285,7 +34216,7 @@ public okhttp3.Call scimDeleteUserCall(Integer userId, final ApiCallback _callba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19293,23 +34224,25 @@ public okhttp3.Call scimDeleteUserCall(Integer userId, final ApiCallback _callba } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimDeleteUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimDeleteUserValidateBeforeCall(Long userId, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling scimDeleteUser(Async)"); } - okhttp3.Call localVarCall = scimDeleteUserCall(userId, _callback); return localVarCall; @@ -19318,65 +34251,108 @@ private okhttp3.Call scimDeleteUserValidateBeforeCall(Integer userId, final ApiC /** * Delete SCIM user - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Delete a specific Talon.One user created using the SCIM provisioning protocol + * with an identity provider, for example, Microsoft Entra ID. + * * @param userId The ID of the user. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void scimDeleteUser(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void scimDeleteUser(Long userId) throws ApiException { scimDeleteUserWithHttpInfo(userId); } /** * Delete SCIM user - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Delete a specific Talon.One user created using the SCIM provisioning protocol + * with an identity provider, for example, Microsoft Entra ID. + * * @param userId The ID of the user. (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse scimDeleteUserWithHttpInfo(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse scimDeleteUserWithHttpInfo(Long userId) throws ApiException { okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, null); return localVarApiClient.execute(localVarCall); } /** * Delete SCIM user (asynchronously) - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) + * Delete a specific Talon.One user created using the SCIM provisioning protocol + * with an identity provider, for example, Microsoft Entra ID. + * + * @param userId The ID of the user. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call scimDeleteUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call scimDeleteUserAsync(Long userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for scimGetResourceTypes + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 List of resource types -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of resource types-
*/ public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -19390,7 +34366,7 @@ public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19398,18 +34374,19 @@ public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call scimGetResourceTypesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimGetResourceTypesCall(_callback); return localVarCall; @@ -19418,14 +34395,26 @@ private okhttp3.Call scimGetResourceTypesValidateBeforeCall(final ApiCallback _c /** * List supported SCIM resource types - * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + * Retrieve a list of resource types supported by the SCIM provisioning + * protocol. Resource types define the various kinds of resources that can be + * managed via the SCIM API, such as users, groups, or custom-defined resources. + * * @return ScimResourceTypesListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of resource types -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of resource types-
*/ public ScimResourceTypesListResponse scimGetResourceTypes() throws ApiException { ApiResponse localVarResp = scimGetResourceTypesWithHttpInfo(); @@ -19434,50 +34423,88 @@ public ScimResourceTypesListResponse scimGetResourceTypes() throws ApiException /** * List supported SCIM resource types - * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + * Retrieve a list of resource types supported by the SCIM provisioning + * protocol. Resource types define the various kinds of resources that can be + * managed via the SCIM API, such as users, groups, or custom-defined resources. + * * @return ApiResponse<ScimResourceTypesListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of resource types -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of resource types-
*/ public ApiResponse scimGetResourceTypesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = scimGetResourceTypesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List supported SCIM resource types (asynchronously) - * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + * Retrieve a list of resource types supported by the SCIM provisioning + * protocol. Resource types define the various kinds of resources that can be + * managed via the SCIM API, such as users, groups, or custom-defined resources. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 List of resource types -
- */ - public okhttp3.Call scimGetResourceTypesAsync(final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of resource types-
+ */ + public okhttp3.Call scimGetResourceTypesAsync(final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = scimGetResourceTypesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimGetSchemas + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 List of schemas supported by the SCIM provisioning protocol -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of schemas supported by the SCIM provisioning + * protocol-
*/ public okhttp3.Call scimGetSchemasCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -19491,7 +34518,7 @@ public okhttp3.Call scimGetSchemasCall(final ApiCallback _callback) throws ApiEx Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19499,18 +34526,19 @@ public okhttp3.Call scimGetSchemasCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call scimGetSchemasValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimGetSchemasCall(_callback); return localVarCall; @@ -19519,14 +34547,28 @@ private okhttp3.Call scimGetSchemasValidateBeforeCall(final ApiCallback _callbac /** * List supported SCIM schemas - * Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. + * Retrieve a list of schemas supported by the SCIM provisioning protocol. + * Schemas define the structure and attributes of the different resources that + * can be managed via the SCIM API, such as users, groups, and any + * custom-defined resources. + * * @return ScimSchemasListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of schemas supported by the SCIM provisioning protocol -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of schemas supported by the SCIM provisioning + * protocol-
*/ public ScimSchemasListResponse scimGetSchemas() throws ApiException { ApiResponse localVarResp = scimGetSchemasWithHttpInfo(); @@ -19535,50 +34577,90 @@ public ScimSchemasListResponse scimGetSchemas() throws ApiException { /** * List supported SCIM schemas - * Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. + * Retrieve a list of schemas supported by the SCIM provisioning protocol. + * Schemas define the structure and attributes of the different resources that + * can be managed via the SCIM API, such as users, groups, and any + * custom-defined resources. + * * @return ApiResponse<ScimSchemasListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of schemas supported by the SCIM provisioning protocol -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of schemas supported by the SCIM provisioning + * protocol-
*/ public ApiResponse scimGetSchemasWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = scimGetSchemasValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List supported SCIM schemas (asynchronously) - * Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. + * Retrieve a list of schemas supported by the SCIM provisioning protocol. + * Schemas define the structure and attributes of the different resources that + * can be managed via the SCIM API, such as users, groups, and any + * custom-defined resources. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 List of schemas supported by the SCIM provisioning protocol -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of schemas supported by the SCIM provisioning + * protocol-
*/ public okhttp3.Call scimGetSchemasAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimGetSchemasValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimGetServiceProviderConfig + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 Service configuration -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200Service configuration-
*/ public okhttp3.Call scimGetServiceProviderConfigCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -19592,7 +34674,7 @@ public okhttp3.Call scimGetServiceProviderConfigCall(final ApiCallback _callback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19600,18 +34682,20 @@ public okhttp3.Call scimGetServiceProviderConfigCall(final ApiCallback _callback } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimGetServiceProviderConfigValidateBeforeCall(final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimGetServiceProviderConfigValidateBeforeCall(final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = scimGetServiceProviderConfigCall(_callback); return localVarCall; @@ -19620,14 +34704,26 @@ private okhttp3.Call scimGetServiceProviderConfigValidateBeforeCall(final ApiCal /** * Get SCIM service provider configuration - * Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. + * Retrieve the configuration settings of the SCIM service provider. It provides + * details about the features and capabilities supported by the SCIM API, such + * as the different operation settings. + * * @return ScimServiceProviderConfigResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Service configuration -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200Service configuration-
*/ public ScimServiceProviderConfigResponse scimGetServiceProviderConfig() throws ApiException { ApiResponse localVarResp = scimGetServiceProviderConfigWithHttpInfo(); @@ -19636,58 +34732,96 @@ public ScimServiceProviderConfigResponse scimGetServiceProviderConfig() throws A /** * Get SCIM service provider configuration - * Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. + * Retrieve the configuration settings of the SCIM service provider. It provides + * details about the features and capabilities supported by the SCIM API, such + * as the different operation settings. + * * @return ApiResponse<ScimServiceProviderConfigResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Service configuration -
- */ - public ApiResponse scimGetServiceProviderConfigWithHttpInfo() throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200Service configuration-
+ */ + public ApiResponse scimGetServiceProviderConfigWithHttpInfo() + throws ApiException { okhttp3.Call localVarCall = scimGetServiceProviderConfigValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get SCIM service provider configuration (asynchronously) - * Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. + * Retrieve the configuration settings of the SCIM service provider. It provides + * details about the features and capabilities supported by the SCIM API, such + * as the different operation settings. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Service configuration -
- */ - public okhttp3.Call scimGetServiceProviderConfigAsync(final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200Service configuration-
+ */ + public okhttp3.Call scimGetServiceProviderConfigAsync( + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimGetServiceProviderConfigValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimGetUser - * @param userId The ID of the user. (required) + * + * @param userId The ID of the user. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimGetUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimGetUserCall(Long userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19695,7 +34829,7 @@ public okhttp3.Call scimGetUserCall(Integer userId, final ApiCallback _callback) Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19703,23 +34837,24 @@ public okhttp3.Call scimGetUserCall(Integer userId, final ApiCallback _callback) } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimGetUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimGetUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling scimGetUser(Async)"); } - okhttp3.Call localVarCall = scimGetUserCall(userId, _callback); return localVarCall; @@ -19728,69 +34863,117 @@ private okhttp3.Call scimGetUserValidateBeforeCall(Integer userId, final ApiCall /** * Get SCIM user - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve data for a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. + * * @param userId The ID of the user. (required) * @return ScimUser - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ScimUser scimGetUser(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ScimUser scimGetUser(Long userId) throws ApiException { ApiResponse localVarResp = scimGetUserWithHttpInfo(userId); return localVarResp.getData(); } /** * Get SCIM user - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve data for a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. + * * @param userId The ID of the user. (required) * @return ApiResponse<ScimUser> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ApiResponse scimGetUserWithHttpInfo(Integer userId) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ApiResponse scimGetUserWithHttpInfo(Long userId) throws ApiException { okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get SCIM user (asynchronously) - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) + * Retrieve data for a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. + * + * @param userId The ID of the user. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimGetUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimGetUserAsync(Long userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimGetUsers + * * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 List of SCIM users -
+ * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of SCIM users-
*/ public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; @@ -19804,7 +34987,7 @@ public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiExce Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19812,18 +34995,19 @@ public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiExce } final String[] localVarContentTypes = { - + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call scimGetUsersValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimGetUsersCall(_callback); return localVarCall; @@ -19832,14 +35016,25 @@ private okhttp3.Call scimGetUsersValidateBeforeCall(final ApiCallback _callback) /** * List SCIM users - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve a paginated list of users that have been provisioned using the SCIM + * protocol with an identity provider, for example, Microsoft Entra ID. + * * @return ScimUsersListResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of SCIM users -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of SCIM users-
*/ public ScimUsersListResponse scimGetUsers() throws ApiException { ApiResponse localVarResp = scimGetUsersWithHttpInfo(); @@ -19848,59 +35043,94 @@ public ScimUsersListResponse scimGetUsers() throws ApiException { /** * List SCIM users - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve a paginated list of users that have been provisioned using the SCIM + * protocol with an identity provider, for example, Microsoft Entra ID. + * * @return ApiResponse<ScimUsersListResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 List of SCIM users -
+ * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of SCIM users-
*/ public ApiResponse scimGetUsersWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List SCIM users (asynchronously) - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve a paginated list of users that have been provisioned using the SCIM + * protocol with an identity provider, for example, Microsoft Entra ID. + * * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 List of SCIM users -
+ * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200List of SCIM users-
*/ public okhttp3.Call scimGetUsersAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimPatchUser - * @param userId The ID of the user. (required) - * @param body body (required) + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimPatchUserCall(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimPatchUserCall(Long userId, ScimPatchRequest body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19908,7 +35138,7 @@ public okhttp3.Call scimPatchUserCall(Integer userId, ScimPatchRequest body, fin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19916,28 +35146,30 @@ public okhttp3.Call scimPatchUserCall(Integer userId, ScimPatchRequest body, fin } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimPatchUserValidateBeforeCall(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimPatchUserValidateBeforeCall(Long userId, ScimPatchRequest body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling scimPatchUser(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling scimPatchUser(Async)"); } - okhttp3.Call localVarCall = scimPatchUserCall(userId, body, _callback); return localVarCall; @@ -19946,81 +35178,134 @@ private okhttp3.Call scimPatchUserValidateBeforeCall(Integer userId, ScimPatchRe /** * Update SCIM user attributes - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * Update certain attributes of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint allows for selective adding, removing, or replacing + * specific attributes while leaving other attributes unchanged. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return ScimUser - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ScimUser scimPatchUser(Integer userId, ScimPatchRequest body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ScimUser scimPatchUser(Long userId, ScimPatchRequest body) throws ApiException { ApiResponse localVarResp = scimPatchUserWithHttpInfo(userId, body); return localVarResp.getData(); } /** * Update SCIM user attributes - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * Update certain attributes of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint allows for selective adding, removing, or replacing + * specific attributes while leaving other attributes unchanged. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<ScimUser> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ApiResponse scimPatchUserWithHttpInfo(Integer userId, ScimPatchRequest body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ApiResponse scimPatchUserWithHttpInfo(Long userId, ScimPatchRequest body) throws ApiException { okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update SCIM user attributes (asynchronously) - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. - * @param userId The ID of the user. (required) - * @param body body (required) + * Update certain attributes of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint allows for selective adding, removing, or replacing + * specific attributes while leaving other attributes unchanged. + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimPatchUserAsync(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimPatchUserAsync(Long userId, ScimPatchRequest body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for scimReplaceUserAttributes - * @param userId The ID of the user. (required) - * @param body body (required) + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimReplaceUserAttributesCall(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimReplaceUserAttributesCall(Long userId, ScimNewUser body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20028,7 +35313,7 @@ public okhttp3.Call scimReplaceUserAttributesCall(Integer userId, ScimNewUser bo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20036,28 +35321,32 @@ public okhttp3.Call scimReplaceUserAttributesCall(Integer userId, ScimNewUser bo } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Long userId, ScimNewUser body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling scimReplaceUserAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'userId' when calling scimReplaceUserAttributes(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling scimReplaceUserAttributes(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling scimReplaceUserAttributes(Async)"); } - okhttp3.Call localVarCall = scimReplaceUserAttributesCall(userId, body, _callback); return localVarCall; @@ -20066,94 +35355,199 @@ private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Integer userId, /** * Update SCIM user - * Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload. + * Update the details of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint replaces all attributes of the specific user with the + * attributes provided in the request payload. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return ScimUser - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ScimUser scimReplaceUserAttributes(Integer userId, ScimNewUser body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ScimUser scimReplaceUserAttributes(Long userId, ScimNewUser body) throws ApiException { ApiResponse localVarResp = scimReplaceUserAttributesWithHttpInfo(userId, body); return localVarResp.getData(); } /** * Update SCIM user - * Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload. + * Update the details of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint replaces all attributes of the specific user with the + * attributes provided in the request payload. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<ScimUser> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public ApiResponse scimReplaceUserAttributesWithHttpInfo(Integer userId, ScimNewUser body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public ApiResponse scimReplaceUserAttributesWithHttpInfo(Long userId, ScimNewUser body) + throws ApiException { okhttp3.Call localVarCall = scimReplaceUserAttributesValidateBeforeCall(userId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update SCIM user (asynchronously) - * Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload. - * @param userId The ID of the user. (required) - * @param body body (required) + * Update the details of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint replaces all attributes of the specific user with the + * attributes provided in the request payload. + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 User details -
- */ - public okhttp3.Call scimReplaceUserAttributesAsync(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200User details-
+ */ + public okhttp3.Call scimReplaceUserAttributesAsync(Long userId, ScimNewUser body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimReplaceUserAttributesValidateBeforeCall(userId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for searchCouponsAdvancedApplicationWideWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(Long applicationId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/coupons_search_advanced/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20194,7 +35588,8 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(In } if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); } if (batchId != null) { @@ -20213,7 +35608,7 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(In Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20221,164 +35616,437 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(In } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(Long applicationId, + Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling searchCouponsAdvancedApplicationWideWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling searchCouponsAdvancedApplicationWideWithoutTotalCount(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling searchCouponsAdvancedApplicationWideWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'body' when calling searchCouponsAdvancedApplicationWideWithoutTotalCount(Async)"); } - - okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountCall(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState, _callback); + okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountCall(applicationId, body, + pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, batchId, exactMatch, campaignState, _callback); return localVarCall; } /** * List coupons that match the given attributes (without total count) - * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) + * List the coupons whose attributes match the query criteria in all the + * campaigns of the given Application. The match is successful if all the + * attributes of the request are found in a coupon, even if the coupon has more + * attributes that are not present on the request. **Note:** The total count is + * not included in the response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) * @return InlineResponse20011 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { - ApiResponse localVarResp = searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount(Long applicationId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + String batchId, Boolean exactMatch, String campaignState) throws ApiException { + ApiResponse localVarResp = searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo( + applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, + referralId, recipientIntegrationId, batchId, exactMatch, campaignState); return localVarResp.getData(); } /** * List coupons that match the given attributes (without total count) - * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) + * List the coupons whose attributes match the query criteria in all the + * campaigns of the given Application. The match is successful if all the + * attributes of the request are found in a coupon, even if the coupon has more + * attributes that are not present on the request. **Note:** The total count is + * not included in the response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) * @return ApiResponse<InlineResponse20011> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { - okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo( + Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, + String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) + throws ApiException { + okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall( + applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, + referralId, recipientIntegrationId, batchId, exactMatch, campaignState, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List coupons that match the given attributes (without total count) (asynchronously) - * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param batchId Filter results by batches of coupons (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) - * @param _callback The callback to be executed when the API call finishes + * List coupons that match the given attributes (without total count) + * (asynchronously) + * List the coupons whose attributes match the query criteria in all the + * campaigns of the given Application. The match is successful if all the + * attributes of the request are found in a coupon, even if the coupon has more + * attributes that are not present on the request. **Note:** The total count is + * not included in the response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param batchId Filter results by batches of coupons (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param campaignState Filter results by the state of the campaign. - + * `enabled`: Campaigns that are + * scheduled, running (activated), or expired. - + * `running`: Campaigns that are running + * (activated). - `disabled`: Campaigns + * that are disabled. - `expired`: + * Campaigns that are expired. - + * `archived`: Campaigns that are + * archived. (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(Long applicationId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall( + applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, + referralId, recipientIntegrationId, batchId, exactMatch, campaignState, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for searchCouponsAdvancedWithoutTotalCount - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param batchId Filter results by batches of coupons (optional) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param batchId Filter results by batches of coupons (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Long applicationId, Long campaignId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20419,7 +36087,8 @@ public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Integer applicati } if (recipientIntegrationId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("recipientIntegrationId", recipientIntegrationId)); } if (exactMatch != null) { @@ -20434,7 +36103,7 @@ public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Integer applicati Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20442,160 +36111,389 @@ public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Integer applicati } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, + Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); + throw new ApiException( + "Missing the required parameter 'campaignId' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); - } - - - okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountCall(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId, _callback); - return localVarCall; - - } - - /** - * List coupons that match the given attributes in campaign (without total count) - * List the coupons whose attributes match the query criteria in the given campaign. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param batchId Filter results by batches of coupons (optional) + throw new ApiException( + "Missing the required parameter 'body' when calling searchCouponsAdvancedWithoutTotalCount(Async)"); + } + + okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountCall(applicationId, campaignId, body, + pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, exactMatch, batchId, _callback); + return localVarCall; + + } + + /** + * List coupons that match the given attributes in campaign (without total + * count) + * List the coupons whose attributes match the query criteria in the given + * campaign. The match is successful if all the attributes of the request are + * found in a coupon, even if the coupon has more attributes that are not + * present on the request. **Note:** The total count is not included in the + * response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param batchId Filter results by batches of coupons (optional) * @return InlineResponse20011 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { - ApiResponse localVarResp = searchCouponsAdvancedWithoutTotalCountWithHttpInfo(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Long applicationId, Long campaignId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + Boolean exactMatch, String batchId) throws ApiException { + ApiResponse localVarResp = searchCouponsAdvancedWithoutTotalCountWithHttpInfo( + applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, + usable, referralId, recipientIntegrationId, exactMatch, batchId); return localVarResp.getData(); } /** - * List coupons that match the given attributes in campaign (without total count) - * List the coupons whose attributes match the query criteria in the given campaign. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param batchId Filter results by batches of coupons (optional) + * List coupons that match the given attributes in campaign (without total + * count) + * List the coupons whose attributes match the query criteria in the given + * campaign. The match is successful if all the attributes of the request are + * found in a coupon, even if the coupon has more attributes that are not + * present on the request. **Note:** The total count is not included in the + * response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param batchId Filter results by batches of coupons (optional) * @return ApiResponse<InlineResponse20011> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse searchCouponsAdvancedWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { - okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse searchCouponsAdvancedWithoutTotalCountWithHttpInfo(Long applicationId, + Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, + OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, + String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { + okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, + body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, exactMatch, batchId, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List coupons that match the given attributes in campaign (without total count) (asynchronously) - * List the coupons whose attributes match the query criteria in the given campaign. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) - * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. (optional) - * @param valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. (optional) - * @param usable Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. (optional) - * @param referralId Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. (optional) - * @param recipientIntegrationId Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. (optional) - * @param exactMatch Filter results to an exact case-insensitive matching against the coupon code. (optional, default to false) - * @param batchId Filter results by batches of coupons (optional) - * @param _callback The callback to be executed when the API call finishes + * List coupons that match the given attributes in campaign (without total + * count) (asynchronously) + * List the coupons whose attributes match the query criteria in the given + * campaign. The match is successful if all the attributes of the request are + * found in a coupon, even if the coupon has more attributes that are not + * present on the request. **Note:** The total count is not included in the + * response. + * + * @param applicationId The ID of the Application. It is displayed in + * your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param pageSize The number of items in the response. (optional, + * default to 1000) + * @param skip The number of items to skip when paging through + * large result sets. (optional) + * @param sort The field by which results should be sorted. By + * default, results are sorted in ascending order. + * To sort them in descending order, prefix the + * field name with `-`. **Note:** You + * may not be able to use all fields for sorting. + * This is due to performance limitations. + * (optional) + * @param value Filter results performing case-insensitive + * matching against the coupon code. Both the code + * and the query are folded to remove all + * non-alpha-numeric characters. (optional) + * @param createdBefore Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param createdAfter Filter results comparing the parameter value, + * expected to be an RFC3339 timestamp string, to + * the coupon creation timestamp. You can use any + * time zone setting. Talon.One will convert to + * UTC internally. (optional) + * @param valid Either \"expired\", + * \"validNow\", or + * \"validFuture\". The first option + * matches coupons in which the expiration date is + * set and in the past. The second matches coupons + * in which start date is null or in the past and + * expiration date is null or in the future, the + * third matches coupons in which start date is + * set and in the future. (optional) + * @param usable Either \"true\" or + * \"false\". If \"true\", + * only coupons where `usageCounter < + * usageLimit` will be returned, + * \"false\" will return only coupons + * where `usageCounter >= + * usageLimit`. (optional) + * @param referralId Filter the results by matching them with the ID + * of a referral. This filter shows the coupons + * created by redeeming a referral code. + * (optional) + * @param recipientIntegrationId Filter results by match with a profile ID + * specified in the coupon's + * RecipientIntegrationId field. (optional) + * @param exactMatch Filter results to an exact case-insensitive + * matching against the coupon code. (optional, + * default to false) + * @param batchId Filter results by batches of coupons (optional) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call searchCouponsAdvancedWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call searchCouponsAdvancedWithoutTotalCountAsync(Long applicationId, Long campaignId, Object body, + Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, + OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, + Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, + body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, exactMatch, batchId, _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for transferLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call transferLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call transferLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20603,7 +36501,7 @@ public okhttp3.Call transferLoyaltyCardCall(Integer loyaltyProgramId, String loy Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20611,33 +36509,37 @@ public okhttp3.Call transferLoyaltyCardCall(Integer loyaltyProgramId, String loy } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling transferLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling transferLoyaltyCard(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling transferLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling transferLoyaltyCard(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling transferLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = transferLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, body, _callback); return localVarCall; @@ -20646,92 +36548,223 @@ private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Integer loyaltyProgra /** * Transfer card data - * Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public void transferLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { + * Transfer loyalty card data, such as linked customers, loyalty balances and + * transactions, from a given loyalty card to a new, automatically created + * loyalty card. **Important:** - The original card is automatically blocked + * once the new card is created, and it cannot be activated again. - The default + * status of the new card is _active_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public void transferLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) + throws ApiException { transferLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } /** * Transfer card data - * Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * Transfer loyalty card data, such as linked customers, loyalty balances and + * transactions, from a given loyalty card to a new, automatically created + * loyalty card. **Important:** - The original card is automatically blocked + * once the new card is created, and it cannot be activated again. - The default + * status of the new card is _active_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse transferLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse transferLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + TransferLoyaltyCard body) throws ApiException { okhttp3.Call localVarCall = transferLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); return localVarApiClient.execute(localVarCall); } /** * Transfer card data (asynchronously) - * Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Transfer loyalty card data, such as linked customers, loyalty balances and + * transactions, from a given loyalty card to a new, automatically created + * loyalty card. **Important:** - The original card is automatically blocked + * once the new card is created, and it cannot be activated again. - The default + * status of the new card is _active_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
204 No Content -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call transferLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = transferLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call transferLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = transferLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for updateAccountCollection - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public okhttp3.Call updateAccountCollectionCall(Long collectionId, UpdateCollection body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/collections/{collectionId}" - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20739,7 +36772,7 @@ public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateColl Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20747,28 +36780,31 @@ public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateColl } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAccountCollectionValidateBeforeCall(Long collectionId, UpdateCollection body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling updateAccountCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling updateAccountCollection(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateAccountCollection(Async)"); } - okhttp3.Call localVarCall = updateAccountCollectionCall(collectionId, body, _callback); return localVarCall; @@ -20777,97 +36813,210 @@ private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectio /** * Update account-level collection - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param body body (required) + * Edit the description of a given account-level collection and enable or + * disable the collection in the specified Applications. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param body body (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public Collection updateAccountCollection(Integer collectionId, UpdateCollection body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public Collection updateAccountCollection(Long collectionId, UpdateCollection body) throws ApiException { ApiResponse localVarResp = updateAccountCollectionWithHttpInfo(collectionId, body); return localVarResp.getData(); } /** * Update account-level collection - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param body body (required) + * Edit the description of a given account-level collection and enable or + * disable the collection in the specified Applications. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param body body (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public ApiResponse updateAccountCollectionWithHttpInfo(Integer collectionId, UpdateCollection body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public ApiResponse updateAccountCollectionWithHttpInfo(Long collectionId, UpdateCollection body) + throws ApiException { okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update account-level collection (asynchronously) - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. - * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Edit the description of a given account-level collection and enable or + * disable the collection in the specified Applications. + * + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * account](#operation/listAccountCollections) endpoint. + * (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
409 Conflict. A collection with this name already exists. -
- */ - public okhttp3.Call updateAccountCollectionAsync(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
409Conflict. A collection with this name already + * exists.-
+ */ + public okhttp3.Call updateAccountCollectionAsync(Long collectionId, UpdateCollection body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateAchievement - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call updateAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call updateAchievementCall(Long applicationId, Long campaignId, Long achievementId, + UpdateAchievement body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "achievementId" + "\\}", localVarApiClient.escapeString(achievementId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20875,7 +37024,7 @@ public okhttp3.Call updateAchievementCall(Integer applicationId, Integer campaig Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -20883,38 +37032,42 @@ public okhttp3.Call updateAchievementCall(Integer applicationId, Integer campaig } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, + UpdateAchievement body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling updateAchievement(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling updateAchievement(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateAchievement(Async)"); } - + // verify the required parameter 'achievementId' is set if (achievementId == null) { - throw new ApiException("Missing the required parameter 'achievementId' when calling updateAchievement(Async)"); + throw new ApiException( + "Missing the required parameter 'achievementId' when calling updateAchievement(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateAchievement(Async)"); } - okhttp3.Call localVarCall = updateAchievementCall(applicationId, campaignId, achievementId, body, _callback); return localVarCall; @@ -20924,95 +37077,199 @@ private okhttp3.Call updateAchievementValidateBeforeCall(Integer applicationId, /** * Update achievement * Update the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param body body (required) * @return Achievement - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public Achievement updateAchievement(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { - ApiResponse localVarResp = updateAchievementWithHttpInfo(applicationId, campaignId, achievementId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public Achievement updateAchievement(Long applicationId, Long campaignId, Long achievementId, + UpdateAchievement body) throws ApiException { + ApiResponse localVarResp = updateAchievementWithHttpInfo(applicationId, campaignId, achievementId, + body); return localVarResp.getData(); } /** * Update achievement * Update the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<Achievement> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse updateAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { - okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse updateAchievementWithHttpInfo(Long applicationId, Long campaignId, + Long achievementId, UpdateAchievement body) throws ApiException { + okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update achievement (asynchronously) * Update the details of a specific achievement. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param achievementId The ID of the achievement. You can get this ID with the + * [List + * achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call updateAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call updateAchievementAsync(Long applicationId, Long campaignId, Long achievementId, + UpdateAchievement body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateAdditionalCost - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateAdditionalCostCall(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateAdditionalCostCall(Long additionalCostId, NewAdditionalCost body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/additional_costs/{additionalCostId}" - .replaceAll("\\{" + "additionalCostId" + "\\}", localVarApiClient.escapeString(additionalCostId.toString())); + .replaceAll("\\{" + "additionalCostId" + "\\}", + localVarApiClient.escapeString(additionalCostId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21020,7 +37277,7 @@ public okhttp3.Call updateAdditionalCostCall(Integer additionalCostId, NewAdditi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21028,28 +37285,31 @@ public okhttp3.Call updateAdditionalCostCall(Integer additionalCostId, NewAdditi } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAdditionalCostValidateBeforeCall(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAdditionalCostValidateBeforeCall(Long additionalCostId, NewAdditionalCost body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'additionalCostId' is set if (additionalCostId == null) { - throw new ApiException("Missing the required parameter 'additionalCostId' when calling updateAdditionalCost(Async)"); + throw new ApiException( + "Missing the required parameter 'additionalCostId' when calling updateAdditionalCost(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateAdditionalCost(Async)"); } - okhttp3.Call localVarCall = updateAdditionalCostCall(additionalCostId, body, _callback); return localVarCall; @@ -21058,81 +37318,149 @@ private okhttp3.Call updateAdditionalCostValidateBeforeCall(Integer additionalCo /** * Update additional cost - * Updates an existing additional cost. Once created, the only property of an additional cost that cannot be changed is the `name` property (or **API name** in the Campaign Manager). This restriction is in place to prevent accidentally breaking live integrations. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param body body (required) + * Updates an existing additional cost. Once created, the only property of an + * additional cost that cannot be changed is the `name` property (or + * **API name** in the Campaign Manager). This restriction is in place to + * prevent accidentally breaking live integrations. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param body body (required) * @return AccountAdditionalCost - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public AccountAdditionalCost updateAdditionalCost(Integer additionalCostId, NewAdditionalCost body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public AccountAdditionalCost updateAdditionalCost(Long additionalCostId, NewAdditionalCost body) + throws ApiException { ApiResponse localVarResp = updateAdditionalCostWithHttpInfo(additionalCostId, body); return localVarResp.getData(); } /** * Update additional cost - * Updates an existing additional cost. Once created, the only property of an additional cost that cannot be changed is the `name` property (or **API name** in the Campaign Manager). This restriction is in place to prevent accidentally breaking live integrations. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param body body (required) + * Updates an existing additional cost. Once created, the only property of an + * additional cost that cannot be changed is the `name` property (or + * **API name** in the Campaign Manager). This restriction is in place to + * prevent accidentally breaking live integrations. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param body body (required) * @return ApiResponse<AccountAdditionalCost> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateAdditionalCostWithHttpInfo(Integer additionalCostId, NewAdditionalCost body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateAdditionalCostWithHttpInfo(Long additionalCostId, + NewAdditionalCost body) throws ApiException { okhttp3.Call localVarCall = updateAdditionalCostValidateBeforeCall(additionalCostId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update additional cost (asynchronously) - * Updates an existing additional cost. Once created, the only property of an additional cost that cannot be changed is the `name` property (or **API name** in the Campaign Manager). This restriction is in place to prevent accidentally breaking live integrations. - * @param additionalCostId The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Updates an existing additional cost. Once created, the only property of an + * additional cost that cannot be changed is the `name` property (or + * **API name** in the Campaign Manager). This restriction is in place to + * prevent accidentally breaking live integrations. + * + * @param additionalCostId The ID of the additional cost. You can find the ID + * the the Campaign Manager's URL when you display + * the details of the cost in **Account** > **Tools** + * > **Additional costs**. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateAdditionalCostAsync(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateAdditionalCostAsync(Long additionalCostId, NewAdditionalCost body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAdditionalCostValidateBeforeCall(additionalCostId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateAttribute - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateAttributeCall(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateAttributeCall(Long attributeId, NewAttribute body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/attributes/{attributeId}" - .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); + .replaceAll("\\{" + "attributeId" + "\\}", localVarApiClient.escapeString(attributeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21140,7 +37468,7 @@ public okhttp3.Call updateAttributeCall(Integer attributeId, NewAttribute body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21148,28 +37476,30 @@ public okhttp3.Call updateAttributeCall(Integer attributeId, NewAttribute body, } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAttributeValidateBeforeCall(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateAttributeValidateBeforeCall(Long attributeId, NewAttribute body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'attributeId' is set if (attributeId == null) { throw new ApiException("Missing the required parameter 'attributeId' when calling updateAttribute(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateAttribute(Async)"); } - okhttp3.Call localVarCall = updateAttributeCall(attributeId, body, _callback); return localVarCall; @@ -21178,83 +37508,150 @@ private okhttp3.Call updateAttributeValidateBeforeCall(Integer attributeId, NewA /** * Update custom attribute - * Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description. To change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param body body (required) + * Update an existing custom attribute. Once created, the only property of a + * custom attribute that can be changed is the description. To change the + * `type` or `name` property of a custom attribute, create a + * new attribute and update any relevant integrations and rules to use the new + * attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param body body (required) * @return Attribute - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Attribute updateAttribute(Integer attributeId, NewAttribute body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Attribute updateAttribute(Long attributeId, NewAttribute body) throws ApiException { ApiResponse localVarResp = updateAttributeWithHttpInfo(attributeId, body); return localVarResp.getData(); } /** * Update custom attribute - * Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description. To change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param body body (required) + * Update an existing custom attribute. Once created, the only property of a + * custom attribute that can be changed is the description. To change the + * `type` or `name` property of a custom attribute, create a + * new attribute and update any relevant integrations and rules to use the new + * attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param body body (required) * @return ApiResponse<Attribute> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateAttributeWithHttpInfo(Integer attributeId, NewAttribute body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateAttributeWithHttpInfo(Long attributeId, NewAttribute body) throws ApiException { okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(attributeId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update custom attribute (asynchronously) - * Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description. To change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. - * @param attributeId The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Update an existing custom attribute. Once created, the only property of a + * custom attribute that can be changed is the description. To change the + * `type` or `name` property of a custom attribute, create a + * new attribute and update any relevant integrations and rules to use the new + * attribute. + * + * @param attributeId The ID of the attribute. You can find the ID in the + * Campaign Manager's URL when you display the details of + * an attribute in **Account** > **Tools** > + * **Attributes**. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateAttributeAsync(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateAttributeAsync(Long attributeId, NewAttribute body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(attributeId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCampaign - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateCampaignCall(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateCampaignCall(Long applicationId, Long campaignId, UpdateCampaign body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21262,7 +37659,7 @@ public okhttp3.Call updateCampaignCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21270,33 +37667,35 @@ public okhttp3.Call updateCampaignCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCampaignValidateBeforeCall(Long applicationId, Long campaignId, UpdateCampaign body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling updateCampaign(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateCampaign(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCampaign(Async)"); } - okhttp3.Call localVarCall = updateCampaignCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -21305,89 +37704,158 @@ private okhttp3.Call updateCampaignValidateBeforeCall(Integer applicationId, Int /** * Update campaign - * Update the given campaign. **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Update the given campaign. **Important:** You cannot use this endpoint to + * update campaigns if [campaign staging and + * revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) + * is enabled for your Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return Campaign - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Campaign updateCampaign(Integer applicationId, Integer campaignId, UpdateCampaign body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Campaign updateCampaign(Long applicationId, Long campaignId, UpdateCampaign body) throws ApiException { ApiResponse localVarResp = updateCampaignWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } /** * Update campaign - * Update the given campaign. **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Update the given campaign. **Important:** You cannot use this endpoint to + * update campaigns if [campaign staging and + * revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) + * is enabled for your Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<Campaign> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateCampaignWithHttpInfo(Integer applicationId, Integer campaignId, UpdateCampaign body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateCampaignWithHttpInfo(Long applicationId, Long campaignId, UpdateCampaign body) + throws ApiException { okhttp3.Call localVarCall = updateCampaignValidateBeforeCall(applicationId, campaignId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update campaign (asynchronously) - * Update the given campaign. **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Update the given campaign. **Important:** You cannot use this endpoint to + * update campaigns if [campaign staging and + * revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) + * is enabled for your Application. + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateCampaignAsync(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateCampaignAsync(Long applicationId, Long campaignId, UpdateCampaign body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCampaignValidateBeforeCall(applicationId, campaignId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCollection - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call updateCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public okhttp3.Call updateCollectionCall(Long applicationId, Long campaignId, Long collectionId, + UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21395,7 +37863,7 @@ public okhttp3.Call updateCollectionCall(Integer applicationId, Integer campaign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21403,38 +37871,42 @@ public okhttp3.Call updateCollectionCall(Integer applicationId, Integer campaign } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, + UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling updateCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling updateCollection(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateCollection(Async)"); } - + // verify the required parameter 'collectionId' is set if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling updateCollection(Async)"); + throw new ApiException( + "Missing the required parameter 'collectionId' when calling updateCollection(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCollection(Async)"); } - okhttp3.Call localVarCall = updateCollectionCall(applicationId, campaignId, collectionId, body, _callback); return localVarCall; @@ -21444,93 +37916,174 @@ private okhttp3.Call updateCollectionValidateBeforeCall(Integer applicationId, I /** * Update campaign-level collection's description * Edit the description of a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param body body (required) * @return Collection - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public Collection updateCollection(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body) throws ApiException { - ApiResponse localVarResp = updateCollectionWithHttpInfo(applicationId, campaignId, collectionId, body); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public Collection updateCollection(Long applicationId, Long campaignId, Long collectionId, + UpdateCampaignCollection body) throws ApiException { + ApiResponse localVarResp = updateCollectionWithHttpInfo(applicationId, campaignId, collectionId, + body); return localVarResp.getData(); } /** * Update campaign-level collection's description * Edit the description of a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<Collection> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse updateCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body) throws ApiException { - okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public ApiResponse updateCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId, + UpdateCampaignCollection body) throws ApiException { + okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, + null); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update campaign-level collection's description (asynchronously) * Edit the description of a given campaign-level collection. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List + * collections in + * Application](#operation/listCollectionsInApplication) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call updateCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
401Unauthorized-
+ */ + public okhttp3.Call updateCollectionAsync(Long applicationId, Long campaignId, Long collectionId, + UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCoupon - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateCouponCall(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateCouponCall(Long applicationId, Long campaignId, String couponId, UpdateCoupon body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "couponId" + "\\}", localVarApiClient.escapeString(couponId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21538,7 +38091,7 @@ public okhttp3.Call updateCouponCall(Integer applicationId, Integer campaignId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21546,38 +38099,40 @@ public okhttp3.Call updateCouponCall(Integer applicationId, Integer campaignId, } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCouponValidateBeforeCall(Long applicationId, Long campaignId, String couponId, + UpdateCoupon body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling updateCoupon(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateCoupon(Async)"); } - + // verify the required parameter 'couponId' is set if (couponId == null) { throw new ApiException("Missing the required parameter 'couponId' when calling updateCoupon(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCoupon(Async)"); } - okhttp3.Call localVarCall = updateCouponCall(applicationId, campaignId, couponId, body, _callback); return localVarCall; @@ -21586,89 +38141,177 @@ private okhttp3.Call updateCouponValidateBeforeCall(Integer applicationId, Integ /** * Update coupon - * Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div> - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param body body (required) + * Update the specified coupon. <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <p>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code>, + * <code>expiryDate</code>, and + * <code>recipientIntegrationId</code> properties in your request, + * it is automatically set to <code>null</code>.</p> + * </div> + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param body body (required) * @return Coupon - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Coupon updateCoupon(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Coupon updateCoupon(Long applicationId, Long campaignId, String couponId, UpdateCoupon body) + throws ApiException { ApiResponse localVarResp = updateCouponWithHttpInfo(applicationId, campaignId, couponId, body); return localVarResp.getData(); } /** * Update coupon - * Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div> - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param body body (required) + * Update the specified coupon. <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <p>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code>, + * <code>expiryDate</code>, and + * <code>recipientIntegrationId</code> properties in your request, + * it is automatically set to <code>null</code>.</p> + * </div> + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param body body (required) * @return ApiResponse<Coupon> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateCouponWithHttpInfo(Long applicationId, Long campaignId, String couponId, + UpdateCoupon body) throws ApiException { okhttp3.Call localVarCall = updateCouponValidateBeforeCall(applicationId, campaignId, couponId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update coupon (asynchronously) - * Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div> - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param couponId The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Update the specified coupon. <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <p>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code>, + * <code>expiryDate</code>, and + * <code>recipientIntegrationId</code> properties in your request, + * it is automatically set to <code>null</code>.</p> + * </div> + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param couponId The internal ID of the coupon code. You can find this + * value in the `id` property from the [List + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) + * endpoint response. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateCouponAsync(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCouponValidateBeforeCall(applicationId, campaignId, couponId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateCouponAsync(Long applicationId, Long campaignId, String couponId, UpdateCoupon body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCouponValidateBeforeCall(applicationId, campaignId, couponId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateCouponBatch - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call updateCouponBatchCall(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call updateCouponBatchCall(Long applicationId, Long campaignId, UpdateCouponBatch body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/coupons" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21676,7 +38319,7 @@ public okhttp3.Call updateCouponBatchCall(Integer applicationId, Integer campaig Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21684,33 +38327,36 @@ public okhttp3.Call updateCouponBatchCall(Integer applicationId, Integer campaig } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCouponBatchValidateBeforeCall(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateCouponBatchValidateBeforeCall(Long applicationId, Long campaignId, + UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling updateCouponBatch(Async)"); + throw new ApiException( + "Missing the required parameter 'applicationId' when calling updateCouponBatch(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateCouponBatch(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateCouponBatch(Async)"); } - okhttp3.Call localVarCall = updateCouponBatchCall(applicationId, campaignId, body, _callback); return localVarCall; @@ -21719,85 +38365,196 @@ private okhttp3.Call updateCouponBatchValidateBeforeCall(Integer applicationId, /** * Update coupons - * Update all coupons or a specific batch of coupons in the given campaign. You can find the `batchId` on the **Coupons** page of your campaign in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.</li> <li>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code> and <code>expiryDate</code> properties in your request, it is automatically set to <code>null</code>.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public void updateCouponBatch(Integer applicationId, Integer campaignId, UpdateCouponBatch body) throws ApiException { + * Update all coupons or a specific batch of coupons in the given campaign. You + * can find the `batchId` on the **Coupons** page of your campaign in + * the Campaign Manager, or you can use [List + * coupons](#operation/getCouponsWithoutTotalCount). <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <ul> + * <li>Only send sequential requests to this endpoint.</li> + * <li>Requests to this endpoint time out after 30 minutes. If you hit a + * timeout, contact our support team.</li> <li>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code> and + * <code>expiryDate</code> properties in your request, it is + * automatically set to <code>null</code>.</li> </ul> + * </div> To update a specific coupon, use [Update + * coupon](#operation/updateCoupon). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public void updateCouponBatch(Long applicationId, Long campaignId, UpdateCouponBatch body) throws ApiException { updateCouponBatchWithHttpInfo(applicationId, campaignId, body); } /** * Update coupons - * Update all coupons or a specific batch of coupons in the given campaign. You can find the `batchId` on the **Coupons** page of your campaign in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.</li> <li>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code> and <code>expiryDate</code> properties in your request, it is automatically set to <code>null</code>.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) + * Update all coupons or a specific batch of coupons in the given campaign. You + * can find the `batchId` on the **Coupons** page of your campaign in + * the Campaign Manager, or you can use [List + * coupons](#operation/getCouponsWithoutTotalCount). <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <ul> + * <li>Only send sequential requests to this endpoint.</li> + * <li>Requests to this endpoint time out after 30 minutes. If you hit a + * timeout, contact our support team.</li> <li>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code> and + * <code>expiryDate</code> properties in your request, it is + * automatically set to <code>null</code>.</li> </ul> + * </div> To update a specific coupon, use [Update + * coupon](#operation/updateCoupon). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public ApiResponse updateCouponBatchWithHttpInfo(Integer applicationId, Integer campaignId, UpdateCouponBatch body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public ApiResponse updateCouponBatchWithHttpInfo(Long applicationId, Long campaignId, UpdateCouponBatch body) + throws ApiException { okhttp3.Call localVarCall = updateCouponBatchValidateBeforeCall(applicationId, campaignId, body, null); return localVarApiClient.execute(localVarCall); } /** * Update coupons (asynchronously) - * Update all coupons or a specific batch of coupons in the given campaign. You can find the `batchId` on the **Coupons** page of your campaign in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.</li> <li>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code> and <code>expiryDate</code> properties in your request, it is automatically set to <code>null</code>.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon). - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Update all coupons or a specific batch of coupons in the given campaign. You + * can find the `batchId` on the **Coupons** page of your campaign in + * the Campaign Manager, or you can use [List + * coupons](#operation/getCouponsWithoutTotalCount). <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <ul> + * <li>Only send sequential requests to this endpoint.</li> + * <li>Requests to this endpoint time out after 30 minutes. If you hit a + * timeout, contact our support team.</li> <li>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code> and + * <code>expiryDate</code> properties in your request, it is + * automatically set to <code>null</code>.</li> </ul> + * </div> To update a specific coupon, use [Update + * coupon](#operation/updateCoupon). + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
204 No Content -
- */ - public okhttp3.Call updateCouponBatchAsync(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
204No Content-
+ */ + public okhttp3.Call updateCouponBatchAsync(Long applicationId, Long campaignId, UpdateCouponBatch body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCouponBatchValidateBeforeCall(applicationId, campaignId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** * Build call for updateLoyaltyCard - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call updateLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}" - .replaceAll("\\{" + "loyaltyProgramId" + "\\}", localVarApiClient.escapeString(loyaltyProgramId.toString())) - .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); + .replaceAll("\\{" + "loyaltyProgramId" + "\\}", + localVarApiClient.escapeString(loyaltyProgramId.toString())) + .replaceAll("\\{" + "loyaltyCardId" + "\\}", localVarApiClient.escapeString(loyaltyCardId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21805,7 +38562,7 @@ public okhttp3.Call updateLoyaltyCardCall(Integer loyaltyProgramId, String loyal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21813,33 +38570,37 @@ public okhttp3.Call updateLoyaltyCardCall(Integer loyaltyProgramId, String loyal } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, + UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { - throw new ApiException("Missing the required parameter 'loyaltyProgramId' when calling updateLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyProgramId' when calling updateLoyaltyCard(Async)"); } - + // verify the required parameter 'loyaltyCardId' is set if (loyaltyCardId == null) { - throw new ApiException("Missing the required parameter 'loyaltyCardId' when calling updateLoyaltyCard(Async)"); + throw new ApiException( + "Missing the required parameter 'loyaltyCardId' when calling updateLoyaltyCard(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateLoyaltyCard(Async)"); } - okhttp3.Call localVarCall = updateLoyaltyCardCall(loyaltyProgramId, loyaltyCardId, body, _callback); return localVarCall; @@ -21848,97 +38609,207 @@ private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Integer loyaltyProgramI /** * Update loyalty card status - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * Update the status of the given loyalty card. A card can be _active_ or + * _inactive_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return LoyaltyCard - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public LoyaltyCard updateLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) + throws ApiException { ApiResponse localVarResp = updateLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); return localVarResp.getData(); } /** * Update loyalty card status - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) + * Update the status of the given loyalty card. A card can be _active_ or + * _inactive_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<LoyaltyCard> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public ApiResponse updateLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, + UpdateLoyaltyCard body) throws ApiException { okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update loyalty card status (asynchronously) - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. - * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * Update the status of the given loyalty card. A card can be _active_ or + * _inactive_. + * + * @param loyaltyProgramId Identifier of the card-based loyalty program + * containing the loyalty card. You can get the ID with + * the [List loyalty + * programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) + * endpoint. (required) + * @param loyaltyCardId Identifier of the loyalty card. You can get the + * identifier with the [List loyalty + * cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) + * endpoint. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call + * finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized -
404 Not found -
- */ - public okhttp3.Call updateLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
401Unauthorized-
404Not found-
+ */ + public okhttp3.Call updateLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateReferral - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateReferralCall(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateReferralCall(Long applicationId, Long campaignId, String referralId, UpdateReferral body, + final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "referralId" + "\\}", localVarApiClient.escapeString(referralId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -21946,7 +38817,7 @@ public okhttp3.Call updateReferralCall(Integer applicationId, Integer campaignId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -21954,38 +38825,40 @@ public okhttp3.Call updateReferralCall(Integer applicationId, Integer campaignId } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateReferralValidateBeforeCall(Long applicationId, Long campaignId, String referralId, + UpdateReferral body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling updateReferral(Async)"); } - + // verify the required parameter 'campaignId' is set if (campaignId == null) { throw new ApiException("Missing the required parameter 'campaignId' when calling updateReferral(Async)"); } - + // verify the required parameter 'referralId' is set if (referralId == null) { throw new ApiException("Missing the required parameter 'referralId' when calling updateReferral(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateReferral(Async)"); } - okhttp3.Call localVarCall = updateReferralCall(applicationId, campaignId, referralId, body, _callback); return localVarCall; @@ -21995,19 +38868,32 @@ private okhttp3.Call updateReferralValidateBeforeCall(Integer applicationId, Int /** * Update referral * Update the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param body body (required) * @return Referral - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public Referral updateReferral(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public Referral updateReferral(Long applicationId, Long campaignId, String referralId, UpdateReferral body) + throws ApiException { ApiResponse localVarResp = updateReferralWithHttpInfo(applicationId, campaignId, referralId, body); return localVarResp.getData(); } @@ -22015,66 +38901,109 @@ public Referral updateReferral(Integer applicationId, Integer campaignId, String /** * Update referral * Update the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param body body (required) * @return ApiResponse<Referral> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateReferralWithHttpInfo(Long applicationId, Long campaignId, String referralId, + UpdateReferral body) throws ApiException { okhttp3.Call localVarCall = updateReferralValidateBeforeCall(applicationId, campaignId, referralId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update referral (asynchronously) * Update the specified referral. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param referralId The ID of the referral code. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your + * Talon.One deployment URL. (required) + * @param referralId The ID of the referral code. (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateReferralAsync(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateReferralValidateBeforeCall(applicationId, campaignId, referralId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateReferralAsync(Long applicationId, Long campaignId, String referralId, UpdateReferral body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateReferralValidateBeforeCall(applicationId, campaignId, referralId, body, + _callback); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateRoleV2 - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) - * @param body body (required) + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateRoleV2Call(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateRoleV2Call(Long roleId, RoleV2Base body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v2/roles/{roleId}" - .replaceAll("\\{" + "roleId" + "\\}", localVarApiClient.escapeString(roleId.toString())); + .replaceAll("\\{" + "roleId" + "\\}", localVarApiClient.escapeString(roleId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -22082,7 +39011,7 @@ public okhttp3.Call updateRoleV2Call(Integer roleId, RoleV2Base body, final ApiC Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22090,28 +39019,30 @@ public okhttp3.Call updateRoleV2Call(Integer roleId, RoleV2Base body, final ApiC } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateRoleV2ValidateBeforeCall(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateRoleV2ValidateBeforeCall(Long roleId, RoleV2Base body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'roleId' is set if (roleId == null) { throw new ApiException("Missing the required parameter 'roleId' when calling updateRoleV2(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateRoleV2(Async)"); } - okhttp3.Call localVarCall = updateRoleV2Call(roleId, body, _callback); return localVarCall; @@ -22121,17 +39052,30 @@ private okhttp3.Call updateRoleV2ValidateBeforeCall(Integer roleId, RoleV2Base b /** * Update role * Update a specific role. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) - * @param body body (required) + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) + * @param body body (required) * @return RoleV2 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public RoleV2 updateRoleV2(Integer roleId, RoleV2Base body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public RoleV2 updateRoleV2(Long roleId, RoleV2Base body) throws ApiException { ApiResponse localVarResp = updateRoleV2WithHttpInfo(roleId, body); return localVarResp.getData(); } @@ -22139,66 +39083,117 @@ public RoleV2 updateRoleV2(Integer roleId, RoleV2Base body) throws ApiException /** * Update role * Update a specific role. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) - * @param body body (required) + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) + * @param body body (required) * @return ApiResponse<RoleV2> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateRoleV2WithHttpInfo(Integer roleId, RoleV2Base body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateRoleV2WithHttpInfo(Long roleId, RoleV2Base body) throws ApiException { okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update role (asynchronously) * Update a specific role. - * @param roleId The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. (required) - * @param body body (required) + * + * @param roleId The ID of role. **Note**: To find the ID of a role, use the + * [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) + * endpoint. (required) + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateRoleV2Async(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateRoleV2Async(Long roleId, RoleV2Base body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateStore - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param body body (required) - * @param _callback Callback for upload/download progress + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param body body (required) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
404 Not found -
- */ - public okhttp3.Call updateStoreCall(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
404Not found-
+ */ + public okhttp3.Call updateStoreCall(Long applicationId, String storeId, NewStore body, final ApiCallback _callback) + throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/applications/{applicationId}/stores/{storeId}" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "storeId" + "\\}", localVarApiClient.escapeString(storeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -22206,7 +39201,7 @@ public okhttp3.Call updateStoreCall(Integer applicationId, String storeId, NewSt Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22214,33 +39209,35 @@ public okhttp3.Call updateStoreCall(Integer applicationId, String storeId, NewSt } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStoreValidateBeforeCall(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateStoreValidateBeforeCall(Long applicationId, String storeId, NewStore body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling updateStore(Async)"); } - + // verify the required parameter 'storeId' is set if (storeId == null) { throw new ApiException("Missing the required parameter 'storeId' when calling updateStore(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateStore(Async)"); } - okhttp3.Call localVarCall = updateStoreCall(applicationId, storeId, body, _callback); return localVarCall; @@ -22250,20 +39247,41 @@ private okhttp3.Call updateStoreValidateBeforeCall(Integer applicationId, String /** * Update store * Update store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param body body (required) * @return Store - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
404 Not found -
- */ - public Store updateStore(Integer applicationId, String storeId, NewStore body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
404Not found-
+ */ + public Store updateStore(Long applicationId, String storeId, NewStore body) throws ApiException { ApiResponse localVarResp = updateStoreWithHttpInfo(applicationId, storeId, body); return localVarResp.getData(); } @@ -22271,68 +39289,124 @@ public Store updateStore(Integer applicationId, String storeId, NewStore body) t /** * Update store * Update store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param body body (required) + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param body body (required) * @return ApiResponse<Store> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
404 Not found -
- */ - public ApiResponse updateStoreWithHttpInfo(Integer applicationId, String storeId, NewStore body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
404Not found-
+ */ + public ApiResponse updateStoreWithHttpInfo(Long applicationId, String storeId, NewStore body) + throws ApiException { okhttp3.Call localVarCall = updateStoreValidateBeforeCall(applicationId, storeId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update store (asynchronously) * Update store details for a specific store ID. - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. (required) - * @param body body (required) - * @param _callback The callback to be executed when the API call finishes + * + * @param applicationId The ID of the Application. It is displayed in your + * Talon.One deployment URL. (required) + * @param storeId The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * (required) + * @param body body (required) + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
400 Bad request -
404 Not found -
- */ - public okhttp3.Call updateStoreAsync(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
400Bad request-
404Not found-
+ */ + public okhttp3.Call updateStoreAsync(Long applicationId, String storeId, NewStore body, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStoreValidateBeforeCall(applicationId, storeId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** * Build call for updateUser - * @param userId The ID of the user. (required) - * @param body body (required) + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateUserCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateUserCall(Long userId, UpdateUser body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -22340,7 +39414,7 @@ public okhttp3.Call updateUserCall(Integer userId, UpdateUser body, final ApiCal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -22348,28 +39422,30 @@ public okhttp3.Call updateUserCall(Integer userId, UpdateUser body, final ApiCal } final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, + localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, + _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { - + private okhttp3.Call updateUserValidateBeforeCall(Long userId, UpdateUser body, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling updateUser(Async)"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)"); } - okhttp3.Call localVarCall = updateUserCall(userId, body, _callback); return localVarCall; @@ -22379,17 +39455,27 @@ private okhttp3.Call updateUserValidateBeforeCall(Integer userId, UpdateUser bod /** * Update user * Update the details of a specific user. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return User - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public User updateUser(Integer userId, UpdateUser body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public User updateUser(Long userId, UpdateUser body) throws ApiException { ApiResponse localVarResp = updateUserWithHttpInfo(userId, body); return localVarResp.getData(); } @@ -22397,40 +39483,63 @@ public User updateUser(Integer userId, UpdateUser body) throws ApiException { /** * Update user * Update the details of a specific user. + * * @param userId The ID of the user. (required) - * @param body body (required) + * @param body body (required) * @return ApiResponse<User> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public ApiResponse updateUserWithHttpInfo(Integer userId, UpdateUser body) throws ApiException { + * @throws ApiException If fail to call the API, e.g. server error or cannot + * deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public ApiResponse updateUserWithHttpInfo(Long userId, UpdateUser body) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update user (asynchronously) * Update the details of a specific user. - * @param userId The ID of the user. (required) - * @param body body (required) + * + * @param userId The ID of the user. (required) + * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
- */ - public okhttp3.Call updateUserAsync(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + * @throws ApiException If fail to process the API call, e.g. serializing the + * request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + *
Status CodeDescriptionResponse Headers
200OK-
+ */ + public okhttp3.Call updateUserAsync(Long userId, UpdateUser body, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken() { + }.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/one/talon/model/AccessLogEntry.java b/src/main/java/one/talon/model/AccessLogEntry.java index a7c94238..b427da07 100644 --- a/src/main/java/one/talon/model/AccessLogEntry.java +++ b/src/main/java/one/talon/model/AccessLogEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class AccessLogEntry { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; + private Long status; public static final String SERIALIZED_NAME_METHOD = "method"; @SerializedName(SERIALIZED_NAME_METHOD) @@ -59,161 +58,153 @@ public class AccessLogEntry { @SerializedName(SERIALIZED_NAME_RESPONSE_PAYLOAD) private String responsePayload; - public AccessLogEntry uuid(String uuid) { - + this.uuid = uuid; return this; } - /** + /** * UUID reference of request. + * * @return uuid - **/ + **/ @ApiModelProperty(example = "606e7d34-2d36-4d53-ac71-d4442c325985", required = true, value = "UUID reference of request.") public String getUuid() { return uuid; } - public void setUuid(String uuid) { this.uuid = uuid; } + public AccessLogEntry status(Long status) { - public AccessLogEntry status(Integer status) { - this.status = status; return this; } - /** + /** * HTTP status code of response. + * * @return status - **/ + **/ @ApiModelProperty(example = "200", required = true, value = "HTTP status code of response.") - public Integer getStatus() { + public Long getStatus() { return status; } - - public void setStatus(Integer status) { + public void setStatus(Long status) { this.status = status; } - public AccessLogEntry method(String method) { - + this.method = method; return this; } - /** + /** * HTTP method of request. + * * @return method - **/ + **/ @ApiModelProperty(example = "PUT", required = true, value = "HTTP method of request.") public String getMethod() { return method; } - public void setMethod(String method) { this.method = method; } - public AccessLogEntry requestUri(String requestUri) { - + this.requestUri = requestUri; return this; } - /** + /** * target URI of request + * * @return requestUri - **/ + **/ @ApiModelProperty(example = "/v2/customer_sessions/Session136667", required = true, value = "target URI of request") public String getRequestUri() { return requestUri; } - public void setRequestUri(String requestUri) { this.requestUri = requestUri; } - public AccessLogEntry time(OffsetDateTime time) { - + this.time = time; return this; } - /** + /** * timestamp of request + * * @return time - **/ + **/ @ApiModelProperty(example = "2023-01-16T16:00:00.700763Z", required = true, value = "timestamp of request") public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } - public AccessLogEntry requestPayload(String requestPayload) { - + this.requestPayload = requestPayload; return this; } - /** + /** * payload of request + * * @return requestPayload - **/ + **/ @ApiModelProperty(example = "{ \"customerSession\": { \"profileId\": \"customer123\", \"state\": \"closed\", ... }", required = true, value = "payload of request") public String getRequestPayload() { return requestPayload; } - public void setRequestPayload(String requestPayload) { this.requestPayload = requestPayload; } - public AccessLogEntry responsePayload(String responsePayload) { - + this.responsePayload = responsePayload; return this; } - /** + /** * payload of response + * * @return responsePayload - **/ + **/ @ApiModelProperty(example = "{\"coupons\":[],\"createdCoupons\":[],...}", required = true, value = "payload of response") public String getResponsePayload() { return responsePayload; } - public void setResponsePayload(String responsePayload) { this.responsePayload = responsePayload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -237,7 +228,6 @@ public int hashCode() { return Objects.hash(uuid, status, method, requestUri, time, requestPayload, responsePayload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -265,4 +255,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Account.java b/src/main/java/one/talon/model/Account.java index 324dbcb4..76633042 100644 --- a/src/main/java/one/talon/model/Account.java +++ b/src/main/java/one/talon/model/Account.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Account { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -56,7 +55,7 @@ public class Account { @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ACTIVE("active"), - + DEACTIVATED("deactivated"); private String value; @@ -91,7 +90,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -115,205 +114,198 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_LIMIT = "applicationLimit"; @SerializedName(SERIALIZED_NAME_APPLICATION_LIMIT) - private Integer applicationLimit; + private Long applicationLimit; public static final String SERIALIZED_NAME_USER_LIMIT = "userLimit"; @SerializedName(SERIALIZED_NAME_USER_LIMIT) - private Integer userLimit; + private Long userLimit; public static final String SERIALIZED_NAME_CAMPAIGN_LIMIT = "campaignLimit"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_LIMIT) - private Integer campaignLimit; + private Long campaignLimit; public static final String SERIALIZED_NAME_API_LIMIT = "apiLimit"; @SerializedName(SERIALIZED_NAME_API_LIMIT) - private Integer apiLimit; + private Long apiLimit; public static final String SERIALIZED_NAME_APPLICATION_COUNT = "applicationCount"; @SerializedName(SERIALIZED_NAME_APPLICATION_COUNT) - private Integer applicationCount; + private Long applicationCount; public static final String SERIALIZED_NAME_USER_COUNT = "userCount"; @SerializedName(SERIALIZED_NAME_USER_COUNT) - private Integer userCount; + private Long userCount; public static final String SERIALIZED_NAME_CAMPAIGNS_ACTIVE_COUNT = "campaignsActiveCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_ACTIVE_COUNT) - private Integer campaignsActiveCount; + private Long campaignsActiveCount; public static final String SERIALIZED_NAME_CAMPAIGNS_INACTIVE_COUNT = "campaignsInactiveCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_INACTIVE_COUNT) - private Integer campaignsInactiveCount; + private Long campaignsInactiveCount; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; + public Account id(Long id) { - public Account id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Account created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Account modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public Account companyName(String companyName) { - + this.companyName = companyName; return this; } - /** + /** * Get companyName + * * @return companyName - **/ + **/ @ApiModelProperty(required = true, value = "") public String getCompanyName() { return companyName; } - public void setCompanyName(String companyName) { this.companyName = companyName; } - public Account domainName(String domainName) { - + this.domainName = domainName; return this; } - /** + /** * Subdomain Name for yourcompany.talon.one. + * * @return domainName - **/ + **/ @ApiModelProperty(required = true, value = "Subdomain Name for yourcompany.talon.one.") public String getDomainName() { return domainName; } - public void setDomainName(String domainName) { this.domainName = domainName; } - public Account state(StateEnum state) { - + this.state = state; return this; } - /** + /** * State of the account (active, deactivated). + * * @return state - **/ + **/ @ApiModelProperty(required = true, value = "State of the account (active, deactivated).") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public Account billingEmail(String billingEmail) { - + this.billingEmail = billingEmail; return this; } - /** + /** * The billing email address associated with your company account. + * * @return billingEmail - **/ + **/ @ApiModelProperty(required = true, value = "The billing email address associated with your company account.") public String getBillingEmail() { return billingEmail; } - public void setBillingEmail(String billingEmail) { this.billingEmail = billingEmail; } - public Account planName(String planName) { - + this.planName = planName; return this; } - /** + /** * The name of your booked plan. + * * @return planName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of your booked plan.") @@ -321,22 +313,21 @@ public String getPlanName() { return planName; } - public void setPlanName(String planName) { this.planName = planName; } - public Account planExpires(OffsetDateTime planExpires) { - + this.planExpires = planExpires; return this; } - /** + /** * The point in time at which your current plan expires. + * * @return planExpires - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The point in time at which your current plan expires.") @@ -344,202 +335,194 @@ public OffsetDateTime getPlanExpires() { return planExpires; } - public void setPlanExpires(OffsetDateTime planExpires) { this.planExpires = planExpires; } + public Account applicationLimit(Long applicationLimit) { - public Account applicationLimit(Integer applicationLimit) { - this.applicationLimit = applicationLimit; return this; } - /** + /** * The maximum number of Applications covered by your plan. + * * @return applicationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Applications covered by your plan.") - public Integer getApplicationLimit() { + public Long getApplicationLimit() { return applicationLimit; } - - public void setApplicationLimit(Integer applicationLimit) { + public void setApplicationLimit(Long applicationLimit) { this.applicationLimit = applicationLimit; } + public Account userLimit(Long userLimit) { - public Account userLimit(Integer userLimit) { - this.userLimit = userLimit; return this; } - /** + /** * The maximum number of Campaign Manager Users covered by your plan. + * * @return userLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Campaign Manager Users covered by your plan.") - public Integer getUserLimit() { + public Long getUserLimit() { return userLimit; } - - public void setUserLimit(Integer userLimit) { + public void setUserLimit(Long userLimit) { this.userLimit = userLimit; } + public Account campaignLimit(Long campaignLimit) { - public Account campaignLimit(Integer campaignLimit) { - this.campaignLimit = campaignLimit; return this; } - /** + /** * The maximum number of Campaigns covered by your plan. + * * @return campaignLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Campaigns covered by your plan.") - public Integer getCampaignLimit() { + public Long getCampaignLimit() { return campaignLimit; } - - public void setCampaignLimit(Integer campaignLimit) { + public void setCampaignLimit(Long campaignLimit) { this.campaignLimit = campaignLimit; } + public Account apiLimit(Long apiLimit) { - public Account apiLimit(Integer apiLimit) { - this.apiLimit = apiLimit; return this; } - /** - * The maximum number of Integration API calls covered by your plan per billing period. + /** + * The maximum number of Integration API calls covered by your plan per billing + * period. + * * @return apiLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Integration API calls covered by your plan per billing period.") - public Integer getApiLimit() { + public Long getApiLimit() { return apiLimit; } - - public void setApiLimit(Integer apiLimit) { + public void setApiLimit(Long apiLimit) { this.apiLimit = apiLimit; } + public Account applicationCount(Long applicationCount) { - public Account applicationCount(Integer applicationCount) { - this.applicationCount = applicationCount; return this; } - /** + /** * The current number of Applications in your account. + * * @return applicationCount - **/ + **/ @ApiModelProperty(required = true, value = "The current number of Applications in your account.") - public Integer getApplicationCount() { + public Long getApplicationCount() { return applicationCount; } - - public void setApplicationCount(Integer applicationCount) { + public void setApplicationCount(Long applicationCount) { this.applicationCount = applicationCount; } + public Account userCount(Long userCount) { - public Account userCount(Integer userCount) { - this.userCount = userCount; return this; } - /** + /** * The current number of Campaign Manager Users in your account. + * * @return userCount - **/ + **/ @ApiModelProperty(required = true, value = "The current number of Campaign Manager Users in your account.") - public Integer getUserCount() { + public Long getUserCount() { return userCount; } - - public void setUserCount(Integer userCount) { + public void setUserCount(Long userCount) { this.userCount = userCount; } + public Account campaignsActiveCount(Long campaignsActiveCount) { - public Account campaignsActiveCount(Integer campaignsActiveCount) { - this.campaignsActiveCount = campaignsActiveCount; return this; } - /** + /** * The current number of active Campaigns in your account. + * * @return campaignsActiveCount - **/ + **/ @ApiModelProperty(required = true, value = "The current number of active Campaigns in your account.") - public Integer getCampaignsActiveCount() { + public Long getCampaignsActiveCount() { return campaignsActiveCount; } - - public void setCampaignsActiveCount(Integer campaignsActiveCount) { + public void setCampaignsActiveCount(Long campaignsActiveCount) { this.campaignsActiveCount = campaignsActiveCount; } + public Account campaignsInactiveCount(Long campaignsInactiveCount) { - public Account campaignsInactiveCount(Integer campaignsInactiveCount) { - this.campaignsInactiveCount = campaignsInactiveCount; return this; } - /** + /** * The current number of inactive Campaigns in your account. + * * @return campaignsInactiveCount - **/ + **/ @ApiModelProperty(required = true, value = "The current number of inactive Campaigns in your account.") - public Integer getCampaignsInactiveCount() { + public Long getCampaignsInactiveCount() { return campaignsInactiveCount; } - - public void setCampaignsInactiveCount(Integer campaignsInactiveCount) { + public void setCampaignsInactiveCount(Long campaignsInactiveCount) { this.campaignsInactiveCount = campaignsInactiveCount; } - public Account attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -547,12 +530,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -584,10 +565,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, companyName, domainName, state, billingEmail, planName, planExpires, applicationLimit, userLimit, campaignLimit, apiLimit, applicationCount, userCount, campaignsActiveCount, campaignsInactiveCount, attributes); + return Objects.hash(id, created, modified, companyName, domainName, state, billingEmail, planName, planExpires, + applicationLimit, userLimit, campaignLimit, apiLimit, applicationCount, userCount, campaignsActiveCount, + campaignsInactiveCount, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -626,4 +608,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AccountAdditionalCost.java b/src/main/java/one/talon/model/AccountAdditionalCost.java index e486aa98..8d2d5786 100644 --- a/src/main/java/one/talon/model/AccountAdditionalCost.java +++ b/src/main/java/one/talon/model/AccountAdditionalCost.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -58,17 +57,20 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; /** - * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. + * The type of additional cost. Possible value: - `session`: + * Additional cost will be added per session. - `item`: Additional + * cost will be added per item. - `both`: Additional cost will be + * added per item and session. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { SESSION("session"), - + ITEM("item"), - + BOTH("both"); private String value; @@ -103,7 +105,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -113,180 +115,179 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private TypeEnum type = TypeEnum.SESSION; + public AccountAdditionalCost id(Long id) { - public AccountAdditionalCost id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AccountAdditionalCost created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public AccountAdditionalCost accountId(Long accountId) { - public AccountAdditionalCost accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public AccountAdditionalCost name(String name) { - + this.name = name; return this; } - /** + /** * The internal name used in API requests. + * * @return name - **/ + **/ @ApiModelProperty(example = "shippingFee", required = true, value = "The internal name used in API requests.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public AccountAdditionalCost title(String title) { - + this.title = title; return this; } - /** - * The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. + /** + * The human-readable name for the additional cost that will be shown in the + * Campaign Manager. Like `name`, the combination of entity and title + * must also be unique. + * * @return title - **/ + **/ @ApiModelProperty(example = "Shipping fee", required = true, value = "The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public AccountAdditionalCost description(String description) { - + this.description = description; return this; } - /** + /** * A description of this additional cost. + * * @return description - **/ + **/ @ApiModelProperty(example = "A shipping fee", required = true, value = "A description of this additional cost.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public AccountAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { - public AccountAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public AccountAdditionalCost addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public AccountAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of the IDs of the applications that are subscribed to this additional cost. + /** + * A list of the IDs of the applications that are subscribed to this additional + * cost. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[3, 13]", value = "A list of the IDs of the applications that are subscribed to this additional cost.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public AccountAdditionalCost type(TypeEnum type) { - + this.type = type; return this; } - /** - * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. + /** + * The type of additional cost. Possible value: - `session`: + * Additional cost will be added per session. - `item`: Additional + * cost will be added per item. - `both`: Additional cost will be + * added per item and session. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "session", value = "The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. ") @@ -294,12 +295,10 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -324,7 +323,6 @@ public int hashCode() { return Objects.hash(id, created, accountId, name, title, description, subscribedApplicationsIds, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -353,4 +351,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AccountAnalytics.java b/src/main/java/one/talon/model/AccountAnalytics.java index 88c7ee6d..defcccea 100644 --- a/src/main/java/one/talon/model/AccountAnalytics.java +++ b/src/main/java/one/talon/model/AccountAnalytics.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,525 +31,504 @@ public class AccountAnalytics { public static final String SERIALIZED_NAME_APPLICATIONS = "applications"; @SerializedName(SERIALIZED_NAME_APPLICATIONS) - private Integer applications; + private Long applications; public static final String SERIALIZED_NAME_LIVE_APPLICATIONS = "liveApplications"; @SerializedName(SERIALIZED_NAME_LIVE_APPLICATIONS) - private Integer liveApplications; + private Long liveApplications; public static final String SERIALIZED_NAME_SANDBOX_APPLICATIONS = "sandboxApplications"; @SerializedName(SERIALIZED_NAME_SANDBOX_APPLICATIONS) - private Integer sandboxApplications; + private Long sandboxApplications; public static final String SERIALIZED_NAME_CAMPAIGNS = "campaigns"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS) - private Integer campaigns; + private Long campaigns; public static final String SERIALIZED_NAME_ACTIVE_CAMPAIGNS = "activeCampaigns"; @SerializedName(SERIALIZED_NAME_ACTIVE_CAMPAIGNS) - private Integer activeCampaigns; + private Long activeCampaigns; public static final String SERIALIZED_NAME_LIVE_ACTIVE_CAMPAIGNS = "liveActiveCampaigns"; @SerializedName(SERIALIZED_NAME_LIVE_ACTIVE_CAMPAIGNS) - private Integer liveActiveCampaigns; + private Long liveActiveCampaigns; public static final String SERIALIZED_NAME_COUPONS = "coupons"; @SerializedName(SERIALIZED_NAME_COUPONS) - private Integer coupons; + private Long coupons; public static final String SERIALIZED_NAME_ACTIVE_COUPONS = "activeCoupons"; @SerializedName(SERIALIZED_NAME_ACTIVE_COUPONS) - private Integer activeCoupons; + private Long activeCoupons; public static final String SERIALIZED_NAME_EXPIRED_COUPONS = "expiredCoupons"; @SerializedName(SERIALIZED_NAME_EXPIRED_COUPONS) - private Integer expiredCoupons; + private Long expiredCoupons; public static final String SERIALIZED_NAME_REFERRAL_CODES = "referralCodes"; @SerializedName(SERIALIZED_NAME_REFERRAL_CODES) - private Integer referralCodes; + private Long referralCodes; public static final String SERIALIZED_NAME_ACTIVE_REFERRAL_CODES = "activeReferralCodes"; @SerializedName(SERIALIZED_NAME_ACTIVE_REFERRAL_CODES) - private Integer activeReferralCodes; + private Long activeReferralCodes; public static final String SERIALIZED_NAME_EXPIRED_REFERRAL_CODES = "expiredReferralCodes"; @SerializedName(SERIALIZED_NAME_EXPIRED_REFERRAL_CODES) - private Integer expiredReferralCodes; + private Long expiredReferralCodes; public static final String SERIALIZED_NAME_ACTIVE_RULES = "activeRules"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULES) - private Integer activeRules; + private Long activeRules; public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private Integer users; + private Long users; public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private Integer roles; + private Long roles; public static final String SERIALIZED_NAME_CUSTOM_ATTRIBUTES = "customAttributes"; @SerializedName(SERIALIZED_NAME_CUSTOM_ATTRIBUTES) - private Integer customAttributes; + private Long customAttributes; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private Integer webhooks; + private Long webhooks; public static final String SERIALIZED_NAME_LOYALTY_PROGRAMS = "loyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAMS) - private Integer loyaltyPrograms; + private Long loyaltyPrograms; public static final String SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS = "liveLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS) - private Integer liveLoyaltyPrograms; + private Long liveLoyaltyPrograms; public static final String SERIALIZED_NAME_LAST_UPDATED_AT = "lastUpdatedAt"; @SerializedName(SERIALIZED_NAME_LAST_UPDATED_AT) private OffsetDateTime lastUpdatedAt; + public AccountAnalytics applications(Long applications) { - public AccountAnalytics applications(Integer applications) { - this.applications = applications; return this; } - /** + /** * Total number of applications in the account. + * * @return applications - **/ + **/ @ApiModelProperty(example = "11", required = true, value = "Total number of applications in the account.") - public Integer getApplications() { + public Long getApplications() { return applications; } - - public void setApplications(Integer applications) { + public void setApplications(Long applications) { this.applications = applications; } + public AccountAnalytics liveApplications(Long liveApplications) { - public AccountAnalytics liveApplications(Integer liveApplications) { - this.liveApplications = liveApplications; return this; } - /** + /** * Total number of live applications in the account. + * * @return liveApplications - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Total number of live applications in the account.") - public Integer getLiveApplications() { + public Long getLiveApplications() { return liveApplications; } - - public void setLiveApplications(Integer liveApplications) { + public void setLiveApplications(Long liveApplications) { this.liveApplications = liveApplications; } + public AccountAnalytics sandboxApplications(Long sandboxApplications) { - public AccountAnalytics sandboxApplications(Integer sandboxApplications) { - this.sandboxApplications = sandboxApplications; return this; } - /** + /** * Total number of sandbox applications in the account. + * * @return sandboxApplications - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Total number of sandbox applications in the account.") - public Integer getSandboxApplications() { + public Long getSandboxApplications() { return sandboxApplications; } - - public void setSandboxApplications(Integer sandboxApplications) { + public void setSandboxApplications(Long sandboxApplications) { this.sandboxApplications = sandboxApplications; } + public AccountAnalytics campaigns(Long campaigns) { - public AccountAnalytics campaigns(Integer campaigns) { - this.campaigns = campaigns; return this; } - /** + /** * Total number of campaigns in the account. + * * @return campaigns - **/ + **/ @ApiModelProperty(example = "35", required = true, value = "Total number of campaigns in the account.") - public Integer getCampaigns() { + public Long getCampaigns() { return campaigns; } - - public void setCampaigns(Integer campaigns) { + public void setCampaigns(Long campaigns) { this.campaigns = campaigns; } + public AccountAnalytics activeCampaigns(Long activeCampaigns) { - public AccountAnalytics activeCampaigns(Integer activeCampaigns) { - this.activeCampaigns = activeCampaigns; return this; } - /** + /** * Total number of active campaigns in the account. + * * @return activeCampaigns - **/ + **/ @ApiModelProperty(example = "15", required = true, value = "Total number of active campaigns in the account.") - public Integer getActiveCampaigns() { + public Long getActiveCampaigns() { return activeCampaigns; } - - public void setActiveCampaigns(Integer activeCampaigns) { + public void setActiveCampaigns(Long activeCampaigns) { this.activeCampaigns = activeCampaigns; } + public AccountAnalytics liveActiveCampaigns(Long liveActiveCampaigns) { - public AccountAnalytics liveActiveCampaigns(Integer liveActiveCampaigns) { - this.liveActiveCampaigns = liveActiveCampaigns; return this; } - /** + /** * Total number of active campaigns in live applications in the account. + * * @return liveActiveCampaigns - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "Total number of active campaigns in live applications in the account.") - public Integer getLiveActiveCampaigns() { + public Long getLiveActiveCampaigns() { return liveActiveCampaigns; } - - public void setLiveActiveCampaigns(Integer liveActiveCampaigns) { + public void setLiveActiveCampaigns(Long liveActiveCampaigns) { this.liveActiveCampaigns = liveActiveCampaigns; } + public AccountAnalytics coupons(Long coupons) { - public AccountAnalytics coupons(Integer coupons) { - this.coupons = coupons; return this; } - /** + /** * Total number of coupons in the account. + * * @return coupons - **/ + **/ @ApiModelProperty(example = "850", required = true, value = "Total number of coupons in the account.") - public Integer getCoupons() { + public Long getCoupons() { return coupons; } - - public void setCoupons(Integer coupons) { + public void setCoupons(Long coupons) { this.coupons = coupons; } + public AccountAnalytics activeCoupons(Long activeCoupons) { - public AccountAnalytics activeCoupons(Integer activeCoupons) { - this.activeCoupons = activeCoupons; return this; } - /** + /** * Total number of active coupons in the account. + * * @return activeCoupons - **/ + **/ @ApiModelProperty(example = "650", required = true, value = "Total number of active coupons in the account.") - public Integer getActiveCoupons() { + public Long getActiveCoupons() { return activeCoupons; } - - public void setActiveCoupons(Integer activeCoupons) { + public void setActiveCoupons(Long activeCoupons) { this.activeCoupons = activeCoupons; } + public AccountAnalytics expiredCoupons(Long expiredCoupons) { - public AccountAnalytics expiredCoupons(Integer expiredCoupons) { - this.expiredCoupons = expiredCoupons; return this; } - /** + /** * Total number of expired coupons in the account. + * * @return expiredCoupons - **/ + **/ @ApiModelProperty(example = "200", required = true, value = "Total number of expired coupons in the account.") - public Integer getExpiredCoupons() { + public Long getExpiredCoupons() { return expiredCoupons; } - - public void setExpiredCoupons(Integer expiredCoupons) { + public void setExpiredCoupons(Long expiredCoupons) { this.expiredCoupons = expiredCoupons; } + public AccountAnalytics referralCodes(Long referralCodes) { - public AccountAnalytics referralCodes(Integer referralCodes) { - this.referralCodes = referralCodes; return this; } - /** + /** * Total number of referral codes in the account. + * * @return referralCodes - **/ + **/ @ApiModelProperty(example = "500", required = true, value = "Total number of referral codes in the account.") - public Integer getReferralCodes() { + public Long getReferralCodes() { return referralCodes; } - - public void setReferralCodes(Integer referralCodes) { + public void setReferralCodes(Long referralCodes) { this.referralCodes = referralCodes; } + public AccountAnalytics activeReferralCodes(Long activeReferralCodes) { - public AccountAnalytics activeReferralCodes(Integer activeReferralCodes) { - this.activeReferralCodes = activeReferralCodes; return this; } - /** + /** * Total number of active referral codes in the account. + * * @return activeReferralCodes - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "Total number of active referral codes in the account.") - public Integer getActiveReferralCodes() { + public Long getActiveReferralCodes() { return activeReferralCodes; } - - public void setActiveReferralCodes(Integer activeReferralCodes) { + public void setActiveReferralCodes(Long activeReferralCodes) { this.activeReferralCodes = activeReferralCodes; } + public AccountAnalytics expiredReferralCodes(Long expiredReferralCodes) { - public AccountAnalytics expiredReferralCodes(Integer expiredReferralCodes) { - this.expiredReferralCodes = expiredReferralCodes; return this; } - /** + /** * Total number of expired referral codes in the account. + * * @return expiredReferralCodes - **/ + **/ @ApiModelProperty(example = "400", required = true, value = "Total number of expired referral codes in the account.") - public Integer getExpiredReferralCodes() { + public Long getExpiredReferralCodes() { return expiredReferralCodes; } - - public void setExpiredReferralCodes(Integer expiredReferralCodes) { + public void setExpiredReferralCodes(Long expiredReferralCodes) { this.expiredReferralCodes = expiredReferralCodes; } + public AccountAnalytics activeRules(Long activeRules) { - public AccountAnalytics activeRules(Integer activeRules) { - this.activeRules = activeRules; return this; } - /** + /** * Total number of active rules in the account. + * * @return activeRules - **/ + **/ @ApiModelProperty(example = "35", required = true, value = "Total number of active rules in the account.") - public Integer getActiveRules() { + public Long getActiveRules() { return activeRules; } - - public void setActiveRules(Integer activeRules) { + public void setActiveRules(Long activeRules) { this.activeRules = activeRules; } + public AccountAnalytics users(Long users) { - public AccountAnalytics users(Integer users) { - this.users = users; return this; } - /** + /** * Total number of users in the account. + * * @return users - **/ + **/ @ApiModelProperty(required = true, value = "Total number of users in the account.") - public Integer getUsers() { + public Long getUsers() { return users; } - - public void setUsers(Integer users) { + public void setUsers(Long users) { this.users = users; } + public AccountAnalytics roles(Long roles) { - public AccountAnalytics roles(Integer roles) { - this.roles = roles; return this; } - /** + /** * Total number of roles in the account. + * * @return roles - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "Total number of roles in the account.") - public Integer getRoles() { + public Long getRoles() { return roles; } - - public void setRoles(Integer roles) { + public void setRoles(Long roles) { this.roles = roles; } + public AccountAnalytics customAttributes(Long customAttributes) { - public AccountAnalytics customAttributes(Integer customAttributes) { - this.customAttributes = customAttributes; return this; } - /** + /** * Total number of custom attributes in the account. + * * @return customAttributes - **/ + **/ @ApiModelProperty(example = "18", required = true, value = "Total number of custom attributes in the account.") - public Integer getCustomAttributes() { + public Long getCustomAttributes() { return customAttributes; } - - public void setCustomAttributes(Integer customAttributes) { + public void setCustomAttributes(Long customAttributes) { this.customAttributes = customAttributes; } + public AccountAnalytics webhooks(Long webhooks) { - public AccountAnalytics webhooks(Integer webhooks) { - this.webhooks = webhooks; return this; } - /** + /** * Total number of webhooks in the account. + * * @return webhooks - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Total number of webhooks in the account.") - public Integer getWebhooks() { + public Long getWebhooks() { return webhooks; } - - public void setWebhooks(Integer webhooks) { + public void setWebhooks(Long webhooks) { this.webhooks = webhooks; } + public AccountAnalytics loyaltyPrograms(Long loyaltyPrograms) { - public AccountAnalytics loyaltyPrograms(Integer loyaltyPrograms) { - this.loyaltyPrograms = loyaltyPrograms; return this; } - /** + /** * Total number of all loyalty programs in the account. + * * @return loyaltyPrograms - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "Total number of all loyalty programs in the account.") - public Integer getLoyaltyPrograms() { + public Long getLoyaltyPrograms() { return loyaltyPrograms; } - - public void setLoyaltyPrograms(Integer loyaltyPrograms) { + public void setLoyaltyPrograms(Long loyaltyPrograms) { this.loyaltyPrograms = loyaltyPrograms; } + public AccountAnalytics liveLoyaltyPrograms(Long liveLoyaltyPrograms) { - public AccountAnalytics liveLoyaltyPrograms(Integer liveLoyaltyPrograms) { - this.liveLoyaltyPrograms = liveLoyaltyPrograms; return this; } - /** + /** * Total number of live loyalty programs in the account. + * * @return liveLoyaltyPrograms - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "Total number of live loyalty programs in the account.") - public Integer getLiveLoyaltyPrograms() { + public Long getLiveLoyaltyPrograms() { return liveLoyaltyPrograms; } - - public void setLiveLoyaltyPrograms(Integer liveLoyaltyPrograms) { + public void setLiveLoyaltyPrograms(Long liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; } - public AccountAnalytics lastUpdatedAt(OffsetDateTime lastUpdatedAt) { - + this.lastUpdatedAt = lastUpdatedAt; return this; } - /** + /** * The point in time when the analytics numbers were updated last. + * * @return lastUpdatedAt - **/ + **/ @ApiModelProperty(example = "2022-12-12T12:12:12Z", required = true, value = "The point in time when the analytics numbers were updated last.") public OffsetDateTime getLastUpdatedAt() { return lastUpdatedAt; } - public void setLastUpdatedAt(OffsetDateTime lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -584,10 +562,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(applications, liveApplications, sandboxApplications, campaigns, activeCampaigns, liveActiveCampaigns, coupons, activeCoupons, expiredCoupons, referralCodes, activeReferralCodes, expiredReferralCodes, activeRules, users, roles, customAttributes, webhooks, loyaltyPrograms, liveLoyaltyPrograms, lastUpdatedAt); + return Objects.hash(applications, liveApplications, sandboxApplications, campaigns, activeCampaigns, + liveActiveCampaigns, coupons, activeCoupons, expiredCoupons, referralCodes, activeReferralCodes, + expiredReferralCodes, activeRules, users, roles, customAttributes, webhooks, loyaltyPrograms, + liveLoyaltyPrograms, lastUpdatedAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -628,4 +608,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java b/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java index 7e779046..3adf11ba 100644 --- a/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java +++ b/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,83 +30,79 @@ public class AccountDashboardStatisticCampaigns { public static final String SERIALIZED_NAME_LIVE = "live"; @SerializedName(SERIALIZED_NAME_LIVE) - private Integer live; + private Long live; public static final String SERIALIZED_NAME_ENDING_SOON = "endingSoon"; @SerializedName(SERIALIZED_NAME_ENDING_SOON) - private Integer endingSoon; + private Long endingSoon; public static final String SERIALIZED_NAME_LOW_ON_BUDGET = "lowOnBudget"; @SerializedName(SERIALIZED_NAME_LOW_ON_BUDGET) - private Integer lowOnBudget; + private Long lowOnBudget; + public AccountDashboardStatisticCampaigns live(Long live) { - public AccountDashboardStatisticCampaigns live(Integer live) { - this.live = live; return this; } - /** + /** * Number of campaigns that are active and live (across all Applications). + * * @return live - **/ + **/ @ApiModelProperty(required = true, value = "Number of campaigns that are active and live (across all Applications).") - public Integer getLive() { + public Long getLive() { return live; } - - public void setLive(Integer live) { + public void setLive(Long live) { this.live = live; } + public AccountDashboardStatisticCampaigns endingSoon(Long endingSoon) { - public AccountDashboardStatisticCampaigns endingSoon(Integer endingSoon) { - this.endingSoon = endingSoon; return this; } - /** + /** * Campaigns scheduled to expire sometime in the next 7 days. + * * @return endingSoon - **/ + **/ @ApiModelProperty(required = true, value = "Campaigns scheduled to expire sometime in the next 7 days.") - public Integer getEndingSoon() { + public Long getEndingSoon() { return endingSoon; } - - public void setEndingSoon(Integer endingSoon) { + public void setEndingSoon(Long endingSoon) { this.endingSoon = endingSoon; } + public AccountDashboardStatisticCampaigns lowOnBudget(Long lowOnBudget) { - public AccountDashboardStatisticCampaigns lowOnBudget(Integer lowOnBudget) { - this.lowOnBudget = lowOnBudget; return this; } - /** + /** * Campaigns with less than 10% of budget left. + * * @return lowOnBudget - **/ + **/ @ApiModelProperty(required = true, value = "Campaigns with less than 10% of budget left.") - public Integer getLowOnBudget() { + public Long getLowOnBudget() { return lowOnBudget; } - - public void setLowOnBudget(Integer lowOnBudget) { + public void setLowOnBudget(Long lowOnBudget) { this.lowOnBudget = lowOnBudget; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,7 +122,6 @@ public int hashCode() { return Objects.hash(live, endingSoon, lowOnBudget); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,4 +145,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AccountEntity.java b/src/main/java/one/talon/model/AccountEntity.java index a4b8809d..e79fe715 100644 --- a/src/main/java/one/talon/model/AccountEntity.java +++ b/src/main/java/one/talon/model/AccountEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class AccountEntity { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; + public AccountEntity accountId(Long accountId) { - public AccountEntity accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(accountId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AccountLimits.java b/src/main/java/one/talon/model/AccountLimits.java index f9f93aef..e431bc1b 100644 --- a/src/main/java/one/talon/model/AccountLimits.java +++ b/src/main/java/one/talon/model/AccountLimits.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,297 +32,285 @@ public class AccountLimits { public static final String SERIALIZED_NAME_LIVE_APPLICATIONS = "liveApplications"; @SerializedName(SERIALIZED_NAME_LIVE_APPLICATIONS) - private Integer liveApplications; + private Long liveApplications; public static final String SERIALIZED_NAME_SANDBOX_APPLICATIONS = "sandboxApplications"; @SerializedName(SERIALIZED_NAME_SANDBOX_APPLICATIONS) - private Integer sandboxApplications; + private Long sandboxApplications; public static final String SERIALIZED_NAME_ACTIVE_CAMPAIGNS = "activeCampaigns"; @SerializedName(SERIALIZED_NAME_ACTIVE_CAMPAIGNS) - private Integer activeCampaigns; + private Long activeCampaigns; public static final String SERIALIZED_NAME_COUPONS = "coupons"; @SerializedName(SERIALIZED_NAME_COUPONS) - private Integer coupons; + private Long coupons; public static final String SERIALIZED_NAME_REFERRAL_CODES = "referralCodes"; @SerializedName(SERIALIZED_NAME_REFERRAL_CODES) - private Integer referralCodes; + private Long referralCodes; public static final String SERIALIZED_NAME_ACTIVE_RULES = "activeRules"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULES) - private Integer activeRules; + private Long activeRules; public static final String SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS = "liveLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS) - private Integer liveLoyaltyPrograms; + private Long liveLoyaltyPrograms; public static final String SERIALIZED_NAME_SANDBOX_LOYALTY_PROGRAMS = "sandboxLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_SANDBOX_LOYALTY_PROGRAMS) - private Integer sandboxLoyaltyPrograms; + private Long sandboxLoyaltyPrograms; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private Integer webhooks; + private Long webhooks; public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private Integer users; + private Long users; public static final String SERIALIZED_NAME_API_VOLUME = "apiVolume"; @SerializedName(SERIALIZED_NAME_API_VOLUME) - private Integer apiVolume; + private Long apiVolume; public static final String SERIALIZED_NAME_PROMOTION_TYPES = "promotionTypes"; @SerializedName(SERIALIZED_NAME_PROMOTION_TYPES) private List promotionTypes = new ArrayList(); + public AccountLimits liveApplications(Long liveApplications) { - public AccountLimits liveApplications(Integer liveApplications) { - this.liveApplications = liveApplications; return this; } - /** + /** * Total number of allowed live applications in the account. + * * @return liveApplications - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed live applications in the account.") - public Integer getLiveApplications() { + public Long getLiveApplications() { return liveApplications; } - - public void setLiveApplications(Integer liveApplications) { + public void setLiveApplications(Long liveApplications) { this.liveApplications = liveApplications; } + public AccountLimits sandboxApplications(Long sandboxApplications) { - public AccountLimits sandboxApplications(Integer sandboxApplications) { - this.sandboxApplications = sandboxApplications; return this; } - /** + /** * Total number of allowed sandbox applications in the account. + * * @return sandboxApplications - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed sandbox applications in the account.") - public Integer getSandboxApplications() { + public Long getSandboxApplications() { return sandboxApplications; } - - public void setSandboxApplications(Integer sandboxApplications) { + public void setSandboxApplications(Long sandboxApplications) { this.sandboxApplications = sandboxApplications; } + public AccountLimits activeCampaigns(Long activeCampaigns) { - public AccountLimits activeCampaigns(Integer activeCampaigns) { - this.activeCampaigns = activeCampaigns; return this; } - /** + /** * Total number of allowed active campaigns in live applications in the account. + * * @return activeCampaigns - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed active campaigns in live applications in the account.") - public Integer getActiveCampaigns() { + public Long getActiveCampaigns() { return activeCampaigns; } - - public void setActiveCampaigns(Integer activeCampaigns) { + public void setActiveCampaigns(Long activeCampaigns) { this.activeCampaigns = activeCampaigns; } + public AccountLimits coupons(Long coupons) { - public AccountLimits coupons(Integer coupons) { - this.coupons = coupons; return this; } - /** + /** * Total number of allowed coupons in the account. + * * @return coupons - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed coupons in the account.") - public Integer getCoupons() { + public Long getCoupons() { return coupons; } - - public void setCoupons(Integer coupons) { + public void setCoupons(Long coupons) { this.coupons = coupons; } + public AccountLimits referralCodes(Long referralCodes) { - public AccountLimits referralCodes(Integer referralCodes) { - this.referralCodes = referralCodes; return this; } - /** + /** * Total number of allowed referral codes in the account. + * * @return referralCodes - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed referral codes in the account.") - public Integer getReferralCodes() { + public Long getReferralCodes() { return referralCodes; } - - public void setReferralCodes(Integer referralCodes) { + public void setReferralCodes(Long referralCodes) { this.referralCodes = referralCodes; } + public AccountLimits activeRules(Long activeRules) { - public AccountLimits activeRules(Integer activeRules) { - this.activeRules = activeRules; return this; } - /** + /** * Total number of allowed active rulesets in the account. + * * @return activeRules - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed active rulesets in the account.") - public Integer getActiveRules() { + public Long getActiveRules() { return activeRules; } - - public void setActiveRules(Integer activeRules) { + public void setActiveRules(Long activeRules) { this.activeRules = activeRules; } + public AccountLimits liveLoyaltyPrograms(Long liveLoyaltyPrograms) { - public AccountLimits liveLoyaltyPrograms(Integer liveLoyaltyPrograms) { - this.liveLoyaltyPrograms = liveLoyaltyPrograms; return this; } - /** + /** * Total number of allowed live loyalty programs in the account. + * * @return liveLoyaltyPrograms - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed live loyalty programs in the account.") - public Integer getLiveLoyaltyPrograms() { + public Long getLiveLoyaltyPrograms() { return liveLoyaltyPrograms; } - - public void setLiveLoyaltyPrograms(Integer liveLoyaltyPrograms) { + public void setLiveLoyaltyPrograms(Long liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; } + public AccountLimits sandboxLoyaltyPrograms(Long sandboxLoyaltyPrograms) { - public AccountLimits sandboxLoyaltyPrograms(Integer sandboxLoyaltyPrograms) { - this.sandboxLoyaltyPrograms = sandboxLoyaltyPrograms; return this; } - /** + /** * Total number of allowed sandbox loyalty programs in the account. + * * @return sandboxLoyaltyPrograms - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed sandbox loyalty programs in the account.") - public Integer getSandboxLoyaltyPrograms() { + public Long getSandboxLoyaltyPrograms() { return sandboxLoyaltyPrograms; } - - public void setSandboxLoyaltyPrograms(Integer sandboxLoyaltyPrograms) { + public void setSandboxLoyaltyPrograms(Long sandboxLoyaltyPrograms) { this.sandboxLoyaltyPrograms = sandboxLoyaltyPrograms; } + public AccountLimits webhooks(Long webhooks) { - public AccountLimits webhooks(Integer webhooks) { - this.webhooks = webhooks; return this; } - /** + /** * Total number of allowed webhooks in the account. + * * @return webhooks - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed webhooks in the account.") - public Integer getWebhooks() { + public Long getWebhooks() { return webhooks; } - - public void setWebhooks(Integer webhooks) { + public void setWebhooks(Long webhooks) { this.webhooks = webhooks; } + public AccountLimits users(Long users) { - public AccountLimits users(Integer users) { - this.users = users; return this; } - /** + /** * Total number of allowed users in the account. + * * @return users - **/ + **/ @ApiModelProperty(required = true, value = "Total number of allowed users in the account.") - public Integer getUsers() { + public Long getUsers() { return users; } - - public void setUsers(Integer users) { + public void setUsers(Long users) { this.users = users; } + public AccountLimits apiVolume(Long apiVolume) { - public AccountLimits apiVolume(Integer apiVolume) { - this.apiVolume = apiVolume; return this; } - /** + /** * Allowed volume of API requests to the account. + * * @return apiVolume - **/ + **/ @ApiModelProperty(required = true, value = "Allowed volume of API requests to the account.") - public Integer getApiVolume() { + public Long getApiVolume() { return apiVolume; } - - public void setApiVolume(Integer apiVolume) { + public void setApiVolume(Long apiVolume) { this.apiVolume = apiVolume; } - public AccountLimits promotionTypes(List promotionTypes) { - + this.promotionTypes = promotionTypes; return this; } @@ -333,22 +320,21 @@ public AccountLimits addPromotionTypesItem(String promotionTypesItem) { return this; } - /** + /** * Array of promotion types that are employed in the account. + * * @return promotionTypes - **/ + **/ @ApiModelProperty(required = true, value = "Array of promotion types that are employed in the account.") public List getPromotionTypes() { return promotionTypes; } - public void setPromotionTypes(List promotionTypes) { this.promotionTypes = promotionTypes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -374,10 +360,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, activeRules, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes); + return Objects.hash(liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, activeRules, + liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -410,4 +396,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Achievement.java b/src/main/java/one/talon/model/Achievement.java index 22d4818a..713ebbad 100644 --- a/src/main/java/one/talon/model/Achievement.java +++ b/src/main/java/one/talon/model/Achievement.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Achievement { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -65,12 +64,15 @@ public class Achievement { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - + ON_EXPIRATION("on_expiration"); private String value; @@ -105,7 +107,7 @@ public void write(final JsonWriter jsonWriter, final RecurrencePolicyEnum enumer @Override public RecurrencePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return RecurrencePolicyEnum.fromValue(value); } } @@ -116,12 +118,16 @@ public RecurrencePolicyEnum read(final JsonReader jsonReader) throws IOException private RecurrencePolicyEnum recurrencePolicy; /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. */ @JsonAdapter(ActivationPolicyEnum.Adapter.class) public enum ActivationPolicyEnum { USER_ACTION("user_action"), - + FIXED_SCHEDULE("fixed_schedule"); private String value; @@ -156,7 +162,7 @@ public void write(final JsonWriter jsonWriter, final ActivationPolicyEnum enumer @Override public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ActivationPolicyEnum.fromValue(value); } } @@ -176,11 +182,11 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) @@ -196,11 +202,11 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { INPROGRESS("inprogress"), - + EXPIRED("expired"), - + NOT_STARTED("not_started"), - + COMPLETED("completed"); private String value; @@ -235,7 +241,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -245,149 +251,159 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Achievement id(Long id) { - public Achievement id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Achievement created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Achievement name(String name) { - + this.name = name; return this; } - /** - * The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. + /** + * The internal name of the achievement used in API requests. **Note**: The name + * should start with a letter. This cannot be changed after the achievement has + * been created. + * * @return name - **/ + **/ @ApiModelProperty(example = "Order50Discount", required = true, value = "The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Achievement title(String title) { - + this.title = title; return this; } - /** + /** * The display name for the achievement in the Campaign Manager. + * * @return title - **/ + **/ @ApiModelProperty(example = "50% off on 50th purchase.", required = true, value = "The display name for the achievement in the Campaign Manager.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public Achievement description(String description) { - + this.description = description; return this; } - /** + /** * A description of the achievement. + * * @return description - **/ + **/ @ApiModelProperty(example = "50% off for every 50th purchase in a year.", required = true, value = "A description of the achievement.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Achievement target(BigDecimal target) { - + this.target = target; return this; } - /** - * The required number of actions or the transactional milestone to complete the achievement. + /** + * The required number of actions or the transactional milestone to complete the + * achievement. + * * @return target - **/ + **/ @ApiModelProperty(example = "50.0", required = true, value = "The required number of actions or the transactional milestone to complete the achievement.") public BigDecimal getTarget() { return target; } - public void setTarget(BigDecimal target) { this.target = target; } - public Achievement period(String period) { - + this.period = period; return this; } - /** - * The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. + /** + * The relative duration after which the achievement ends and resets for a + * particular customer profile. **Note**: The `period` does not start + * when the achievement is created. The period is a **positive real number** + * followed by one letter indicating the time unit. Examples: `30s`, + * `40m`, `1h`, `5D`, `7W`, + * `10M`, `15Y`. Available units: - `s`: seconds - + * `m`: minutes - `h`: hours - `D`: days - + * `W`: weeks - `M`: months - `Y`: years You can + * also round certain units down to the beginning of period and up to the end of + * period.: - `_D` for rounding down days only. Signifies the start of + * the day. Example: `30D_D` - `_U` for rounding up days, + * weeks, months and years. Signifies the end of the day, week, month or year. + * Example: `23W_U` **Note**: You can either use the round down and + * round up option or set an absolute period. + * * @return period - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1Y", value = "The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") @@ -395,22 +411,21 @@ public String getPeriod() { return period; } - public void setPeriod(String period) { this.period = period; } - public Achievement periodEndOverride(TimePoint periodEndOverride) { - + this.periodEndOverride = periodEndOverride; return this; } - /** + /** * Get periodEndOverride + * * @return periodEndOverride - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -418,22 +433,24 @@ public TimePoint getPeriodEndOverride() { return periodEndOverride; } - public void setPeriodEndOverride(TimePoint periodEndOverride) { this.periodEndOverride = periodEndOverride; } - public Achievement recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { - + this.recurrencePolicy = recurrencePolicy; return this; } - /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + /** + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. + * * @return recurrencePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") @@ -441,22 +458,25 @@ public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; } - public void setRecurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { this.recurrencePolicy = recurrencePolicy; } - public Achievement activationPolicy(ActivationPolicyEnum activationPolicy) { - + this.activationPolicy = activationPolicy; return this; } - /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + /** + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. + * * @return activationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "fixed_schedule", value = "The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. ") @@ -464,22 +484,22 @@ public ActivationPolicyEnum getActivationPolicy() { return activationPolicy; } - public void setActivationPolicy(ActivationPolicyEnum activationPolicy) { this.activationPolicy = activationPolicy; } - public Achievement fixedStartDate(OffsetDateTime fixedStartDate) { - + this.fixedStartDate = fixedStartDate; return this; } - /** - * The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. + /** + * The achievement's start date when `activationPolicy` is set to + * `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. + * * @return fixedStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. ") @@ -487,22 +507,23 @@ public OffsetDateTime getFixedStartDate() { return fixedStartDate; } - public void setFixedStartDate(OffsetDateTime fixedStartDate) { this.fixedStartDate = fixedStartDate; } - public Achievement endDate(OffsetDateTime endDate) { - + this.endDate = endDate; return this; } - /** - * The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. + /** + * The achievement's end date. If defined, customers cannot participate in + * the achievement after this date. **Note:** It must be an RFC3339 timestamp + * string. + * * @return endDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. ") @@ -510,66 +531,64 @@ public OffsetDateTime getEndDate() { return endDate; } - public void setEndDate(OffsetDateTime endDate) { this.endDate = endDate; } + public Achievement campaignId(Long campaignId) { - public Achievement campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign the achievement belongs to. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign the achievement belongs to.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public Achievement userId(Long userId) { - public Achievement userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * ID of the user that created this achievement. + * * @return userId - **/ + **/ @ApiModelProperty(example = "1234", required = true, value = "ID of the user that created this achievement.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public Achievement createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** - * Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. + /** + * Name of the user that created the achievement. **Note**: This is not + * available if the user has been deleted. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. ") @@ -577,22 +596,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public Achievement hasProgress(Boolean hasProgress) { - + this.hasProgress = hasProgress; return this; } - /** + /** * Indicates if a customer has made progress in the achievement. + * * @return hasProgress - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates if a customer has made progress in the achievement.") @@ -600,22 +618,21 @@ public Boolean getHasProgress() { return hasProgress; } - public void setHasProgress(Boolean hasProgress) { this.hasProgress = hasProgress; } - public Achievement status(StatusEnum status) { - + this.status = status; return this; } - /** + /** * The status of the achievement. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "inprogress", value = "The status of the achievement.") @@ -623,12 +640,10 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -659,10 +674,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, recurrencePolicy, activationPolicy, fixedStartDate, endDate, campaignId, userId, createdBy, hasProgress, status); + return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, recurrencePolicy, + activationPolicy, fixedStartDate, endDate, campaignId, userId, createdBy, hasProgress, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -700,4 +715,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AchievementAdditionalProperties.java b/src/main/java/one/talon/model/AchievementAdditionalProperties.java index ba64d1d3..43835bda 100644 --- a/src/main/java/one/talon/model/AchievementAdditionalProperties.java +++ b/src/main/java/one/talon/model/AchievementAdditionalProperties.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,11 +30,11 @@ public class AchievementAdditionalProperties { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) @@ -51,11 +50,11 @@ public class AchievementAdditionalProperties { @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { INPROGRESS("inprogress"), - + EXPIRED("expired"), - + NOT_STARTED("not_started"), - + COMPLETED("completed"); private String value; @@ -90,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -100,61 +99,60 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public AchievementAdditionalProperties campaignId(Long campaignId) { - public AchievementAdditionalProperties campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign the achievement belongs to. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign the achievement belongs to.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public AchievementAdditionalProperties userId(Long userId) { - public AchievementAdditionalProperties userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * ID of the user that created this achievement. + * * @return userId - **/ + **/ @ApiModelProperty(example = "1234", required = true, value = "ID of the user that created this achievement.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public AchievementAdditionalProperties createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** - * Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. + /** + * Name of the user that created the achievement. **Note**: This is not + * available if the user has been deleted. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. ") @@ -162,22 +160,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public AchievementAdditionalProperties hasProgress(Boolean hasProgress) { - + this.hasProgress = hasProgress; return this; } - /** + /** * Indicates if a customer has made progress in the achievement. + * * @return hasProgress - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates if a customer has made progress in the achievement.") @@ -185,22 +182,21 @@ public Boolean getHasProgress() { return hasProgress; } - public void setHasProgress(Boolean hasProgress) { this.hasProgress = hasProgress; } - public AchievementAdditionalProperties status(StatusEnum status) { - + this.status = status; return this; } - /** + /** * The status of the achievement. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "inprogress", value = "The status of the achievement.") @@ -208,12 +204,10 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -235,7 +229,6 @@ public int hashCode() { return Objects.hash(campaignId, userId, createdBy, hasProgress, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -261,4 +254,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AchievementProgressWithDefinition.java b/src/main/java/one/talon/model/AchievementProgressWithDefinition.java index 68147801..cfa81e9e 100644 --- a/src/main/java/one/talon/model/AchievementProgressWithDefinition.java +++ b/src/main/java/one/talon/model/AchievementProgressWithDefinition.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,11 +37,11 @@ public class AchievementProgressWithDefinition { @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { INPROGRESS("inprogress"), - + COMPLETED("completed"), - + EXPIRED("expired"), - + NOT_STARTED("not_started"); private String value; @@ -77,7 +76,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -105,7 +104,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Integer achievementId; + private Long achievementId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -121,19 +120,22 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) private BigDecimal target; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. */ @JsonAdapter(AchievementRecurrencePolicyEnum.Adapter.class) public enum AchievementRecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - + ON_EXPIRATION("on_expiration"); private String value; @@ -162,13 +164,14 @@ public static AchievementRecurrencePolicyEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AchievementRecurrencePolicyEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AchievementRecurrencePolicyEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public AchievementRecurrencePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return AchievementRecurrencePolicyEnum.fromValue(value); } } @@ -179,12 +182,16 @@ public AchievementRecurrencePolicyEnum read(final JsonReader jsonReader) throws private AchievementRecurrencePolicyEnum achievementRecurrencePolicy; /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. */ @JsonAdapter(AchievementActivationPolicyEnum.Adapter.class) public enum AchievementActivationPolicyEnum { USER_ACTION("user_action"), - + FIXED_SCHEDULE("fixed_schedule"); private String value; @@ -213,13 +220,14 @@ public static AchievementActivationPolicyEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AchievementActivationPolicyEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AchievementActivationPolicyEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public AchievementActivationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return AchievementActivationPolicyEnum.fromValue(value); } } @@ -237,61 +245,59 @@ public AchievementActivationPolicyEnum read(final JsonReader jsonReader) throws @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_END_DATE) private OffsetDateTime achievementEndDate; - public AchievementProgressWithDefinition status(StatusEnum status) { - + this.status = status; return this; } - /** + /** * The status of the achievement. + * * @return status - **/ + **/ @ApiModelProperty(example = "completed", required = true, value = "The status of the achievement.") public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - public AchievementProgressWithDefinition progress(BigDecimal progress) { - + this.progress = progress; return this; } - /** + /** * The current progress of the customer in the achievement. + * * @return progress - **/ + **/ @ApiModelProperty(example = "10.0", required = true, value = "The current progress of the customer in the achievement.") public BigDecimal getProgress() { return progress; } - public void setProgress(BigDecimal progress) { this.progress = progress; } - public AchievementProgressWithDefinition startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which the customer started the achievement. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp at which the customer started the achievement.") @@ -299,22 +305,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public AchievementProgressWithDefinition completionDate(OffsetDateTime completionDate) { - + this.completionDate = completionDate; return this; } - /** + /** * Timestamp at which point the customer completed the achievement. + * * @return completionDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp at which point the customer completed the achievement.") @@ -322,22 +327,21 @@ public OffsetDateTime getCompletionDate() { return completionDate; } - public void setCompletionDate(OffsetDateTime completionDate) { this.completionDate = completionDate; } - public AchievementProgressWithDefinition endDate(OffsetDateTime endDate) { - + this.endDate = endDate; return this; } - /** + /** * Timestamp at which point the achievement ends and resets for the customer. + * * @return endDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp at which point the achievement ends and resets for the customer.") @@ -345,132 +349,127 @@ public OffsetDateTime getEndDate() { return endDate; } - public void setEndDate(OffsetDateTime endDate) { this.endDate = endDate; } + public AchievementProgressWithDefinition achievementId(Long achievementId) { - public AchievementProgressWithDefinition achievementId(Integer achievementId) { - this.achievementId = achievementId; return this; } - /** + /** * The internal ID of the achievement. + * * @return achievementId - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The internal ID of the achievement.") - public Integer getAchievementId() { + public Long getAchievementId() { return achievementId; } - - public void setAchievementId(Integer achievementId) { + public void setAchievementId(Long achievementId) { this.achievementId = achievementId; } - public AchievementProgressWithDefinition name(String name) { - + this.name = name; return this; } - /** - * The internal name of the achievement used in API requests. + /** + * The internal name of the achievement used in API requests. + * * @return name - **/ + **/ @ApiModelProperty(example = "FreeCoffee10Orders", required = true, value = "The internal name of the achievement used in API requests. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public AchievementProgressWithDefinition title(String title) { - + this.title = title; return this; } - /** + /** * The display name of the achievement in the Campaign Manager. + * * @return title - **/ + **/ @ApiModelProperty(example = "50% off on 50th purchase.", required = true, value = "The display name of the achievement in the Campaign Manager.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public AchievementProgressWithDefinition description(String description) { - + this.description = description; return this; } - /** + /** * The description of the achievement in the Campaign Manager. + * * @return description - **/ + **/ @ApiModelProperty(example = "50% off for every 50th purchase in a year.", required = true, value = "The description of the achievement in the Campaign Manager.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public AchievementProgressWithDefinition campaignId(Long campaignId) { - public AchievementProgressWithDefinition campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign the achievement belongs to. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The ID of the campaign the achievement belongs to.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public AchievementProgressWithDefinition target(BigDecimal target) { - + this.target = target; return this; } - /** - * The required number of actions or the transactional milestone to complete the achievement. + /** + * The required number of actions or the transactional milestone to complete the + * achievement. + * * @return target - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10.0", value = "The required number of actions or the transactional milestone to complete the achievement.") @@ -478,66 +477,74 @@ public BigDecimal getTarget() { return target; } - public void setTarget(BigDecimal target) { this.target = target; } + public AchievementProgressWithDefinition achievementRecurrencePolicy( + AchievementRecurrencePolicyEnum achievementRecurrencePolicy) { - public AchievementProgressWithDefinition achievementRecurrencePolicy(AchievementRecurrencePolicyEnum achievementRecurrencePolicy) { - this.achievementRecurrencePolicy = achievementRecurrencePolicy; return this; } - /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + /** + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. + * * @return achievementRecurrencePolicy - **/ + **/ @ApiModelProperty(example = "no_recurrence", required = true, value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") public AchievementRecurrencePolicyEnum getAchievementRecurrencePolicy() { return achievementRecurrencePolicy; } - public void setAchievementRecurrencePolicy(AchievementRecurrencePolicyEnum achievementRecurrencePolicy) { this.achievementRecurrencePolicy = achievementRecurrencePolicy; } + public AchievementProgressWithDefinition achievementActivationPolicy( + AchievementActivationPolicyEnum achievementActivationPolicy) { - public AchievementProgressWithDefinition achievementActivationPolicy(AchievementActivationPolicyEnum achievementActivationPolicy) { - this.achievementActivationPolicy = achievementActivationPolicy; return this; } - /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + /** + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. + * * @return achievementActivationPolicy - **/ + **/ @ApiModelProperty(example = "fixed_schedule", required = true, value = "The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. ") public AchievementActivationPolicyEnum getAchievementActivationPolicy() { return achievementActivationPolicy; } - public void setAchievementActivationPolicy(AchievementActivationPolicyEnum achievementActivationPolicy) { this.achievementActivationPolicy = achievementActivationPolicy; } - public AchievementProgressWithDefinition achievementFixedStartDate(OffsetDateTime achievementFixedStartDate) { - + this.achievementFixedStartDate = achievementFixedStartDate; return this; } - /** - * The achievement's start date when `achievementActivationPolicy` is equal to `fixed_schedule`. **Note:** It is an RFC3339 timestamp string. + /** + * The achievement's start date when `achievementActivationPolicy` + * is equal to `fixed_schedule`. **Note:** It is an RFC3339 timestamp + * string. + * * @return achievementFixedStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's start date when `achievementActivationPolicy` is equal to `fixed_schedule`. **Note:** It is an RFC3339 timestamp string. ") @@ -545,22 +552,22 @@ public OffsetDateTime getAchievementFixedStartDate() { return achievementFixedStartDate; } - public void setAchievementFixedStartDate(OffsetDateTime achievementFixedStartDate) { this.achievementFixedStartDate = achievementFixedStartDate; } - public AchievementProgressWithDefinition achievementEndDate(OffsetDateTime achievementEndDate) { - + this.achievementEndDate = achievementEndDate; return this; } - /** - * The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It is an RFC3339 timestamp string. + /** + * The achievement's end date. If defined, customers cannot participate in + * the achievement after this date. **Note:** It is an RFC3339 timestamp string. + * * @return achievementEndDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It is an RFC3339 timestamp string. ") @@ -568,12 +575,10 @@ public OffsetDateTime getAchievementEndDate() { return achievementEndDate; } - public void setAchievementEndDate(OffsetDateTime achievementEndDate) { this.achievementEndDate = achievementEndDate; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -594,18 +599,21 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.description, achievementProgressWithDefinition.description) && Objects.equals(this.campaignId, achievementProgressWithDefinition.campaignId) && Objects.equals(this.target, achievementProgressWithDefinition.target) && - Objects.equals(this.achievementRecurrencePolicy, achievementProgressWithDefinition.achievementRecurrencePolicy) && - Objects.equals(this.achievementActivationPolicy, achievementProgressWithDefinition.achievementActivationPolicy) && + Objects.equals(this.achievementRecurrencePolicy, achievementProgressWithDefinition.achievementRecurrencePolicy) + && + Objects.equals(this.achievementActivationPolicy, achievementProgressWithDefinition.achievementActivationPolicy) + && Objects.equals(this.achievementFixedStartDate, achievementProgressWithDefinition.achievementFixedStartDate) && Objects.equals(this.achievementEndDate, achievementProgressWithDefinition.achievementEndDate); } @Override public int hashCode() { - return Objects.hash(status, progress, startDate, completionDate, endDate, achievementId, name, title, description, campaignId, target, achievementRecurrencePolicy, achievementActivationPolicy, achievementFixedStartDate, achievementEndDate); + return Objects.hash(status, progress, startDate, completionDate, endDate, achievementId, name, title, description, + campaignId, target, achievementRecurrencePolicy, achievementActivationPolicy, achievementFixedStartDate, + achievementEndDate); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -641,4 +649,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AchievementStatusEntry.java b/src/main/java/one/talon/model/AchievementStatusEntry.java index ebac586b..358628d8 100644 --- a/src/main/java/one/talon/model/AchievementStatusEntry.java +++ b/src/main/java/one/talon/model/AchievementStatusEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class AchievementStatusEntry { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -66,12 +65,15 @@ public class AchievementStatusEntry { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - + ON_EXPIRATION("on_expiration"); private String value; @@ -106,7 +108,7 @@ public void write(final JsonWriter jsonWriter, final RecurrencePolicyEnum enumer @Override public RecurrencePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return RecurrencePolicyEnum.fromValue(value); } } @@ -117,12 +119,16 @@ public RecurrencePolicyEnum read(final JsonReader jsonReader) throws IOException private RecurrencePolicyEnum recurrencePolicy; /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. */ @JsonAdapter(ActivationPolicyEnum.Adapter.class) public enum ActivationPolicyEnum { USER_ACTION("user_action"), - + FIXED_SCHEDULE("fixed_schedule"); private String value; @@ -157,7 +163,7 @@ public void write(final JsonWriter jsonWriter, final ActivationPolicyEnum enumer @Override public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ActivationPolicyEnum.fromValue(value); } } @@ -177,7 +183,7 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; /** * The status of the achievement. @@ -185,7 +191,7 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { ACTIVE("active"), - + SCHEDULED("scheduled"); private String value; @@ -220,7 +226,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -234,149 +240,159 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CURRENT_PROGRESS) private AchievementProgress currentProgress; + public AchievementStatusEntry id(Long id) { - public AchievementStatusEntry id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AchievementStatusEntry created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public AchievementStatusEntry name(String name) { - + this.name = name; return this; } - /** - * The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. + /** + * The internal name of the achievement used in API requests. **Note**: The name + * should start with a letter. This cannot be changed after the achievement has + * been created. + * * @return name - **/ + **/ @ApiModelProperty(example = "Order50Discount", required = true, value = "The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public AchievementStatusEntry title(String title) { - + this.title = title; return this; } - /** + /** * The display name for the achievement in the Campaign Manager. + * * @return title - **/ + **/ @ApiModelProperty(example = "50% off on 50th purchase.", required = true, value = "The display name for the achievement in the Campaign Manager.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public AchievementStatusEntry description(String description) { - + this.description = description; return this; } - /** + /** * A description of the achievement. + * * @return description - **/ + **/ @ApiModelProperty(example = "50% off for every 50th purchase in a year.", required = true, value = "A description of the achievement.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public AchievementStatusEntry target(BigDecimal target) { - + this.target = target; return this; } - /** - * The required number of actions or the transactional milestone to complete the achievement. + /** + * The required number of actions or the transactional milestone to complete the + * achievement. + * * @return target - **/ + **/ @ApiModelProperty(example = "50.0", required = true, value = "The required number of actions or the transactional milestone to complete the achievement.") public BigDecimal getTarget() { return target; } - public void setTarget(BigDecimal target) { this.target = target; } - public AchievementStatusEntry period(String period) { - + this.period = period; return this; } - /** - * The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. + /** + * The relative duration after which the achievement ends and resets for a + * particular customer profile. **Note**: The `period` does not start + * when the achievement is created. The period is a **positive real number** + * followed by one letter indicating the time unit. Examples: `30s`, + * `40m`, `1h`, `5D`, `7W`, + * `10M`, `15Y`. Available units: - `s`: seconds - + * `m`: minutes - `h`: hours - `D`: days - + * `W`: weeks - `M`: months - `Y`: years You can + * also round certain units down to the beginning of period and up to the end of + * period.: - `_D` for rounding down days only. Signifies the start of + * the day. Example: `30D_D` - `_U` for rounding up days, + * weeks, months and years. Signifies the end of the day, week, month or year. + * Example: `23W_U` **Note**: You can either use the round down and + * round up option or set an absolute period. + * * @return period - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1Y", value = "The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. ") @@ -384,22 +400,21 @@ public String getPeriod() { return period; } - public void setPeriod(String period) { this.period = period; } - public AchievementStatusEntry periodEndOverride(TimePoint periodEndOverride) { - + this.periodEndOverride = periodEndOverride; return this; } - /** + /** * Get periodEndOverride + * * @return periodEndOverride - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -407,22 +422,24 @@ public TimePoint getPeriodEndOverride() { return periodEndOverride; } - public void setPeriodEndOverride(TimePoint periodEndOverride) { this.periodEndOverride = periodEndOverride; } - public AchievementStatusEntry recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { - + this.recurrencePolicy = recurrencePolicy; return this; } - /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + /** + * The policy that determines if and how the achievement recurs. - + * `no_recurrence`: The achievement can be completed only once. - + * `on_expiration`: The achievement resets after it expires and + * becomes available again. + * * @return recurrencePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") @@ -430,22 +447,25 @@ public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; } - public void setRecurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { this.recurrencePolicy = recurrencePolicy; } - public AchievementStatusEntry activationPolicy(ActivationPolicyEnum activationPolicy) { - + this.activationPolicy = activationPolicy; return this; } - /** - * The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. + /** + * The policy that determines how the achievement starts, ends, or resets. - + * `user_action`: The achievement ends or resets relative to when the + * customer started the achievement. - `fixed_schedule`: The + * achievement starts, ends, or resets for all customers following a fixed + * schedule. + * * @return activationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "fixed_schedule", value = "The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. ") @@ -453,22 +473,22 @@ public ActivationPolicyEnum getActivationPolicy() { return activationPolicy; } - public void setActivationPolicy(ActivationPolicyEnum activationPolicy) { this.activationPolicy = activationPolicy; } - public AchievementStatusEntry fixedStartDate(OffsetDateTime fixedStartDate) { - + this.fixedStartDate = fixedStartDate; return this; } - /** - * The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. + /** + * The achievement's start date when `activationPolicy` is set to + * `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. + * * @return fixedStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. ") @@ -476,22 +496,23 @@ public OffsetDateTime getFixedStartDate() { return fixedStartDate; } - public void setFixedStartDate(OffsetDateTime fixedStartDate) { this.fixedStartDate = fixedStartDate; } - public AchievementStatusEntry endDate(OffsetDateTime endDate) { - + this.endDate = endDate; return this; } - /** - * The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. + /** + * The achievement's end date. If defined, customers cannot participate in + * the achievement after this date. **Note:** It must be an RFC3339 timestamp + * string. + * * @return endDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. ") @@ -499,45 +520,43 @@ public OffsetDateTime getEndDate() { return endDate; } - public void setEndDate(OffsetDateTime endDate) { this.endDate = endDate; } + public AchievementStatusEntry campaignId(Long campaignId) { - public AchievementStatusEntry campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign the achievement belongs to. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the campaign the achievement belongs to.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public AchievementStatusEntry status(StatusEnum status) { - + this.status = status; return this; } - /** + /** * The status of the achievement. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "active", value = "The status of the achievement.") @@ -545,22 +564,21 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - public AchievementStatusEntry currentProgress(AchievementProgress currentProgress) { - + this.currentProgress = currentProgress; return this; } - /** + /** * Get currentProgress + * * @return currentProgress - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -568,12 +586,10 @@ public AchievementProgress getCurrentProgress() { return currentProgress; } - public void setCurrentProgress(AchievementProgress currentProgress) { this.currentProgress = currentProgress; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -602,10 +618,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, recurrencePolicy, activationPolicy, fixedStartDate, endDate, campaignId, status, currentProgress); + return Objects.hash(id, created, name, title, description, target, period, periodEndOverride, recurrencePolicy, + activationPolicy, fixedStartDate, endDate, campaignId, status, currentProgress); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -641,4 +657,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AddFreeItemEffectProps.java b/src/main/java/one/talon/model/AddFreeItemEffectProps.java index 3db7bc49..bbd9f345 100644 --- a/src/main/java/one/talon/model/AddFreeItemEffectProps.java +++ b/src/main/java/one/talon/model/AddFreeItemEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,7 +24,9 @@ import java.io.IOException; /** - * The properties specific to the \"addFreeItem\" effect. This gets triggered whenever a validated rule contained an \"add free item\" effect. + * The properties specific to the \"addFreeItem\" effect. This gets + * triggered whenever a validated rule contained an \"add free item\" + * effect. */ @ApiModel(description = "The properties specific to the \"addFreeItem\" effect. This gets triggered whenever a validated rule contained an \"add free item\" effect.") @@ -40,76 +41,72 @@ public class AddFreeItemEffectProps { public static final String SERIALIZED_NAME_DESIRED_QUANTITY = "desiredQuantity"; @SerializedName(SERIALIZED_NAME_DESIRED_QUANTITY) - private Integer desiredQuantity; - + private Long desiredQuantity; public AddFreeItemEffectProps sku(String sku) { - + this.sku = sku; return this; } - /** + /** * SKU of the item that needs to be added. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU1241028", required = true, value = "SKU of the item that needs to be added.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } - public AddFreeItemEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The name / description of the effect + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name / description of the effect") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public AddFreeItemEffectProps desiredQuantity(Long desiredQuantity) { - public AddFreeItemEffectProps desiredQuantity(Integer desiredQuantity) { - this.desiredQuantity = desiredQuantity; return this; } - /** + /** * The original quantity in case a partial reward was applied. + * * @return desiredQuantity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The original quantity in case a partial reward was applied.") - public Integer getDesiredQuantity() { + public Long getDesiredQuantity() { return desiredQuantity; } - - public void setDesiredQuantity(Integer desiredQuantity) { + public void setDesiredQuantity(Long desiredQuantity) { this.desiredQuantity = desiredQuantity; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +126,6 @@ public int hashCode() { return Objects.hash(sku, name, desiredQuantity); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +149,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AddLoyaltyPoints.java b/src/main/java/one/talon/model/AddLoyaltyPoints.java index b5df785d..ef23c707 100644 --- a/src/main/java/one/talon/model/AddLoyaltyPoints.java +++ b/src/main/java/one/talon/model/AddLoyaltyPoints.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -62,43 +61,42 @@ public class AddLoyaltyPoints { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; - + private Long applicationId; public AddLoyaltyPoints points(BigDecimal points) { - + this.points = points; return this; } - /** + /** * Amount of loyalty points. * minimum: 0 * maximum: 999999999999.99 + * * @return points - **/ + **/ @ApiModelProperty(example = "300.0", required = true, value = "Amount of loyalty points.") public BigDecimal getPoints() { return points; } - public void setPoints(BigDecimal points) { this.points = points; } - public AddLoyaltyPoints name(String name) { - + this.name = name; return this; } - /** + /** * Name / reason for the point addition. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Compensation", value = "Name / reason for the point addition.") @@ -106,22 +104,30 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public AddLoyaltyPoints validityDuration(String validityDuration) { - + this.validityDuration = validityDuration; return this; } - /** - * The time format is either: - `immediate` or, - an **integer** followed by one 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. If passed, `validUntil` should be omitted. + /** + * The time format is either: - `immediate` or, - an **integer** + * followed by one 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. If passed, `validUntil` should be omitted. + * * @return validityDuration - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5D", value = "The time format is either: - `immediate` or, - an **integer** followed by one 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. If passed, `validUntil` should be omitted. ") @@ -129,22 +135,22 @@ public String getValidityDuration() { return validityDuration; } - public void setValidityDuration(String validityDuration) { this.validityDuration = validityDuration; } - public AddLoyaltyPoints validUntil(OffsetDateTime validUntil) { - + this.validUntil = validUntil; return this; } - /** - * Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted. + /** + * Date and time when points should expire. The value should be provided in RFC + * 3339 format. If passed, `validityDuration` should be omitted. + * * @return validUntil - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted. ") @@ -152,22 +158,30 @@ public OffsetDateTime getValidUntil() { return validUntil; } - public void setValidUntil(OffsetDateTime validUntil) { this.validUntil = validUntil; } - public AddLoyaltyPoints pendingDuration(String pendingDuration) { - + this.pendingDuration = pendingDuration; return this; } - /** - * The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one 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. + /** + * The amount of time before the points are considered valid. The time format is + * either: - `immediate` or, - an **integer** followed by one 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. + * * @return pendingDuration - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "12h", value = "The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one 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. ") @@ -175,22 +189,23 @@ public String getPendingDuration() { return pendingDuration; } - public void setPendingDuration(String pendingDuration) { this.pendingDuration = pendingDuration; } - public AddLoyaltyPoints pendingUntil(OffsetDateTime pendingUntil) { - + this.pendingUntil = pendingUntil; return this; } - /** - * Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. + /** + * Date and time after the points are considered valid. The value should be + * provided in RFC 3339 format. If passed, `pendingDuration` should be + * omitted. + * * @return pendingUntil - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. ") @@ -198,22 +213,22 @@ public OffsetDateTime getPendingUntil() { return pendingUntil; } - public void setPendingUntil(OffsetDateTime pendingUntil) { this.pendingUntil = pendingUntil; } - public AddLoyaltyPoints subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** - * ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. + /** + * ID of the subledger the points are added to. If there is no existing + * subledger with this ID, the subledger is created automatically. + * * @return subledgerId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sub-123", value = "ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically.") @@ -221,35 +236,33 @@ public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } + public AddLoyaltyPoints applicationId(Long applicationId) { - public AddLoyaltyPoints applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** - * ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. + /** + * ID of the Application that is connected to the loyalty program. It is + * displayed in your Talon.One deployment URL. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -271,10 +284,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(points, name, validityDuration, validUntil, pendingDuration, pendingUntil, subledgerId, applicationId); + return Objects.hash(points, name, validityDuration, validUntil, pendingDuration, pendingUntil, subledgerId, + applicationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -303,4 +316,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java index e2b4f387..2f01b433 100644 --- a/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -27,7 +26,10 @@ import org.threeten.bp.OffsetDateTime; /** - * The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained an \"add loyalty\" effect. These points are automatically stored and managed inside Talon.One. + * The properties specific to the \"addLoyaltyPoints\" effect. This + * gets triggered whenever a validated rule contained an \"add + * loyalty\" effect. These points are automatically stored and managed + * inside Talon.One. */ @ApiModel(description = "The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained an \"add loyalty\" effect. These points are automatically stored and managed inside Talon.One. ") @@ -38,7 +40,7 @@ public class AddLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -82,111 +84,108 @@ public class AddLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Integer bundleIndex; + private Long bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) private String bundleName; - public AddLoyaltyPointsEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The name / description of this loyalty point addition. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name / description of this loyalty point addition.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public AddLoyaltyPointsEffectProps programId(Long programId) { - public AddLoyaltyPointsEffectProps programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * The ID of the loyalty program where these points were added. + * * @return programId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public AddLoyaltyPointsEffectProps subLedgerId(String subLedgerId) { - + this.subLedgerId = subLedgerId; return this; } - /** - * The ID of the subledger within the loyalty program where these points were added. + /** + * The ID of the subledger within the loyalty program where these points were + * added. + * * @return subLedgerId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the subledger within the loyalty program where these points were added.") public String getSubLedgerId() { return subLedgerId; } - public void setSubLedgerId(String subLedgerId) { this.subLedgerId = subLedgerId; } - public AddLoyaltyPointsEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The amount of points that were added. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The amount of points that were added.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public AddLoyaltyPointsEffectProps desiredValue(BigDecimal desiredValue) { - + this.desiredValue = desiredValue; return this; } - /** + /** * The original amount of loyalty points to be awarded. + * * @return desiredValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The original amount of loyalty points to be awarded.") @@ -194,44 +193,42 @@ public BigDecimal getDesiredValue() { return desiredValue; } - public void setDesiredValue(BigDecimal desiredValue) { this.desiredValue = desiredValue; } - public AddLoyaltyPointsEffectProps recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The user for whom these points were added. + * * @return recipientIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The user for whom these points were added.") public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public AddLoyaltyPointsEffectProps startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Date after which points will be valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date after which points will be valid.") @@ -239,22 +236,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public AddLoyaltyPointsEffectProps expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Date after which points will expire. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date after which points will expire.") @@ -262,44 +258,43 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public AddLoyaltyPointsEffectProps transactionUUID(String transactionUUID) { - + this.transactionUUID = transactionUUID; return this; } - /** + /** * The identifier of this addition in the loyalty ledger. + * * @return transactionUUID - **/ + **/ @ApiModelProperty(required = true, value = "The identifier of this addition in the loyalty ledger.") public String getTransactionUUID() { return transactionUUID; } - public void setTransactionUUID(String transactionUUID) { this.transactionUUID = transactionUUID; } - public AddLoyaltyPointsEffectProps cartItemPosition(BigDecimal cartItemPosition) { - + this.cartItemPosition = cartItemPosition; return this; } - /** - * The index of the item in the cart items list on which the loyal points addition should be applied. + /** + * The index of the item in the cart items list on which the loyal points + * addition should be applied. + * * @return cartItemPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the item in the cart items list on which the loyal points addition should be applied.") @@ -307,22 +302,22 @@ public BigDecimal getCartItemPosition() { return cartItemPosition; } - public void setCartItemPosition(BigDecimal cartItemPosition) { this.cartItemPosition = cartItemPosition; } - public AddLoyaltyPointsEffectProps cartItemSubPosition(BigDecimal cartItemSubPosition) { - + this.cartItemSubPosition = cartItemSubPosition; return this; } - /** - * For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied. + /** + * For cart items with `quantity` > 1, the sub position indicates + * to which item the loyalty points addition is applied. + * * @return cartItemSubPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied. ") @@ -330,22 +325,21 @@ public BigDecimal getCartItemSubPosition() { return cartItemSubPosition; } - public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { this.cartItemSubPosition = cartItemSubPosition; } - public AddLoyaltyPointsEffectProps cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -353,45 +347,44 @@ public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } + public AddLoyaltyPointsEffectProps bundleIndex(Long bundleIndex) { - public AddLoyaltyPointsEffectProps bundleIndex(Integer bundleIndex) { - this.bundleIndex = bundleIndex; return this; } - /** - * The position of the bundle in a list of item bundles created from the same bundle definition. + /** + * The position of the bundle in a list of item bundles created from the same + * bundle definition. + * * @return bundleIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Integer getBundleIndex() { + public Long getBundleIndex() { return bundleIndex; } - - public void setBundleIndex(Integer bundleIndex) { + public void setBundleIndex(Long bundleIndex) { this.bundleIndex = bundleIndex; } - public AddLoyaltyPointsEffectProps bundleName(String bundleName) { - + this.bundleName = bundleName; return this; } - /** + /** * The name of the bundle definition. + * * @return bundleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the bundle definition.") @@ -399,12 +392,10 @@ public String getBundleName() { return bundleName; } - public void setBundleName(String bundleName) { this.bundleName = bundleName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -432,10 +423,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, programId, subLedgerId, value, desiredValue, recipientIntegrationId, startDate, expiryDate, transactionUUID, cartItemPosition, cartItemSubPosition, cardIdentifier, bundleIndex, bundleName); + return Objects.hash(name, programId, subLedgerId, value, desiredValue, recipientIntegrationId, startDate, + expiryDate, transactionUUID, cartItemPosition, cartItemSubPosition, cardIdentifier, bundleIndex, bundleName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -470,4 +461,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AddToAudienceEffectProps.java b/src/main/java/one/talon/model/AddToAudienceEffectProps.java index 72f38fa8..0c1f12a4 100644 --- a/src/main/java/one/talon/model/AddToAudienceEffectProps.java +++ b/src/main/java/one/talon/model/AddToAudienceEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,14 +24,16 @@ import java.io.IOException; /** - * The properties specific to the \"addToAudience\" effect. This gets triggered whenever a validated rule contains an \"addToAudience\" effect. + * The properties specific to the \"addToAudience\" effect. This gets + * triggered whenever a validated rule contains an \"addToAudience\" + * effect. */ @ApiModel(description = "The properties specific to the \"addToAudience\" effect. This gets triggered whenever a validated rule contains an \"addToAudience\" effect.") public class AddToAudienceEffectProps { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Integer audienceId; + private Long audienceId; public static final String SERIALIZED_NAME_AUDIENCE_NAME = "audienceName"; @SerializedName(SERIALIZED_NAME_AUDIENCE_NAME) @@ -44,42 +45,41 @@ public class AddToAudienceEffectProps { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; + public AddToAudienceEffectProps audienceId(Long audienceId) { - public AddToAudienceEffectProps audienceId(Integer audienceId) { - this.audienceId = audienceId; return this; } - /** + /** * The internal ID of the audience. + * * @return audienceId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10", value = "The internal ID of the audience.") - public Integer getAudienceId() { + public Long getAudienceId() { return audienceId; } - - public void setAudienceId(Integer audienceId) { + public void setAudienceId(Long audienceId) { this.audienceId = audienceId; } - public AddToAudienceEffectProps audienceName(String audienceName) { - + this.audienceName = audienceName; return this; } - /** + /** * The name of the audience. + * * @return audienceName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My audience", value = "The name of the audience.") @@ -87,22 +87,21 @@ public String getAudienceName() { return audienceName; } - public void setAudienceName(String audienceName) { this.audienceName = audienceName; } - public AddToAudienceEffectProps profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** + /** * The ID of the customer profile in the third-party integration platform. + * * @return profileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The ID of the customer profile in the third-party integration platform.") @@ -110,35 +109,32 @@ public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public AddToAudienceEffectProps profileId(Long profileId) { - public AddToAudienceEffectProps profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The internal ID of the customer profile. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "150", value = "The internal ID of the customer profile.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,7 +155,6 @@ public int hashCode() { return Objects.hash(audienceId, audienceName, profileIntegrationId, profileId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -184,4 +179,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AdditionalCampaignProperties.java b/src/main/java/one/talon/model/AdditionalCampaignProperties.java index 305e9364..ba8ee986 100644 --- a/src/main/java/one/talon/model/AdditionalCampaignProperties.java +++ b/src/main/java/one/talon/model/AdditionalCampaignProperties.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -40,11 +39,11 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Integer couponRedemptionCount; + private Long couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Integer referralRedemptionCount; + private Long referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -52,27 +51,27 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Integer discountEffectCount; + private Long discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Integer couponCreationCount; + private Long couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Integer customEffectCount; + private Long customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Integer referralCreationCount; + private Long referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Integer addFreeItemEffectCount; + private Long addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Integer awardedGiveawaysCount; + private Long awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -80,7 +79,7 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer createdLoyaltyPointsEffectCount; + private Long createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -88,15 +87,15 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer redeemedLoyaltyPointsEffectCount; + private Long redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Integer callApiEffectCount; + private Long callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Integer reservecouponEffectCount; + private Long reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -116,7 +115,7 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; /** * The campaign state displayed in the Campaign Manager. @@ -124,15 +123,15 @@ public class AdditionalCampaignProperties { @JsonAdapter(FrontendStateEnum.Adapter.class) public enum FrontendStateEnum { EXPIRED("expired"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + DISABLED("disabled"), - + ARCHIVED("archived"), - + STAGED("staged"); private String value; @@ -167,7 +166,7 @@ public void write(final JsonWriter jsonWriter, final FrontendStateEnum enumerati @Override public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FrontendStateEnum.fromValue(value); } } @@ -183,11 +182,10 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALUE_MAPS_IDS = "valueMapsIds"; @SerializedName(SERIALIZED_NAME_VALUE_MAPS_IDS) - private List valueMapsIds = null; - + private List valueMapsIds = null; public AdditionalCampaignProperties budgets(List budgets) { - + this.budgets = budgets; return this; } @@ -200,10 +198,13 @@ public AdditionalCampaignProperties addBudgetsItem(CampaignBudget budgetsItem) { return this; } - /** - * A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. + /** + * A list of all the budgets that are defined by this campaign and their usage. + * **Note:** Budgets that are not defined do not appear in this list and their + * usage is not counted until they are defined. + * * @return budgets - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. ") @@ -211,68 +212,68 @@ public List getBudgets() { return budgets; } - public void setBudgets(List budgets) { this.budgets = budgets; } + public AdditionalCampaignProperties couponRedemptionCount(Long couponRedemptionCount) { - public AdditionalCampaignProperties couponRedemptionCount(Integer couponRedemptionCount) { - this.couponRedemptionCount = couponRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of coupons redeemed in the campaign. + * * @return couponRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Integer getCouponRedemptionCount() { + public Long getCouponRedemptionCount() { return couponRedemptionCount; } - - public void setCouponRedemptionCount(Integer couponRedemptionCount) { + public void setCouponRedemptionCount(Long couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } + public AdditionalCampaignProperties referralRedemptionCount(Long referralRedemptionCount) { - public AdditionalCampaignProperties referralRedemptionCount(Integer referralRedemptionCount) { - this.referralRedemptionCount = referralRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of referral codes redeemed in the campaign. + * * @return referralRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Integer getReferralRedemptionCount() { + public Long getReferralRedemptionCount() { return referralRedemptionCount; } - - public void setReferralRedemptionCount(Integer referralRedemptionCount) { + public void setReferralRedemptionCount(Long referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } - public AdditionalCampaignProperties discountCount(BigDecimal discountCount) { - + this.discountCount = discountCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total amount of discounts redeemed in the campaign. + * * @return discountCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "288.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. ") @@ -280,160 +281,168 @@ public BigDecimal getDiscountCount() { return discountCount; } - public void setDiscountCount(BigDecimal discountCount) { this.discountCount = discountCount; } + public AdditionalCampaignProperties discountEffectCount(Long discountEffectCount) { - public AdditionalCampaignProperties discountEffectCount(Integer discountEffectCount) { - this.discountEffectCount = discountEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times discounts were redeemed in this + * campaign. + * * @return discountEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Integer getDiscountEffectCount() { + public Long getDiscountEffectCount() { return discountEffectCount; } - - public void setDiscountEffectCount(Integer discountEffectCount) { + public void setDiscountEffectCount(Long discountEffectCount) { this.discountEffectCount = discountEffectCount; } + public AdditionalCampaignProperties couponCreationCount(Long couponCreationCount) { - public AdditionalCampaignProperties couponCreationCount(Integer couponCreationCount) { - this.couponCreationCount = couponCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of coupons created by rules in this + * campaign. + * * @return couponCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Integer getCouponCreationCount() { + public Long getCouponCreationCount() { return couponCreationCount; } - - public void setCouponCreationCount(Integer couponCreationCount) { + public void setCouponCreationCount(Long couponCreationCount) { this.couponCreationCount = couponCreationCount; } + public AdditionalCampaignProperties customEffectCount(Long customEffectCount) { - public AdditionalCampaignProperties customEffectCount(Integer customEffectCount) { - this.customEffectCount = customEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of custom effects triggered by rules in this + * campaign. + * * @return customEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Integer getCustomEffectCount() { + public Long getCustomEffectCount() { return customEffectCount; } - - public void setCustomEffectCount(Integer customEffectCount) { + public void setCustomEffectCount(Long customEffectCount) { this.customEffectCount = customEffectCount; } + public AdditionalCampaignProperties referralCreationCount(Long referralCreationCount) { - public AdditionalCampaignProperties referralCreationCount(Integer referralCreationCount) { - this.referralCreationCount = referralCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of referrals created by rules in this + * campaign. + * * @return referralCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Integer getReferralCreationCount() { + public Long getReferralCreationCount() { return referralCreationCount; } - - public void setReferralCreationCount(Integer referralCreationCount) { + public void setReferralCreationCount(Long referralCreationCount) { this.referralCreationCount = referralCreationCount; } + public AdditionalCampaignProperties addFreeItemEffectCount(Long addFreeItemEffectCount) { - public AdditionalCampaignProperties addFreeItemEffectCount(Integer addFreeItemEffectCount) { - this.addFreeItemEffectCount = addFreeItemEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times the [add free item + * effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) + * can be triggered in this campaign. + * * @return addFreeItemEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Integer getAddFreeItemEffectCount() { + public Long getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - - public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } + public AdditionalCampaignProperties awardedGiveawaysCount(Long awardedGiveawaysCount) { - public AdditionalCampaignProperties awardedGiveawaysCount(Integer awardedGiveawaysCount) { - this.awardedGiveawaysCount = awardedGiveawaysCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of giveaways awarded by rules in this + * campaign. + * * @return awardedGiveawaysCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Integer getAwardedGiveawaysCount() { + public Long getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - - public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } - public AdditionalCampaignProperties createdLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { - + this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points created by rules in this + * campaign. + * * @return createdLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. ") @@ -441,45 +450,47 @@ public BigDecimal getCreatedLoyaltyPointsCount() { return createdLoyaltyPointsCount; } - public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; } + public AdditionalCampaignProperties createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { - public AdditionalCampaignProperties createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { - this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point creation effects triggered + * by rules in this campaign. + * * @return createdLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Integer getCreatedLoyaltyPointsEffectCount() { + public Long getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - - public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } - public AdditionalCampaignProperties redeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { - + this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points redeemed by rules in this + * campaign. + * * @return redeemedLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. ") @@ -487,91 +498,93 @@ public BigDecimal getRedeemedLoyaltyPointsCount() { return redeemedLoyaltyPointsCount; } - public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; } + public AdditionalCampaignProperties redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { - public AdditionalCampaignProperties redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { - this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point redemption effects + * triggered by rules in this campaign. + * * @return redeemedLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Integer getRedeemedLoyaltyPointsEffectCount() { + public Long getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - - public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } + public AdditionalCampaignProperties callApiEffectCount(Long callApiEffectCount) { - public AdditionalCampaignProperties callApiEffectCount(Integer callApiEffectCount) { - this.callApiEffectCount = callApiEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of webhooks triggered by rules in this + * campaign. + * * @return callApiEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Integer getCallApiEffectCount() { + public Long getCallApiEffectCount() { return callApiEffectCount; } - - public void setCallApiEffectCount(Integer callApiEffectCount) { + public void setCallApiEffectCount(Long callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } + public AdditionalCampaignProperties reservecouponEffectCount(Long reservecouponEffectCount) { - public AdditionalCampaignProperties reservecouponEffectCount(Integer reservecouponEffectCount) { - this.reservecouponEffectCount = reservecouponEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of reserve coupon effects triggered by rules + * in this campaign. + * * @return reservecouponEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Integer getReservecouponEffectCount() { + public Long getReservecouponEffectCount() { return reservecouponEffectCount; } - - public void setReservecouponEffectCount(Integer reservecouponEffectCount) { + public void setReservecouponEffectCount(Long reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } - public AdditionalCampaignProperties lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** + /** * Timestamp of the most recent event received by this campaign. + * * @return lastActivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-11-10T23:00Z", value = "Timestamp of the most recent event received by this campaign.") @@ -579,22 +592,23 @@ public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public AdditionalCampaignProperties updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** - * Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. + /** + * Timestamp of the most recent update to the campaign's property. Updates + * to external entities used in this campaign are **not** registered by this + * property, such as collection or coupon updates. + * * @return updated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. ") @@ -602,22 +616,21 @@ public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - public AdditionalCampaignProperties createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** + /** * Name of the user who created this campaign if available. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user who created this campaign if available.") @@ -625,22 +638,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public AdditionalCampaignProperties updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign if available.") @@ -648,110 +660,104 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } + public AdditionalCampaignProperties templateId(Long templateId) { - public AdditionalCampaignProperties templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** + /** * The ID of the Campaign Template this Campaign was created from. + * * @return templateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - public AdditionalCampaignProperties frontendState(FrontendStateEnum frontendState) { - + this.frontendState = frontendState; return this; } - /** + /** * The campaign state displayed in the Campaign Manager. + * * @return frontendState - **/ + **/ @ApiModelProperty(example = "running", required = true, value = "The campaign state displayed in the Campaign Manager.") public FrontendStateEnum getFrontendState() { return frontendState; } - public void setFrontendState(FrontendStateEnum frontendState) { this.frontendState = frontendState; } - public AdditionalCampaignProperties storesImported(Boolean storesImported) { - + this.storesImported = storesImported; return this; } - /** + /** * Indicates whether the linked stores were imported via a CSV file. + * * @return storesImported - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates whether the linked stores were imported via a CSV file.") public Boolean getStoresImported() { return storesImported; } - public void setStoresImported(Boolean storesImported) { this.storesImported = storesImported; } + public AdditionalCampaignProperties valueMapsIds(List valueMapsIds) { - public AdditionalCampaignProperties valueMapsIds(List valueMapsIds) { - this.valueMapsIds = valueMapsIds; return this; } - public AdditionalCampaignProperties addValueMapsIdsItem(Integer valueMapsIdsItem) { + public AdditionalCampaignProperties addValueMapsIdsItem(Long valueMapsIdsItem) { if (this.valueMapsIds == null) { - this.valueMapsIds = new ArrayList(); + this.valueMapsIds = new ArrayList(); } this.valueMapsIds.add(valueMapsIdsItem); return this; } - /** + /** * A list of value map IDs for the campaign. + * * @return valueMapsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[100, 215]", value = "A list of value map IDs for the campaign.") - public List getValueMapsIds() { + public List getValueMapsIds() { return valueMapsIds; } - - public void setValueMapsIds(List valueMapsIds) { + public void setValueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -772,9 +778,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.addFreeItemEffectCount, additionalCampaignProperties.addFreeItemEffectCount) && Objects.equals(this.awardedGiveawaysCount, additionalCampaignProperties.awardedGiveawaysCount) && Objects.equals(this.createdLoyaltyPointsCount, additionalCampaignProperties.createdLoyaltyPointsCount) && - Objects.equals(this.createdLoyaltyPointsEffectCount, additionalCampaignProperties.createdLoyaltyPointsEffectCount) && + Objects.equals(this.createdLoyaltyPointsEffectCount, + additionalCampaignProperties.createdLoyaltyPointsEffectCount) + && Objects.equals(this.redeemedLoyaltyPointsCount, additionalCampaignProperties.redeemedLoyaltyPointsCount) && - Objects.equals(this.redeemedLoyaltyPointsEffectCount, additionalCampaignProperties.redeemedLoyaltyPointsEffectCount) && + Objects.equals(this.redeemedLoyaltyPointsEffectCount, + additionalCampaignProperties.redeemedLoyaltyPointsEffectCount) + && Objects.equals(this.callApiEffectCount, additionalCampaignProperties.callApiEffectCount) && Objects.equals(this.reservecouponEffectCount, additionalCampaignProperties.reservecouponEffectCount) && Objects.equals(this.lastActivity, additionalCampaignProperties.lastActivity) && @@ -789,10 +799,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId, frontendState, storesImported, valueMapsIds); + return Objects.hash(budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, + couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, + createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, + redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, + createdBy, updatedBy, templateId, frontendState, storesImported, valueMapsIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -808,9 +821,11 @@ public String toString() { sb.append(" addFreeItemEffectCount: ").append(toIndentedString(addFreeItemEffectCount)).append("\n"); sb.append(" awardedGiveawaysCount: ").append(toIndentedString(awardedGiveawaysCount)).append("\n"); sb.append(" createdLoyaltyPointsCount: ").append(toIndentedString(createdLoyaltyPointsCount)).append("\n"); - sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)).append("\n"); + sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" redeemedLoyaltyPointsCount: ").append(toIndentedString(redeemedLoyaltyPointsCount)).append("\n"); - sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)).append("\n"); + sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" callApiEffectCount: ").append(toIndentedString(callApiEffectCount)).append("\n"); sb.append(" reservecouponEffectCount: ").append(toIndentedString(reservecouponEffectCount)).append("\n"); sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n"); @@ -837,4 +852,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AnalyticsProduct.java b/src/main/java/one/talon/model/AnalyticsProduct.java index 801aa953..4c2b17a6 100644 --- a/src/main/java/one/talon/model/AnalyticsProduct.java +++ b/src/main/java/one/talon/model/AnalyticsProduct.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class AnalyticsProduct { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -40,89 +39,87 @@ public class AnalyticsProduct { public static final String SERIALIZED_NAME_CATALOG_ID = "catalogId"; @SerializedName(SERIALIZED_NAME_CATALOG_ID) - private Integer catalogId; + private Long catalogId; public static final String SERIALIZED_NAME_UNITS_SOLD = "unitsSold"; @SerializedName(SERIALIZED_NAME_UNITS_SOLD) private AnalyticsDataPointWithTrend unitsSold; + public AnalyticsProduct id(Long id) { - public AnalyticsProduct id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the product. + * * @return id - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the product.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AnalyticsProduct name(String name) { - + this.name = name; return this; } - /** + /** * The name of the product. + * * @return name - **/ + **/ @ApiModelProperty(example = "MyProduct", required = true, value = "The name of the product.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public AnalyticsProduct catalogId(Long catalogId) { - public AnalyticsProduct catalogId(Integer catalogId) { - this.catalogId = catalogId; return this; } - /** - * The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. + /** + * The ID of the catalog. You can find the ID in the Campaign Manager in + * **Account** > **Tools** > **Cart item catalogs**. + * * @return catalogId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. ") - public Integer getCatalogId() { + public Long getCatalogId() { return catalogId; } - - public void setCatalogId(Integer catalogId) { + public void setCatalogId(Long catalogId) { this.catalogId = catalogId; } - public AnalyticsProduct unitsSold(AnalyticsDataPointWithTrend unitsSold) { - + this.unitsSold = unitsSold; return this; } - /** + /** * Get unitsSold + * * @return unitsSold - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -130,12 +127,10 @@ public AnalyticsDataPointWithTrend getUnitsSold() { return unitsSold; } - public void setUnitsSold(AnalyticsDataPointWithTrend unitsSold) { this.unitsSold = unitsSold; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -156,7 +151,6 @@ public int hashCode() { return Objects.hash(id, name, catalogId, unitsSold); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -181,4 +175,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AnalyticsProductSKU.java b/src/main/java/one/talon/model/AnalyticsProductSKU.java index 417e7262..557748e8 100644 --- a/src/main/java/one/talon/model/AnalyticsProductSKU.java +++ b/src/main/java/one/talon/model/AnalyticsProductSKU.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class AnalyticsProductSKU { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) @@ -42,73 +41,70 @@ public class AnalyticsProductSKU { @SerializedName(SERIALIZED_NAME_LAST_UPDATED) private OffsetDateTime lastUpdated; + public AnalyticsProductSKU id(Long id) { - public AnalyticsProductSKU id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the SKU linked to the analytics-level product. + * * @return id - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the SKU linked to the analytics-level product.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AnalyticsProductSKU sku(String sku) { - + this.sku = sku; return this; } - /** + /** * The SKU linked to the analytics-level product. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU-123", required = true, value = "The SKU linked to the analytics-level product.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } - public AnalyticsProductSKU lastUpdated(OffsetDateTime lastUpdated) { - + this.lastUpdated = lastUpdated; return this; } - /** - * Values in UTC for the date the SKU linked to the analytics-level product was last updated. + /** + * Values in UTC for the date the SKU linked to the analytics-level product was + * last updated. + * * @return lastUpdated - **/ + **/ @ApiModelProperty(example = "2024-02-01T00:00Z", required = true, value = "Values in UTC for the date the SKU linked to the analytics-level product was last updated.") public OffsetDateTime getLastUpdated() { return lastUpdated; } - public void setLastUpdated(OffsetDateTime lastUpdated) { this.lastUpdated = lastUpdated; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,7 +124,6 @@ public int hashCode() { return Objects.hash(id, sku, lastUpdated); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -152,4 +147,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AnalyticsSKU.java b/src/main/java/one/talon/model/AnalyticsSKU.java index 1cdb7830..db34babb 100644 --- a/src/main/java/one/talon/model/AnalyticsSKU.java +++ b/src/main/java/one/talon/model/AnalyticsSKU.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class AnalyticsSKU { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) @@ -47,61 +46,59 @@ public class AnalyticsSKU { @SerializedName(SERIALIZED_NAME_UNITS_SOLD) private AnalyticsDataPointWithTrend unitsSold; + public AnalyticsSKU id(Long id) { - public AnalyticsSKU id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the SKU linked to the application. + * * @return id - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the SKU linked to the application.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AnalyticsSKU sku(String sku) { - + this.sku = sku; return this; } - /** + /** * The SKU linked to the application. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU-123", required = true, value = "The SKU linked to the application.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } - public AnalyticsSKU lastUpdated(OffsetDateTime lastUpdated) { - + this.lastUpdated = lastUpdated; return this; } - /** + /** * Values in UTC for the date the SKU linked to the product was last updated. + * * @return lastUpdated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2024-02-01T00:00Z", value = "Values in UTC for the date the SKU linked to the product was last updated.") @@ -109,22 +106,21 @@ public OffsetDateTime getLastUpdated() { return lastUpdated; } - public void setLastUpdated(OffsetDateTime lastUpdated) { this.lastUpdated = lastUpdated; } - public AnalyticsSKU unitsSold(AnalyticsDataPointWithTrend unitsSold) { - + this.unitsSold = unitsSold; return this; } - /** + /** * Get unitsSold + * * @return unitsSold - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -132,12 +128,10 @@ public AnalyticsDataPointWithTrend getUnitsSold() { return unitsSold; } - public void setUnitsSold(AnalyticsDataPointWithTrend unitsSold) { this.unitsSold = unitsSold; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -158,7 +152,6 @@ public int hashCode() { return Objects.hash(id, sku, lastUpdated, unitsSold); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -183,4 +176,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Application.java b/src/main/java/one/talon/model/Application.java index fb437030..832df874 100644 --- a/src/main/java/one/talon/model/Application.java +++ b/src/main/java/one/talon/model/Application.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class Application { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -49,7 +48,7 @@ public class Application { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -68,14 +67,15 @@ public class Application { private String currency; /** - * The case sensitivity behavior to check coupon codes in the campaigns of this Application. + * The case sensitivity behavior to check coupon codes in the campaigns of this + * Application. */ @JsonAdapter(CaseSensitivityEnum.Adapter.class) public enum CaseSensitivityEnum { SENSITIVE("sensitive"), - + INSENSITIVE_UPPERCASE("insensitive-uppercase"), - + INSENSITIVE_LOWERCASE("insensitive-lowercase"); private String value; @@ -110,7 +110,7 @@ public void write(final JsonWriter jsonWriter, final CaseSensitivityEnum enumera @Override public CaseSensitivityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CaseSensitivityEnum.fromValue(value); } } @@ -129,14 +129,15 @@ public CaseSensitivityEnum read(final JsonReader jsonReader) throws IOException private List limits = null; /** - * The default scope to apply `setDiscount` effects on if no scope was provided with the effect. + * The default scope to apply `setDiscount` effects on if no scope was + * provided with the effect. */ @JsonAdapter(DefaultDiscountScopeEnum.Adapter.class) public enum DefaultDiscountScopeEnum { SESSIONTOTAL("sessionTotal"), - + CARTITEMS("cartItems"), - + ADDITIONALCOSTS("additionalCosts"); private String value; @@ -171,7 +172,7 @@ public void write(final JsonWriter jsonWriter, final DefaultDiscountScopeEnum en @Override public DefaultDiscountScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DefaultDiscountScopeEnum.fromValue(value); } } @@ -202,14 +203,15 @@ public DefaultDiscountScopeEnum read(final JsonReader jsonReader) throws IOExcep private Boolean enablePartialDiscounts; /** - * The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. + * The default scope to apply `setDiscountPerItem` effects on if no + * scope was provided with the effect. */ @JsonAdapter(DefaultDiscountAdditionalCostPerItemScopeEnum.Adapter.class) public enum DefaultDiscountAdditionalCostPerItemScopeEnum { PRICE("price"), - + ITEMTOTAL("itemTotal"), - + ADDITIONALCOSTS("additionalCosts"); private String value; @@ -238,13 +240,14 @@ public static DefaultDiscountAdditionalCostPerItemScopeEnum fromValue(String val public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DefaultDiscountAdditionalCostPerItemScopeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DefaultDiscountAdditionalCostPerItemScopeEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DefaultDiscountAdditionalCostPerItemScopeEnum.fromValue(value); } } @@ -256,11 +259,11 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR public static final String SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID = "defaultEvaluationGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID) - private Integer defaultEvaluationGroupId; + private Long defaultEvaluationGroupId; public static final String SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID = "defaultCartItemFilterId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID) - private Integer defaultCartItemFilterId; + private Long defaultCartItemFilterId; public static final String SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT = "enableCampaignStateManagement"; @SerializedName(SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT) @@ -270,127 +273,122 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAMS) private List loyaltyPrograms = new ArrayList(); + public Application id(Long id) { - public Application id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Application created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Application modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public Application accountId(Long accountId) { - public Application accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public Application name(String name) { - + this.name = name; return this; } - /** + /** * The name of this application. + * * @return name - **/ + **/ @ApiModelProperty(example = "My Application", required = true, value = "The name of this application.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Application description(String description) { - + this.description = description; return this; } - /** + /** * A longer description of the application. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A test Application", value = "A longer description of the application.") @@ -398,66 +396,64 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Application timezone(String timezone) { - + this.timezone = timezone; return this; } - /** + /** * A string containing an IANA timezone descriptor. + * * @return timezone - **/ + **/ @ApiModelProperty(example = "Europe/Berlin", required = true, value = "A string containing an IANA timezone descriptor.") public String getTimezone() { return timezone; } - public void setTimezone(String timezone) { this.timezone = timezone; } - public Application currency(String currency) { - + this.currency = currency; return this; } - /** + /** * The default currency for new customer sessions. + * * @return currency - **/ + **/ @ApiModelProperty(example = "EUR", required = true, value = "The default currency for new customer sessions.") public String getCurrency() { return currency; } - public void setCurrency(String currency) { this.currency = currency; } - public Application caseSensitivity(CaseSensitivityEnum caseSensitivity) { - + this.caseSensitivity = caseSensitivity; return this; } - /** - * The case sensitivity behavior to check coupon codes in the campaigns of this Application. + /** + * The case sensitivity behavior to check coupon codes in the campaigns of this + * Application. + * * @return caseSensitivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sensitive", value = "The case sensitivity behavior to check coupon codes in the campaigns of this Application.") @@ -465,22 +461,21 @@ public CaseSensitivityEnum getCaseSensitivity() { return caseSensitivity; } - public void setCaseSensitivity(CaseSensitivityEnum caseSensitivity) { this.caseSensitivity = caseSensitivity; } - public Application attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -488,14 +483,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public Application limits(List limits) { - + this.limits = limits; return this; } @@ -508,10 +501,11 @@ public Application addLimitsItem(LimitConfig limitsItem) { return this; } - /** + /** * Default limits for campaigns created in this application. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Default limits for campaigns created in this application.") @@ -519,22 +513,22 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public Application defaultDiscountScope(DefaultDiscountScopeEnum defaultDiscountScope) { - + this.defaultDiscountScope = defaultDiscountScope; return this; } - /** - * The default scope to apply `setDiscount` effects on if no scope was provided with the effect. + /** + * The default scope to apply `setDiscount` effects on if no scope was + * provided with the effect. + * * @return defaultDiscountScope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sessionTotal", value = "The default scope to apply `setDiscount` effects on if no scope was provided with the effect. ") @@ -542,22 +536,21 @@ public DefaultDiscountScopeEnum getDefaultDiscountScope() { return defaultDiscountScope; } - public void setDefaultDiscountScope(DefaultDiscountScopeEnum defaultDiscountScope) { this.defaultDiscountScope = defaultDiscountScope; } - public Application enableCascadingDiscounts(Boolean enableCascadingDiscounts) { - + this.enableCascadingDiscounts = enableCascadingDiscounts; return this; } - /** + /** * Indicates if discounts should cascade for this Application. + * * @return enableCascadingDiscounts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if discounts should cascade for this Application.") @@ -565,22 +558,22 @@ public Boolean getEnableCascadingDiscounts() { return enableCascadingDiscounts; } - public void setEnableCascadingDiscounts(Boolean enableCascadingDiscounts) { this.enableCascadingDiscounts = enableCascadingDiscounts; } - public Application enableFlattenedCartItems(Boolean enableFlattenedCartItems) { - + this.enableFlattenedCartItems = enableFlattenedCartItems; return this; } - /** - * Indicates if cart items of quantity larger than one should be separated into different items of quantity one. + /** + * Indicates if cart items of quantity larger than one should be separated into + * different items of quantity one. + * * @return enableFlattenedCartItems - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if cart items of quantity larger than one should be separated into different items of quantity one. ") @@ -588,22 +581,21 @@ public Boolean getEnableFlattenedCartItems() { return enableFlattenedCartItems; } - public void setEnableFlattenedCartItems(Boolean enableFlattenedCartItems) { this.enableFlattenedCartItems = enableFlattenedCartItems; } - public Application attributesSettings(AttributesSettings attributesSettings) { - + this.attributesSettings = attributesSettings; return this; } - /** + /** * Get attributesSettings + * * @return attributesSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -611,22 +603,21 @@ public AttributesSettings getAttributesSettings() { return attributesSettings; } - public void setAttributesSettings(AttributesSettings attributesSettings) { this.attributesSettings = attributesSettings; } - public Application sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** + /** * Indicates if this is a live or sandbox Application. + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if this is a live or sandbox Application.") @@ -634,22 +625,21 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public Application enablePartialDiscounts(Boolean enablePartialDiscounts) { - + this.enablePartialDiscounts = enablePartialDiscounts; return this; } - /** + /** * Indicates if this Application supports partial discounts. + * * @return enablePartialDiscounts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates if this Application supports partial discounts.") @@ -657,22 +647,23 @@ public Boolean getEnablePartialDiscounts() { return enablePartialDiscounts; } - public void setEnablePartialDiscounts(Boolean enablePartialDiscounts) { this.enablePartialDiscounts = enablePartialDiscounts; } + public Application defaultDiscountAdditionalCostPerItemScope( + DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { - public Application defaultDiscountAdditionalCostPerItemScope(DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { - this.defaultDiscountAdditionalCostPerItemScope = defaultDiscountAdditionalCostPerItemScope; return this; } - /** - * The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. + /** + * The default scope to apply `setDiscountPerItem` effects on if no + * scope was provided with the effect. + * * @return defaultDiscountAdditionalCostPerItemScope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "price", value = "The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. ") @@ -680,68 +671,69 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum getDefaultDiscountAdditiona return defaultDiscountAdditionalCostPerItemScope; } - - public void setDefaultDiscountAdditionalCostPerItemScope(DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { + public void setDefaultDiscountAdditionalCostPerItemScope( + DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { this.defaultDiscountAdditionalCostPerItemScope = defaultDiscountAdditionalCostPerItemScope; } + public Application defaultEvaluationGroupId(Long defaultEvaluationGroupId) { - public Application defaultEvaluationGroupId(Integer defaultEvaluationGroupId) { - this.defaultEvaluationGroupId = defaultEvaluationGroupId; return this; } - /** - * The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. + /** + * The ID of the default campaign evaluation group to which new campaigns will + * be added unless a different group is selected when creating the campaign. + * * @return defaultEvaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.") - public Integer getDefaultEvaluationGroupId() { + public Long getDefaultEvaluationGroupId() { return defaultEvaluationGroupId; } - - public void setDefaultEvaluationGroupId(Integer defaultEvaluationGroupId) { + public void setDefaultEvaluationGroupId(Long defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; } + public Application defaultCartItemFilterId(Long defaultCartItemFilterId) { - public Application defaultCartItemFilterId(Integer defaultCartItemFilterId) { - this.defaultCartItemFilterId = defaultCartItemFilterId; return this; } - /** + /** * The ID of the default Cart-Item-Filter for this application. + * * @return defaultCartItemFilterId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default Cart-Item-Filter for this application.") - public Integer getDefaultCartItemFilterId() { + public Long getDefaultCartItemFilterId() { return defaultCartItemFilterId; } - - public void setDefaultCartItemFilterId(Integer defaultCartItemFilterId) { + public void setDefaultCartItemFilterId(Long defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; } - public Application enableCampaignStateManagement(Boolean enableCampaignStateManagement) { - + this.enableCampaignStateManagement = enableCampaignStateManagement; return this; } - /** - * Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. + /** + * Indicates whether the campaign staging and revisions feature is enabled for + * the Application. **Important:** After this feature is enabled, it cannot be + * disabled. + * * @return enableCampaignStateManagement - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. ") @@ -749,14 +741,12 @@ public Boolean getEnableCampaignStateManagement() { return enableCampaignStateManagement; } - public void setEnableCampaignStateManagement(Boolean enableCampaignStateManagement) { this.enableCampaignStateManagement = enableCampaignStateManagement; } - public Application loyaltyPrograms(List loyaltyPrograms) { - + this.loyaltyPrograms = loyaltyPrograms; return this; } @@ -766,22 +756,22 @@ public Application addLoyaltyProgramsItem(LoyaltyProgram loyaltyProgramsItem) { return this; } - /** - * An array containing all the loyalty programs to which this application is subscribed. + /** + * An array containing all the loyalty programs to which this application is + * subscribed. + * * @return loyaltyPrograms - **/ + **/ @ApiModelProperty(required = true, value = "An array containing all the loyalty programs to which this application is subscribed.") public List getLoyaltyPrograms() { return loyaltyPrograms; } - public void setLoyaltyPrograms(List loyaltyPrograms) { this.loyaltyPrograms = loyaltyPrograms; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -808,7 +798,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.attributesSettings, application.attributesSettings) && Objects.equals(this.sandbox, application.sandbox) && Objects.equals(this.enablePartialDiscounts, application.enablePartialDiscounts) && - Objects.equals(this.defaultDiscountAdditionalCostPerItemScope, application.defaultDiscountAdditionalCostPerItemScope) && + Objects.equals(this.defaultDiscountAdditionalCostPerItemScope, + application.defaultDiscountAdditionalCostPerItemScope) + && Objects.equals(this.defaultEvaluationGroupId, application.defaultEvaluationGroupId) && Objects.equals(this.defaultCartItemFilterId, application.defaultCartItemFilterId) && Objects.equals(this.enableCampaignStateManagement, application.enableCampaignStateManagement) && @@ -817,10 +809,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, accountId, name, description, timezone, currency, caseSensitivity, attributes, limits, defaultDiscountScope, enableCascadingDiscounts, enableFlattenedCartItems, attributesSettings, sandbox, enablePartialDiscounts, defaultDiscountAdditionalCostPerItemScope, defaultEvaluationGroupId, defaultCartItemFilterId, enableCampaignStateManagement, loyaltyPrograms); + return Objects.hash(id, created, modified, accountId, name, description, timezone, currency, caseSensitivity, + attributes, limits, defaultDiscountScope, enableCascadingDiscounts, enableFlattenedCartItems, + attributesSettings, sandbox, enablePartialDiscounts, defaultDiscountAdditionalCostPerItemScope, + defaultEvaluationGroupId, defaultCartItemFilterId, enableCampaignStateManagement, loyaltyPrograms); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -842,10 +836,12 @@ public String toString() { sb.append(" attributesSettings: ").append(toIndentedString(attributesSettings)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); sb.append(" enablePartialDiscounts: ").append(toIndentedString(enablePartialDiscounts)).append("\n"); - sb.append(" defaultDiscountAdditionalCostPerItemScope: ").append(toIndentedString(defaultDiscountAdditionalCostPerItemScope)).append("\n"); + sb.append(" defaultDiscountAdditionalCostPerItemScope: ") + .append(toIndentedString(defaultDiscountAdditionalCostPerItemScope)).append("\n"); sb.append(" defaultEvaluationGroupId: ").append(toIndentedString(defaultEvaluationGroupId)).append("\n"); sb.append(" defaultCartItemFilterId: ").append(toIndentedString(defaultCartItemFilterId)).append("\n"); - sb.append(" enableCampaignStateManagement: ").append(toIndentedString(enableCampaignStateManagement)).append("\n"); + sb.append(" enableCampaignStateManagement: ").append(toIndentedString(enableCampaignStateManagement)) + .append("\n"); sb.append(" loyaltyPrograms: ").append(toIndentedString(loyaltyPrograms)).append("\n"); sb.append("}"); return sb.toString(); @@ -863,4 +859,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationAPIKey.java b/src/main/java/one/talon/model/ApplicationAPIKey.java index 301f6be6..d5081d1d 100644 --- a/src/main/java/one/talon/model/ApplicationAPIKey.java +++ b/src/main/java/one/talon/model/ApplicationAPIKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,28 +38,29 @@ public class ApplicationAPIKey { private OffsetDateTime expires; /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. */ @JsonAdapter(PlatformEnum.Adapter.class) public enum PlatformEnum { NONE("none"), - + SEGMENT("segment"), - + BRAZE("braze"), - + MPARTICLE("mparticle"), - + SHOPIFY("shopify"), - + ITERABLE("iterable"), - + CUSTOMER_ENGAGEMENT("customer_engagement"), - + CUSTOMER_DATA("customer_data"), - + SALESFORCE("salesforce"), - + EMARSYS("emarsys"); private String value; @@ -95,7 +95,7 @@ public void write(final JsonWriter jsonWriter, final PlatformEnum enumeration) t @Override public PlatformEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PlatformEnum.fromValue(value); } } @@ -106,7 +106,16 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { private PlatformEnum platform; /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { @@ -144,7 +153,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -156,83 +165,82 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Integer timeOffset; + private Long timeOffset; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Integer accountID; + private Long accountID; public static final String SERIALIZED_NAME_APPLICATION_I_D = "applicationID"; @SerializedName(SERIALIZED_NAME_APPLICATION_I_D) - private Integer applicationID; + private Long applicationID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; - public ApplicationAPIKey title(String title) { - + this.title = title; return this; } - /** + /** * Title of the API key. + * * @return title - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public ApplicationAPIKey expires(OffsetDateTime expires) { - + this.expires = expires; return this; } - /** + /** * The date the API key expires. + * * @return expires - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; } - public void setExpires(OffsetDateTime expires) { this.expires = expires; } - public ApplicationAPIKey platform(PlatformEnum platform) { - + this.platform = platform; return this; } - /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + /** + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. + * * @return platform - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "none", value = "The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. ") @@ -240,22 +248,30 @@ public PlatformEnum getPlatform() { return platform; } - public void setPlatform(PlatformEnum platform) { this.platform = platform; } - public ApplicationAPIKey type(TypeEnum type) { - + this.type = type; return this; } - /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + /** + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") @@ -263,145 +279,139 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public ApplicationAPIKey timeOffset(Long timeOffset) { - public ApplicationAPIKey timeOffset(Integer timeOffset) { - this.timeOffset = timeOffset; return this; } - /** - * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + /** + * A time offset in nanoseconds associated with the API key. When making a + * request using the API key, rule evaluation is based on a date that is + * calculated by adding the offset to the current date. + * * @return timeOffset - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Integer getTimeOffset() { + public Long getTimeOffset() { return timeOffset; } - - public void setTimeOffset(Integer timeOffset) { + public void setTimeOffset(Long timeOffset) { this.timeOffset = timeOffset; } + public ApplicationAPIKey id(Long id) { - public ApplicationAPIKey id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the API Key. + * * @return id - **/ + **/ @ApiModelProperty(example = "34", required = true, value = "ID of the API Key.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public ApplicationAPIKey createdBy(Long createdBy) { - public ApplicationAPIKey createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of user who created. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "280", required = true, value = "ID of user who created.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public ApplicationAPIKey accountID(Long accountID) { - public ApplicationAPIKey accountID(Integer accountID) { - this.accountID = accountID; return this; } - /** + /** * ID of account the key is used for. + * * @return accountID - **/ + **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Integer getAccountID() { + public Long getAccountID() { return accountID; } - - public void setAccountID(Integer accountID) { + public void setAccountID(Long accountID) { this.accountID = accountID; } + public ApplicationAPIKey applicationID(Long applicationID) { - public ApplicationAPIKey applicationID(Integer applicationID) { - this.applicationID = applicationID; return this; } - /** + /** * ID of application the key is used for. + * * @return applicationID - **/ + **/ @ApiModelProperty(example = "54", required = true, value = "ID of application the key is used for.") - public Integer getApplicationID() { + public Long getApplicationID() { return applicationID; } - - public void setApplicationID(Integer applicationID) { + public void setApplicationID(Long applicationID) { this.applicationID = applicationID; } - public ApplicationAPIKey created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The date the API key was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2022-03-02T16:46:17.758585Z", required = true, value = "The date the API key was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -428,7 +438,6 @@ public int hashCode() { return Objects.hash(title, expires, platform, type, timeOffset, id, createdBy, accountID, applicationID, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -459,4 +468,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCIF.java b/src/main/java/one/talon/model/ApplicationCIF.java index 5b1ceab6..18732568 100644 --- a/src/main/java/one/talon/model/ApplicationCIF.java +++ b/src/main/java/one/talon/model/ApplicationCIF.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -48,15 +47,15 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Integer activeExpressionId; + private Long activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -64,85 +63,82 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; + public ApplicationCIF id(Long id) { - public ApplicationCIF id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ApplicationCIF created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public ApplicationCIF name(String name) { - + this.name = name; return this; } - /** + /** * The name of the Application cart item filter used in API requests. + * * @return name - **/ + **/ @ApiModelProperty(example = "Filter items by product", required = true, value = "The name of the Application cart item filter used in API requests.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public ApplicationCIF description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the Application cart item filter. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This filter allows filtering by shoes", value = "A short description of the Application cart item filter.") @@ -150,91 +146,87 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public ApplicationCIF activeExpressionId(Long activeExpressionId) { - public ApplicationCIF activeExpressionId(Integer activeExpressionId) { - this.activeExpressionId = activeExpressionId; return this; } - /** + /** * The ID of the expression that the Application cart item filter uses. + * * @return activeExpressionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Integer getActiveExpressionId() { + public Long getActiveExpressionId() { return activeExpressionId; } - - public void setActiveExpressionId(Integer activeExpressionId) { + public void setActiveExpressionId(Long activeExpressionId) { this.activeExpressionId = activeExpressionId; } + public ApplicationCIF modifiedBy(Long modifiedBy) { - public ApplicationCIF modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * The ID of the user who last updated the Application cart item filter. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public ApplicationCIF createdBy(Long createdBy) { - public ApplicationCIF createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of the user who created the Application cart item filter. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public ApplicationCIF modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * Timestamp of the most recent update to the Application cart item filter. + * * @return modified - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the Application cart item filter.") @@ -242,34 +234,31 @@ public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public ApplicationCIF applicationId(Long applicationId) { - public ApplicationCIF applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -292,10 +281,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, name, description, activeExpressionId, modifiedBy, createdBy, modified, applicationId); + return Objects.hash(id, created, name, description, activeExpressionId, modifiedBy, createdBy, modified, + applicationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -325,4 +314,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCIFExpression.java b/src/main/java/one/talon/model/ApplicationCIFExpression.java index 7e0e6621..4985c8cd 100644 --- a/src/main/java/one/talon/model/ApplicationCIFExpression.java +++ b/src/main/java/one/talon/model/ApplicationCIFExpression.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,11 +41,11 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_CART_ITEM_FILTER_ID = "cartItemFilterId"; @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTER_ID) - private Integer cartItemFilterId; + private Long cartItemFilterId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -54,101 +53,96 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; + public ApplicationCIFExpression id(Long id) { - public ApplicationCIFExpression id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ApplicationCIFExpression created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public ApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { - public ApplicationCIFExpression cartItemFilterId(Integer cartItemFilterId) { - this.cartItemFilterId = cartItemFilterId; return this; } - /** + /** * The ID of the Application cart item filter. + * * @return cartItemFilterId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the Application cart item filter.") - public Integer getCartItemFilterId() { + public Long getCartItemFilterId() { return cartItemFilterId; } - - public void setCartItemFilterId(Integer cartItemFilterId) { + public void setCartItemFilterId(Long cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; } + public ApplicationCIFExpression createdBy(Long createdBy) { - public ApplicationCIFExpression createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of the user who created the Application cart item filter. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public ApplicationCIFExpression expression(List expression) { - + this.expression = expression; return this; } @@ -161,10 +155,12 @@ public ApplicationCIFExpression addExpressionItem(Object expressionItem) { return this; } - /** - * Arbitrary additional JSON data associated with the Application cart item filter. + /** + * Arbitrary additional JSON data associated with the Application cart item + * filter. + * * @return expression - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{expr=[filter, [., Session, CartItems], [[Item], [catch, false, [=, [., Item, Category], Kitchen]]]]}", value = "Arbitrary additional JSON data associated with the Application cart item filter.") @@ -172,34 +168,31 @@ public List getExpression() { return expression; } - public void setExpression(List expression) { this.expression = expression; } + public ApplicationCIFExpression applicationId(Long applicationId) { - public ApplicationCIFExpression applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -222,7 +215,6 @@ public int hashCode() { return Objects.hash(id, created, cartItemFilterId, createdBy, expression, applicationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -249,4 +241,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCIFReferences.java b/src/main/java/one/talon/model/ApplicationCIFReferences.java index a66b0a07..b05838ac 100644 --- a/src/main/java/one/talon/model/ApplicationCIFReferences.java +++ b/src/main/java/one/talon/model/ApplicationCIFReferences.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,38 +33,36 @@ public class ApplicationCIFReferences { public static final String SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTER_ID = "applicationCartItemFilterId"; @SerializedName(SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTER_ID) - private Integer applicationCartItemFilterId; + private Long applicationCartItemFilterId; public static final String SERIALIZED_NAME_CAMPAIGNS = "campaigns"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS) private List campaigns = null; + public ApplicationCIFReferences applicationCartItemFilterId(Long applicationCartItemFilterId) { - public ApplicationCIFReferences applicationCartItemFilterId(Integer applicationCartItemFilterId) { - this.applicationCartItemFilterId = applicationCartItemFilterId; return this; } - /** + /** * The ID of the Application Cart Item Filter that is referenced by a campaign. + * * @return applicationCartItemFilterId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "The ID of the Application Cart Item Filter that is referenced by a campaign.") - public Integer getApplicationCartItemFilterId() { + public Long getApplicationCartItemFilterId() { return applicationCartItemFilterId; } - - public void setApplicationCartItemFilterId(Integer applicationCartItemFilterId) { + public void setApplicationCartItemFilterId(Long applicationCartItemFilterId) { this.applicationCartItemFilterId = applicationCartItemFilterId; } - public ApplicationCIFReferences campaigns(List campaigns) { - + this.campaigns = campaigns; return this; } @@ -78,10 +75,11 @@ public ApplicationCIFReferences addCampaignsItem(CampaignDetail campaignsItem) { return this; } - /** + /** * Campaigns that reference a speciifc Application Cart Item Filter. + * * @return campaigns - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Campaigns that reference a speciifc Application Cart Item Filter.") @@ -89,12 +87,10 @@ public List getCampaigns() { return campaigns; } - public void setCampaigns(List campaigns) { this.campaigns = campaigns; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,7 +109,6 @@ public int hashCode() { return Objects.hash(applicationCartItemFilterId, campaigns); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -136,4 +131,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java index ed5d019a..6bd248a6 100644 --- a/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,7 +44,7 @@ public class ApplicationCampaignAnalytics { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) @@ -56,20 +55,21 @@ public class ApplicationCampaignAnalytics { private List campaignTags = new ArrayList(); /** - * The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. + * The state of the campaign. **Note:** A disabled or archived campaign is not + * evaluated for rules or coupons. */ @JsonAdapter(CampaignStateEnum.Adapter.class) public enum CampaignStateEnum { EXPIRED("expired"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + DISABLED("disabled"), - + ARCHIVED("archived"), - + STAGED("staged"); private String value; @@ -104,7 +104,7 @@ public void write(final JsonWriter jsonWriter, final CampaignStateEnum enumerati @Override public CampaignStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CampaignStateEnum.fromValue(value); } } @@ -138,97 +138,92 @@ public CampaignStateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_COUPONS_COUNT) private AnalyticsDataPointWithTrend couponsCount; - public ApplicationCampaignAnalytics startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * The start of the aggregation time frame in UTC. + * * @return startTime - **/ + **/ @ApiModelProperty(example = "2024-02-01T00:00Z", required = true, value = "The start of the aggregation time frame in UTC.") public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public ApplicationCampaignAnalytics endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * The end of the aggregation time frame in UTC. + * * @return endTime - **/ + **/ @ApiModelProperty(required = true, value = "The end of the aggregation time frame in UTC.") public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } + public ApplicationCampaignAnalytics campaignId(Long campaignId) { - public ApplicationCampaignAnalytics campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public ApplicationCampaignAnalytics campaignName(String campaignName) { - + this.campaignName = campaignName; return this; } - /** + /** * The name of the campaign. + * * @return campaignName - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "The name of the campaign.") public String getCampaignName() { return campaignName; } - public void setCampaignName(String campaignName) { this.campaignName = campaignName; } - public ApplicationCampaignAnalytics campaignTags(List campaignTags) { - + this.campaignTags = campaignTags; return this; } @@ -238,54 +233,54 @@ public ApplicationCampaignAnalytics addCampaignTagsItem(String campaignTagsItem) return this; } - /** + /** * A list of tags for the campaign. + * * @return campaignTags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getCampaignTags() { return campaignTags; } - public void setCampaignTags(List campaignTags) { this.campaignTags = campaignTags; } - public ApplicationCampaignAnalytics campaignState(CampaignStateEnum campaignState) { - + this.campaignState = campaignState; return this; } - /** - * The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. + /** + * The state of the campaign. **Note:** A disabled or archived campaign is not + * evaluated for rules or coupons. + * * @return campaignState - **/ + **/ @ApiModelProperty(example = "running", required = true, value = "The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. ") public CampaignStateEnum getCampaignState() { return campaignState; } - public void setCampaignState(CampaignStateEnum campaignState) { this.campaignState = campaignState; } - public ApplicationCampaignAnalytics totalRevenue(AnalyticsDataPointWithTrendAndInfluencedRate totalRevenue) { - + this.totalRevenue = totalRevenue; return this; } - /** + /** * Get totalRevenue + * * @return totalRevenue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -293,22 +288,21 @@ public AnalyticsDataPointWithTrendAndInfluencedRate getTotalRevenue() { return totalRevenue; } - public void setTotalRevenue(AnalyticsDataPointWithTrendAndInfluencedRate totalRevenue) { this.totalRevenue = totalRevenue; } - public ApplicationCampaignAnalytics sessionsCount(AnalyticsDataPointWithTrendAndInfluencedRate sessionsCount) { - + this.sessionsCount = sessionsCount; return this; } - /** + /** * Get sessionsCount + * * @return sessionsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -316,22 +310,21 @@ public AnalyticsDataPointWithTrendAndInfluencedRate getSessionsCount() { return sessionsCount; } - public void setSessionsCount(AnalyticsDataPointWithTrendAndInfluencedRate sessionsCount) { this.sessionsCount = sessionsCount; } - public ApplicationCampaignAnalytics avgItemsPerSession(AnalyticsDataPointWithTrendAndUplift avgItemsPerSession) { - + this.avgItemsPerSession = avgItemsPerSession; return this; } - /** + /** * Get avgItemsPerSession + * * @return avgItemsPerSession - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -339,22 +332,21 @@ public AnalyticsDataPointWithTrendAndUplift getAvgItemsPerSession() { return avgItemsPerSession; } - public void setAvgItemsPerSession(AnalyticsDataPointWithTrendAndUplift avgItemsPerSession) { this.avgItemsPerSession = avgItemsPerSession; } - public ApplicationCampaignAnalytics avgSessionValue(AnalyticsDataPointWithTrendAndUplift avgSessionValue) { - + this.avgSessionValue = avgSessionValue; return this; } - /** + /** * Get avgSessionValue + * * @return avgSessionValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -362,22 +354,21 @@ public AnalyticsDataPointWithTrendAndUplift getAvgSessionValue() { return avgSessionValue; } - public void setAvgSessionValue(AnalyticsDataPointWithTrendAndUplift avgSessionValue) { this.avgSessionValue = avgSessionValue; } - public ApplicationCampaignAnalytics totalDiscounts(AnalyticsDataPointWithTrend totalDiscounts) { - + this.totalDiscounts = totalDiscounts; return this; } - /** + /** * Get totalDiscounts + * * @return totalDiscounts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -385,22 +376,21 @@ public AnalyticsDataPointWithTrend getTotalDiscounts() { return totalDiscounts; } - public void setTotalDiscounts(AnalyticsDataPointWithTrend totalDiscounts) { this.totalDiscounts = totalDiscounts; } - public ApplicationCampaignAnalytics couponsCount(AnalyticsDataPointWithTrend couponsCount) { - + this.couponsCount = couponsCount; return this; } - /** + /** * Get couponsCount + * * @return couponsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -408,12 +398,10 @@ public AnalyticsDataPointWithTrend getCouponsCount() { return couponsCount; } - public void setCouponsCount(AnalyticsDataPointWithTrend couponsCount) { this.couponsCount = couponsCount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -439,10 +427,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(startTime, endTime, campaignId, campaignName, campaignTags, campaignState, totalRevenue, sessionsCount, avgItemsPerSession, avgSessionValue, totalDiscounts, couponsCount); + return Objects.hash(startTime, endTime, campaignId, campaignName, campaignTags, campaignState, totalRevenue, + sessionsCount, avgItemsPerSession, avgSessionValue, totalDiscounts, couponsCount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -475,4 +463,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCampaignStats.java b/src/main/java/one/talon/model/ApplicationCampaignStats.java index 99f3fcde..e9cacb8f 100644 --- a/src/main/java/one/talon/model/ApplicationCampaignStats.java +++ b/src/main/java/one/talon/model/ApplicationCampaignStats.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,161 +31,154 @@ public class ApplicationCampaignStats { public static final String SERIALIZED_NAME_DISABLED = "disabled"; @SerializedName(SERIALIZED_NAME_DISABLED) - private Integer disabled; + private Long disabled; public static final String SERIALIZED_NAME_STAGED = "staged"; @SerializedName(SERIALIZED_NAME_STAGED) - private Integer staged; + private Long staged; public static final String SERIALIZED_NAME_SCHEDULED = "scheduled"; @SerializedName(SERIALIZED_NAME_SCHEDULED) - private Integer scheduled; + private Long scheduled; public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) - private Integer running; + private Long running; public static final String SERIALIZED_NAME_EXPIRED = "expired"; @SerializedName(SERIALIZED_NAME_EXPIRED) - private Integer expired; + private Long expired; public static final String SERIALIZED_NAME_ARCHIVED = "archived"; @SerializedName(SERIALIZED_NAME_ARCHIVED) - private Integer archived; + private Long archived; + public ApplicationCampaignStats disabled(Long disabled) { - public ApplicationCampaignStats disabled(Integer disabled) { - this.disabled = disabled; return this; } - /** + /** * Number of disabled campaigns. + * * @return disabled - **/ + **/ @ApiModelProperty(required = true, value = "Number of disabled campaigns.") - public Integer getDisabled() { + public Long getDisabled() { return disabled; } - - public void setDisabled(Integer disabled) { + public void setDisabled(Long disabled) { this.disabled = disabled; } + public ApplicationCampaignStats staged(Long staged) { - public ApplicationCampaignStats staged(Integer staged) { - this.staged = staged; return this; } - /** + /** * Number of staged campaigns. + * * @return staged - **/ + **/ @ApiModelProperty(required = true, value = "Number of staged campaigns.") - public Integer getStaged() { + public Long getStaged() { return staged; } - - public void setStaged(Integer staged) { + public void setStaged(Long staged) { this.staged = staged; } + public ApplicationCampaignStats scheduled(Long scheduled) { - public ApplicationCampaignStats scheduled(Integer scheduled) { - this.scheduled = scheduled; return this; } - /** + /** * Number of scheduled campaigns. + * * @return scheduled - **/ + **/ @ApiModelProperty(required = true, value = "Number of scheduled campaigns.") - public Integer getScheduled() { + public Long getScheduled() { return scheduled; } - - public void setScheduled(Integer scheduled) { + public void setScheduled(Long scheduled) { this.scheduled = scheduled; } + public ApplicationCampaignStats running(Long running) { - public ApplicationCampaignStats running(Integer running) { - this.running = running; return this; } - /** + /** * Number of running campaigns. + * * @return running - **/ + **/ @ApiModelProperty(required = true, value = "Number of running campaigns.") - public Integer getRunning() { + public Long getRunning() { return running; } - - public void setRunning(Integer running) { + public void setRunning(Long running) { this.running = running; } + public ApplicationCampaignStats expired(Long expired) { - public ApplicationCampaignStats expired(Integer expired) { - this.expired = expired; return this; } - /** + /** * Number of expired campaigns. + * * @return expired - **/ + **/ @ApiModelProperty(required = true, value = "Number of expired campaigns.") - public Integer getExpired() { + public Long getExpired() { return expired; } - - public void setExpired(Integer expired) { + public void setExpired(Long expired) { this.expired = expired; } + public ApplicationCampaignStats archived(Long archived) { - public ApplicationCampaignStats archived(Integer archived) { - this.archived = archived; return this; } - /** + /** * Number of archived campaigns. + * * @return archived - **/ + **/ @ApiModelProperty(required = true, value = "Number of archived campaigns.") - public Integer getArchived() { + public Long getArchived() { return archived; } - - public void setArchived(Integer archived) { + public void setArchived(Long archived) { this.archived = archived; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -209,7 +201,6 @@ public int hashCode() { return Objects.hash(disabled, staged, scheduled, running, expired, archived); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -236,4 +227,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCustomer.java b/src/main/java/one/talon/model/ApplicationCustomer.java index 7c44e8a9..d5f2d287 100644 --- a/src/main/java/one/talon/model/ApplicationCustomer.java +++ b/src/main/java/one/talon/model/ApplicationCustomer.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class ApplicationCustomer { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +52,11 @@ public class ApplicationCustomer { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Integer closedSessions; + private Long closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -83,163 +82,158 @@ public class ApplicationCustomer { @SerializedName(SERIALIZED_NAME_ADVOCATE_INTEGRATION_ID) private String advocateIntegrationId; + public ApplicationCustomer id(Long id) { - public ApplicationCustomer id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ApplicationCustomer created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public ApplicationCustomer integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public ApplicationCustomer attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @ApiModelProperty(example = "{\"Language\":\"english\",\"ShippingCountry\":\"DE\"}", required = true, value = "Arbitrary properties associated with this item.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public ApplicationCustomer accountId(Long accountId) { - public ApplicationCustomer accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the Talon.One account that owns this profile. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public ApplicationCustomer closedSessions(Long closedSessions) { - public ApplicationCustomer closedSessions(Integer closedSessions) { - this.closedSessions = closedSessions; return this; } - /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + /** + * The total amount of closed sessions by a customer. A closed session is a + * successful purchase. + * * @return closedSessions - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") - public Integer getClosedSessions() { + public Long getClosedSessions() { return closedSessions; } - - public void setClosedSessions(Integer closedSessions) { + public void setClosedSessions(Long closedSessions) { this.closedSessions = closedSessions; } - public ApplicationCustomer totalSales(BigDecimal totalSales) { - + this.totalSales = totalSales; return this; } - /** - * The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. + /** + * The total amount of money spent by the customer **before** discounts are + * applied. The total sales amount excludes the following: - Cancelled or + * reopened sessions. - Returned items. + * * @return totalSales - **/ + **/ @ApiModelProperty(example = "299.99", required = true, value = "The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. ") public BigDecimal getTotalSales() { return totalSales; } - public void setTotalSales(BigDecimal totalSales) { this.totalSales = totalSales; } - public ApplicationCustomer loyaltyMemberships(List loyaltyMemberships) { - + this.loyaltyMemberships = loyaltyMemberships; return this; } @@ -252,10 +246,11 @@ public ApplicationCustomer addLoyaltyMembershipsItem(LoyaltyMembership loyaltyMe return this; } - /** - * **DEPRECATED** A list of loyalty programs joined by the customer. + /** + * **DEPRECATED** A list of loyalty programs joined by the customer. + * * @return loyaltyMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "**DEPRECATED** A list of loyalty programs joined by the customer. ") @@ -263,14 +258,12 @@ public List getLoyaltyMemberships() { return loyaltyMemberships; } - public void setLoyaltyMemberships(List loyaltyMemberships) { this.loyaltyMemberships = loyaltyMemberships; } - public ApplicationCustomer audienceMemberships(List audienceMemberships) { - + this.audienceMemberships = audienceMemberships; return this; } @@ -283,10 +276,11 @@ public ApplicationCustomer addAudienceMembershipsItem(AudienceMembership audienc return this; } - /** + /** * The audiences the customer belongs to. + * * @return audienceMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The audiences the customer belongs to.") @@ -294,44 +288,49 @@ public List getAudienceMemberships() { return audienceMemberships; } - public void setAudienceMemberships(List audienceMemberships) { this.audienceMemberships = audienceMemberships; } - public ApplicationCustomer lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** - * Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. + /** + * Timestamp of the most recent event received from this customer. This field is + * updated on calls that trigger the Rule Engine and that are not [dry + * requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). + * For example, [reserving a + * coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) + * for a customer doesn't impact this field. + * * @return lastActivity - **/ + **/ @ApiModelProperty(example = "2020-02-08T14:15:20Z", required = true, value = "Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. ") public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public ApplicationCustomer sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + /** + * An indicator of whether the customer is part of a sandbox or live + * Application. See the + * [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") @@ -339,22 +338,22 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public ApplicationCustomer advocateIntegrationId(String advocateIntegrationId) { - + this.advocateIntegrationId = advocateIntegrationId; return this; } - /** - * The Integration ID of the Customer Profile that referred this Customer in the Application. + /** + * The Integration ID of the Customer Profile that referred this Customer in the + * Application. + * * @return advocateIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The Integration ID of the Customer Profile that referred this Customer in the Application.") @@ -362,12 +361,10 @@ public String getAdvocateIntegrationId() { return advocateIntegrationId; } - public void setAdvocateIntegrationId(String advocateIntegrationId) { this.advocateIntegrationId = advocateIntegrationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -393,10 +390,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, loyaltyMemberships, audienceMemberships, lastActivity, sandbox, advocateIntegrationId); + return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, + loyaltyMemberships, audienceMemberships, lastActivity, sandbox, advocateIntegrationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -429,4 +426,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationCustomerEntity.java b/src/main/java/one/talon/model/ApplicationCustomerEntity.java index 1796b8f2..a1a0115d 100644 --- a/src/main/java/one/talon/model/ApplicationCustomerEntity.java +++ b/src/main/java/one/talon/model/ApplicationCustomerEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,32 +30,30 @@ public class ApplicationCustomerEntity { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; + public ApplicationCustomerEntity profileId(Long profileId) { - public ApplicationCustomerEntity profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The globally unique Talon.One ID of the customer that created this entity. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -74,7 +71,6 @@ public int hashCode() { return Objects.hash(profileId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -96,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationEntity.java b/src/main/java/one/talon/model/ApplicationEntity.java index d9b4b2e2..2ec3868f 100644 --- a/src/main/java/one/talon/model/ApplicationEntity.java +++ b/src/main/java/one/talon/model/ApplicationEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class ApplicationEntity { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; + public ApplicationEntity applicationId(Long applicationId) { - public ApplicationEntity applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(applicationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationEvent.java b/src/main/java/one/talon/model/ApplicationEvent.java index d38977bd..5655ba8d 100644 --- a/src/main/java/one/talon/model/ApplicationEvent.java +++ b/src/main/java/one/talon/model/ApplicationEvent.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,15 +43,15 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Integer storeId; + private Long storeId; public static final String SERIALIZED_NAME_STORE_INTEGRATION_ID = "storeIntegrationId"; @SerializedName(SERIALIZED_NAME_STORE_INTEGRATION_ID) @@ -60,7 +59,7 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Integer sessionId; + private Long sessionId; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -78,129 +77,124 @@ public class ApplicationEvent { @SerializedName(SERIALIZED_NAME_RULE_FAILURE_REASONS) private List ruleFailureReasons = null; + public ApplicationEvent id(Long id) { - public ApplicationEvent id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ApplicationEvent created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public ApplicationEvent applicationId(Long applicationId) { - public ApplicationEvent applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public ApplicationEvent profileId(Long profileId) { - public ApplicationEvent profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The globally unique Talon.One ID of the customer that created this entity. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } + public ApplicationEvent storeId(Long storeId) { - public ApplicationEvent storeId(Integer storeId) { - this.storeId = storeId; return this; } - /** + /** * The ID of the store. + * * @return storeId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the store.") - public Integer getStoreId() { + public Long getStoreId() { return storeId; } - - public void setStoreId(Integer storeId) { + public void setStoreId(Long storeId) { this.storeId = storeId; } - public ApplicationEvent storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -208,81 +202,76 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public ApplicationEvent sessionId(Long sessionId) { - public ApplicationEvent sessionId(Integer sessionId) { - this.sessionId = sessionId; return this; } - /** + /** * The globally unique Talon.One ID of the session that contains this event. + * * @return sessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The globally unique Talon.One ID of the session that contains this event.") - public Integer getSessionId() { + public Long getSessionId() { return sessionId; } - - public void setSessionId(Integer sessionId) { + public void setSessionId(Long sessionId) { this.sessionId = sessionId; } - public ApplicationEvent type(String type) { - + this.type = type; return this; } - /** + /** * A string representing the event. Must not be a reserved event name. + * * @return type - **/ + **/ @ApiModelProperty(required = true, value = "A string representing the event. Must not be a reserved event name.") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public ApplicationEvent attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Additional JSON serialized data associated with the event. + * * @return attributes - **/ + **/ @ApiModelProperty(required = true, value = "Additional JSON serialized data associated with the event.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public ApplicationEvent effects(List effects) { - + this.effects = effects; return this; } @@ -292,24 +281,23 @@ public ApplicationEvent addEffectsItem(Effect effectsItem) { return this; } - /** + /** * An array containing the effects that were applied as a result of this event. + * * @return effects - **/ + **/ @ApiModelProperty(required = true, value = "An array containing the effects that were applied as a result of this event.") public List getEffects() { return effects; } - public void setEffects(List effects) { this.effects = effects; } - public ApplicationEvent ruleFailureReasons(List ruleFailureReasons) { - + this.ruleFailureReasons = ruleFailureReasons; return this; } @@ -322,10 +310,12 @@ public ApplicationEvent addRuleFailureReasonsItem(RuleFailureReason ruleFailureR return this; } - /** - * An array containing the rule failure reasons which happened during this event. + /** + * An array containing the rule failure reasons which happened during this + * event. + * * @return ruleFailureReasons - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "An array containing the rule failure reasons which happened during this event.") @@ -333,12 +323,10 @@ public List getRuleFailureReasons() { return ruleFailureReasons; } - public void setRuleFailureReasons(List ruleFailureReasons) { this.ruleFailureReasons = ruleFailureReasons; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -363,10 +351,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, profileId, storeId, storeIntegrationId, sessionId, type, attributes, effects, ruleFailureReasons); + return Objects.hash(id, created, applicationId, profileId, storeId, storeIntegrationId, sessionId, type, attributes, + effects, ruleFailureReasons); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -398,4 +386,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationReferee.java b/src/main/java/one/talon/model/ApplicationReferee.java index 0f0d472e..3b1b4d41 100644 --- a/src/main/java/one/talon/model/ApplicationReferee.java +++ b/src/main/java/one/talon/model/ApplicationReferee.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class ApplicationReferee { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) @@ -54,139 +53,132 @@ public class ApplicationReferee { @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; + public ApplicationReferee applicationId(Long applicationId) { - public ApplicationReferee applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public ApplicationReferee sessionId(String sessionId) { - + this.sessionId = sessionId; return this; } - /** + /** * Integration ID of the session in which the customer redeemed the referral. + * * @return sessionId - **/ + **/ @ApiModelProperty(required = true, value = "Integration ID of the session in which the customer redeemed the referral.") public String getSessionId() { return sessionId; } - public void setSessionId(String sessionId) { this.sessionId = sessionId; } - public ApplicationReferee advocateIntegrationId(String advocateIntegrationId) { - + this.advocateIntegrationId = advocateIntegrationId; return this; } - /** + /** * Integration ID of the Advocate's Profile. + * * @return advocateIntegrationId - **/ + **/ @ApiModelProperty(required = true, value = "Integration ID of the Advocate's Profile.") public String getAdvocateIntegrationId() { return advocateIntegrationId; } - public void setAdvocateIntegrationId(String advocateIntegrationId) { this.advocateIntegrationId = advocateIntegrationId; } - public ApplicationReferee friendIntegrationId(String friendIntegrationId) { - + this.friendIntegrationId = friendIntegrationId; return this; } - /** + /** * Integration ID of the Friend's Profile. + * * @return friendIntegrationId - **/ + **/ @ApiModelProperty(required = true, value = "Integration ID of the Friend's Profile.") public String getFriendIntegrationId() { return friendIntegrationId; } - public void setFriendIntegrationId(String friendIntegrationId) { this.friendIntegrationId = friendIntegrationId; } - public ApplicationReferee code(String code) { - + this.code = code; return this; } - /** + /** * Advocate's referral code. + * * @return code - **/ + **/ @ApiModelProperty(required = true, value = "Advocate's referral code.") public String getCode() { return code; } - public void setCode(String code) { this.code = code; } - public ApplicationReferee created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Timestamp of the moment the customer redeemed the referral. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Timestamp of the moment the customer redeemed the referral.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -209,7 +201,6 @@ public int hashCode() { return Objects.hash(applicationId, sessionId, advocateIntegrationId, friendIntegrationId, code, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -236,4 +227,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationSession.java b/src/main/java/one/talon/model/ApplicationSession.java index 9d502a6c..e16f18b5 100644 --- a/src/main/java/one/talon/model/ApplicationSession.java +++ b/src/main/java/one/talon/model/ApplicationSession.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class ApplicationSession { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -54,11 +53,11 @@ public class ApplicationSession { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; public static final String SERIALIZED_NAME_PROFILEINTEGRATIONID = "profileintegrationid"; @SerializedName(SERIALIZED_NAME_PROFILEINTEGRATIONID) @@ -73,16 +72,22 @@ public class ApplicationSession { private String referral; /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. `closed` → `cancelled` or + * `partially_returned` 4. `partially_returned` → + * `cancelled` For more information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { OPEN("open"), - + CLOSED("closed"), - + PARTIALLY_RETURNED("partially_returned"), - + CANCELLED("cancelled"); private String value; @@ -117,7 +122,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -147,83 +152,80 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; + public ApplicationSession id(Long id) { - public ApplicationSession id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ApplicationSession created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public ApplicationSession integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public ApplicationSession storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -231,67 +233,64 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public ApplicationSession applicationId(Long applicationId) { - public ApplicationSession applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public ApplicationSession profileId(Long profileId) { - public ApplicationSession profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The globally unique Talon.One ID of the customer that created this entity. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - public ApplicationSession profileintegrationid(String profileintegrationid) { - + this.profileintegrationid = profileintegrationid; return this; } - /** + /** * Integration ID of the customer for the session. + * * @return profileintegrationid - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "382370BKDB946", value = "Integration ID of the customer for the session.") @@ -299,80 +298,81 @@ public String getProfileintegrationid() { return profileintegrationid; } - public void setProfileintegrationid(String profileintegrationid) { this.profileintegrationid = profileintegrationid; } - public ApplicationSession coupon(String coupon) { - + this.coupon = coupon; return this; } - /** + /** * Any coupon code entered. + * * @return coupon - **/ + **/ @ApiModelProperty(example = "BKDB946", required = true, value = "Any coupon code entered.") public String getCoupon() { return coupon; } - public void setCoupon(String coupon) { this.coupon = coupon; } - public ApplicationSession referral(String referral) { - + this.referral = referral; return this; } - /** + /** * Any referral code entered. + * * @return referral - **/ + **/ @ApiModelProperty(example = "BKDB946", required = true, value = "Any referral code entered.") public String getReferral() { return referral; } - public void setReferral(String referral) { this.referral = referral; } - public ApplicationSession state(StateEnum state) { - + this.state = state; return this; } - /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + /** + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. `closed` → `cancelled` or + * `partially_returned` 4. `partially_returned` → + * `cancelled` For more information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * * @return state - **/ + **/ @ApiModelProperty(example = "closed", required = true, value = "Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public ApplicationSession cartItems(List cartItems) { - + this.cartItems = cartItems; return this; } @@ -382,24 +382,23 @@ public ApplicationSession addCartItemsItem(CartItem cartItemsItem) { return this; } - /** + /** * Serialized JSON representation. + * * @return cartItems - **/ + **/ @ApiModelProperty(required = true, value = "Serialized JSON representation.") public List getCartItems() { return cartItems; } - public void setCartItems(List cartItems) { this.cartItems = cartItems; } - public ApplicationSession discounts(Map discounts) { - + this.discounts = discounts; return this; } @@ -409,76 +408,77 @@ public ApplicationSession putDiscountsItem(String key, BigDecimal discountsItem) return this; } - /** - * **API V1 only.** A map of labeled discount values, in the same currency as the session. If you are using the V2 endpoints, refer to the `totalDiscounts` property instead. + /** + * **API V1 only.** A map of labeled discount values, in the same currency as + * the session. If you are using the V2 endpoints, refer to the + * `totalDiscounts` property instead. + * * @return discounts - **/ + **/ @ApiModelProperty(required = true, value = "**API V1 only.** A map of labeled discount values, in the same currency as the session. If you are using the V2 endpoints, refer to the `totalDiscounts` property instead. ") public Map getDiscounts() { return discounts; } - public void setDiscounts(Map discounts) { this.discounts = discounts; } - public ApplicationSession totalDiscounts(BigDecimal totalDiscounts) { - + this.totalDiscounts = totalDiscounts; return this; } - /** - * The total sum of the discounts applied to this session. **Note:** If more than one session is returned, this value is displayed as `0`. + /** + * The total sum of the discounts applied to this session. **Note:** If more + * than one session is returned, this value is displayed as `0`. + * * @return totalDiscounts - **/ + **/ @ApiModelProperty(example = "100.0", required = true, value = "The total sum of the discounts applied to this session. **Note:** If more than one session is returned, this value is displayed as `0`. ") public BigDecimal getTotalDiscounts() { return totalDiscounts; } - public void setTotalDiscounts(BigDecimal totalDiscounts) { this.totalDiscounts = totalDiscounts; } - public ApplicationSession total(BigDecimal total) { - + this.total = total; return this; } - /** + /** * The total sum of the session before any discounts applied. + * * @return total - **/ + **/ @ApiModelProperty(example = "200.0", required = true, value = "The total sum of the session before any discounts applied.") public BigDecimal getTotal() { return total; } - public void setTotal(BigDecimal total) { this.total = total; } - public ApplicationSession attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this item.") @@ -486,12 +486,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -520,10 +518,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, integrationId, storeIntegrationId, applicationId, profileId, profileintegrationid, coupon, referral, state, cartItems, discounts, totalDiscounts, total, attributes); + return Objects.hash(id, created, integrationId, storeIntegrationId, applicationId, profileId, profileintegrationid, + coupon, referral, state, cartItems, discounts, totalDiscounts, total, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -559,4 +557,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationSessionEntity.java b/src/main/java/one/talon/model/ApplicationSessionEntity.java index 68f0dd81..e8ab2ada 100644 --- a/src/main/java/one/talon/model/ApplicationSessionEntity.java +++ b/src/main/java/one/talon/model/ApplicationSessionEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,30 @@ public class ApplicationSessionEntity { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Integer sessionId; + private Long sessionId; + public ApplicationSessionEntity sessionId(Long sessionId) { - public ApplicationSessionEntity sessionId(Integer sessionId) { - this.sessionId = sessionId; return this; } - /** - * The globally unique Talon.One ID of the session where this entity was created. + /** + * The globally unique Talon.One ID of the session where this entity was + * created. + * * @return sessionId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The globally unique Talon.One ID of the session where this entity was created.") - public Integer getSessionId() { + public Long getSessionId() { return sessionId; } - - public void setSessionId(Integer sessionId) { + public void setSessionId(Long sessionId) { this.sessionId = sessionId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +71,6 @@ public int hashCode() { return Objects.hash(sessionId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ApplicationStoreEntity.java b/src/main/java/one/talon/model/ApplicationStoreEntity.java index eeb2e37c..71de9342 100644 --- a/src/main/java/one/talon/model/ApplicationStoreEntity.java +++ b/src/main/java/one/talon/model/ApplicationStoreEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,32 +30,30 @@ public class ApplicationStoreEntity { public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Integer storeId; + private Long storeId; + public ApplicationStoreEntity storeId(Long storeId) { - public ApplicationStoreEntity storeId(Integer storeId) { - this.storeId = storeId; return this; } - /** + /** * The ID of the store. + * * @return storeId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the store.") - public Integer getStoreId() { + public Long getStoreId() { return storeId; } - - public void setStoreId(Integer storeId) { + public void setStoreId(Long storeId) { this.storeId = storeId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -74,7 +71,6 @@ public int hashCode() { return Objects.hash(storeId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -96,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java b/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java index 33712558..1c846141 100644 --- a/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java +++ b/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,30 @@ public class AsyncCouponDeletionJobResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; + public AsyncCouponDeletionJobResponse id(Long id) { - public AsyncCouponDeletionJobResponse id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +71,6 @@ public int hashCode() { return Objects.hash(id); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Attribute.java b/src/main/java/one/talon/model/Attribute.java index 69a2a65e..328690a8 100644 --- a/src/main/java/one/talon/model/Attribute.java +++ b/src/main/java/one/talon/model/Attribute.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Attribute { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,31 +41,34 @@ public class Attribute { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; /** - * The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. + * The name of the entity that can have this attribute. When creating or + * updating the entities of a given type, you can include an + * `attributes` object with keys corresponding to the `name` + * of the custom attributes for that type. */ @JsonAdapter(EntityEnum.Adapter.class) public enum EntityEnum { APPLICATION("Application"), - + CAMPAIGN("Campaign"), - + CUSTOMERPROFILE("CustomerProfile"), - + CUSTOMERSESSION("CustomerSession"), - + CARTITEM("CartItem"), - + COUPON("Coupon"), - + EVENT("Event"), - + GIVEAWAY("Giveaway"), - + REFERRAL("Referral"), - + STORE("Store"); private String value; @@ -101,7 +103,7 @@ public void write(final JsonWriter jsonWriter, final EntityEnum enumeration) thr @Override public EntityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EntityEnum.fromValue(value); } } @@ -124,26 +126,28 @@ public EntityEnum read(final JsonReader jsonReader) throws IOException { private String title; /** - * The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format. + * The data type of the attribute, a `time` attribute must be sent as + * a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * timestamp format. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { STRING("string"), - + NUMBER("number"), - + BOOLEAN("boolean"), - + TIME("time"), - + _LIST_STRING_("(list string)"), - + _LIST_NUMBER_("(list number)"), - + _LIST_TIME_("(list time)"), - + LOCATION("location"), - + _LIST_LOCATION_("(list location)"); private String value; @@ -178,7 +182,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -210,11 +214,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS = "subscribedCatalogsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS) - private List subscribedCatalogsIds = null; + private List subscribedCatalogsIds = null; /** * Gets or Sets allowedSubscriptions @@ -222,7 +226,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(AllowedSubscriptionsEnum.Adapter.class) public enum AllowedSubscriptionsEnum { APPLICATION("application"), - + CATALOG("catalog"); private String value; @@ -257,7 +261,7 @@ public void write(final JsonWriter jsonWriter, final AllowedSubscriptionsEnum en @Override public AllowedSubscriptionsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return AllowedSubscriptionsEnum.fromValue(value); } } @@ -269,107 +273,106 @@ public AllowedSubscriptionsEnum read(final JsonReader jsonReader) throws IOExcep public static final String SERIALIZED_NAME_EVENT_TYPE_ID = "eventTypeId"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE_ID) - private Integer eventTypeId; + private Long eventTypeId; + public Attribute id(Long id) { - public Attribute id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Attribute created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Attribute accountId(Long accountId) { - public Attribute accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public Attribute entity(EntityEnum entity) { - + this.entity = entity; return this; } - /** - * The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. + /** + * The name of the entity that can have this attribute. When creating or + * updating the entities of a given type, you can include an + * `attributes` object with keys corresponding to the `name` + * of the custom attributes for that type. + * * @return entity - **/ + **/ @ApiModelProperty(example = "Event", required = true, value = "The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type.") public EntityEnum getEntity() { return entity; } - public void setEntity(EntityEnum entity) { this.entity = entity; } - public Attribute eventType(String eventType) { - + this.eventType = eventType; return this; } - /** + /** * Get eventType + * * @return eventType - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "pageViewed", value = "") @@ -377,102 +380,103 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { this.eventType = eventType; } - public Attribute name(String name) { - + this.name = name; return this; } - /** - * The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. + /** + * The attribute name that will be used in API requests and Talang. E.g. if + * `name == \"region\"` then you would set the + * region attribute by including an `attributes.region` property in + * your request payload. + * * @return name - **/ + **/ @ApiModelProperty(example = "pageViewed", required = true, value = "The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Attribute title(String title) { - + this.title = title; return this; } - /** - * The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. + /** + * The human-readable name for the attribute that will be shown in the Campaign + * Manager. Like `name`, the combination of entity and title must also + * be unique. + * * @return title - **/ + **/ @ApiModelProperty(example = "Page view event", required = true, value = "The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public Attribute type(TypeEnum type) { - + this.type = type; return this; } - /** - * The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format. + /** + * The data type of the attribute, a `time` attribute must be sent as + * a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * timestamp format. + * * @return type - **/ + **/ @ApiModelProperty(example = "string", required = true, value = "The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public Attribute description(String description) { - + this.description = description; return this; } - /** + /** * A description of this attribute. + * * @return description - **/ + **/ @ApiModelProperty(example = "Event triggered when a customer displays a page.", required = true, value = "A description of this attribute.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Attribute suggestions(List suggestions) { - + this.suggestions = suggestions; return this; } @@ -482,32 +486,33 @@ public Attribute addSuggestionsItem(String suggestionsItem) { return this; } - /** + /** * A list of suggestions for the attribute. + * * @return suggestions - **/ + **/ @ApiModelProperty(required = true, value = "A list of suggestions for the attribute.") public List getSuggestions() { return suggestions; } - public void setSuggestions(List suggestions) { this.suggestions = suggestions; } - public Attribute hasAllowedList(Boolean hasAllowedList) { - + this.hasAllowedList = hasAllowedList; return this; } - /** - * Whether or not this attribute has an allowed list of values associated with it. + /** + * Whether or not this attribute has an allowed list of values associated with + * it. + * * @return hasAllowedList - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Whether or not this attribute has an allowed list of values associated with it.") @@ -515,22 +520,23 @@ public Boolean getHasAllowedList() { return hasAllowedList; } - public void setHasAllowedList(Boolean hasAllowedList) { this.hasAllowedList = hasAllowedList; } - public Attribute restrictedBySuggestions(Boolean restrictedBySuggestions) { - + this.restrictedBySuggestions = restrictedBySuggestions; return this; } - /** - * Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). + /** + * Whether or not this attribute's value is restricted by suggestions + * (`suggestions` property) or by an allowed list of value + * (`hasAllowedList` property). + * * @return restrictedBySuggestions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). ") @@ -538,98 +544,93 @@ public Boolean getRestrictedBySuggestions() { return restrictedBySuggestions; } - public void setRestrictedBySuggestions(Boolean restrictedBySuggestions) { this.restrictedBySuggestions = restrictedBySuggestions; } - public Attribute editable(Boolean editable) { - + this.editable = editable; return this; } - /** + /** * Whether or not this attribute can be edited. + * * @return editable - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Whether or not this attribute can be edited.") public Boolean getEditable() { return editable; } - public void setEditable(Boolean editable) { this.editable = editable; } + public Attribute subscribedApplicationsIds(List subscribedApplicationsIds) { - public Attribute subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Attribute addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public Attribute addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the applications where this attribute is available. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 4, 9]", value = "A list of the IDs of the applications where this attribute is available.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public Attribute subscribedCatalogsIds(List subscribedCatalogsIds) { - public Attribute subscribedCatalogsIds(List subscribedCatalogsIds) { - this.subscribedCatalogsIds = subscribedCatalogsIds; return this; } - public Attribute addSubscribedCatalogsIdsItem(Integer subscribedCatalogsIdsItem) { + public Attribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) { if (this.subscribedCatalogsIds == null) { - this.subscribedCatalogsIds = new ArrayList(); + this.subscribedCatalogsIds = new ArrayList(); } this.subscribedCatalogsIds.add(subscribedCatalogsIdsItem); return this; } - /** + /** * A list of the IDs of the catalogs where this attribute is available. + * * @return subscribedCatalogsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[2, 5]", value = "A list of the IDs of the catalogs where this attribute is available.") - public List getSubscribedCatalogsIds() { + public List getSubscribedCatalogsIds() { return subscribedCatalogsIds; } - - public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { + public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; } - public Attribute allowedSubscriptions(List allowedSubscriptions) { - + this.allowedSubscriptions = allowedSubscriptions; return this; } @@ -642,10 +643,12 @@ public Attribute addAllowedSubscriptionsItem(AllowedSubscriptionsEnum allowedSub return this; } - /** - * A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. + /** + * A list of allowed subscription types for this attribute. **Note:** This only + * applies to attributes associated with the `CartItem` entity. + * * @return allowedSubscriptions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[application, catalog]", value = "A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. ") @@ -653,35 +656,32 @@ public List getAllowedSubscriptions() { return allowedSubscriptions; } - public void setAllowedSubscriptions(List allowedSubscriptions) { this.allowedSubscriptions = allowedSubscriptions; } + public Attribute eventTypeId(Long eventTypeId) { - public Attribute eventTypeId(Integer eventTypeId) { - this.eventTypeId = eventTypeId; return this; } - /** + /** * Get eventTypeId + * * @return eventTypeId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "22", value = "") - public Integer getEventTypeId() { + public Long getEventTypeId() { return eventTypeId; } - - public void setEventTypeId(Integer eventTypeId) { + public void setEventTypeId(Long eventTypeId) { this.eventTypeId = eventTypeId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -712,10 +712,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, entity, eventType, name, title, type, description, suggestions, hasAllowedList, restrictedBySuggestions, editable, subscribedApplicationsIds, subscribedCatalogsIds, allowedSubscriptions, eventTypeId); + return Objects.hash(id, created, accountId, entity, eventType, name, title, type, description, suggestions, + hasAllowedList, restrictedBySuggestions, editable, subscribedApplicationsIds, subscribedCatalogsIds, + allowedSubscriptions, eventTypeId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -753,4 +754,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Audience.java b/src/main/java/one/talon/model/Audience.java index 52fde4a9..a9973d7d 100644 --- a/src/main/java/one/talon/model/Audience.java +++ b/src/main/java/one/talon/model/Audience.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,11 +31,11 @@ public class Audience { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -70,105 +69,101 @@ public class Audience { @SerializedName(SERIALIZED_NAME_LAST_UPDATE) private OffsetDateTime lastUpdate; + public Audience accountId(Long accountId) { - public Audience accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public Audience id(Long id) { - public Audience id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Audience created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Audience name(String name) { - + this.name = name; return this; } - /** + /** * The human-friendly display name for this audience. + * * @return name - **/ + **/ @ApiModelProperty(example = "Travel audience", required = true, value = "The human-friendly display name for this audience.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Audience sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** + /** * Indicates if this is a live or sandbox Application. + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if this is a live or sandbox Application.") @@ -176,22 +171,21 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public Audience description(String description) { - + this.description = description; return this; } - /** + /** * A description of the audience. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Travel audience 18-27", value = "A description of the audience.") @@ -199,22 +193,26 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Audience integration(String integration) { - + this.integration = integration; return this; } - /** - * The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `Shopify`, `Braze`, or `Iterable`. **Note:** If you do not integrate with any of these platforms, do not use this property. + /** + * The Talon.One-supported [3rd-party + * platform](https://docs.talon.one/docs/dev/technology-partners/overview) that + * this audience was created in. For example, `mParticle`, + * `Segment`, `Shopify`, `Braze`, or + * `Iterable`. **Note:** If you do not integrate with any of these + * platforms, do not use this property. + * * @return integration - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "mparticle", value = "The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `Shopify`, `Braze`, or `Iterable`. **Note:** If you do not integrate with any of these platforms, do not use this property. ") @@ -222,22 +220,23 @@ public String getIntegration() { return integration; } - public void setIntegration(String integration) { this.integration = integration; } - public Audience integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** - * The ID of this audience in the third-party integration. **Note:** To create an audience that doesn't come from a 3rd party platform, do not use this property. + /** + * The ID of this audience in the third-party integration. **Note:** To create + * an audience that doesn't come from a 3rd party platform, do not use this + * property. + * * @return integrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "382370BKDB946", value = "The ID of this audience in the third-party integration. **Note:** To create an audience that doesn't come from a 3rd party platform, do not use this property. ") @@ -245,22 +244,21 @@ public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public Audience createdIn3rdParty(Boolean createdIn3rdParty) { - + this.createdIn3rdParty = createdIn3rdParty; return this; } - /** + /** * Determines if this audience is a 3rd party audience or not. + * * @return createdIn3rdParty - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Determines if this audience is a 3rd party audience or not.") @@ -268,22 +266,21 @@ public Boolean getCreatedIn3rdParty() { return createdIn3rdParty; } - public void setCreatedIn3rdParty(Boolean createdIn3rdParty) { this.createdIn3rdParty = createdIn3rdParty; } - public Audience lastUpdate(OffsetDateTime lastUpdate) { - + this.lastUpdate = lastUpdate; return this; } - /** + /** * The last time that the audience memberships changed. + * * @return lastUpdate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-04-26T11:02:38Z", value = "The last time that the audience memberships changed.") @@ -291,12 +288,10 @@ public OffsetDateTime getLastUpdate() { return lastUpdate; } - public void setLastUpdate(OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -320,10 +315,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(accountId, id, created, name, sandbox, description, integration, integrationId, createdIn3rdParty, lastUpdate); + return Objects.hash(accountId, id, created, name, sandbox, description, integration, integrationId, + createdIn3rdParty, lastUpdate); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -354,4 +349,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AudienceAnalytics.java b/src/main/java/one/talon/model/AudienceAnalytics.java index 14e7af6c..ea13f5aa 100644 --- a/src/main/java/one/talon/model/AudienceAnalytics.java +++ b/src/main/java/one/talon/model/AudienceAnalytics.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,59 +31,56 @@ public class AudienceAnalytics { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Integer audienceId; + private Long audienceId; public static final String SERIALIZED_NAME_MEMBERS_COUNT = "membersCount"; @SerializedName(SERIALIZED_NAME_MEMBERS_COUNT) - private Integer membersCount; + private Long membersCount; + public AudienceAnalytics audienceId(Long audienceId) { - public AudienceAnalytics audienceId(Integer audienceId) { - this.audienceId = audienceId; return this; } - /** + /** * The ID of the audience. + * * @return audienceId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the audience.") - public Integer getAudienceId() { + public Long getAudienceId() { return audienceId; } - - public void setAudienceId(Integer audienceId) { + public void setAudienceId(Long audienceId) { this.audienceId = audienceId; } + public AudienceAnalytics membersCount(Long membersCount) { - public AudienceAnalytics membersCount(Integer membersCount) { - this.membersCount = membersCount; return this; } - /** + /** * The member count of the audience. + * * @return membersCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1234", value = "The member count of the audience.") - public Integer getMembersCount() { + public Long getMembersCount() { return membersCount; } - - public void setMembersCount(Integer membersCount) { + public void setMembersCount(Long membersCount) { this.membersCount = membersCount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,7 +99,6 @@ public int hashCode() { return Objects.hash(audienceId, membersCount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -126,4 +121,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AudienceCustomer.java b/src/main/java/one/talon/model/AudienceCustomer.java index 6bcea89a..2d9b8652 100644 --- a/src/main/java/one/talon/model/AudienceCustomer.java +++ b/src/main/java/one/talon/model/AudienceCustomer.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +52,11 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Integer closedSessions; + private Long closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -81,169 +80,164 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_CONNECTED_APPLICATIONS_IDS = "connectedApplicationsIds"; @SerializedName(SERIALIZED_NAME_CONNECTED_APPLICATIONS_IDS) - private List connectedApplicationsIds = null; + private List connectedApplicationsIds = null; public static final String SERIALIZED_NAME_CONNECTED_AUDIENCES = "connectedAudiences"; @SerializedName(SERIALIZED_NAME_CONNECTED_AUDIENCES) - private List connectedAudiences = null; + private List connectedAudiences = null; + public AudienceCustomer id(Long id) { - public AudienceCustomer id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AudienceCustomer created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public AudienceCustomer integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public AudienceCustomer attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @ApiModelProperty(example = "{\"Language\":\"english\",\"ShippingCountry\":\"DE\"}", required = true, value = "Arbitrary properties associated with this item.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public AudienceCustomer accountId(Long accountId) { - public AudienceCustomer accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the Talon.One account that owns this profile. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public AudienceCustomer closedSessions(Long closedSessions) { - public AudienceCustomer closedSessions(Integer closedSessions) { - this.closedSessions = closedSessions; return this; } - /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + /** + * The total amount of closed sessions by a customer. A closed session is a + * successful purchase. + * * @return closedSessions - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") - public Integer getClosedSessions() { + public Long getClosedSessions() { return closedSessions; } - - public void setClosedSessions(Integer closedSessions) { + public void setClosedSessions(Long closedSessions) { this.closedSessions = closedSessions; } - public AudienceCustomer totalSales(BigDecimal totalSales) { - + this.totalSales = totalSales; return this; } - /** - * The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. + /** + * The total amount of money spent by the customer **before** discounts are + * applied. The total sales amount excludes the following: - Cancelled or + * reopened sessions. - Returned items. + * * @return totalSales - **/ + **/ @ApiModelProperty(example = "299.99", required = true, value = "The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. ") public BigDecimal getTotalSales() { return totalSales; } - public void setTotalSales(BigDecimal totalSales) { this.totalSales = totalSales; } - public AudienceCustomer loyaltyMemberships(List loyaltyMemberships) { - + this.loyaltyMemberships = loyaltyMemberships; return this; } @@ -256,10 +250,11 @@ public AudienceCustomer addLoyaltyMembershipsItem(LoyaltyMembership loyaltyMembe return this; } - /** - * **DEPRECATED** A list of loyalty programs joined by the customer. + /** + * **DEPRECATED** A list of loyalty programs joined by the customer. + * * @return loyaltyMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "**DEPRECATED** A list of loyalty programs joined by the customer. ") @@ -267,14 +262,12 @@ public List getLoyaltyMemberships() { return loyaltyMemberships; } - public void setLoyaltyMemberships(List loyaltyMemberships) { this.loyaltyMemberships = loyaltyMemberships; } - public AudienceCustomer audienceMemberships(List audienceMemberships) { - + this.audienceMemberships = audienceMemberships; return this; } @@ -287,10 +280,11 @@ public AudienceCustomer addAudienceMembershipsItem(AudienceMembership audienceMe return this; } - /** + /** * The audiences the customer belongs to. + * * @return audienceMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The audiences the customer belongs to.") @@ -298,44 +292,49 @@ public List getAudienceMemberships() { return audienceMemberships; } - public void setAudienceMemberships(List audienceMemberships) { this.audienceMemberships = audienceMemberships; } - public AudienceCustomer lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** - * Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. + /** + * Timestamp of the most recent event received from this customer. This field is + * updated on calls that trigger the Rule Engine and that are not [dry + * requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). + * For example, [reserving a + * coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) + * for a customer doesn't impact this field. + * * @return lastActivity - **/ + **/ @ApiModelProperty(example = "2020-02-08T14:15:20Z", required = true, value = "Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. ") public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public AudienceCustomer sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + /** + * An indicator of whether the customer is part of a sandbox or live + * Application. See the + * [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") @@ -343,74 +342,72 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } + public AudienceCustomer connectedApplicationsIds(List connectedApplicationsIds) { - public AudienceCustomer connectedApplicationsIds(List connectedApplicationsIds) { - this.connectedApplicationsIds = connectedApplicationsIds; return this; } - public AudienceCustomer addConnectedApplicationsIdsItem(Integer connectedApplicationsIdsItem) { + public AudienceCustomer addConnectedApplicationsIdsItem(Long connectedApplicationsIdsItem) { if (this.connectedApplicationsIds == null) { - this.connectedApplicationsIds = new ArrayList(); + this.connectedApplicationsIds = new ArrayList(); } this.connectedApplicationsIds.add(connectedApplicationsIdsItem); return this; } - /** - * A list of the IDs of the Applications that are connected to this customer profile. + /** + * A list of the IDs of the Applications that are connected to this customer + * profile. + * * @return connectedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications that are connected to this customer profile.") - public List getConnectedApplicationsIds() { + public List getConnectedApplicationsIds() { return connectedApplicationsIds; } - - public void setConnectedApplicationsIds(List connectedApplicationsIds) { + public void setConnectedApplicationsIds(List connectedApplicationsIds) { this.connectedApplicationsIds = connectedApplicationsIds; } + public AudienceCustomer connectedAudiences(List connectedAudiences) { - public AudienceCustomer connectedAudiences(List connectedAudiences) { - this.connectedAudiences = connectedAudiences; return this; } - public AudienceCustomer addConnectedAudiencesItem(Integer connectedAudiencesItem) { + public AudienceCustomer addConnectedAudiencesItem(Long connectedAudiencesItem) { if (this.connectedAudiences == null) { - this.connectedAudiences = new ArrayList(); + this.connectedAudiences = new ArrayList(); } this.connectedAudiences.add(connectedAudiencesItem); return this; } - /** - * A list of the IDs of the audiences that are connected to this customer profile. + /** + * A list of the IDs of the audiences that are connected to this customer + * profile. + * * @return connectedAudiences - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the audiences that are connected to this customer profile.") - public List getConnectedAudiences() { + public List getConnectedAudiences() { return connectedAudiences; } - - public void setConnectedAudiences(List connectedAudiences) { + public void setConnectedAudiences(List connectedAudiences) { this.connectedAudiences = connectedAudiences; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -437,10 +434,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, loyaltyMemberships, audienceMemberships, lastActivity, sandbox, connectedApplicationsIds, connectedAudiences); + return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, + loyaltyMemberships, audienceMemberships, lastActivity, sandbox, connectedApplicationsIds, connectedAudiences); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -474,4 +471,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AudienceMembership.java b/src/main/java/one/talon/model/AudienceMembership.java index a835a371..5e775676 100644 --- a/src/main/java/one/talon/model/AudienceMembership.java +++ b/src/main/java/one/talon/model/AudienceMembership.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,57 +30,54 @@ public class AudienceMembership { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AudienceMembership id(Long id) { - public AudienceMembership id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the audience belonging to this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the audience belonging to this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public AudienceMembership name(String name) { - + this.name = name; return this; } - /** + /** * The Name of the audience belonging to this entity. + * * @return name - **/ + **/ @ApiModelProperty(example = "Travel audience", required = true, value = "The Name of the audience belonging to this entity.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(id, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/AwardGiveawayEffectProps.java b/src/main/java/one/talon/model/AwardGiveawayEffectProps.java index 0e970cb1..e0ebbcd9 100644 --- a/src/main/java/one/talon/model/AwardGiveawayEffectProps.java +++ b/src/main/java/one/talon/model/AwardGiveawayEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,14 +24,16 @@ import java.io.IOException; /** - * The properties specific to the \"awardGiveaway\" effect. This effect contains information on the giveaway item, and which profile it was awarded to. + * The properties specific to the \"awardGiveaway\" effect. This + * effect contains information on the giveaway item, and which profile it was + * awarded to. */ @ApiModel(description = "The properties specific to the \"awardGiveaway\" effect. This effect contains information on the giveaway item, and which profile it was awarded to.") public class AwardGiveawayEffectProps { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Integer poolId; + private Long poolId; public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; @SerializedName(SERIALIZED_NAME_POOL_NAME) @@ -44,123 +45,117 @@ public class AwardGiveawayEffectProps { public static final String SERIALIZED_NAME_GIVEAWAY_ID = "giveawayId"; @SerializedName(SERIALIZED_NAME_GIVEAWAY_ID) - private Integer giveawayId; + private Long giveawayId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) private String code; + public AwardGiveawayEffectProps poolId(Long poolId) { - public AwardGiveawayEffectProps poolId(Integer poolId) { - this.poolId = poolId; return this; } - /** + /** * The ID of the giveaways pool the code was taken from. + * * @return poolId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the giveaways pool the code was taken from.") - public Integer getPoolId() { + public Long getPoolId() { return poolId; } - - public void setPoolId(Integer poolId) { + public void setPoolId(Long poolId) { this.poolId = poolId; } - public AwardGiveawayEffectProps poolName(String poolName) { - + this.poolName = poolName; return this; } - /** + /** * The name of the giveaways pool the code was taken from. + * * @return poolName - **/ + **/ @ApiModelProperty(example = "My pool", required = true, value = "The name of the giveaways pool the code was taken from.") public String getPoolName() { return poolName; } - public void setPoolName(String poolName) { this.poolName = poolName; } - public AwardGiveawayEffectProps recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The integration ID of the profile that was awarded the giveaway. + * * @return recipientIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID of the profile that was awarded the giveaway.") public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } + public AwardGiveawayEffectProps giveawayId(Long giveawayId) { - public AwardGiveawayEffectProps giveawayId(Integer giveawayId) { - this.giveawayId = giveawayId; return this; } - /** + /** * The internal ID for the giveaway that was awarded. + * * @return giveawayId - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The internal ID for the giveaway that was awarded.") - public Integer getGiveawayId() { + public Long getGiveawayId() { return giveawayId; } - - public void setGiveawayId(Integer giveawayId) { + public void setGiveawayId(Long giveawayId) { this.giveawayId = giveawayId; } - public AwardGiveawayEffectProps code(String code) { - + this.code = code; return this; } - /** + /** * The giveaway code that was awarded. + * * @return code - **/ + **/ @ApiModelProperty(example = "57638t-67439hty", required = true, value = "The giveaway code that was awarded.") public String getCode() { return code; } - public void setCode(String code) { this.code = code; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -182,7 +177,6 @@ public int hashCode() { return Objects.hash(poolId, poolName, recipientIntegrationId, giveawayId, code); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -208,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseCampaign.java b/src/main/java/one/talon/model/BaseCampaign.java index 4d5dfc1b..433cc3d7 100644 --- a/src/main/java/one/talon/model/BaseCampaign.java +++ b/src/main/java/one/talon/model/BaseCampaign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -55,14 +54,14 @@ public class BaseCampaign { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"); private String value; @@ -97,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -109,7 +108,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -121,15 +120,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -164,7 +163,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -188,15 +187,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -231,7 +232,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -243,41 +244,40 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; - + private List linkedStoreIds = null; public BaseCampaign name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public BaseCampaign description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -285,22 +285,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public BaseCampaign startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -308,22 +307,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public BaseCampaign endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -331,22 +329,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public BaseCampaign attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -354,59 +351,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public BaseCampaign state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public BaseCampaign activeRulesetId(Long activeRulesetId) { - public BaseCampaign activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public BaseCampaign tags(List tags) { - + this.tags = tags; return this; } @@ -416,24 +410,23 @@ public BaseCampaign addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public BaseCampaign features(List features) { - + this.features = features; return this; } @@ -443,32 +436,32 @@ public BaseCampaign addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public BaseCampaign couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -476,22 +469,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public BaseCampaign referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -499,14 +491,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public BaseCampaign limits(List limits) { - + this.limits = limits; return this; } @@ -516,63 +506,68 @@ public BaseCampaign addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public BaseCampaign campaignGroups(List campaignGroups) { - public BaseCampaign campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public BaseCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { + public BaseCampaign addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - public BaseCampaign type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "advanced", value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") @@ -580,43 +575,44 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public BaseCampaign linkedStoreIds(List linkedStoreIds) { - public BaseCampaign linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public BaseCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public BaseCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that you want to link to the campaign. **Note:** + * Campaigns with linked store IDs will only be evaluated when there is a + * [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -645,10 +641,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, + couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -684,4 +680,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseCampaignForNotification.java b/src/main/java/one/talon/model/BaseCampaignForNotification.java index 3f314c58..1901e0c4 100644 --- a/src/main/java/one/talon/model/BaseCampaignForNotification.java +++ b/src/main/java/one/talon/model/BaseCampaignForNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -55,22 +54,22 @@ public class BaseCampaignForNotification { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"), - + DRAFT("draft"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + EXPIRED("expired"); private String value; @@ -105,7 +104,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -117,7 +116,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -129,13 +128,13 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"); private String value; @@ -170,7 +169,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -194,19 +193,21 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; + private Long evaluationGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -241,7 +242,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -253,41 +254,40 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; - + private List linkedStoreIds = null; public BaseCampaignForNotification name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public BaseCampaignForNotification description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -295,22 +295,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public BaseCampaignForNotification startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -318,22 +317,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public BaseCampaignForNotification endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -341,22 +339,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public BaseCampaignForNotification attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -364,59 +361,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public BaseCampaignForNotification state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public BaseCampaignForNotification activeRulesetId(Long activeRulesetId) { - public BaseCampaignForNotification activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public BaseCampaignForNotification tags(List tags) { - + this.tags = tags; return this; } @@ -426,24 +420,23 @@ public BaseCampaignForNotification addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public BaseCampaignForNotification features(List features) { - + this.features = features; return this; } @@ -453,32 +446,32 @@ public BaseCampaignForNotification addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public BaseCampaignForNotification couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -486,22 +479,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public BaseCampaignForNotification referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -509,14 +501,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public BaseCampaignForNotification limits(List limits) { - + this.limits = limits; return this; } @@ -526,86 +516,90 @@ public BaseCampaignForNotification addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public BaseCampaignForNotification campaignGroups(List campaignGroups) { - public BaseCampaignForNotification campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public BaseCampaignForNotification addCampaignGroupsItem(Integer campaignGroupsItem) { + public BaseCampaignForNotification addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } + public BaseCampaignForNotification evaluationGroupId(Long evaluationGroupId) { - public BaseCampaignForNotification evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - public BaseCampaignForNotification type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "advanced", value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") @@ -613,43 +607,43 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public BaseCampaignForNotification linkedStoreIds(List linkedStoreIds) { - public BaseCampaignForNotification linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public BaseCampaignForNotification addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public BaseCampaignForNotification addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that are linked to the campaign. **Note:** Campaigns with + * linked store IDs will only be evaluated when there is a [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -679,10 +673,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, + couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -719,4 +713,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseLoyaltyProgram.java b/src/main/java/one/talon/model/BaseLoyaltyProgram.java index c5553170..b8fdfeb7 100644 --- a/src/main/java/one/talon/model/BaseLoyaltyProgram.java +++ b/src/main/java/one/talon/model/BaseLoyaltyProgram.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -43,7 +42,7 @@ public class BaseLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -59,21 +58,27 @@ public class BaseLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Integer usersPerCardLimit; + private Long usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. */ @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) public enum ProgramJoinPolicyEnum { NOT_JOIN("not_join"), - + POINTS_ACTIVATED("points_activated"), - + POINTS_EARNED("points_earned"); private String value; @@ -108,7 +113,7 @@ public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enume @Override public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ProgramJoinPolicyEnum.fromValue(value); } } @@ -119,16 +124,24 @@ public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOExceptio private ProgramJoinPolicyEnum programJoinPolicy; /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. */ @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) public enum TiersExpirationPolicyEnum { TIER_START_DATE("tier_start_date"), - + PROGRAM_JOIN_DATE("program_join_date"), - + CUSTOMER_ATTRIBUTE("customer_attribute"), - + ABSOLUTE_EXPIRATION("absolute_expiration"); private String value; @@ -163,7 +176,7 @@ public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum e @Override public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersExpirationPolicyEnum.fromValue(value); } } @@ -182,12 +195,16 @@ public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOExce private String tiersExpireIn; /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. */ @JsonAdapter(TiersDowngradePolicyEnum.Adapter.class) public enum TiersDowngradePolicyEnum { ONE_DOWN("one_down"), - + BALANCE_BASED("balance_based"); private String value; @@ -222,7 +239,7 @@ public void write(final JsonWriter jsonWriter, final TiersDowngradePolicyEnum en @Override public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersDowngradePolicyEnum.fromValue(value); } } @@ -237,14 +254,21 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep private CodeGeneratorSettings cardCodeSettings; /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. */ @JsonAdapter(ReturnPolicyEnum.Adapter.class) public enum ReturnPolicyEnum { ONLY_PENDING("only_pending"), - + WITHIN_BALANCE("within_balance"), - + UNLIMITED("unlimited"); private String value; @@ -279,7 +303,7 @@ public void write(final JsonWriter jsonWriter, final ReturnPolicyEnum enumeratio @Override public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReturnPolicyEnum.fromValue(value); } } @@ -289,17 +313,17 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_RETURN_POLICY) private ReturnPolicyEnum returnPolicy; - public BaseLoyaltyProgram title(String title) { - + this.title = title; return this; } - /** + /** * The display title for the Loyalty Program. + * * @return title - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Point collection", value = "The display title for the Loyalty Program.") @@ -307,22 +331,21 @@ public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public BaseLoyaltyProgram description(String description) { - + this.description = description; return this; } - /** + /** * Description of our Loyalty Program. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Customers collect 10 points per 1$ spent", value = "Description of our Loyalty Program.") @@ -330,53 +353,60 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public BaseLoyaltyProgram subscribedApplications(List subscribedApplications) { - public BaseLoyaltyProgram subscribedApplications(List subscribedApplications) { - this.subscribedApplications = subscribedApplications; return this; } - public BaseLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { + public BaseLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; } - /** - * A list containing the IDs of all applications that are subscribed to this Loyalty Program. + /** + * A list containing the IDs of all applications that are subscribed to this + * Loyalty Program. + * * @return subscribedApplications - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } - public BaseLoyaltyProgram defaultValidity(String defaultValidity) { - + this.defaultValidity = defaultValidity; return this; } - /** - * The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration after which new loyalty points should expire. Can be + * 'unlimited' or a specific time. The time format is a number followed + * by one letter indicating the time unit, like '30s', '40m', + * '1h', '5D', '7W', or 10M'. These rounding + * suffixes are also supported: - '_D' for rounding down. Can be used as + * a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultValidity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2W_U", value = "The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") @@ -384,22 +414,29 @@ public String getDefaultValidity() { return defaultValidity; } - public void setDefaultValidity(String defaultValidity) { this.defaultValidity = defaultValidity; } - public BaseLoyaltyProgram defaultPending(String defaultPending) { - + this.defaultPending = defaultPending; return this; } - /** - * The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration of the pending time after which points should be valid. + * Can be 'immediate' or a specific time. The time format is a number + * followed by one letter indicating the time unit, like '30s', + * '40m', '1h', '5D', '7W', or 10M'. These + * rounding suffixes are also supported: - '_D' for rounding down. Can + * be used as a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultPending - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "immediate", value = "The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") @@ -407,22 +444,21 @@ public String getDefaultPending() { return defaultPending; } - public void setDefaultPending(String defaultPending) { this.defaultPending = defaultPending; } - public BaseLoyaltyProgram allowSubledger(Boolean allowSubledger) { - + this.allowSubledger = allowSubledger; return this; } - /** + /** * Indicates if this program supports subledgers inside the program. + * * @return allowSubledger - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates if this program supports subledgers inside the program.") @@ -430,46 +466,47 @@ public Boolean getAllowSubledger() { return allowSubledger; } - public void setAllowSubledger(Boolean allowSubledger) { this.allowSubledger = allowSubledger; } + public BaseLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { - public BaseLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { - this.usersPerCardLimit = usersPerCardLimit; return this; } - /** - * The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. + /** + * The max amount of user profiles with whom a card can be shared. This can be + * set to 0 for no limit. This property is only used when `cardBased` + * is `true`. * minimum: 0 + * * @return usersPerCardLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Integer getUsersPerCardLimit() { + public Long getUsersPerCardLimit() { return usersPerCardLimit; } - - public void setUsersPerCardLimit(Integer usersPerCardLimit) { + public void setUsersPerCardLimit(Long usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } - public BaseLoyaltyProgram sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") @@ -477,22 +514,27 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public BaseLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { - + this.programJoinPolicy = programJoinPolicy; return this; } - /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + /** + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. + * * @return programJoinPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. ") @@ -500,22 +542,29 @@ public ProgramJoinPolicyEnum getProgramJoinPolicy() { return programJoinPolicy; } - public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { this.programJoinPolicy = programJoinPolicy; } - public BaseLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { - + this.tiersExpirationPolicy = tiersExpirationPolicy; return this; } - /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + /** + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. + * * @return tiersExpirationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. ") @@ -523,22 +572,23 @@ public TiersExpirationPolicyEnum getTiersExpirationPolicy() { return tiersExpirationPolicy; } - public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { this.tiersExpirationPolicy = tiersExpirationPolicy; } - public BaseLoyaltyProgram tierCycleStartDate(OffsetDateTime tierCycleStartDate) { - + this.tierCycleStartDate = tierCycleStartDate; return this; } - /** - * Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. + /** + * Timestamp at which the tier cycle starts for all customers in the loyalty + * program. **Note**: This is only required when the tier expiration policy is + * set to `absolute_expiration`. + * * @return tierCycleStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. ") @@ -546,22 +596,30 @@ public OffsetDateTime getTierCycleStartDate() { return tierCycleStartDate; } - public void setTierCycleStartDate(OffsetDateTime tierCycleStartDate) { this.tierCycleStartDate = tierCycleStartDate; } - public BaseLoyaltyProgram tiersExpireIn(String tiersExpireIn) { - + this.tiersExpireIn = tiersExpireIn; return this; } - /** - * The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + /** + * The amount of time after which the tier expires and is reevaluated. The time + * format is an **integer** followed by one letter indicating the time unit. + * Examples: `30s`, `40m`, `1h`, `5D`, + * `7W`, `10M`, `15Y`. Available units: - + * `s`: seconds - `m`: minutes - `h`: hours - + * `D`: days - `W`: weeks - `M`: months - + * `Y`: years You can round certain units up or down: - `_D` + * for rounding down days only. Signifies the start of the day. - `_U` + * for rounding up days, weeks, months and years. Signifies the end of the day, + * week, month or year. + * * @return tiersExpireIn - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "27W_U", value = "The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. ") @@ -569,22 +627,25 @@ public String getTiersExpireIn() { return tiersExpireIn; } - public void setTiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; } - public BaseLoyaltyProgram tiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { - + this.tiersDowngradePolicy = tiersDowngradePolicy; return this; } - /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + /** + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. + * * @return tiersDowngradePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. ") @@ -592,22 +653,21 @@ public TiersDowngradePolicyEnum getTiersDowngradePolicy() { return tiersDowngradePolicy; } - public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { this.tiersDowngradePolicy = tiersDowngradePolicy; } - public BaseLoyaltyProgram cardCodeSettings(CodeGeneratorSettings cardCodeSettings) { - + this.cardCodeSettings = cardCodeSettings; return this; } - /** + /** * Get cardCodeSettings + * * @return cardCodeSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -615,22 +675,28 @@ public CodeGeneratorSettings getCardCodeSettings() { return cardCodeSettings; } - public void setCardCodeSettings(CodeGeneratorSettings cardCodeSettings) { this.cardCodeSettings = cardCodeSettings; } - public BaseLoyaltyProgram returnPolicy(ReturnPolicyEnum returnPolicy) { - + this.returnPolicy = returnPolicy; return this; } - /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + /** + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. + * * @return returnPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. ") @@ -638,12 +704,10 @@ public ReturnPolicyEnum getReturnPolicy() { return returnPolicy; } - public void setReturnPolicy(ReturnPolicyEnum returnPolicy) { this.returnPolicy = returnPolicy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -672,10 +736,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, tiersDowngradePolicy, cardCodeSettings, returnPolicy); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, + usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, + tiersDowngradePolicy, cardCodeSettings, returnPolicy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -711,4 +776,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseNotification.java b/src/main/java/one/talon/model/BaseNotification.java index 15bf0038..13724416 100644 --- a/src/main/java/one/talon/model/BaseNotification.java +++ b/src/main/java/one/talon/model/BaseNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -44,7 +43,7 @@ public class BaseNotification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; /** * The notification type. @@ -52,27 +51,27 @@ public class BaseNotification { @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CAMPAIGN("campaign"), - + LOYALTY_ADDED_DEDUCTED_POINTS("loyalty_added_deducted_points"), - + CARD_ADDED_DEDUCTED_POINTS("card_added_deducted_points"), - + COUPON("coupon"), - + EXPIRING_COUPONS("expiring_coupons"), - + EXPIRING_POINTS("expiring_points"), - + CARD_EXPIRING_POINTS("card_expiring_points"), - + PENDING_TO_ACTIVE_POINTS("pending_to_active_points"), - + STRIKETHROUGH_PRICING("strikethrough_pricing"), - + TIER_DOWNGRADE("tier_downgrade"), - + TIER_UPGRADE("tier_upgrade"), - + TIER_WILL_DOWNGRADE("tier_will_downgrade"); private String value; @@ -107,7 +106,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -117,39 +116,38 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private TypeEnum type; - public BaseNotification policy(Object policy) { - + this.policy = policy; return this; } - /** + /** * Indicates which notification properties to apply. + * * @return policy - **/ + **/ @ApiModelProperty(required = true, value = "Indicates which notification properties to apply.") public Object getPolicy() { return policy; } - public void setPolicy(Object policy) { this.policy = policy; } - public BaseNotification enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Indicates whether the notification is activated. + * * @return enabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates whether the notification is activated.") @@ -157,79 +155,74 @@ public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public BaseNotification webhook(BaseNotificationWebhook webhook) { - + this.webhook = webhook; return this; } - /** + /** * Get webhook + * * @return webhook - **/ + **/ @ApiModelProperty(required = true, value = "") public BaseNotificationWebhook getWebhook() { return webhook; } - public void setWebhook(BaseNotificationWebhook webhook) { this.webhook = webhook; } + public BaseNotification id(Long id) { - public BaseNotification id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. * minimum: 1 + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public BaseNotification type(TypeEnum type) { - + this.type = type; return this; } - /** + /** * The notification type. + * * @return type - **/ + **/ @ApiModelProperty(example = "loyalty_added_deducted_points", required = true, value = "The notification type.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -251,7 +244,6 @@ public int hashCode() { return Objects.hash(policy, enabled, webhook, id, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -277,4 +269,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseNotificationWebhook.java b/src/main/java/one/talon/model/BaseNotificationWebhook.java index 1c1ef0c1..f2468fc8 100644 --- a/src/main/java/one/talon/model/BaseNotificationWebhook.java +++ b/src/main/java/one/talon/model/BaseNotificationWebhook.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class BaseNotificationWebhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -56,97 +55,92 @@ public class BaseNotificationWebhook { @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled = true; + public BaseNotificationWebhook id(Long id) { - public BaseNotificationWebhook id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public BaseNotificationWebhook created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public BaseNotificationWebhook modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public BaseNotificationWebhook url(String url) { - + this.url = url; return this; } - /** + /** * API URL for the given webhook-based notification. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "API URL for the given webhook-based notification.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public BaseNotificationWebhook headers(List headers) { - + this.headers = headers; return this; } @@ -156,32 +150,32 @@ public BaseNotificationWebhook addHeadersItem(String headersItem) { return this; } - /** + /** * List of API HTTP headers for the given webhook-based notification. + * * @return headers - **/ + **/ @ApiModelProperty(required = true, value = "List of API HTTP headers for the given webhook-based notification.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public BaseNotificationWebhook enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Indicates whether the notification is activated. + * * @return enabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether the notification is activated.") @@ -189,12 +183,10 @@ public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -217,7 +209,6 @@ public int hashCode() { return Objects.hash(id, created, modified, url, headers, enabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -244,4 +235,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BaseSamlConnection.java b/src/main/java/one/talon/model/BaseSamlConnection.java index c8d23fbe..769035ab 100644 --- a/src/main/java/one/talon/model/BaseSamlConnection.java +++ b/src/main/java/one/talon/model/BaseSamlConnection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class BaseSamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -61,127 +60,122 @@ public class BaseSamlConnection { @SerializedName(SERIALIZED_NAME_AUDIENCE_U_R_I) private String audienceURI; + public BaseSamlConnection accountId(Long accountId) { - public BaseSamlConnection accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public BaseSamlConnection name(String name) { - + this.name = name; return this; } - /** + /** * ID of the SAML service. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "ID of the SAML service.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public BaseSamlConnection enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this SAML connection active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this SAML connection active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public BaseSamlConnection issuer(String issuer) { - + this.issuer = issuer; return this; } - /** + /** * Identity Provider Entity ID. + * * @return issuer - **/ + **/ @ApiModelProperty(required = true, value = "Identity Provider Entity ID.") public String getIssuer() { return issuer; } - public void setIssuer(String issuer) { this.issuer = issuer; } - public BaseSamlConnection signOnURL(String signOnURL) { - + this.signOnURL = signOnURL; return this; } - /** + /** * Single Sign-On URL. + * * @return signOnURL - **/ + **/ @ApiModelProperty(required = true, value = "Single Sign-On URL.") public String getSignOnURL() { return signOnURL; } - public void setSignOnURL(String signOnURL) { this.signOnURL = signOnURL; } - public BaseSamlConnection signOutURL(String signOutURL) { - + this.signOutURL = signOutURL; return this; } - /** + /** * Single Sign-Out URL. + * * @return signOutURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Single Sign-Out URL.") @@ -189,22 +183,21 @@ public String getSignOutURL() { return signOutURL; } - public void setSignOutURL(String signOutURL) { this.signOutURL = signOutURL; } - public BaseSamlConnection metadataURL(String metadataURL) { - + this.metadataURL = metadataURL; return this; } - /** + /** * Metadata URL. + * * @return metadataURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Metadata URL.") @@ -212,22 +205,23 @@ public String getMetadataURL() { return metadataURL; } - public void setMetadataURL(String metadataURL) { this.metadataURL = metadataURL; } - public BaseSamlConnection audienceURI(String audienceURI) { - + this.audienceURI = audienceURI; return this; } - /** - * The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. + /** + * The application-defined unique identifier that is the intended audience of + * the SAML assertion. This is most often the SP Entity ID of your application. + * When not specified, the ACS URL will be used. + * * @return audienceURI - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. ") @@ -235,12 +229,10 @@ public String getAudienceURI() { return audienceURI; } - public void setAudienceURI(String audienceURI) { this.audienceURI = audienceURI; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -265,7 +257,6 @@ public int hashCode() { return Objects.hash(accountId, name, enabled, issuer, signOnURL, signOutURL, metadataURL, audienceURI); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -294,4 +285,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BulkApplicationNotification.java b/src/main/java/one/talon/model/BulkApplicationNotification.java index 9c8e90d1..e880ae86 100644 --- a/src/main/java/one/talon/model/BulkApplicationNotification.java +++ b/src/main/java/one/talon/model/BulkApplicationNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class BulkApplicationNotification { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public BulkApplicationNotification totalResultSize(Long totalResultSize) { - public BulkApplicationNotification totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public BulkApplicationNotification data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public BulkApplicationNotification addDataItem(ApplicationNotification dataItem) return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BulkCampaignNotification.java b/src/main/java/one/talon/model/BulkCampaignNotification.java index b037d504..cab69237 100644 --- a/src/main/java/one/talon/model/BulkCampaignNotification.java +++ b/src/main/java/one/talon/model/BulkCampaignNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class BulkCampaignNotification { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public BulkCampaignNotification totalResultSize(Long totalResultSize) { - public BulkCampaignNotification totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public BulkCampaignNotification data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public BulkCampaignNotification addDataItem(CampaignNotification dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/BulkOperationOnCampaigns.java b/src/main/java/one/talon/model/BulkOperationOnCampaigns.java index e30c830c..c8aa18f8 100644 --- a/src/main/java/one/talon/model/BulkOperationOnCampaigns.java +++ b/src/main/java/one/talon/model/BulkOperationOnCampaigns.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,14 +32,14 @@ public class BulkOperationOnCampaigns { /** - * The operation to perform on the specified campaign IDs. + * The operation to perform on the specified campaign IDs. */ @JsonAdapter(OperationEnum.Adapter.class) public enum OperationEnum { DISABLE("disable"), - + DELETE("delete"), - + ACTIVATE_REVISION("activate_revision"); private String value; @@ -75,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final OperationEnum enumeration) @Override public OperationEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return OperationEnum.fromValue(value); } } @@ -87,72 +86,72 @@ public OperationEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = new ArrayList(); + private List campaignIds = new ArrayList(); public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) private OffsetDateTime activateAt; - public BulkOperationOnCampaigns operation(OperationEnum operation) { - + this.operation = operation; return this; } - /** - * The operation to perform on the specified campaign IDs. + /** + * The operation to perform on the specified campaign IDs. + * * @return operation - **/ + **/ @ApiModelProperty(required = true, value = "The operation to perform on the specified campaign IDs. ") public OperationEnum getOperation() { return operation; } - public void setOperation(OperationEnum operation) { this.operation = operation; } + public BulkOperationOnCampaigns campaignIds(List campaignIds) { - public BulkOperationOnCampaigns campaignIds(List campaignIds) { - this.campaignIds = campaignIds; return this; } - public BulkOperationOnCampaigns addCampaignIdsItem(Integer campaignIdsItem) { + public BulkOperationOnCampaigns addCampaignIdsItem(Long campaignIdsItem) { this.campaignIds.add(campaignIdsItem); return this; } - /** + /** * The list of campaign IDs on which the operation will be performed. + * * @return campaignIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of campaign IDs on which the operation will be performed.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } - public BulkOperationOnCampaigns activateAt(OffsetDateTime activateAt) { - + this.activateAt = activateAt; return this; } - /** - * Timestamp when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. + /** + * Timestamp when the revisions are finalized after the + * `activate_revision` operation. The current time is used when left + * blank. **Note:** It must be an RFC3339 timestamp string. + * * @return activateAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. ") @@ -160,12 +159,10 @@ public OffsetDateTime getActivateAt() { return activateAt; } - public void setActivateAt(OffsetDateTime activateAt) { this.activateAt = activateAt; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -185,7 +182,6 @@ public int hashCode() { return Objects.hash(operation, campaignIds, activateAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,4 +205,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Campaign.java b/src/main/java/one/talon/model/Campaign.java index 082f8e57..99224096 100644 --- a/src/main/java/one/talon/model/Campaign.java +++ b/src/main/java/one/talon/model/Campaign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class Campaign { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,11 +45,11 @@ public class Campaign { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -73,14 +72,14 @@ public class Campaign { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"); private String value; @@ -115,7 +114,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -127,7 +126,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -139,15 +138,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -182,7 +181,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -206,15 +205,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -249,7 +250,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -261,7 +262,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_BUDGETS = "budgets"; @SerializedName(SERIALIZED_NAME_BUDGETS) @@ -269,11 +270,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Integer couponRedemptionCount; + private Long couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Integer referralRedemptionCount; + private Long referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -281,27 +282,27 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Integer discountEffectCount; + private Long discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Integer couponCreationCount; + private Long couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Integer customEffectCount; + private Long customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Integer referralCreationCount; + private Long referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Integer addFreeItemEffectCount; + private Long addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Integer awardedGiveawaysCount; + private Long awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -309,7 +310,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer createdLoyaltyPointsEffectCount; + private Long createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -317,15 +318,15 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer redeemedLoyaltyPointsEffectCount; + private Long redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Integer callApiEffectCount; + private Long callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Integer reservecouponEffectCount; + private Long reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -345,7 +346,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; /** * The campaign state displayed in the Campaign Manager. @@ -353,15 +354,15 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FrontendStateEnum.Adapter.class) public enum FrontendStateEnum { EXPIRED("expired"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + DISABLED("disabled"), - + ARCHIVED("archived"), - + STAGED("staged"); private String value; @@ -396,7 +397,7 @@ public void write(final JsonWriter jsonWriter, final FrontendStateEnum enumerati @Override public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FrontendStateEnum.fromValue(value); } } @@ -412,7 +413,7 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALUE_MAPS_IDS = "valueMapsIds"; @SerializedName(SERIALIZED_NAME_VALUE_MAPS_IDS) - private List valueMapsIds = null; + private List valueMapsIds = null; /** * The campaign revision state displayed in the Campaign Manager. @@ -420,7 +421,7 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(RevisionFrontendStateEnum.Adapter.class) public enum RevisionFrontendStateEnum { REVISED("revised"), - + PENDING("pending"); private String value; @@ -455,7 +456,7 @@ public void write(final JsonWriter jsonWriter, final RevisionFrontendStateEnum e @Override public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return RevisionFrontendStateEnum.fromValue(value); } } @@ -467,171 +468,165 @@ public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOExce public static final String SERIALIZED_NAME_ACTIVE_REVISION_ID = "activeRevisionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_ID) - private Integer activeRevisionId; + private Long activeRevisionId; public static final String SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID = "activeRevisionVersionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID) - private Integer activeRevisionVersionId; + private Long activeRevisionVersionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_CURRENT_REVISION_ID = "currentRevisionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_ID) - private Integer currentRevisionId; + private Long currentRevisionId; public static final String SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID = "currentRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID) - private Integer currentRevisionVersionId; + private Long currentRevisionVersionId; public static final String SERIALIZED_NAME_STAGE_REVISION = "stageRevision"; @SerializedName(SERIALIZED_NAME_STAGE_REVISION) private Boolean stageRevision = false; + public Campaign id(Long id) { - public Campaign id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Campaign created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The exact moment this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The exact moment this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Campaign applicationId(Long applicationId) { - public Campaign applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public Campaign userId(Long userId) { - public Campaign userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public Campaign name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Campaign description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @ApiModelProperty(example = "Campaign for all summer 2021 promotions", required = true, value = "A detailed description of the campaign.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Campaign startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -639,22 +634,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public Campaign endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -662,22 +656,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public Campaign attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -685,59 +678,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public Campaign state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public Campaign activeRulesetId(Long activeRulesetId) { - public Campaign activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public Campaign tags(List tags) { - + this.tags = tags; return this; } @@ -747,24 +737,23 @@ public Campaign addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public Campaign features(List features) { - + this.features = features; return this; } @@ -774,32 +763,32 @@ public Campaign addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public Campaign couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -807,22 +796,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public Campaign referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -830,14 +818,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public Campaign limits(List limits) { - + this.limits = limits; return this; } @@ -847,108 +833,114 @@ public Campaign addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public Campaign campaignGroups(List campaignGroups) { - public Campaign campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public Campaign addCampaignGroupsItem(Integer campaignGroupsItem) { + public Campaign addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - public Campaign type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @ApiModelProperty(example = "advanced", required = true, value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public Campaign linkedStoreIds(List linkedStoreIds) { - public Campaign linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public Campaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public Campaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that you want to link to the campaign. **Note:** + * Campaigns with linked store IDs will only be evaluated when there is a + * [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - public Campaign budgets(List budgets) { - + this.budgets = budgets; return this; } @@ -961,10 +953,13 @@ public Campaign addBudgetsItem(CampaignBudget budgetsItem) { return this; } - /** - * A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. + /** + * A list of all the budgets that are defined by this campaign and their usage. + * **Note:** Budgets that are not defined do not appear in this list and their + * usage is not counted until they are defined. + * * @return budgets - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. ") @@ -972,68 +967,68 @@ public List getBudgets() { return budgets; } - public void setBudgets(List budgets) { this.budgets = budgets; } + public Campaign couponRedemptionCount(Long couponRedemptionCount) { - public Campaign couponRedemptionCount(Integer couponRedemptionCount) { - this.couponRedemptionCount = couponRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of coupons redeemed in the campaign. + * * @return couponRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Integer getCouponRedemptionCount() { + public Long getCouponRedemptionCount() { return couponRedemptionCount; } - - public void setCouponRedemptionCount(Integer couponRedemptionCount) { + public void setCouponRedemptionCount(Long couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } + public Campaign referralRedemptionCount(Long referralRedemptionCount) { - public Campaign referralRedemptionCount(Integer referralRedemptionCount) { - this.referralRedemptionCount = referralRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of referral codes redeemed in the campaign. + * * @return referralRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Integer getReferralRedemptionCount() { + public Long getReferralRedemptionCount() { return referralRedemptionCount; } - - public void setReferralRedemptionCount(Integer referralRedemptionCount) { + public void setReferralRedemptionCount(Long referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } - public Campaign discountCount(BigDecimal discountCount) { - + this.discountCount = discountCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total amount of discounts redeemed in the campaign. + * * @return discountCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "288.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. ") @@ -1041,160 +1036,168 @@ public BigDecimal getDiscountCount() { return discountCount; } - public void setDiscountCount(BigDecimal discountCount) { this.discountCount = discountCount; } + public Campaign discountEffectCount(Long discountEffectCount) { - public Campaign discountEffectCount(Integer discountEffectCount) { - this.discountEffectCount = discountEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times discounts were redeemed in this + * campaign. + * * @return discountEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Integer getDiscountEffectCount() { + public Long getDiscountEffectCount() { return discountEffectCount; } - - public void setDiscountEffectCount(Integer discountEffectCount) { + public void setDiscountEffectCount(Long discountEffectCount) { this.discountEffectCount = discountEffectCount; } + public Campaign couponCreationCount(Long couponCreationCount) { - public Campaign couponCreationCount(Integer couponCreationCount) { - this.couponCreationCount = couponCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of coupons created by rules in this + * campaign. + * * @return couponCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Integer getCouponCreationCount() { + public Long getCouponCreationCount() { return couponCreationCount; } - - public void setCouponCreationCount(Integer couponCreationCount) { + public void setCouponCreationCount(Long couponCreationCount) { this.couponCreationCount = couponCreationCount; } + public Campaign customEffectCount(Long customEffectCount) { - public Campaign customEffectCount(Integer customEffectCount) { - this.customEffectCount = customEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of custom effects triggered by rules in this + * campaign. + * * @return customEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Integer getCustomEffectCount() { + public Long getCustomEffectCount() { return customEffectCount; } - - public void setCustomEffectCount(Integer customEffectCount) { + public void setCustomEffectCount(Long customEffectCount) { this.customEffectCount = customEffectCount; } + public Campaign referralCreationCount(Long referralCreationCount) { - public Campaign referralCreationCount(Integer referralCreationCount) { - this.referralCreationCount = referralCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of referrals created by rules in this + * campaign. + * * @return referralCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Integer getReferralCreationCount() { + public Long getReferralCreationCount() { return referralCreationCount; } - - public void setReferralCreationCount(Integer referralCreationCount) { + public void setReferralCreationCount(Long referralCreationCount) { this.referralCreationCount = referralCreationCount; } + public Campaign addFreeItemEffectCount(Long addFreeItemEffectCount) { - public Campaign addFreeItemEffectCount(Integer addFreeItemEffectCount) { - this.addFreeItemEffectCount = addFreeItemEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times the [add free item + * effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) + * can be triggered in this campaign. + * * @return addFreeItemEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Integer getAddFreeItemEffectCount() { + public Long getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - - public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } + public Campaign awardedGiveawaysCount(Long awardedGiveawaysCount) { - public Campaign awardedGiveawaysCount(Integer awardedGiveawaysCount) { - this.awardedGiveawaysCount = awardedGiveawaysCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of giveaways awarded by rules in this + * campaign. + * * @return awardedGiveawaysCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Integer getAwardedGiveawaysCount() { + public Long getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - - public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } - public Campaign createdLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { - + this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points created by rules in this + * campaign. + * * @return createdLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. ") @@ -1202,45 +1205,47 @@ public BigDecimal getCreatedLoyaltyPointsCount() { return createdLoyaltyPointsCount; } - public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; } + public Campaign createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { - public Campaign createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { - this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point creation effects triggered + * by rules in this campaign. + * * @return createdLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Integer getCreatedLoyaltyPointsEffectCount() { + public Long getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - - public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } - public Campaign redeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { - + this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points redeemed by rules in this + * campaign. + * * @return redeemedLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. ") @@ -1248,91 +1253,93 @@ public BigDecimal getRedeemedLoyaltyPointsCount() { return redeemedLoyaltyPointsCount; } - public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; } + public Campaign redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { - public Campaign redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { - this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point redemption effects + * triggered by rules in this campaign. + * * @return redeemedLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Integer getRedeemedLoyaltyPointsEffectCount() { + public Long getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - - public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } + public Campaign callApiEffectCount(Long callApiEffectCount) { - public Campaign callApiEffectCount(Integer callApiEffectCount) { - this.callApiEffectCount = callApiEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of webhooks triggered by rules in this + * campaign. + * * @return callApiEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Integer getCallApiEffectCount() { + public Long getCallApiEffectCount() { return callApiEffectCount; } - - public void setCallApiEffectCount(Integer callApiEffectCount) { + public void setCallApiEffectCount(Long callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } + public Campaign reservecouponEffectCount(Long reservecouponEffectCount) { - public Campaign reservecouponEffectCount(Integer reservecouponEffectCount) { - this.reservecouponEffectCount = reservecouponEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of reserve coupon effects triggered by rules + * in this campaign. + * * @return reservecouponEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Integer getReservecouponEffectCount() { + public Long getReservecouponEffectCount() { return reservecouponEffectCount; } - - public void setReservecouponEffectCount(Integer reservecouponEffectCount) { + public void setReservecouponEffectCount(Long reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } - public Campaign lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** + /** * Timestamp of the most recent event received by this campaign. + * * @return lastActivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-11-10T23:00Z", value = "Timestamp of the most recent event received by this campaign.") @@ -1340,22 +1347,23 @@ public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public Campaign updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** - * Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. + /** + * Timestamp of the most recent update to the campaign's property. Updates + * to external entities used in this campaign are **not** registered by this + * property, such as collection or coupon updates. + * * @return updated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. ") @@ -1363,22 +1371,21 @@ public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - public Campaign createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** + /** * Name of the user who created this campaign if available. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user who created this campaign if available.") @@ -1386,22 +1393,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public Campaign updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign if available.") @@ -1409,120 +1415,115 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } + public Campaign templateId(Long templateId) { - public Campaign templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** + /** * The ID of the Campaign Template this Campaign was created from. + * * @return templateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - public Campaign frontendState(FrontendStateEnum frontendState) { - + this.frontendState = frontendState; return this; } - /** + /** * The campaign state displayed in the Campaign Manager. + * * @return frontendState - **/ + **/ @ApiModelProperty(example = "running", required = true, value = "The campaign state displayed in the Campaign Manager.") public FrontendStateEnum getFrontendState() { return frontendState; } - public void setFrontendState(FrontendStateEnum frontendState) { this.frontendState = frontendState; } - public Campaign storesImported(Boolean storesImported) { - + this.storesImported = storesImported; return this; } - /** + /** * Indicates whether the linked stores were imported via a CSV file. + * * @return storesImported - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates whether the linked stores were imported via a CSV file.") public Boolean getStoresImported() { return storesImported; } - public void setStoresImported(Boolean storesImported) { this.storesImported = storesImported; } + public Campaign valueMapsIds(List valueMapsIds) { - public Campaign valueMapsIds(List valueMapsIds) { - this.valueMapsIds = valueMapsIds; return this; } - public Campaign addValueMapsIdsItem(Integer valueMapsIdsItem) { + public Campaign addValueMapsIdsItem(Long valueMapsIdsItem) { if (this.valueMapsIds == null) { - this.valueMapsIds = new ArrayList(); + this.valueMapsIds = new ArrayList(); } this.valueMapsIds.add(valueMapsIdsItem); return this; } - /** + /** * A list of value map IDs for the campaign. + * * @return valueMapsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[100, 215]", value = "A list of value map IDs for the campaign.") - public List getValueMapsIds() { + public List getValueMapsIds() { return valueMapsIds; } - - public void setValueMapsIds(List valueMapsIds) { + public void setValueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; } - public Campaign revisionFrontendState(RevisionFrontendStateEnum revisionFrontendState) { - + this.revisionFrontendState = revisionFrontendState; return this; } - /** + /** * The campaign revision state displayed in the Campaign Manager. + * * @return revisionFrontendState - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "revised", value = "The campaign revision state displayed in the Campaign Manager.") @@ -1530,137 +1531,133 @@ public RevisionFrontendStateEnum getRevisionFrontendState() { return revisionFrontendState; } - public void setRevisionFrontendState(RevisionFrontendStateEnum revisionFrontendState) { this.revisionFrontendState = revisionFrontendState; } + public Campaign activeRevisionId(Long activeRevisionId) { - public Campaign activeRevisionId(Integer activeRevisionId) { - this.activeRevisionId = activeRevisionId; return this; } - /** - * ID of the revision that was last activated on this campaign. + /** + * ID of the revision that was last activated on this campaign. + * * @return activeRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision that was last activated on this campaign. ") - public Integer getActiveRevisionId() { + public Long getActiveRevisionId() { return activeRevisionId; } - - public void setActiveRevisionId(Integer activeRevisionId) { + public void setActiveRevisionId(Long activeRevisionId) { this.activeRevisionId = activeRevisionId; } + public Campaign activeRevisionVersionId(Long activeRevisionVersionId) { - public Campaign activeRevisionVersionId(Integer activeRevisionVersionId) { - this.activeRevisionVersionId = activeRevisionVersionId; return this; } - /** - * ID of the revision version that is active on the campaign. + /** + * ID of the revision version that is active on the campaign. + * * @return activeRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision version that is active on the campaign. ") - public Integer getActiveRevisionVersionId() { + public Long getActiveRevisionVersionId() { return activeRevisionVersionId; } - - public void setActiveRevisionVersionId(Integer activeRevisionVersionId) { + public void setActiveRevisionVersionId(Long activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; } + public Campaign version(Long version) { - public Campaign version(Integer version) { - this.version = version; return this; } - /** - * Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. + /** + * Incrementing number representing how many revisions have been activated on + * this campaign, starts from 0 for a new campaign. + * * @return version - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. ") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } + public Campaign currentRevisionId(Long currentRevisionId) { - public Campaign currentRevisionId(Integer currentRevisionId) { - this.currentRevisionId = currentRevisionId; return this; } - /** - * ID of the revision currently being modified for the campaign. + /** + * ID of the revision currently being modified for the campaign. + * * @return currentRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision currently being modified for the campaign. ") - public Integer getCurrentRevisionId() { + public Long getCurrentRevisionId() { return currentRevisionId; } - - public void setCurrentRevisionId(Integer currentRevisionId) { + public void setCurrentRevisionId(Long currentRevisionId) { this.currentRevisionId = currentRevisionId; } + public Campaign currentRevisionVersionId(Long currentRevisionVersionId) { - public Campaign currentRevisionVersionId(Integer currentRevisionVersionId) { - this.currentRevisionVersionId = currentRevisionVersionId; return this; } - /** - * ID of the latest version applied on the current revision. + /** + * ID of the latest version applied on the current revision. + * * @return currentRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the latest version applied on the current revision. ") - public Integer getCurrentRevisionVersionId() { + public Long getCurrentRevisionVersionId() { return currentRevisionVersionId; } - - public void setCurrentRevisionVersionId(Integer currentRevisionVersionId) { + public void setCurrentRevisionVersionId(Long currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; } - public Campaign stageRevision(Boolean stageRevision) { - + this.stageRevision = stageRevision; return this; } - /** - * Flag for determining whether we use current revision when sending requests with staging API key. + /** + * Flag for determining whether we use current revision when sending requests + * with staging API key. + * * @return stageRevision - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Flag for determining whether we use current revision when sending requests with staging API key. ") @@ -1668,12 +1665,10 @@ public Boolean getStageRevision() { return stageRevision; } - public void setStageRevision(Boolean stageRevision) { this.stageRevision = stageRevision; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -1737,10 +1732,16 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId, frontendState, storesImported, valueMapsIds, revisionFrontendState, activeRevisionId, activeRevisionVersionId, version, currentRevisionId, currentRevisionVersionId, stageRevision); + return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, + activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, + budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, + couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, + createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, + redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, + createdBy, updatedBy, templateId, frontendState, storesImported, valueMapsIds, revisionFrontendState, + activeRevisionId, activeRevisionVersionId, version, currentRevisionId, currentRevisionVersionId, stageRevision); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1775,9 +1776,11 @@ public String toString() { sb.append(" addFreeItemEffectCount: ").append(toIndentedString(addFreeItemEffectCount)).append("\n"); sb.append(" awardedGiveawaysCount: ").append(toIndentedString(awardedGiveawaysCount)).append("\n"); sb.append(" createdLoyaltyPointsCount: ").append(toIndentedString(createdLoyaltyPointsCount)).append("\n"); - sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)).append("\n"); + sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" redeemedLoyaltyPointsCount: ").append(toIndentedString(redeemedLoyaltyPointsCount)).append("\n"); - sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)).append("\n"); + sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" callApiEffectCount: ").append(toIndentedString(callApiEffectCount)).append("\n"); sb.append(" reservecouponEffectCount: ").append(toIndentedString(reservecouponEffectCount)).append("\n"); sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n"); @@ -1811,4 +1814,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignActivationRequest.java b/src/main/java/one/talon/model/CampaignActivationRequest.java index 3debc441..7bceabf6 100644 --- a/src/main/java/one/talon/model/CampaignActivationRequest.java +++ b/src/main/java/one/talon/model/CampaignActivationRequest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,36 +32,34 @@ public class CampaignActivationRequest { public static final String SERIALIZED_NAME_USER_IDS = "userIds"; @SerializedName(SERIALIZED_NAME_USER_IDS) - private List userIds = new ArrayList(); + private List userIds = new ArrayList(); + public CampaignActivationRequest userIds(List userIds) { - public CampaignActivationRequest userIds(List userIds) { - this.userIds = userIds; return this; } - public CampaignActivationRequest addUserIdsItem(Integer userIdsItem) { + public CampaignActivationRequest addUserIdsItem(Long userIdsItem) { this.userIds.add(userIdsItem); return this; } - /** + /** * The list of IDs of the users who will receive the activation request. + * * @return userIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of IDs of the users who will receive the activation request.") - public List getUserIds() { + public List getUserIds() { return userIds; } - - public void setUserIds(List userIds) { + public void setUserIds(List userIds) { this.userIds = userIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,7 +77,6 @@ public int hashCode() { return Objects.hash(userIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -102,4 +98,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignAnalytics.java b/src/main/java/one/talon/model/CampaignAnalytics.java index bce7f06f..9058f98a 100644 --- a/src/main/java/one/talon/model/CampaignAnalytics.java +++ b/src/main/java/one/talon/model/CampaignAnalytics.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -69,51 +68,51 @@ public class CampaignAnalytics { public static final String SERIALIZED_NAME_CAMPAIGN_FREE_ITEMS = "campaignFreeItems"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_FREE_ITEMS) - private Integer campaignFreeItems; + private Long campaignFreeItems; public static final String SERIALIZED_NAME_TOTAL_CAMPAIGN_FREE_ITEMS = "totalCampaignFreeItems"; @SerializedName(SERIALIZED_NAME_TOTAL_CAMPAIGN_FREE_ITEMS) - private Integer totalCampaignFreeItems; + private Long totalCampaignFreeItems; public static final String SERIALIZED_NAME_COUPON_REDEMPTIONS = "couponRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTIONS) - private Integer couponRedemptions; + private Long couponRedemptions; public static final String SERIALIZED_NAME_TOTAL_COUPON_REDEMPTIONS = "totalCouponRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPON_REDEMPTIONS) - private Integer totalCouponRedemptions; + private Long totalCouponRedemptions; public static final String SERIALIZED_NAME_COUPON_ROLLEDBACK_REDEMPTIONS = "couponRolledbackRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_ROLLEDBACK_REDEMPTIONS) - private Integer couponRolledbackRedemptions; + private Long couponRolledbackRedemptions; public static final String SERIALIZED_NAME_TOTAL_COUPON_ROLLEDBACK_REDEMPTIONS = "totalCouponRolledbackRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPON_ROLLEDBACK_REDEMPTIONS) - private Integer totalCouponRolledbackRedemptions; + private Long totalCouponRolledbackRedemptions; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTIONS = "referralRedemptions"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTIONS) - private Integer referralRedemptions; + private Long referralRedemptions; public static final String SERIALIZED_NAME_TOTAL_REFERRAL_REDEMPTIONS = "totalReferralRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_REFERRAL_REDEMPTIONS) - private Integer totalReferralRedemptions; + private Long totalReferralRedemptions; public static final String SERIALIZED_NAME_COUPONS_CREATED = "couponsCreated"; @SerializedName(SERIALIZED_NAME_COUPONS_CREATED) - private Integer couponsCreated; + private Long couponsCreated; public static final String SERIALIZED_NAME_TOTAL_COUPONS_CREATED = "totalCouponsCreated"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPONS_CREATED) - private Integer totalCouponsCreated; + private Long totalCouponsCreated; public static final String SERIALIZED_NAME_REFERRALS_CREATED = "referralsCreated"; @SerializedName(SERIALIZED_NAME_REFERRALS_CREATED) - private Integer referralsCreated; + private Long referralsCreated; public static final String SERIALIZED_NAME_TOTAL_REFERRALS_CREATED = "totalReferralsCreated"; @SerializedName(SERIALIZED_NAME_TOTAL_REFERRALS_CREATED) - private Integer totalReferralsCreated; + private Long totalReferralsCreated; public static final String SERIALIZED_NAME_ADDED_LOYALTY_POINTS = "addedLoyaltyPoints"; @SerializedName(SERIALIZED_NAME_ADDED_LOYALTY_POINTS) @@ -131,557 +130,536 @@ public class CampaignAnalytics { @SerializedName(SERIALIZED_NAME_TOTAL_DEDUCTED_LOYALTY_POINTS) private BigDecimal totalDeductedLoyaltyPoints; - public CampaignAnalytics date(OffsetDateTime date) { - + this.date = date; return this; } - /** + /** * Get date + * * @return date - **/ + **/ @ApiModelProperty(example = "2021-10-12T10:12:42Z", required = true, value = "") public OffsetDateTime getDate() { return date; } - public void setDate(OffsetDateTime date) { this.date = date; } - public CampaignAnalytics campaignRevenue(BigDecimal campaignRevenue) { - + this.campaignRevenue = campaignRevenue; return this; } - /** + /** * Amount of revenue in this campaign (for coupon or discount sessions). + * * @return campaignRevenue - **/ + **/ @ApiModelProperty(example = "3539.76", required = true, value = "Amount of revenue in this campaign (for coupon or discount sessions).") public BigDecimal getCampaignRevenue() { return campaignRevenue; } - public void setCampaignRevenue(BigDecimal campaignRevenue) { this.campaignRevenue = campaignRevenue; } - public CampaignAnalytics totalCampaignRevenue(BigDecimal totalCampaignRevenue) { - + this.totalCampaignRevenue = totalCampaignRevenue; return this; } - /** - * Amount of revenue in this campaign since it began (for coupon or discount sessions). + /** + * Amount of revenue in this campaign since it began (for coupon or discount + * sessions). + * * @return totalCampaignRevenue - **/ + **/ @ApiModelProperty(example = "5784.63", required = true, value = "Amount of revenue in this campaign since it began (for coupon or discount sessions).") public BigDecimal getTotalCampaignRevenue() { return totalCampaignRevenue; } - public void setTotalCampaignRevenue(BigDecimal totalCampaignRevenue) { this.totalCampaignRevenue = totalCampaignRevenue; } - public CampaignAnalytics campaignRefund(BigDecimal campaignRefund) { - + this.campaignRefund = campaignRefund; return this; } - /** + /** * Amount of refunds in this campaign (for coupon or discount sessions). + * * @return campaignRefund - **/ + **/ @ApiModelProperty(required = true, value = "Amount of refunds in this campaign (for coupon or discount sessions).") public BigDecimal getCampaignRefund() { return campaignRefund; } - public void setCampaignRefund(BigDecimal campaignRefund) { this.campaignRefund = campaignRefund; } - public CampaignAnalytics totalCampaignRefund(BigDecimal totalCampaignRefund) { - + this.totalCampaignRefund = totalCampaignRefund; return this; } - /** - * Amount of refunds in this campaign since it began (for coupon or discount sessions). + /** + * Amount of refunds in this campaign since it began (for coupon or discount + * sessions). + * * @return totalCampaignRefund - **/ + **/ @ApiModelProperty(required = true, value = "Amount of refunds in this campaign since it began (for coupon or discount sessions).") public BigDecimal getTotalCampaignRefund() { return totalCampaignRefund; } - public void setTotalCampaignRefund(BigDecimal totalCampaignRefund) { this.totalCampaignRefund = totalCampaignRefund; } - public CampaignAnalytics campaignDiscountCosts(BigDecimal campaignDiscountCosts) { - + this.campaignDiscountCosts = campaignDiscountCosts; return this; } - /** + /** * Amount of cost caused by discounts given in the campaign. + * * @return campaignDiscountCosts - **/ + **/ @ApiModelProperty(required = true, value = "Amount of cost caused by discounts given in the campaign.") public BigDecimal getCampaignDiscountCosts() { return campaignDiscountCosts; } - public void setCampaignDiscountCosts(BigDecimal campaignDiscountCosts) { this.campaignDiscountCosts = campaignDiscountCosts; } - public CampaignAnalytics totalCampaignDiscountCosts(BigDecimal totalCampaignDiscountCosts) { - + this.totalCampaignDiscountCosts = totalCampaignDiscountCosts; return this; } - /** + /** * Amount of cost caused by discounts given in the campaign since it began. + * * @return totalCampaignDiscountCosts - **/ + **/ @ApiModelProperty(required = true, value = "Amount of cost caused by discounts given in the campaign since it began.") public BigDecimal getTotalCampaignDiscountCosts() { return totalCampaignDiscountCosts; } - public void setTotalCampaignDiscountCosts(BigDecimal totalCampaignDiscountCosts) { this.totalCampaignDiscountCosts = totalCampaignDiscountCosts; } - public CampaignAnalytics campaignRefundedDiscounts(BigDecimal campaignRefundedDiscounts) { - + this.campaignRefundedDiscounts = campaignRefundedDiscounts; return this; } - /** + /** * Amount of discounts rolledback due to refund in the campaign. + * * @return campaignRefundedDiscounts - **/ + **/ @ApiModelProperty(required = true, value = "Amount of discounts rolledback due to refund in the campaign.") public BigDecimal getCampaignRefundedDiscounts() { return campaignRefundedDiscounts; } - public void setCampaignRefundedDiscounts(BigDecimal campaignRefundedDiscounts) { this.campaignRefundedDiscounts = campaignRefundedDiscounts; } - public CampaignAnalytics totalCampaignRefundedDiscounts(BigDecimal totalCampaignRefundedDiscounts) { - + this.totalCampaignRefundedDiscounts = totalCampaignRefundedDiscounts; return this; } - /** + /** * Amount of discounts rolledback due to refund in the campaign since it began. + * * @return totalCampaignRefundedDiscounts - **/ + **/ @ApiModelProperty(required = true, value = "Amount of discounts rolledback due to refund in the campaign since it began.") public BigDecimal getTotalCampaignRefundedDiscounts() { return totalCampaignRefundedDiscounts; } - public void setTotalCampaignRefundedDiscounts(BigDecimal totalCampaignRefundedDiscounts) { this.totalCampaignRefundedDiscounts = totalCampaignRefundedDiscounts; } + public CampaignAnalytics campaignFreeItems(Long campaignFreeItems) { - public CampaignAnalytics campaignFreeItems(Integer campaignFreeItems) { - this.campaignFreeItems = campaignFreeItems; return this; } - /** + /** * Amount of free items given in the campaign. + * * @return campaignFreeItems - **/ + **/ @ApiModelProperty(required = true, value = "Amount of free items given in the campaign.") - public Integer getCampaignFreeItems() { + public Long getCampaignFreeItems() { return campaignFreeItems; } - - public void setCampaignFreeItems(Integer campaignFreeItems) { + public void setCampaignFreeItems(Long campaignFreeItems) { this.campaignFreeItems = campaignFreeItems; } + public CampaignAnalytics totalCampaignFreeItems(Long totalCampaignFreeItems) { - public CampaignAnalytics totalCampaignFreeItems(Integer totalCampaignFreeItems) { - this.totalCampaignFreeItems = totalCampaignFreeItems; return this; } - /** + /** * Amount of free items given in the campaign since it began. + * * @return totalCampaignFreeItems - **/ + **/ @ApiModelProperty(example = "86", required = true, value = "Amount of free items given in the campaign since it began.") - public Integer getTotalCampaignFreeItems() { + public Long getTotalCampaignFreeItems() { return totalCampaignFreeItems; } - - public void setTotalCampaignFreeItems(Integer totalCampaignFreeItems) { + public void setTotalCampaignFreeItems(Long totalCampaignFreeItems) { this.totalCampaignFreeItems = totalCampaignFreeItems; } + public CampaignAnalytics couponRedemptions(Long couponRedemptions) { - public CampaignAnalytics couponRedemptions(Integer couponRedemptions) { - this.couponRedemptions = couponRedemptions; return this; } - /** + /** * Number of coupon redemptions in the campaign. + * * @return couponRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in the campaign.") - public Integer getCouponRedemptions() { + public Long getCouponRedemptions() { return couponRedemptions; } - - public void setCouponRedemptions(Integer couponRedemptions) { + public void setCouponRedemptions(Long couponRedemptions) { this.couponRedemptions = couponRedemptions; } + public CampaignAnalytics totalCouponRedemptions(Long totalCouponRedemptions) { - public CampaignAnalytics totalCouponRedemptions(Integer totalCouponRedemptions) { - this.totalCouponRedemptions = totalCouponRedemptions; return this; } - /** + /** * Number of coupon redemptions in the campaign since it began. + * * @return totalCouponRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in the campaign since it began.") - public Integer getTotalCouponRedemptions() { + public Long getTotalCouponRedemptions() { return totalCouponRedemptions; } - - public void setTotalCouponRedemptions(Integer totalCouponRedemptions) { + public void setTotalCouponRedemptions(Long totalCouponRedemptions) { this.totalCouponRedemptions = totalCouponRedemptions; } + public CampaignAnalytics couponRolledbackRedemptions(Long couponRolledbackRedemptions) { - public CampaignAnalytics couponRolledbackRedemptions(Integer couponRolledbackRedemptions) { - this.couponRolledbackRedemptions = couponRolledbackRedemptions; return this; } - /** - * Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. + /** + * Number of coupon redemptions that have been rolled back (due to canceling + * closed session) in the campaign. + * * @return couponRolledbackRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign.") - public Integer getCouponRolledbackRedemptions() { + public Long getCouponRolledbackRedemptions() { return couponRolledbackRedemptions; } - - public void setCouponRolledbackRedemptions(Integer couponRolledbackRedemptions) { + public void setCouponRolledbackRedemptions(Long couponRolledbackRedemptions) { this.couponRolledbackRedemptions = couponRolledbackRedemptions; } + public CampaignAnalytics totalCouponRolledbackRedemptions(Long totalCouponRolledbackRedemptions) { - public CampaignAnalytics totalCouponRolledbackRedemptions(Integer totalCouponRolledbackRedemptions) { - this.totalCouponRolledbackRedemptions = totalCouponRolledbackRedemptions; return this; } - /** - * Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. + /** + * Number of coupon redemptions that have been rolled back (due to canceling + * closed session) in the campaign since it began. + * * @return totalCouponRolledbackRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began.") - public Integer getTotalCouponRolledbackRedemptions() { + public Long getTotalCouponRolledbackRedemptions() { return totalCouponRolledbackRedemptions; } - - public void setTotalCouponRolledbackRedemptions(Integer totalCouponRolledbackRedemptions) { + public void setTotalCouponRolledbackRedemptions(Long totalCouponRolledbackRedemptions) { this.totalCouponRolledbackRedemptions = totalCouponRolledbackRedemptions; } + public CampaignAnalytics referralRedemptions(Long referralRedemptions) { - public CampaignAnalytics referralRedemptions(Integer referralRedemptions) { - this.referralRedemptions = referralRedemptions; return this; } - /** + /** * Number of referral redemptions in the campaign. + * * @return referralRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of referral redemptions in the campaign.") - public Integer getReferralRedemptions() { + public Long getReferralRedemptions() { return referralRedemptions; } - - public void setReferralRedemptions(Integer referralRedemptions) { + public void setReferralRedemptions(Long referralRedemptions) { this.referralRedemptions = referralRedemptions; } + public CampaignAnalytics totalReferralRedemptions(Long totalReferralRedemptions) { - public CampaignAnalytics totalReferralRedemptions(Integer totalReferralRedemptions) { - this.totalReferralRedemptions = totalReferralRedemptions; return this; } - /** + /** * Number of referral redemptions in the campaign since it began. + * * @return totalReferralRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of referral redemptions in the campaign since it began.") - public Integer getTotalReferralRedemptions() { + public Long getTotalReferralRedemptions() { return totalReferralRedemptions; } - - public void setTotalReferralRedemptions(Integer totalReferralRedemptions) { + public void setTotalReferralRedemptions(Long totalReferralRedemptions) { this.totalReferralRedemptions = totalReferralRedemptions; } + public CampaignAnalytics couponsCreated(Long couponsCreated) { - public CampaignAnalytics couponsCreated(Integer couponsCreated) { - this.couponsCreated = couponsCreated; return this; } - /** + /** * Number of coupons created in the campaign by the rule engine. + * * @return couponsCreated - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupons created in the campaign by the rule engine.") - public Integer getCouponsCreated() { + public Long getCouponsCreated() { return couponsCreated; } - - public void setCouponsCreated(Integer couponsCreated) { + public void setCouponsCreated(Long couponsCreated) { this.couponsCreated = couponsCreated; } + public CampaignAnalytics totalCouponsCreated(Long totalCouponsCreated) { - public CampaignAnalytics totalCouponsCreated(Integer totalCouponsCreated) { - this.totalCouponsCreated = totalCouponsCreated; return this; } - /** + /** * Number of coupons created in the campaign by the rule engine since it began. + * * @return totalCouponsCreated - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupons created in the campaign by the rule engine since it began.") - public Integer getTotalCouponsCreated() { + public Long getTotalCouponsCreated() { return totalCouponsCreated; } - - public void setTotalCouponsCreated(Integer totalCouponsCreated) { + public void setTotalCouponsCreated(Long totalCouponsCreated) { this.totalCouponsCreated = totalCouponsCreated; } + public CampaignAnalytics referralsCreated(Long referralsCreated) { - public CampaignAnalytics referralsCreated(Integer referralsCreated) { - this.referralsCreated = referralsCreated; return this; } - /** + /** * Number of referrals created in the campaign by the rule engine. + * * @return referralsCreated - **/ + **/ @ApiModelProperty(required = true, value = "Number of referrals created in the campaign by the rule engine.") - public Integer getReferralsCreated() { + public Long getReferralsCreated() { return referralsCreated; } - - public void setReferralsCreated(Integer referralsCreated) { + public void setReferralsCreated(Long referralsCreated) { this.referralsCreated = referralsCreated; } + public CampaignAnalytics totalReferralsCreated(Long totalReferralsCreated) { - public CampaignAnalytics totalReferralsCreated(Integer totalReferralsCreated) { - this.totalReferralsCreated = totalReferralsCreated; return this; } - /** - * Number of referrals created in the campaign by the rule engine since it began. + /** + * Number of referrals created in the campaign by the rule engine since it + * began. + * * @return totalReferralsCreated - **/ + **/ @ApiModelProperty(required = true, value = "Number of referrals created in the campaign by the rule engine since it began.") - public Integer getTotalReferralsCreated() { + public Long getTotalReferralsCreated() { return totalReferralsCreated; } - - public void setTotalReferralsCreated(Integer totalReferralsCreated) { + public void setTotalReferralsCreated(Long totalReferralsCreated) { this.totalReferralsCreated = totalReferralsCreated; } - public CampaignAnalytics addedLoyaltyPoints(BigDecimal addedLoyaltyPoints) { - + this.addedLoyaltyPoints = addedLoyaltyPoints; return this; } - /** + /** * Number of added loyalty points in the campaign in a specific interval. + * * @return addedLoyaltyPoints - **/ + **/ @ApiModelProperty(example = "250.0", required = true, value = "Number of added loyalty points in the campaign in a specific interval.") public BigDecimal getAddedLoyaltyPoints() { return addedLoyaltyPoints; } - public void setAddedLoyaltyPoints(BigDecimal addedLoyaltyPoints) { this.addedLoyaltyPoints = addedLoyaltyPoints; } - public CampaignAnalytics totalAddedLoyaltyPoints(BigDecimal totalAddedLoyaltyPoints) { - + this.totalAddedLoyaltyPoints = totalAddedLoyaltyPoints; return this; } - /** + /** * Number of added loyalty points in the campaign since it began. + * * @return totalAddedLoyaltyPoints - **/ + **/ @ApiModelProperty(example = "340.0", required = true, value = "Number of added loyalty points in the campaign since it began.") public BigDecimal getTotalAddedLoyaltyPoints() { return totalAddedLoyaltyPoints; } - public void setTotalAddedLoyaltyPoints(BigDecimal totalAddedLoyaltyPoints) { this.totalAddedLoyaltyPoints = totalAddedLoyaltyPoints; } - public CampaignAnalytics deductedLoyaltyPoints(BigDecimal deductedLoyaltyPoints) { - + this.deductedLoyaltyPoints = deductedLoyaltyPoints; return this; } - /** + /** * Number of deducted loyalty points in the campaign in a specific interval. + * * @return deductedLoyaltyPoints - **/ + **/ @ApiModelProperty(example = "120.0", required = true, value = "Number of deducted loyalty points in the campaign in a specific interval.") public BigDecimal getDeductedLoyaltyPoints() { return deductedLoyaltyPoints; } - public void setDeductedLoyaltyPoints(BigDecimal deductedLoyaltyPoints) { this.deductedLoyaltyPoints = deductedLoyaltyPoints; } - public CampaignAnalytics totalDeductedLoyaltyPoints(BigDecimal totalDeductedLoyaltyPoints) { - + this.totalDeductedLoyaltyPoints = totalDeductedLoyaltyPoints; return this; } - /** + /** * Number of deducted loyalty points in the campaign since it began. + * * @return totalDeductedLoyaltyPoints - **/ + **/ @ApiModelProperty(example = "220.0", required = true, value = "Number of deducted loyalty points in the campaign since it began.") public BigDecimal getTotalDeductedLoyaltyPoints() { return totalDeductedLoyaltyPoints; } - public void setTotalDeductedLoyaltyPoints(BigDecimal totalDeductedLoyaltyPoints) { this.totalDeductedLoyaltyPoints = totalDeductedLoyaltyPoints; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -720,10 +698,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(date, campaignRevenue, totalCampaignRevenue, campaignRefund, totalCampaignRefund, campaignDiscountCosts, totalCampaignDiscountCosts, campaignRefundedDiscounts, totalCampaignRefundedDiscounts, campaignFreeItems, totalCampaignFreeItems, couponRedemptions, totalCouponRedemptions, couponRolledbackRedemptions, totalCouponRolledbackRedemptions, referralRedemptions, totalReferralRedemptions, couponsCreated, totalCouponsCreated, referralsCreated, totalReferralsCreated, addedLoyaltyPoints, totalAddedLoyaltyPoints, deductedLoyaltyPoints, totalDeductedLoyaltyPoints); + return Objects.hash(date, campaignRevenue, totalCampaignRevenue, campaignRefund, totalCampaignRefund, + campaignDiscountCosts, totalCampaignDiscountCosts, campaignRefundedDiscounts, totalCampaignRefundedDiscounts, + campaignFreeItems, totalCampaignFreeItems, couponRedemptions, totalCouponRedemptions, + couponRolledbackRedemptions, totalCouponRolledbackRedemptions, referralRedemptions, totalReferralRedemptions, + couponsCreated, totalCouponsCreated, referralsCreated, totalReferralsCreated, addedLoyaltyPoints, + totalAddedLoyaltyPoints, deductedLoyaltyPoints, totalDeductedLoyaltyPoints); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -736,13 +718,15 @@ public String toString() { sb.append(" campaignDiscountCosts: ").append(toIndentedString(campaignDiscountCosts)).append("\n"); sb.append(" totalCampaignDiscountCosts: ").append(toIndentedString(totalCampaignDiscountCosts)).append("\n"); sb.append(" campaignRefundedDiscounts: ").append(toIndentedString(campaignRefundedDiscounts)).append("\n"); - sb.append(" totalCampaignRefundedDiscounts: ").append(toIndentedString(totalCampaignRefundedDiscounts)).append("\n"); + sb.append(" totalCampaignRefundedDiscounts: ").append(toIndentedString(totalCampaignRefundedDiscounts)) + .append("\n"); sb.append(" campaignFreeItems: ").append(toIndentedString(campaignFreeItems)).append("\n"); sb.append(" totalCampaignFreeItems: ").append(toIndentedString(totalCampaignFreeItems)).append("\n"); sb.append(" couponRedemptions: ").append(toIndentedString(couponRedemptions)).append("\n"); sb.append(" totalCouponRedemptions: ").append(toIndentedString(totalCouponRedemptions)).append("\n"); sb.append(" couponRolledbackRedemptions: ").append(toIndentedString(couponRolledbackRedemptions)).append("\n"); - sb.append(" totalCouponRolledbackRedemptions: ").append(toIndentedString(totalCouponRolledbackRedemptions)).append("\n"); + sb.append(" totalCouponRolledbackRedemptions: ").append(toIndentedString(totalCouponRolledbackRedemptions)) + .append("\n"); sb.append(" referralRedemptions: ").append(toIndentedString(referralRedemptions)).append("\n"); sb.append(" totalReferralRedemptions: ").append(toIndentedString(totalReferralRedemptions)).append("\n"); sb.append(" couponsCreated: ").append(toIndentedString(couponsCreated)).append("\n"); @@ -769,4 +753,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignCollection.java b/src/main/java/one/talon/model/CampaignCollection.java index 80cdce71..895b911e 100644 --- a/src/main/java/one/talon/model/CampaignCollection.java +++ b/src/main/java/one/talon/model/CampaignCollection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -58,123 +57,119 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) private List payload = null; + public CampaignCollection id(Long id) { - public CampaignCollection id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignCollection created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignCollection accountId(Long accountId) { - public CampaignCollection accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CampaignCollection modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public CampaignCollection description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -182,127 +177,120 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignCollection name(String name) { - + this.name = name; return this; } - /** + /** * The name of this collection. + * * @return name - **/ + **/ @ApiModelProperty(example = "My collection", required = true, value = "The name of this collection.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CampaignCollection modifiedBy(Long modifiedBy) { - public CampaignCollection modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public CampaignCollection createdBy(Long createdBy) { - public CampaignCollection createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public CampaignCollection applicationId(Long applicationId) { - public CampaignCollection applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignCollection campaignId(Long campaignId) { - public CampaignCollection campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public CampaignCollection payload(List payload) { - + this.payload = payload; return this; } @@ -315,10 +303,11 @@ public CampaignCollection addPayloadItem(String payloadItem) { return this; } - /** + /** * The content of the collection. + * * @return payload - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[KTL-WH-ET-1, KTL-BL-ET-1]", value = "The content of the collection.") @@ -326,12 +315,10 @@ public List getPayload() { return payload; } - public void setPayload(List payload) { this.payload = payload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -356,10 +343,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, description, name, modifiedBy, createdBy, applicationId, campaignId, payload); + return Objects.hash(id, created, accountId, modified, description, name, modifiedBy, createdBy, applicationId, + campaignId, payload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -391,4 +378,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java b/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java index b27607c7..dae0b808 100644 --- a/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java +++ b/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,7 +39,7 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -56,119 +55,115 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; + public CampaignCollectionWithoutPayload id(Long id) { - public CampaignCollectionWithoutPayload id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignCollectionWithoutPayload created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignCollectionWithoutPayload accountId(Long accountId) { - public CampaignCollectionWithoutPayload accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CampaignCollectionWithoutPayload modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public CampaignCollectionWithoutPayload description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -176,125 +171,118 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignCollectionWithoutPayload name(String name) { - + this.name = name; return this; } - /** + /** * The name of this collection. + * * @return name - **/ + **/ @ApiModelProperty(example = "My collection", required = true, value = "The name of this collection.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CampaignCollectionWithoutPayload modifiedBy(Long modifiedBy) { - public CampaignCollectionWithoutPayload modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public CampaignCollectionWithoutPayload createdBy(Long createdBy) { - public CampaignCollectionWithoutPayload createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public CampaignCollectionWithoutPayload applicationId(Long applicationId) { - public CampaignCollectionWithoutPayload applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignCollectionWithoutPayload campaignId(Long campaignId) { - public CampaignCollectionWithoutPayload campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -318,10 +306,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, description, name, modifiedBy, createdBy, applicationId, campaignId); + return Objects.hash(id, created, accountId, modified, description, name, modifiedBy, createdBy, applicationId, + campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -352,4 +340,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignCopy.java b/src/main/java/one/talon/model/CampaignCopy.java index 521c92cc..96ab1483 100644 --- a/src/main/java/one/talon/model/CampaignCopy.java +++ b/src/main/java/one/talon/model/CampaignCopy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class CampaignCopy { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -58,19 +57,20 @@ public class CampaignCopy { public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; - + private Long evaluationGroupId; public CampaignCopy name(String name) { - + this.name = name; return this; } - /** - * Name of the copied campaign (Defaults to \"Copy of original campaign name\"). + /** + * Name of the copied campaign (Defaults to \"Copy of original campaign + * name\"). + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Copy of Summer promotions", value = "Name of the copied campaign (Defaults to \"Copy of original campaign name\").") @@ -78,49 +78,47 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CampaignCopy applicationIds(List applicationIds) { - public CampaignCopy applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public CampaignCopy addApplicationIdsItem(Integer applicationIdsItem) { + public CampaignCopy addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * Application IDs of the applications to which a campaign should be copied to. + * * @return applicationIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "Application IDs of the applications to which a campaign should be copied to.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public CampaignCopy description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -128,22 +126,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignCopy startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-06-01T09:00:27.993483Z", value = "Timestamp when the campaign will become active.") @@ -151,22 +148,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public CampaignCopy endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-10T01:00:00.993483Z", value = "Timestamp when the campaign will become inactive.") @@ -174,14 +170,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public CampaignCopy tags(List tags) { - + this.tags = tags; return this; } @@ -194,10 +188,11 @@ public CampaignCopy addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[Summer, Shoes]", value = "A list of tags for the campaign.") @@ -205,35 +200,32 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } + public CampaignCopy evaluationGroupId(Long evaluationGroupId) { - public CampaignCopy evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -257,7 +249,6 @@ public int hashCode() { return Objects.hash(name, applicationIds, description, startTime, endTime, tags, evaluationGroupId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -285,4 +276,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignDetail.java b/src/main/java/one/talon/model/CampaignDetail.java index 54115c5f..caf70e3c 100644 --- a/src/main/java/one/talon/model/CampaignDetail.java +++ b/src/main/java/one/talon/model/CampaignDetail.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,46 +30,45 @@ public class CampaignDetail { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) private String campaignName; + public CampaignDetail campaignId(Long campaignId) { - public CampaignDetail campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that references the application cart item filter. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the campaign that references the application cart item filter.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public CampaignDetail campaignName(String campaignName) { - + this.campaignName = campaignName; return this; } - /** + /** * A user-facing name for this campaign. + * * @return campaignName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Summer promotions", value = "A user-facing name for this campaign.") @@ -78,12 +76,10 @@ public String getCampaignName() { return campaignName; } - public void setCampaignName(String campaignName) { this.campaignName = campaignName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -102,7 +98,6 @@ public int hashCode() { return Objects.hash(campaignId, campaignName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -125,4 +120,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignEntity.java b/src/main/java/one/talon/model/CampaignEntity.java index 59356755..64f2600e 100644 --- a/src/main/java/one/talon/model/CampaignEntity.java +++ b/src/main/java/one/talon/model/CampaignEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class CampaignEntity { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; + public CampaignEntity campaignId(Long campaignId) { - public CampaignEntity campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignEvaluationGroup.java b/src/main/java/one/talon/model/CampaignEvaluationGroup.java index 545d8569..d4231f65 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/CampaignEvaluationGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class CampaignEvaluationGroup { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -39,7 +38,7 @@ public class CampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Integer parentId; + private Long parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -51,11 +50,11 @@ public class CampaignEvaluationGroup { @JsonAdapter(EvaluationModeEnum.Adapter.class) public enum EvaluationModeEnum { STACKABLE("stackable"), - + LISTORDER("listOrder"), - + LOWESTDISCOUNT("lowestDiscount"), - + HIGHESTDISCOUNT("highestDiscount"); private String value; @@ -90,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationModeEnum enumerat @Override public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationModeEnum.fromValue(value); } } @@ -106,7 +105,7 @@ public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(EvaluationScopeEnum.Adapter.class) public enum EvaluationScopeEnum { CARTITEM("cartItem"), - + SESSION("session"); private String value; @@ -141,7 +140,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationScopeEnum enumera @Override public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationScopeEnum.fromValue(value); } } @@ -157,86 +156,83 @@ public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; + public CampaignEvaluationGroup applicationId(Long applicationId) { - public CampaignEvaluationGroup applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public CampaignEvaluationGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign evaluation group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer campaigns", required = true, value = "The name of the campaign evaluation group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CampaignEvaluationGroup parentId(Long parentId) { - public CampaignEvaluationGroup parentId(Integer parentId) { - this.parentId = parentId; return this; } - /** + /** * The ID of the parent group that contains the campaign evaluation group. * minimum: 1 + * * @return parentId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Integer getParentId() { + public Long getParentId() { return parentId; } - - public void setParentId(Integer parentId) { + public void setParentId(Long parentId) { this.parentId = parentId; } - public CampaignEvaluationGroup description(String description) { - + this.description = description; return this; } - /** + /** * A description of the campaign evaluation group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This campaign evaluation group contains all campaigns that are running in the summer.", value = "A description of the campaign evaluation group.") @@ -244,100 +240,96 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignEvaluationGroup evaluationMode(EvaluationModeEnum evaluationMode) { - + this.evaluationMode = evaluationMode; return this; } - /** + /** * The mode by which campaigns in the campaign evaluation group are evaluated. + * * @return evaluationMode - **/ + **/ @ApiModelProperty(required = true, value = "The mode by which campaigns in the campaign evaluation group are evaluated.") public EvaluationModeEnum getEvaluationMode() { return evaluationMode; } - public void setEvaluationMode(EvaluationModeEnum evaluationMode) { this.evaluationMode = evaluationMode; } - public CampaignEvaluationGroup evaluationScope(EvaluationScopeEnum evaluationScope) { - + this.evaluationScope = evaluationScope; return this; } - /** + /** * The evaluation scope of the campaign evaluation group. + * * @return evaluationScope - **/ + **/ @ApiModelProperty(required = true, value = "The evaluation scope of the campaign evaluation group.") public EvaluationScopeEnum getEvaluationScope() { return evaluationScope; } - public void setEvaluationScope(EvaluationScopeEnum evaluationScope) { this.evaluationScope = evaluationScope; } - public CampaignEvaluationGroup locked(Boolean locked) { - + this.locked = locked; return this; } - /** - * An indicator of whether the campaign evaluation group is locked for modification. + /** + * An indicator of whether the campaign evaluation group is locked for + * modification. + * * @return locked - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "An indicator of whether the campaign evaluation group is locked for modification.") public Boolean getLocked() { return locked; } - public void setLocked(Boolean locked) { this.locked = locked; } + public CampaignEvaluationGroup id(Long id) { - public CampaignEvaluationGroup id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -362,7 +354,6 @@ public int hashCode() { return Objects.hash(applicationId, name, parentId, description, evaluationMode, evaluationScope, locked, id); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -391,4 +382,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignEvaluationPosition.java b/src/main/java/one/talon/model/CampaignEvaluationPosition.java index 5d3ca6c9..7dba2d45 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationPosition.java +++ b/src/main/java/one/talon/model/CampaignEvaluationPosition.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class CampaignEvaluationPosition { public static final String SERIALIZED_NAME_GROUP_ID = "groupId"; @SerializedName(SERIALIZED_NAME_GROUP_ID) - private Integer groupId; + private Long groupId; public static final String SERIALIZED_NAME_GROUP_NAME = "groupName"; @SerializedName(SERIALIZED_NAME_GROUP_NAME) @@ -40,75 +39,71 @@ public class CampaignEvaluationPosition { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) - private Integer position; + private Long position; + public CampaignEvaluationPosition groupId(Long groupId) { - public CampaignEvaluationPosition groupId(Integer groupId) { - this.groupId = groupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return groupId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getGroupId() { + public Long getGroupId() { return groupId; } - - public void setGroupId(Integer groupId) { + public void setGroupId(Long groupId) { this.groupId = groupId; } - public CampaignEvaluationPosition groupName(String groupName) { - + this.groupName = groupName; return this; } - /** + /** * The name of the campaign evaluation group the campaign belongs to. + * * @return groupName - **/ + **/ @ApiModelProperty(example = "Summer campaigns", required = true, value = "The name of the campaign evaluation group the campaign belongs to.") public String getGroupName() { return groupName; } - public void setGroupName(String groupName) { this.groupName = groupName; } + public CampaignEvaluationPosition position(Long position) { - public CampaignEvaluationPosition position(Integer position) { - this.position = position; return this; } - /** + /** * The position of the campaign node in its parent group. + * * @return position - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The position of the campaign node in its parent group.") - public Integer getPosition() { + public Long getPosition() { return position; } - - public void setPosition(Integer position) { + public void setPosition(Long position) { this.position = position; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,7 +123,6 @@ public int hashCode() { return Objects.hash(groupId, groupName, position); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -152,4 +146,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java b/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java index eeac3faa..e1cdbec5 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class CampaignEvaluationTreeChangedNotification { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_OLD_EVALUATION_TREE = "oldEvaluationTree"; @SerializedName(SERIALIZED_NAME_OLD_EVALUATION_TREE) @@ -43,39 +42,38 @@ public class CampaignEvaluationTreeChangedNotification { @SerializedName(SERIALIZED_NAME_EVALUATION_TREE) private CampaignSet evaluationTree; + public CampaignEvaluationTreeChangedNotification applicationId(Long applicationId) { - public CampaignEvaluationTreeChangedNotification applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application whose campaign evaluation tree changed. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "78", required = true, value = "The ID of the Application whose campaign evaluation tree changed.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public CampaignEvaluationTreeChangedNotification oldEvaluationTree(CampaignSet oldEvaluationTree) { - + this.oldEvaluationTree = oldEvaluationTree; return this; } - /** + /** * Get oldEvaluationTree + * * @return oldEvaluationTree - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -83,34 +81,31 @@ public CampaignSet getOldEvaluationTree() { return oldEvaluationTree; } - public void setOldEvaluationTree(CampaignSet oldEvaluationTree) { this.oldEvaluationTree = oldEvaluationTree; } - public CampaignEvaluationTreeChangedNotification evaluationTree(CampaignSet evaluationTree) { - + this.evaluationTree = evaluationTree; return this; } - /** + /** * Get evaluationTree + * * @return evaluationTree - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignSet getEvaluationTree() { return evaluationTree; } - public void setEvaluationTree(CampaignSet evaluationTree) { this.evaluationTree = evaluationTree; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,7 +125,6 @@ public int hashCode() { return Objects.hash(applicationId, oldEvaluationTree, evaluationTree); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignForNotification.java b/src/main/java/one/talon/model/CampaignForNotification.java index fb3ffb10..53454944 100644 --- a/src/main/java/one/talon/model/CampaignForNotification.java +++ b/src/main/java/one/talon/model/CampaignForNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,7 +38,7 @@ public class CampaignForNotification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,11 +46,11 @@ public class CampaignForNotification { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,22 +73,22 @@ public class CampaignForNotification { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"), - + DRAFT("draft"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + EXPIRED("expired"); private String value; @@ -124,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -136,7 +135,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -148,13 +147,13 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"); private String value; @@ -189,7 +188,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -213,19 +212,21 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; + private Long evaluationGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -260,7 +261,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -272,7 +273,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_BUDGETS = "budgets"; @SerializedName(SERIALIZED_NAME_BUDGETS) @@ -280,11 +281,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Integer couponRedemptionCount; + private Long couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Integer referralRedemptionCount; + private Long referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -292,27 +293,27 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Integer discountEffectCount; + private Long discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Integer couponCreationCount; + private Long couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Integer customEffectCount; + private Long customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Integer referralCreationCount; + private Long referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Integer addFreeItemEffectCount; + private Long addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Integer awardedGiveawaysCount; + private Long awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -320,7 +321,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer createdLoyaltyPointsEffectCount; + private Long createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -328,15 +329,15 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer redeemedLoyaltyPointsEffectCount; + private Long redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Integer callApiEffectCount; + private Long callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Integer reservecouponEffectCount; + private Long reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -356,151 +357,145 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; + public CampaignForNotification id(Long id) { - public CampaignForNotification id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignForNotification created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The exact moment this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The exact moment this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignForNotification applicationId(Long applicationId) { - public CampaignForNotification applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignForNotification userId(Long userId) { - public CampaignForNotification userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public CampaignForNotification name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignForNotification description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @ApiModelProperty(example = "Campaign for all summer 2021 promotions", required = true, value = "A detailed description of the campaign.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignForNotification startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -508,22 +503,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public CampaignForNotification endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -531,22 +525,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public CampaignForNotification attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -554,59 +547,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CampaignForNotification state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public CampaignForNotification activeRulesetId(Long activeRulesetId) { - public CampaignForNotification activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public CampaignForNotification tags(List tags) { - + this.tags = tags; return this; } @@ -616,24 +606,23 @@ public CampaignForNotification addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public CampaignForNotification features(List features) { - + this.features = features; return this; } @@ -643,32 +632,32 @@ public CampaignForNotification addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public CampaignForNotification couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -676,22 +665,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public CampaignForNotification referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -699,14 +687,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public CampaignForNotification limits(List limits) { - + this.limits = limits; return this; } @@ -716,131 +702,135 @@ public CampaignForNotification addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public CampaignForNotification campaignGroups(List campaignGroups) { - public CampaignForNotification campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public CampaignForNotification addCampaignGroupsItem(Integer campaignGroupsItem) { + public CampaignForNotification addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } + public CampaignForNotification evaluationGroupId(Long evaluationGroupId) { - public CampaignForNotification evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - public CampaignForNotification type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @ApiModelProperty(example = "advanced", required = true, value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public CampaignForNotification linkedStoreIds(List linkedStoreIds) { - public CampaignForNotification linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public CampaignForNotification addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public CampaignForNotification addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that are linked to the campaign. **Note:** Campaigns with + * linked store IDs will only be evaluated when there is a [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - public CampaignForNotification budgets(List budgets) { - + this.budgets = budgets; return this; } @@ -850,78 +840,81 @@ public CampaignForNotification addBudgetsItem(CampaignBudget budgetsItem) { return this; } - /** - * A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. + /** + * A list of all the budgets that are defined by this campaign and their usage. + * **Note:** Budgets that are not defined do not appear in this list and their + * usage is not counted until they are defined. + * * @return budgets - **/ + **/ @ApiModelProperty(required = true, value = "A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. ") public List getBudgets() { return budgets; } - public void setBudgets(List budgets) { this.budgets = budgets; } + public CampaignForNotification couponRedemptionCount(Long couponRedemptionCount) { - public CampaignForNotification couponRedemptionCount(Integer couponRedemptionCount) { - this.couponRedemptionCount = couponRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of coupons redeemed in the campaign. + * * @return couponRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Integer getCouponRedemptionCount() { + public Long getCouponRedemptionCount() { return couponRedemptionCount; } - - public void setCouponRedemptionCount(Integer couponRedemptionCount) { + public void setCouponRedemptionCount(Long couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } + public CampaignForNotification referralRedemptionCount(Long referralRedemptionCount) { - public CampaignForNotification referralRedemptionCount(Integer referralRedemptionCount) { - this.referralRedemptionCount = referralRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of referral codes redeemed in the campaign. + * * @return referralRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Integer getReferralRedemptionCount() { + public Long getReferralRedemptionCount() { return referralRedemptionCount; } - - public void setReferralRedemptionCount(Integer referralRedemptionCount) { + public void setReferralRedemptionCount(Long referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } - public CampaignForNotification discountCount(BigDecimal discountCount) { - + this.discountCount = discountCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total amount of discounts redeemed in the campaign. + * * @return discountCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "288.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. ") @@ -929,160 +922,168 @@ public BigDecimal getDiscountCount() { return discountCount; } - public void setDiscountCount(BigDecimal discountCount) { this.discountCount = discountCount; } + public CampaignForNotification discountEffectCount(Long discountEffectCount) { - public CampaignForNotification discountEffectCount(Integer discountEffectCount) { - this.discountEffectCount = discountEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times discounts were redeemed in this + * campaign. + * * @return discountEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Integer getDiscountEffectCount() { + public Long getDiscountEffectCount() { return discountEffectCount; } - - public void setDiscountEffectCount(Integer discountEffectCount) { + public void setDiscountEffectCount(Long discountEffectCount) { this.discountEffectCount = discountEffectCount; } + public CampaignForNotification couponCreationCount(Long couponCreationCount) { - public CampaignForNotification couponCreationCount(Integer couponCreationCount) { - this.couponCreationCount = couponCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of coupons created by rules in this + * campaign. + * * @return couponCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Integer getCouponCreationCount() { + public Long getCouponCreationCount() { return couponCreationCount; } - - public void setCouponCreationCount(Integer couponCreationCount) { + public void setCouponCreationCount(Long couponCreationCount) { this.couponCreationCount = couponCreationCount; } + public CampaignForNotification customEffectCount(Long customEffectCount) { - public CampaignForNotification customEffectCount(Integer customEffectCount) { - this.customEffectCount = customEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of custom effects triggered by rules in this + * campaign. + * * @return customEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Integer getCustomEffectCount() { + public Long getCustomEffectCount() { return customEffectCount; } - - public void setCustomEffectCount(Integer customEffectCount) { + public void setCustomEffectCount(Long customEffectCount) { this.customEffectCount = customEffectCount; } + public CampaignForNotification referralCreationCount(Long referralCreationCount) { - public CampaignForNotification referralCreationCount(Integer referralCreationCount) { - this.referralCreationCount = referralCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of referrals created by rules in this + * campaign. + * * @return referralCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Integer getReferralCreationCount() { + public Long getReferralCreationCount() { return referralCreationCount; } - - public void setReferralCreationCount(Integer referralCreationCount) { + public void setReferralCreationCount(Long referralCreationCount) { this.referralCreationCount = referralCreationCount; } + public CampaignForNotification addFreeItemEffectCount(Long addFreeItemEffectCount) { - public CampaignForNotification addFreeItemEffectCount(Integer addFreeItemEffectCount) { - this.addFreeItemEffectCount = addFreeItemEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times the [add free item + * effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) + * can be triggered in this campaign. + * * @return addFreeItemEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Integer getAddFreeItemEffectCount() { + public Long getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - - public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } + public CampaignForNotification awardedGiveawaysCount(Long awardedGiveawaysCount) { - public CampaignForNotification awardedGiveawaysCount(Integer awardedGiveawaysCount) { - this.awardedGiveawaysCount = awardedGiveawaysCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of giveaways awarded by rules in this + * campaign. + * * @return awardedGiveawaysCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Integer getAwardedGiveawaysCount() { + public Long getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - - public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } - public CampaignForNotification createdLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { - + this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points created by rules in this + * campaign. + * * @return createdLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. ") @@ -1090,45 +1091,47 @@ public BigDecimal getCreatedLoyaltyPointsCount() { return createdLoyaltyPointsCount; } - public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; } + public CampaignForNotification createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { - public CampaignForNotification createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { - this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point creation effects triggered + * by rules in this campaign. + * * @return createdLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Integer getCreatedLoyaltyPointsEffectCount() { + public Long getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - - public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } - public CampaignForNotification redeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { - + this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points redeemed by rules in this + * campaign. + * * @return redeemedLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. ") @@ -1136,91 +1139,93 @@ public BigDecimal getRedeemedLoyaltyPointsCount() { return redeemedLoyaltyPointsCount; } - public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; } + public CampaignForNotification redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { - public CampaignForNotification redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { - this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point redemption effects + * triggered by rules in this campaign. + * * @return redeemedLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Integer getRedeemedLoyaltyPointsEffectCount() { + public Long getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - - public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } + public CampaignForNotification callApiEffectCount(Long callApiEffectCount) { - public CampaignForNotification callApiEffectCount(Integer callApiEffectCount) { - this.callApiEffectCount = callApiEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of webhooks triggered by rules in this + * campaign. + * * @return callApiEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Integer getCallApiEffectCount() { + public Long getCallApiEffectCount() { return callApiEffectCount; } - - public void setCallApiEffectCount(Integer callApiEffectCount) { + public void setCallApiEffectCount(Long callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } + public CampaignForNotification reservecouponEffectCount(Long reservecouponEffectCount) { - public CampaignForNotification reservecouponEffectCount(Integer reservecouponEffectCount) { - this.reservecouponEffectCount = reservecouponEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of reserve coupon effects triggered by rules + * in this campaign. + * * @return reservecouponEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Integer getReservecouponEffectCount() { + public Long getReservecouponEffectCount() { return reservecouponEffectCount; } - - public void setReservecouponEffectCount(Integer reservecouponEffectCount) { + public void setReservecouponEffectCount(Long reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } - public CampaignForNotification lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** + /** * Timestamp of the most recent event received by this campaign. + * * @return lastActivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-11-10T23:00Z", value = "Timestamp of the most recent event received by this campaign.") @@ -1228,22 +1233,23 @@ public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public CampaignForNotification updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** - * Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. + /** + * Timestamp of the most recent update to the campaign's property. Updates + * to external entities used in this campaign are **not** registered by this + * property, such as collection or coupon updates. + * * @return updated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. ") @@ -1251,22 +1257,21 @@ public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - public CampaignForNotification createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** + /** * Name of the user who created this campaign if available. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user who created this campaign if available.") @@ -1274,22 +1279,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public CampaignForNotification updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign if available.") @@ -1297,35 +1301,32 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } + public CampaignForNotification templateId(Long templateId) { - public CampaignForNotification templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** + /** * The ID of the Campaign Template this Campaign was created from. + * * @return templateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -1368,7 +1369,8 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.createdLoyaltyPointsCount, campaignForNotification.createdLoyaltyPointsCount) && Objects.equals(this.createdLoyaltyPointsEffectCount, campaignForNotification.createdLoyaltyPointsEffectCount) && Objects.equals(this.redeemedLoyaltyPointsCount, campaignForNotification.redeemedLoyaltyPointsCount) && - Objects.equals(this.redeemedLoyaltyPointsEffectCount, campaignForNotification.redeemedLoyaltyPointsEffectCount) && + Objects.equals(this.redeemedLoyaltyPointsEffectCount, campaignForNotification.redeemedLoyaltyPointsEffectCount) + && Objects.equals(this.callApiEffectCount, campaignForNotification.callApiEffectCount) && Objects.equals(this.reservecouponEffectCount, campaignForNotification.reservecouponEffectCount) && Objects.equals(this.lastActivity, campaignForNotification.lastActivity) && @@ -1380,10 +1382,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId); + return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, + activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, + type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, + discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, + awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, + redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, + createdBy, updatedBy, templateId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1419,9 +1426,11 @@ public String toString() { sb.append(" addFreeItemEffectCount: ").append(toIndentedString(addFreeItemEffectCount)).append("\n"); sb.append(" awardedGiveawaysCount: ").append(toIndentedString(awardedGiveawaysCount)).append("\n"); sb.append(" createdLoyaltyPointsCount: ").append(toIndentedString(createdLoyaltyPointsCount)).append("\n"); - sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)).append("\n"); + sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" redeemedLoyaltyPointsCount: ").append(toIndentedString(redeemedLoyaltyPointsCount)).append("\n"); - sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)).append("\n"); + sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" callApiEffectCount: ").append(toIndentedString(callApiEffectCount)).append("\n"); sb.append(" reservecouponEffectCount: ").append(toIndentedString(reservecouponEffectCount)).append("\n"); sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n"); @@ -1445,4 +1454,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignGroup.java b/src/main/java/one/talon/model/CampaignGroup.java index c0465148..d618ead4 100644 --- a/src/main/java/one/talon/model/CampaignGroup.java +++ b/src/main/java/one/talon/model/CampaignGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,7 +45,7 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -58,133 +57,128 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; + private List campaignIds = null; + public CampaignGroup id(Long id) { - public CampaignGroup id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignGroup created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public CampaignGroup modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public CampaignGroup accountId(Long accountId) { - public CampaignGroup accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CampaignGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign access group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignGroup description(String description) { - + this.description = description; return this; } - /** + /** * A longer description of the campaign access group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") @@ -192,74 +186,71 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public CampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - public CampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public CampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public CampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of IDs of the Applications that this campaign access group is enabled for. + /** + * A list of IDs of the Applications that this campaign access group is enabled + * for. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public CampaignGroup campaignIds(List campaignIds) { - public CampaignGroup campaignIds(List campaignIds) { - this.campaignIds = campaignIds; return this; } - public CampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { + public CampaignGroup addCampaignIdsItem(Long campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; } - /** + /** * A list of IDs of the campaigns that are part of the campaign access group. + * * @return campaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -284,7 +275,6 @@ public int hashCode() { return Objects.hash(id, created, modified, accountId, name, description, subscribedApplicationsIds, campaignIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -313,4 +303,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignGroupEntity.java b/src/main/java/one/talon/model/CampaignGroupEntity.java index d4c78772..66988cb3 100644 --- a/src/main/java/one/talon/model/CampaignGroupEntity.java +++ b/src/main/java/one/talon/model/CampaignGroupEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,40 +32,38 @@ public class CampaignGroupEntity { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; + public CampaignGroupEntity campaignGroups(List campaignGroups) { - public CampaignGroupEntity campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public CampaignGroupEntity addCampaignGroupsItem(Integer campaignGroupsItem) { + public CampaignGroupEntity addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** + /** * The IDs of the campaign groups that own this entity. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The IDs of the campaign groups that own this entity.") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,7 +81,6 @@ public int hashCode() { return Objects.hash(campaignGroups); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -106,4 +102,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignNotificationPolicy.java b/src/main/java/one/talon/model/CampaignNotificationPolicy.java index fb30bfe5..221dc348 100644 --- a/src/main/java/one/talon/model/CampaignNotificationPolicy.java +++ b/src/main/java/one/talon/model/CampaignNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,41 +38,40 @@ public class CampaignNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public CampaignNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") @@ -81,35 +79,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public CampaignNotificationPolicy batchSize(Long batchSize) { - public CampaignNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +125,6 @@ public int hashCode() { return Objects.hash(name, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignPrioritiesChangedNotification.java b/src/main/java/one/talon/model/CampaignPrioritiesChangedNotification.java index 9256f252..38a5b667 100644 --- a/src/main/java/one/talon/model/CampaignPrioritiesChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignPrioritiesChangedNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class CampaignPrioritiesChangedNotification { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_OLD_PRIORITIES = "oldPriorities"; @SerializedName(SERIALIZED_NAME_OLD_PRIORITIES) @@ -43,39 +42,38 @@ public class CampaignPrioritiesChangedNotification { @SerializedName(SERIALIZED_NAME_PRIORITIES) private CampaignSet priorities; + public CampaignPrioritiesChangedNotification applicationId(Long applicationId) { - public CampaignPrioritiesChangedNotification applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application whose campaigns' priorities changed. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "78", required = true, value = "The ID of the Application whose campaigns' priorities changed.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public CampaignPrioritiesChangedNotification oldPriorities(CampaignSet oldPriorities) { - + this.oldPriorities = oldPriorities; return this; } - /** + /** * Get oldPriorities + * * @return oldPriorities - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -83,34 +81,31 @@ public CampaignSet getOldPriorities() { return oldPriorities; } - public void setOldPriorities(CampaignSet oldPriorities) { this.oldPriorities = oldPriorities; } - public CampaignPrioritiesChangedNotification priorities(CampaignSet priorities) { - + this.priorities = priorities; return this; } - /** + /** * Get priorities + * * @return priorities - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignSet getPriorities() { return priorities; } - public void setPriorities(CampaignSet priorities) { this.priorities = priorities; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,7 +125,6 @@ public int hashCode() { return Objects.hash(applicationId, oldPriorities, priorities); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignSet.java b/src/main/java/one/talon/model/CampaignSet.java index e8c018b2..ddfe186a 100644 --- a/src/main/java/one/talon/model/CampaignSet.java +++ b/src/main/java/one/talon/model/CampaignSet.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,15 +31,15 @@ public class CampaignSet { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) @@ -50,106 +49,102 @@ public class CampaignSet { @SerializedName(SERIALIZED_NAME_UPDATED_BY) private String updatedBy; + public CampaignSet applicationId(Long applicationId) { - public CampaignSet applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignSet id(Long id) { - public CampaignSet id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public CampaignSet version(Long version) { - public CampaignSet version(Integer version) { - this.version = version; return this; } - /** + /** * Version of the campaign set. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "Version of the campaign set.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public CampaignSet set(CampaignSetBranchNode set) { - + this.set = set; return this; } - /** + /** * Get set + * * @return set - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignSetBranchNode getSet() { return set; } - public void setSet(CampaignSetBranchNode set) { this.set = set; } - public CampaignSet updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign set, if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign set, if available.") @@ -157,12 +152,10 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,7 +177,6 @@ public int hashCode() { return Objects.hash(applicationId, id, version, set, updatedBy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -210,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignSetBranchNode.java b/src/main/java/one/talon/model/CampaignSetBranchNode.java index c15e86dd..a54be55b 100644 --- a/src/main/java/one/talon/model/CampaignSetBranchNode.java +++ b/src/main/java/one/talon/model/CampaignSetBranchNode.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -71,7 +70,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -91,7 +90,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(OperatorEnum.Adapter.class) public enum OperatorEnum { ALL("ALL"), - + FIRST("FIRST"); private String value; @@ -126,7 +125,7 @@ public void write(final JsonWriter jsonWriter, final OperatorEnum enumeration) t @Override public OperatorEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return OperatorEnum.fromValue(value); } } @@ -142,7 +141,7 @@ public OperatorEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_GROUP_ID = "groupId"; @SerializedName(SERIALIZED_NAME_GROUP_ID) - private Integer groupId; + private Long groupId; public static final String SERIALIZED_NAME_LOCKED = "locked"; @SerializedName(SERIALIZED_NAME_LOCKED) @@ -158,11 +157,11 @@ public OperatorEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(EvaluationModeEnum.Adapter.class) public enum EvaluationModeEnum { STACKABLE("stackable"), - + LISTORDER("listOrder"), - + LOWESTDISCOUNT("lowestDiscount"), - + HIGHESTDISCOUNT("highestDiscount"); private String value; @@ -197,7 +196,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationModeEnum enumerat @Override public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationModeEnum.fromValue(value); } } @@ -213,7 +212,7 @@ public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(EvaluationScopeEnum.Adapter.class) public enum EvaluationScopeEnum { CARTITEM("cartItem"), - + SESSION("session"); private String value; @@ -248,7 +247,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationScopeEnum enumera @Override public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationScopeEnum.fromValue(value); } } @@ -258,75 +257,71 @@ public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_EVALUATION_SCOPE) private EvaluationScopeEnum evaluationScope; - public CampaignSetBranchNode type(TypeEnum type) { - + this.type = type; return this; } - /** + /** * Indicates the node type. + * * @return type - **/ + **/ @ApiModelProperty(example = "SET", required = true, value = "Indicates the node type.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public CampaignSetBranchNode name(String name) { - + this.name = name; return this; } - /** + /** * Name of the set. + * * @return name - **/ + **/ @ApiModelProperty(example = "name", required = true, value = "Name of the set.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignSetBranchNode operator(OperatorEnum operator) { - + this.operator = operator; return this; } - /** + /** * An indicator of how the set operates on its elements. + * * @return operator - **/ + **/ @ApiModelProperty(example = "ALL", required = true, value = "An indicator of how the set operates on its elements.") public OperatorEnum getOperator() { return operator; } - public void setOperator(OperatorEnum operator) { this.operator = operator; } - public CampaignSetBranchNode elements(List elements) { - + this.elements = elements; return this; } @@ -336,76 +331,74 @@ public CampaignSetBranchNode addElementsItem(CampaignSetNode elementsItem) { return this; } - /** + /** * Child elements of this set. + * * @return elements - **/ + **/ @ApiModelProperty(required = true, value = "Child elements of this set.") public List getElements() { return elements; } - public void setElements(List elements) { this.elements = elements; } + public CampaignSetBranchNode groupId(Long groupId) { - public CampaignSetBranchNode groupId(Integer groupId) { - this.groupId = groupId; return this; } - /** + /** * The ID of the campaign set. + * * @return groupId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the campaign set.") - public Integer getGroupId() { + public Long getGroupId() { return groupId; } - - public void setGroupId(Integer groupId) { + public void setGroupId(Long groupId) { this.groupId = groupId; } - public CampaignSetBranchNode locked(Boolean locked) { - + this.locked = locked; return this; } - /** + /** * An indicator of whether the campaign set is locked for modification. + * * @return locked - **/ + **/ @ApiModelProperty(required = true, value = "An indicator of whether the campaign set is locked for modification.") public Boolean getLocked() { return locked; } - public void setLocked(Boolean locked) { this.locked = locked; } - public CampaignSetBranchNode description(String description) { - + this.description = description; return this; } - /** + /** * A description of the campaign set. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A description of the campaign set.") @@ -413,56 +406,52 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignSetBranchNode evaluationMode(EvaluationModeEnum evaluationMode) { - + this.evaluationMode = evaluationMode; return this; } - /** + /** * The mode by which campaigns in the campaign evaluation group are evaluated. + * * @return evaluationMode - **/ + **/ @ApiModelProperty(required = true, value = "The mode by which campaigns in the campaign evaluation group are evaluated.") public EvaluationModeEnum getEvaluationMode() { return evaluationMode; } - public void setEvaluationMode(EvaluationModeEnum evaluationMode) { this.evaluationMode = evaluationMode; } - public CampaignSetBranchNode evaluationScope(EvaluationScopeEnum evaluationScope) { - + this.evaluationScope = evaluationScope; return this; } - /** + /** * The evaluation scope of the campaign evaluation group. + * * @return evaluationScope - **/ + **/ @ApiModelProperty(required = true, value = "The evaluation scope of the campaign evaluation group.") public EvaluationScopeEnum getEvaluationScope() { return evaluationScope; } - public void setEvaluationScope(EvaluationScopeEnum evaluationScope) { this.evaluationScope = evaluationScope; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -488,7 +477,6 @@ public int hashCode() { return Objects.hash(type, name, operator, elements, groupId, locked, description, evaluationMode, evaluationScope); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -518,4 +506,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignSetIDs.java b/src/main/java/one/talon/model/CampaignSetIDs.java index 80f0ffd7..91c9f80e 100644 --- a/src/main/java/one/talon/model/CampaignSetIDs.java +++ b/src/main/java/one/talon/model/CampaignSetIDs.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,32 +31,30 @@ public class CampaignSetIDs { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; + public CampaignSetIDs campaignId(Long campaignId) { - public CampaignSetIDs campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "ID of the campaign") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,7 +72,6 @@ public int hashCode() { return Objects.hash(campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -97,4 +93,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignSetLeafNode.java b/src/main/java/one/talon/model/CampaignSetLeafNode.java index f928bf4c..8ca4aa68 100644 --- a/src/main/java/one/talon/model/CampaignSetLeafNode.java +++ b/src/main/java/one/talon/model/CampaignSetLeafNode.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -68,7 +67,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -80,53 +79,50 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; - + private Long campaignId; public CampaignSetLeafNode type(TypeEnum type) { - + this.type = type; return this; } - /** + /** * Indicates the node type. + * * @return type - **/ + **/ @ApiModelProperty(required = true, value = "Indicates the node type.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public CampaignSetLeafNode campaignId(Long campaignId) { - public CampaignSetLeafNode campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign + * * @return campaignId - **/ + **/ @ApiModelProperty(required = true, value = "ID of the campaign") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -145,7 +141,6 @@ public int hashCode() { return Objects.hash(type, campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -168,4 +163,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignSetV2.java b/src/main/java/one/talon/model/CampaignSetV2.java index afa668b6..b3ba491b 100644 --- a/src/main/java/one/talon/model/CampaignSetV2.java +++ b/src/main/java/one/talon/model/CampaignSetV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class CampaignSetV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,128 +41,122 @@ public class CampaignSetV2 { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) private CampaignPrioritiesV2 set; + public CampaignSetV2 id(Long id) { - public CampaignSetV2 id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignSetV2 created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignSetV2 applicationId(Long applicationId) { - public CampaignSetV2 applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignSetV2 version(Long version) { - public CampaignSetV2 version(Integer version) { - this.version = version; return this; } - /** + /** * Version of the campaign set. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "Version of the campaign set.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public CampaignSetV2 set(CampaignPrioritiesV2 set) { - + this.set = set; return this; } - /** + /** * Get set + * * @return set - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignPrioritiesV2 getSet() { return set; } - public void setSet(CampaignPrioritiesV2 set) { this.set = set; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -185,7 +178,6 @@ public int hashCode() { return Objects.hash(id, created, applicationId, version, set); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -211,4 +203,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignStateNotification.java b/src/main/java/one/talon/model/CampaignStateNotification.java index dc9bd565..9591aeee 100644 --- a/src/main/java/one/talon/model/CampaignStateNotification.java +++ b/src/main/java/one/talon/model/CampaignStateNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,7 +38,7 @@ public class CampaignStateNotification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,11 +46,11 @@ public class CampaignStateNotification { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,14 +73,14 @@ public class CampaignStateNotification { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"); private String value; @@ -116,7 +115,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -128,7 +127,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -140,13 +139,13 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"); private String value; @@ -181,7 +180,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -205,19 +204,21 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; + private Long evaluationGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -252,7 +253,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -264,7 +265,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_BUDGETS = "budgets"; @SerializedName(SERIALIZED_NAME_BUDGETS) @@ -272,11 +273,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Integer couponRedemptionCount; + private Long couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Integer referralRedemptionCount; + private Long referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -284,27 +285,27 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Integer discountEffectCount; + private Long discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Integer couponCreationCount; + private Long couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Integer customEffectCount; + private Long customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Integer referralCreationCount; + private Long referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Integer addFreeItemEffectCount; + private Long addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Integer awardedGiveawaysCount; + private Long awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -312,7 +313,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer createdLoyaltyPointsEffectCount; + private Long createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -320,15 +321,15 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Integer redeemedLoyaltyPointsEffectCount; + private Long redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Integer callApiEffectCount; + private Long callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Integer reservecouponEffectCount; + private Long reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -348,7 +349,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; /** * A campaign state described exactly as in the Campaign Manager. @@ -356,13 +357,13 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FrontendStateEnum.Adapter.class) public enum FrontendStateEnum { EXPIRED("expired"), - + SCHEDULED("scheduled"), - + RUNNING("running"), - + DRAFT("draft"), - + DISABLED("disabled"); private String value; @@ -397,7 +398,7 @@ public void write(final JsonWriter jsonWriter, final FrontendStateEnum enumerati @Override public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FrontendStateEnum.fromValue(value); } } @@ -407,149 +408,143 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FRONTEND_STATE) private FrontendStateEnum frontendState; + public CampaignStateNotification id(Long id) { - public CampaignStateNotification id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignStateNotification created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The exact moment this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The exact moment this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignStateNotification applicationId(Long applicationId) { - public CampaignStateNotification applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CampaignStateNotification userId(Long userId) { - public CampaignStateNotification userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public CampaignStateNotification name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignStateNotification description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @ApiModelProperty(example = "Campaign for all summer 2021 promotions", required = true, value = "A detailed description of the campaign.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignStateNotification startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -557,22 +552,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public CampaignStateNotification endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -580,22 +574,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public CampaignStateNotification attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -603,59 +596,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CampaignStateNotification state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public CampaignStateNotification activeRulesetId(Long activeRulesetId) { - public CampaignStateNotification activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public CampaignStateNotification tags(List tags) { - + this.tags = tags; return this; } @@ -665,24 +655,23 @@ public CampaignStateNotification addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public CampaignStateNotification features(List features) { - + this.features = features; return this; } @@ -692,32 +681,32 @@ public CampaignStateNotification addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public CampaignStateNotification couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -725,22 +714,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public CampaignStateNotification referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -748,14 +736,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public CampaignStateNotification limits(List limits) { - + this.limits = limits; return this; } @@ -765,131 +751,136 @@ public CampaignStateNotification addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public CampaignStateNotification campaignGroups(List campaignGroups) { - public CampaignStateNotification campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public CampaignStateNotification addCampaignGroupsItem(Integer campaignGroupsItem) { + public CampaignStateNotification addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } + public CampaignStateNotification evaluationGroupId(Long evaluationGroupId) { - public CampaignStateNotification evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - public CampaignStateNotification type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @ApiModelProperty(example = "advanced", required = true, value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public CampaignStateNotification linkedStoreIds(List linkedStoreIds) { - public CampaignStateNotification linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public CampaignStateNotification addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public CampaignStateNotification addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that you want to link to the campaign. **Note:** + * Campaigns with linked store IDs will only be evaluated when there is a + * [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - public CampaignStateNotification budgets(List budgets) { - + this.budgets = budgets; return this; } @@ -899,78 +890,81 @@ public CampaignStateNotification addBudgetsItem(CampaignBudget budgetsItem) { return this; } - /** - * A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. + /** + * A list of all the budgets that are defined by this campaign and their usage. + * **Note:** Budgets that are not defined do not appear in this list and their + * usage is not counted until they are defined. + * * @return budgets - **/ + **/ @ApiModelProperty(required = true, value = "A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. ") public List getBudgets() { return budgets; } - public void setBudgets(List budgets) { this.budgets = budgets; } + public CampaignStateNotification couponRedemptionCount(Long couponRedemptionCount) { - public CampaignStateNotification couponRedemptionCount(Integer couponRedemptionCount) { - this.couponRedemptionCount = couponRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of coupons redeemed in the campaign. + * * @return couponRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Integer getCouponRedemptionCount() { + public Long getCouponRedemptionCount() { return couponRedemptionCount; } - - public void setCouponRedemptionCount(Integer couponRedemptionCount) { + public void setCouponRedemptionCount(Long couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } + public CampaignStateNotification referralRedemptionCount(Long referralRedemptionCount) { - public CampaignStateNotification referralRedemptionCount(Integer referralRedemptionCount) { - this.referralRedemptionCount = referralRedemptionCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Number of referral codes redeemed in the campaign. + * * @return referralRedemptionCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Integer getReferralRedemptionCount() { + public Long getReferralRedemptionCount() { return referralRedemptionCount; } - - public void setReferralRedemptionCount(Integer referralRedemptionCount) { + public void setReferralRedemptionCount(Long referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } - public CampaignStateNotification discountCount(BigDecimal discountCount) { - + this.discountCount = discountCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total amount of discounts redeemed in the campaign. + * * @return discountCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "288.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. ") @@ -978,160 +972,168 @@ public BigDecimal getDiscountCount() { return discountCount; } - public void setDiscountCount(BigDecimal discountCount) { this.discountCount = discountCount; } + public CampaignStateNotification discountEffectCount(Long discountEffectCount) { - public CampaignStateNotification discountEffectCount(Integer discountEffectCount) { - this.discountEffectCount = discountEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times discounts were redeemed in this + * campaign. + * * @return discountEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Integer getDiscountEffectCount() { + public Long getDiscountEffectCount() { return discountEffectCount; } - - public void setDiscountEffectCount(Integer discountEffectCount) { + public void setDiscountEffectCount(Long discountEffectCount) { this.discountEffectCount = discountEffectCount; } + public CampaignStateNotification couponCreationCount(Long couponCreationCount) { - public CampaignStateNotification couponCreationCount(Integer couponCreationCount) { - this.couponCreationCount = couponCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of coupons created by rules in this + * campaign. + * * @return couponCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Integer getCouponCreationCount() { + public Long getCouponCreationCount() { return couponCreationCount; } - - public void setCouponCreationCount(Integer couponCreationCount) { + public void setCouponCreationCount(Long couponCreationCount) { this.couponCreationCount = couponCreationCount; } + public CampaignStateNotification customEffectCount(Long customEffectCount) { - public CampaignStateNotification customEffectCount(Integer customEffectCount) { - this.customEffectCount = customEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of custom effects triggered by rules in this + * campaign. + * * @return customEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Integer getCustomEffectCount() { + public Long getCustomEffectCount() { return customEffectCount; } - - public void setCustomEffectCount(Integer customEffectCount) { + public void setCustomEffectCount(Long customEffectCount) { this.customEffectCount = customEffectCount; } + public CampaignStateNotification referralCreationCount(Long referralCreationCount) { - public CampaignStateNotification referralCreationCount(Integer referralCreationCount) { - this.referralCreationCount = referralCreationCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of referrals created by rules in this + * campaign. + * * @return referralCreationCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Integer getReferralCreationCount() { + public Long getReferralCreationCount() { return referralCreationCount; } - - public void setReferralCreationCount(Integer referralCreationCount) { + public void setReferralCreationCount(Long referralCreationCount) { this.referralCreationCount = referralCreationCount; } + public CampaignStateNotification addFreeItemEffectCount(Long addFreeItemEffectCount) { - public CampaignStateNotification addFreeItemEffectCount(Integer addFreeItemEffectCount) { - this.addFreeItemEffectCount = addFreeItemEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of times the [add free item + * effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) + * can be triggered in this campaign. + * * @return addFreeItemEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Integer getAddFreeItemEffectCount() { + public Long getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - - public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } + public CampaignStateNotification awardedGiveawaysCount(Long awardedGiveawaysCount) { - public CampaignStateNotification awardedGiveawaysCount(Integer awardedGiveawaysCount) { - this.awardedGiveawaysCount = awardedGiveawaysCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of giveaways awarded by rules in this + * campaign. + * * @return awardedGiveawaysCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Integer getAwardedGiveawaysCount() { + public Long getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - - public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } - public CampaignStateNotification createdLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { - + this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points created by rules in this + * campaign. + * * @return createdLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. ") @@ -1139,45 +1141,47 @@ public BigDecimal getCreatedLoyaltyPointsCount() { return createdLoyaltyPointsCount; } - public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { this.createdLoyaltyPointsCount = createdLoyaltyPointsCount; } + public CampaignStateNotification createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { - public CampaignStateNotification createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { - this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point creation effects triggered + * by rules in this campaign. + * * @return createdLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Integer getCreatedLoyaltyPointsEffectCount() { + public Long getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - - public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } - public CampaignStateNotification redeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { - + this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty points redeemed by rules in this + * campaign. + * * @return redeemedLoyaltyPointsCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "8.0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. ") @@ -1185,91 +1189,93 @@ public BigDecimal getRedeemedLoyaltyPointsCount() { return redeemedLoyaltyPointsCount; } - public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) { this.redeemedLoyaltyPointsCount = redeemedLoyaltyPointsCount; } + public CampaignStateNotification redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { - public CampaignStateNotification redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { - this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of loyalty point redemption effects + * triggered by rules in this campaign. + * * @return redeemedLoyaltyPointsEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Integer getRedeemedLoyaltyPointsEffectCount() { + public Long getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - - public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } + public CampaignStateNotification callApiEffectCount(Long callApiEffectCount) { - public CampaignStateNotification callApiEffectCount(Integer callApiEffectCount) { - this.callApiEffectCount = callApiEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of webhooks triggered by rules in this + * campaign. + * * @return callApiEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Integer getCallApiEffectCount() { + public Long getCallApiEffectCount() { return callApiEffectCount; } - - public void setCallApiEffectCount(Integer callApiEffectCount) { + public void setCallApiEffectCount(Long callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } + public CampaignStateNotification reservecouponEffectCount(Long reservecouponEffectCount) { - public CampaignStateNotification reservecouponEffectCount(Integer reservecouponEffectCount) { - this.reservecouponEffectCount = reservecouponEffectCount; return this; } - /** - * This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. + /** + * This property is **deprecated**. The count should be available under + * *budgets* property. Total number of reserve coupon effects triggered by rules + * in this campaign. + * * @return reservecouponEffectCount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Integer getReservecouponEffectCount() { + public Long getReservecouponEffectCount() { return reservecouponEffectCount; } - - public void setReservecouponEffectCount(Integer reservecouponEffectCount) { + public void setReservecouponEffectCount(Long reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } - public CampaignStateNotification lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** + /** * Timestamp of the most recent event received by this campaign. + * * @return lastActivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-11-10T23:00Z", value = "Timestamp of the most recent event received by this campaign.") @@ -1277,22 +1283,23 @@ public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public CampaignStateNotification updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** - * Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. + /** + * Timestamp of the most recent update to the campaign's property. Updates + * to external entities used in this campaign are **not** registered by this + * property, such as collection or coupon updates. + * * @return updated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. ") @@ -1300,22 +1307,21 @@ public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - public CampaignStateNotification createdBy(String createdBy) { - + this.createdBy = createdBy; return this; } - /** + /** * Name of the user who created this campaign if available. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user who created this campaign if available.") @@ -1323,22 +1329,21 @@ public String getCreatedBy() { return createdBy; } - public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } - public CampaignStateNotification updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign if available.") @@ -1346,57 +1351,53 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } + public CampaignStateNotification templateId(Long templateId) { - public CampaignStateNotification templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** + /** * The ID of the Campaign Template this Campaign was created from. + * * @return templateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - public CampaignStateNotification frontendState(FrontendStateEnum frontendState) { - + this.frontendState = frontendState; return this; } - /** + /** * A campaign state described exactly as in the Campaign Manager. + * * @return frontendState - **/ + **/ @ApiModelProperty(example = "running", required = true, value = "A campaign state described exactly as in the Campaign Manager.") public FrontendStateEnum getFrontendState() { return frontendState; } - public void setFrontendState(FrontendStateEnum frontendState) { this.frontendState = frontendState; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -1437,9 +1438,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.addFreeItemEffectCount, campaignStateNotification.addFreeItemEffectCount) && Objects.equals(this.awardedGiveawaysCount, campaignStateNotification.awardedGiveawaysCount) && Objects.equals(this.createdLoyaltyPointsCount, campaignStateNotification.createdLoyaltyPointsCount) && - Objects.equals(this.createdLoyaltyPointsEffectCount, campaignStateNotification.createdLoyaltyPointsEffectCount) && + Objects.equals(this.createdLoyaltyPointsEffectCount, campaignStateNotification.createdLoyaltyPointsEffectCount) + && Objects.equals(this.redeemedLoyaltyPointsCount, campaignStateNotification.redeemedLoyaltyPointsCount) && - Objects.equals(this.redeemedLoyaltyPointsEffectCount, campaignStateNotification.redeemedLoyaltyPointsEffectCount) && + Objects.equals(this.redeemedLoyaltyPointsEffectCount, + campaignStateNotification.redeemedLoyaltyPointsEffectCount) + && Objects.equals(this.callApiEffectCount, campaignStateNotification.callApiEffectCount) && Objects.equals(this.reservecouponEffectCount, campaignStateNotification.reservecouponEffectCount) && Objects.equals(this.lastActivity, campaignStateNotification.lastActivity) && @@ -1452,10 +1456,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, createdBy, updatedBy, templateId, frontendState); + return Objects.hash(id, created, applicationId, userId, name, description, startTime, endTime, attributes, state, + activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, + type, linkedStoreIds, budgets, couponRedemptionCount, referralRedemptionCount, discountCount, + discountEffectCount, couponCreationCount, customEffectCount, referralCreationCount, addFreeItemEffectCount, + awardedGiveawaysCount, createdLoyaltyPointsCount, createdLoyaltyPointsEffectCount, redeemedLoyaltyPointsCount, + redeemedLoyaltyPointsEffectCount, callApiEffectCount, reservecouponEffectCount, lastActivity, updated, + createdBy, updatedBy, templateId, frontendState); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1491,9 +1500,11 @@ public String toString() { sb.append(" addFreeItemEffectCount: ").append(toIndentedString(addFreeItemEffectCount)).append("\n"); sb.append(" awardedGiveawaysCount: ").append(toIndentedString(awardedGiveawaysCount)).append("\n"); sb.append(" createdLoyaltyPointsCount: ").append(toIndentedString(createdLoyaltyPointsCount)).append("\n"); - sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)).append("\n"); + sb.append(" createdLoyaltyPointsEffectCount: ").append(toIndentedString(createdLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" redeemedLoyaltyPointsCount: ").append(toIndentedString(redeemedLoyaltyPointsCount)).append("\n"); - sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)).append("\n"); + sb.append(" redeemedLoyaltyPointsEffectCount: ").append(toIndentedString(redeemedLoyaltyPointsEffectCount)) + .append("\n"); sb.append(" callApiEffectCount: ").append(toIndentedString(callApiEffectCount)).append("\n"); sb.append(" reservecouponEffectCount: ").append(toIndentedString(reservecouponEffectCount)).append("\n"); sb.append(" lastActivity: ").append(toIndentedString(lastActivity)).append("\n"); @@ -1518,4 +1529,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignStoreBudget.java b/src/main/java/one/talon/model/CampaignStoreBudget.java index 2c494926..1f0ad95a 100644 --- a/src/main/java/one/talon/model/CampaignStoreBudget.java +++ b/src/main/java/one/talon/model/CampaignStoreBudget.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class CampaignStoreBudget { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,107 +42,102 @@ public class CampaignStoreBudget { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Integer storeId; + private Long storeId; public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) private List limits = new ArrayList(); + public CampaignStoreBudget id(Long id) { - public CampaignStoreBudget id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignStoreBudget created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignStoreBudget campaignId(Long campaignId) { - public CampaignStoreBudget campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public CampaignStoreBudget storeId(Long storeId) { - public CampaignStoreBudget storeId(Integer storeId) { - this.storeId = storeId; return this; } - /** + /** * The ID of the store. + * * @return storeId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the store.") - public Integer getStoreId() { + public Long getStoreId() { return storeId; } - - public void setStoreId(Integer storeId) { + public void setStoreId(Long storeId) { this.storeId = storeId; } - public CampaignStoreBudget limits(List limits) { - + this.limits = limits; return this; } @@ -153,22 +147,21 @@ public CampaignStoreBudget addLimitsItem(CampaignStoreBudgetLimitConfig limitsIt return this; } - /** + /** * The set of budget limits for stores linked to the campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of budget limits for stores linked to the campaign.") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -190,7 +183,6 @@ public int hashCode() { return Objects.hash(id, created, campaignId, storeId, limits); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -216,4 +208,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignTemplate.java b/src/main/java/one/talon/model/CampaignTemplate.java index 663da83b..0621aabf 100644 --- a/src/main/java/one/talon/model/CampaignTemplate.java +++ b/src/main/java/one/talon/model/CampaignTemplate.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,7 +38,7 @@ public class CampaignTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,11 +46,11 @@ public class CampaignTemplate { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,14 +73,15 @@ public class CampaignTemplate { private Object couponAttributes; /** - * Only campaign templates in 'available' state may be used to create campaigns. + * Only campaign templates in 'available' state may be used to create + * campaigns. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { DRAFT("draft"), - + ENABLED("enabled"), - + DISABLED("disabled"); private String value; @@ -116,7 +116,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -128,7 +128,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -140,15 +140,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -183,7 +183,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -215,7 +215,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATIONS_IDS = "applicationsIds"; @SerializedName(SERIALIZED_NAME_APPLICATIONS_IDS) - private List applicationsIds = new ArrayList(); + private List applicationsIds = new ArrayList(); public static final String SERIALIZED_NAME_CAMPAIGN_COLLECTIONS = "campaignCollections"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_COLLECTIONS) @@ -223,15 +223,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Integer defaultCampaignGroupId; + private Long defaultCampaignGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(CampaignTypeEnum.Adapter.class) public enum CampaignTypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -266,7 +268,7 @@ public void write(final JsonWriter jsonWriter, final CampaignTypeEnum enumeratio @Override public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CampaignTypeEnum.fromValue(value); } } @@ -286,177 +288,174 @@ public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALID_APPLICATION_IDS = "validApplicationIds"; @SerializedName(SERIALIZED_NAME_VALID_APPLICATION_IDS) - private List validApplicationIds = new ArrayList(); + private List validApplicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_USER_FAVORITE = "isUserFavorite"; @SerializedName(SERIALIZED_NAME_IS_USER_FAVORITE) private Boolean isUserFavorite = false; + public CampaignTemplate id(Long id) { - public CampaignTemplate id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CampaignTemplate created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CampaignTemplate accountId(Long accountId) { - public CampaignTemplate accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public CampaignTemplate userId(Long userId) { - public CampaignTemplate userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public CampaignTemplate name(String name) { - + this.name = name; return this; } - /** + /** * The campaign template name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Discount campaign", required = true, value = "The campaign template name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignTemplate description(String description) { - + this.description = description; return this; } - /** + /** * Customer-facing text that explains the objective of the template. + * * @return description - **/ + **/ @ApiModelProperty(example = "This is a template for a discount campaign.", required = true, value = "Customer-facing text that explains the objective of the template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CampaignTemplate instructions(String instructions) { - + this.instructions = instructions; return this; } - /** - * Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign. + /** + * Customer-facing text that explains how to use the template. For example, you + * can use this property to explain the available attributes of this template, + * and how they can be modified when a user uses this template to create a new + * campaign. + * * @return instructions - **/ + **/ @ApiModelProperty(example = "Use this template for discount campaigns. Set the campaign properties according to the campaign goals, and don't forget to set an end date.", required = true, value = "Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign.") public String getInstructions() { return instructions; } - public void setInstructions(String instructions) { this.instructions = instructions; } - public CampaignTemplate campaignAttributes(Object campaignAttributes) { - + this.campaignAttributes = campaignAttributes; return this; } - /** - * The campaign attributes that campaigns created from this template will have by default. + /** + * The campaign attributes that campaigns created from this template will have + * by default. + * * @return campaignAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that campaigns created from this template will have by default.") @@ -464,22 +463,22 @@ public Object getCampaignAttributes() { return campaignAttributes; } - public void setCampaignAttributes(Object campaignAttributes) { this.campaignAttributes = campaignAttributes; } - public CampaignTemplate couponAttributes(Object couponAttributes) { - + this.couponAttributes = couponAttributes; return this; } - /** - * The campaign attributes that coupons created from this template will have by default. + /** + * The campaign attributes that coupons created from this template will have by + * default. + * * @return couponAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that coupons created from this template will have by default.") @@ -487,59 +486,56 @@ public Object getCouponAttributes() { return couponAttributes; } - public void setCouponAttributes(Object couponAttributes) { this.couponAttributes = couponAttributes; } - public CampaignTemplate state(StateEnum state) { - + this.state = state; return this; } - /** - * Only campaign templates in 'available' state may be used to create campaigns. + /** + * Only campaign templates in 'available' state may be used to create + * campaigns. + * * @return state - **/ + **/ @ApiModelProperty(required = true, value = "Only campaign templates in 'available' state may be used to create campaigns.") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public CampaignTemplate activeRulesetId(Long activeRulesetId) { - public CampaignTemplate activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** + /** * The ID of the ruleset this campaign template will use. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public CampaignTemplate tags(List tags) { - + this.tags = tags; return this; } @@ -552,10 +548,11 @@ public CampaignTemplate addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign template. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[discount]", value = "A list of tags for the campaign template.") @@ -563,14 +560,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public CampaignTemplate features(List features) { - + this.features = features; return this; } @@ -583,10 +578,11 @@ public CampaignTemplate addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign template. + * * @return features - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of features for the campaign template.") @@ -594,22 +590,21 @@ public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public CampaignTemplate couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -617,22 +612,22 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } + public CampaignTemplate couponReservationSettings( + CampaignTemplateCouponReservationSettings couponReservationSettings) { - public CampaignTemplate couponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { - this.couponReservationSettings = couponReservationSettings; return this; } - /** + /** * Get couponReservationSettings + * * @return couponReservationSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -640,22 +635,21 @@ public CampaignTemplateCouponReservationSettings getCouponReservationSettings() return couponReservationSettings; } - public void setCouponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { this.couponReservationSettings = couponReservationSettings; } - public CampaignTemplate referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -663,14 +657,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public CampaignTemplate limits(List limits) { - + this.limits = limits; return this; } @@ -683,10 +675,11 @@ public CampaignTemplate addLimitsItem(TemplateLimitConfig limitsItem) { return this; } - /** + /** * The set of limits that operate for this campaign template. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The set of limits that operate for this campaign template.") @@ -694,14 +687,12 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public CampaignTemplate templateParams(List templateParams) { - + this.templateParams = templateParams; return this; } @@ -714,10 +705,11 @@ public CampaignTemplate addTemplateParamsItem(CampaignTemplateParams templatePar return this; } - /** + /** * Fields which can be used to replace values in a rule. + * * @return templateParams - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Fields which can be used to replace values in a rule.") @@ -725,41 +717,39 @@ public List getTemplateParams() { return templateParams; } - public void setTemplateParams(List templateParams) { this.templateParams = templateParams; } + public CampaignTemplate applicationsIds(List applicationsIds) { - public CampaignTemplate applicationsIds(List applicationsIds) { - this.applicationsIds = applicationsIds; return this; } - public CampaignTemplate addApplicationsIdsItem(Integer applicationsIdsItem) { + public CampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { this.applicationsIds.add(applicationsIdsItem); return this; } - /** - * A list of IDs of the Applications that are subscribed to this campaign template. + /** + * A list of IDs of the Applications that are subscribed to this campaign + * template. + * * @return applicationsIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3, 1, 2, 3]", required = true, value = "A list of IDs of the Applications that are subscribed to this campaign template.") - public List getApplicationsIds() { + public List getApplicationsIds() { return applicationsIds; } - - public void setApplicationsIds(List applicationsIds) { + public void setApplicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; } - public CampaignTemplate campaignCollections(List campaignCollections) { - + this.campaignCollections = campaignCollections; return this; } @@ -772,10 +762,11 @@ public CampaignTemplate addCampaignCollectionsItem(CampaignTemplateCollection ca return this; } - /** + /** * The campaign collections from the blueprint campaign for the template. + * * @return campaignCollections - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign collections from the blueprint campaign for the template.") @@ -783,67 +774,67 @@ public List getCampaignCollections() { return campaignCollections; } - public void setCampaignCollections(List campaignCollections) { this.campaignCollections = campaignCollections; } + public CampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { - public CampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { - this.defaultCampaignGroupId = defaultCampaignGroupId; return this; } - /** + /** * The default campaign group ID. + * * @return defaultCampaignGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Integer getDefaultCampaignGroupId() { + public Long getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - - public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } - public CampaignTemplate campaignType(CampaignTypeEnum campaignType) { - + this.campaignType = campaignType; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return campaignType - **/ + **/ @ApiModelProperty(example = "advanced", required = true, value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") public CampaignTypeEnum getCampaignType() { return campaignType; } - public void setCampaignType(CampaignTypeEnum campaignType) { this.campaignType = campaignType; } - public CampaignTemplate updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** - * Timestamp of the most recent update to the campaign template or any of its elements. + /** + * Timestamp of the most recent update to the campaign template or any of its + * elements. + * * @return updated - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-08-24T14:15:22Z", value = "Timestamp of the most recent update to the campaign template or any of its elements.") @@ -851,22 +842,21 @@ public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - public CampaignTemplate updatedBy(String updatedBy) { - + this.updatedBy = updatedBy; return this; } - /** + /** * Name of the user who last updated this campaign template, if available. + * * @return updatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Jane Doe", value = "Name of the user who last updated this campaign template, if available.") @@ -874,49 +864,47 @@ public String getUpdatedBy() { return updatedBy; } - public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } + public CampaignTemplate validApplicationIds(List validApplicationIds) { - public CampaignTemplate validApplicationIds(List validApplicationIds) { - this.validApplicationIds = validApplicationIds; return this; } - public CampaignTemplate addValidApplicationIdsItem(Integer validApplicationIdsItem) { + public CampaignTemplate addValidApplicationIdsItem(Long validApplicationIdsItem) { this.validApplicationIds.add(validApplicationIdsItem); return this; } - /** + /** * The IDs of the Applications that are related to this entity. + * * @return validApplicationIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The IDs of the Applications that are related to this entity.") - public List getValidApplicationIds() { + public List getValidApplicationIds() { return validApplicationIds; } - - public void setValidApplicationIds(List validApplicationIds) { + public void setValidApplicationIds(List validApplicationIds) { this.validApplicationIds = validApplicationIds; } - public CampaignTemplate isUserFavorite(Boolean isUserFavorite) { - + this.isUserFavorite = isUserFavorite; return this; } - /** + /** * A flag indicating whether the user marked the template as a favorite. + * * @return isUserFavorite - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "A flag indicating whether the user marked the template as a favorite.") @@ -924,12 +912,10 @@ public Boolean getIsUserFavorite() { return isUserFavorite; } - public void setIsUserFavorite(Boolean isUserFavorite) { this.isUserFavorite = isUserFavorite; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -969,10 +955,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, userId, name, description, instructions, campaignAttributes, couponAttributes, state, activeRulesetId, tags, features, couponSettings, couponReservationSettings, referralSettings, limits, templateParams, applicationsIds, campaignCollections, defaultCampaignGroupId, campaignType, updated, updatedBy, validApplicationIds, isUserFavorite); + return Objects.hash(id, created, accountId, userId, name, description, instructions, campaignAttributes, + couponAttributes, state, activeRulesetId, tags, features, couponSettings, couponReservationSettings, + referralSettings, limits, templateParams, applicationsIds, campaignCollections, defaultCampaignGroupId, + campaignType, updated, updatedBy, validApplicationIds, isUserFavorite); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1019,4 +1007,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java b/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java index 3f1385d5..a7564f82 100644 --- a/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java +++ b/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,48 +30,48 @@ public class CampaignTemplateCouponReservationSettings { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) private Boolean isReservationMandatory = false; + public CampaignTemplateCouponReservationSettings reservationLimit(Long reservationLimit) { - public CampaignTemplateCouponReservationSettings reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public CampaignTemplateCouponReservationSettings isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -80,12 +79,10 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,7 +101,6 @@ public int hashCode() { return Objects.hash(reservationLimit, isReservationMandatory); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -127,4 +123,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignTemplateParams.java b/src/main/java/one/talon/model/CampaignTemplateParams.java index df3bc4d2..1f7173c6 100644 --- a/src/main/java/one/talon/model/CampaignTemplateParams.java +++ b/src/main/java/one/talon/model/CampaignTemplateParams.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,15 +38,15 @@ public class CampaignTemplateParams { @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { STRING("string"), - + NUMBER("number"), - + BOOLEAN("boolean"), - + PERCENT("percent"), - + _LIST_STRING_("(list string)"), - + TIME("time"); private String value; @@ -82,7 +81,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -98,98 +97,94 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ATTRIBUTE_ID = "attributeId"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_ID) - private Integer attributeId; - + private Long attributeId; public CampaignTemplateParams name(String name) { - + this.name = name; return this; } - /** + /** * Name of the campaign template parameter. + * * @return name - **/ + **/ @ApiModelProperty(example = "discount_value", required = true, value = "Name of the campaign template parameter.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CampaignTemplateParams type(TypeEnum type) { - + this.type = type; return this; } - /** + /** * Defines the type of parameter value. + * * @return type - **/ + **/ @ApiModelProperty(example = "number", required = true, value = "Defines the type of parameter value.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public CampaignTemplateParams description(String description) { - + this.description = description; return this; } - /** - * Explains the meaning of this template parameter and the placeholder value that will define it. It is used on campaign creation from this template. + /** + * Explains the meaning of this template parameter and the placeholder value + * that will define it. It is used on campaign creation from this template. + * * @return description - **/ + **/ @ApiModelProperty(example = "This is a template parameter of type `number`.", required = true, value = "Explains the meaning of this template parameter and the placeholder value that will define it. It is used on campaign creation from this template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public CampaignTemplateParams attributeId(Long attributeId) { - public CampaignTemplateParams attributeId(Integer attributeId) { - this.attributeId = attributeId; return this; } - /** + /** * ID of the corresponding attribute. + * * @return attributeId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "ID of the corresponding attribute.") - public Integer getAttributeId() { + public Long getAttributeId() { return attributeId; } - - public void setAttributeId(Integer attributeId) { + public void setAttributeId(Long attributeId) { this.attributeId = attributeId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,7 +205,6 @@ public int hashCode() { return Objects.hash(name, type, description, attributeId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -235,4 +229,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CampaignVersions.java b/src/main/java/one/talon/model/CampaignVersions.java index 72929d62..2217d6ac 100644 --- a/src/main/java/one/talon/model/CampaignVersions.java +++ b/src/main/java/one/talon/model/CampaignVersions.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class CampaignVersions { @JsonAdapter(RevisionFrontendStateEnum.Adapter.class) public enum RevisionFrontendStateEnum { REVISED("revised"), - + PENDING("pending"); private String value; @@ -70,7 +69,7 @@ public void write(final JsonWriter jsonWriter, final RevisionFrontendStateEnum e @Override public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return RevisionFrontendStateEnum.fromValue(value); } } @@ -82,39 +81,39 @@ public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOExce public static final String SERIALIZED_NAME_ACTIVE_REVISION_ID = "activeRevisionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_ID) - private Integer activeRevisionId; + private Long activeRevisionId; public static final String SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID = "activeRevisionVersionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID) - private Integer activeRevisionVersionId; + private Long activeRevisionVersionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_CURRENT_REVISION_ID = "currentRevisionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_ID) - private Integer currentRevisionId; + private Long currentRevisionId; public static final String SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID = "currentRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID) - private Integer currentRevisionVersionId; + private Long currentRevisionVersionId; public static final String SERIALIZED_NAME_STAGE_REVISION = "stageRevision"; @SerializedName(SERIALIZED_NAME_STAGE_REVISION) private Boolean stageRevision = false; - public CampaignVersions revisionFrontendState(RevisionFrontendStateEnum revisionFrontendState) { - + this.revisionFrontendState = revisionFrontendState; return this; } - /** + /** * The campaign revision state displayed in the Campaign Manager. + * * @return revisionFrontendState - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "revised", value = "The campaign revision state displayed in the Campaign Manager.") @@ -122,137 +121,133 @@ public RevisionFrontendStateEnum getRevisionFrontendState() { return revisionFrontendState; } - public void setRevisionFrontendState(RevisionFrontendStateEnum revisionFrontendState) { this.revisionFrontendState = revisionFrontendState; } + public CampaignVersions activeRevisionId(Long activeRevisionId) { - public CampaignVersions activeRevisionId(Integer activeRevisionId) { - this.activeRevisionId = activeRevisionId; return this; } - /** - * ID of the revision that was last activated on this campaign. + /** + * ID of the revision that was last activated on this campaign. + * * @return activeRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision that was last activated on this campaign. ") - public Integer getActiveRevisionId() { + public Long getActiveRevisionId() { return activeRevisionId; } - - public void setActiveRevisionId(Integer activeRevisionId) { + public void setActiveRevisionId(Long activeRevisionId) { this.activeRevisionId = activeRevisionId; } + public CampaignVersions activeRevisionVersionId(Long activeRevisionVersionId) { - public CampaignVersions activeRevisionVersionId(Integer activeRevisionVersionId) { - this.activeRevisionVersionId = activeRevisionVersionId; return this; } - /** - * ID of the revision version that is active on the campaign. + /** + * ID of the revision version that is active on the campaign. + * * @return activeRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision version that is active on the campaign. ") - public Integer getActiveRevisionVersionId() { + public Long getActiveRevisionVersionId() { return activeRevisionVersionId; } - - public void setActiveRevisionVersionId(Integer activeRevisionVersionId) { + public void setActiveRevisionVersionId(Long activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; } + public CampaignVersions version(Long version) { - public CampaignVersions version(Integer version) { - this.version = version; return this; } - /** - * Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. + /** + * Incrementing number representing how many revisions have been activated on + * this campaign, starts from 0 for a new campaign. + * * @return version - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. ") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } + public CampaignVersions currentRevisionId(Long currentRevisionId) { - public CampaignVersions currentRevisionId(Integer currentRevisionId) { - this.currentRevisionId = currentRevisionId; return this; } - /** - * ID of the revision currently being modified for the campaign. + /** + * ID of the revision currently being modified for the campaign. + * * @return currentRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision currently being modified for the campaign. ") - public Integer getCurrentRevisionId() { + public Long getCurrentRevisionId() { return currentRevisionId; } - - public void setCurrentRevisionId(Integer currentRevisionId) { + public void setCurrentRevisionId(Long currentRevisionId) { this.currentRevisionId = currentRevisionId; } + public CampaignVersions currentRevisionVersionId(Long currentRevisionVersionId) { - public CampaignVersions currentRevisionVersionId(Integer currentRevisionVersionId) { - this.currentRevisionVersionId = currentRevisionVersionId; return this; } - /** - * ID of the latest version applied on the current revision. + /** + * ID of the latest version applied on the current revision. + * * @return currentRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the latest version applied on the current revision. ") - public Integer getCurrentRevisionVersionId() { + public Long getCurrentRevisionVersionId() { return currentRevisionVersionId; } - - public void setCurrentRevisionVersionId(Integer currentRevisionVersionId) { + public void setCurrentRevisionVersionId(Long currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; } - public CampaignVersions stageRevision(Boolean stageRevision) { - + this.stageRevision = stageRevision; return this; } - /** - * Flag for determining whether we use current revision when sending requests with staging API key. + /** + * Flag for determining whether we use current revision when sending requests + * with staging API key. + * * @return stageRevision - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Flag for determining whether we use current revision when sending requests with staging API key. ") @@ -260,12 +255,10 @@ public Boolean getStageRevision() { return stageRevision; } - public void setStageRevision(Boolean stageRevision) { this.stageRevision = stageRevision; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -286,10 +279,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(revisionFrontendState, activeRevisionId, activeRevisionVersionId, version, currentRevisionId, currentRevisionVersionId, stageRevision); + return Objects.hash(revisionFrontendState, activeRevisionId, activeRevisionVersionId, version, currentRevisionId, + currentRevisionVersionId, stageRevision); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -317,4 +310,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java index cdf2669e..bd4217f1 100644 --- a/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,33 +45,31 @@ public class CardExpiringPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public CardExpiringPointsNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Notification to Google", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CardExpiringPointsNotificationPolicy triggers(List triggers) { - + this.triggers = triggers; return this; } @@ -82,32 +79,32 @@ public CardExpiringPointsNotificationPolicy addTriggersItem(CardExpiringPointsNo return this; } - /** + /** * Get triggers + * * @return triggers - **/ + **/ @ApiModelProperty(required = true, value = "") public List getTriggers() { return triggers; } - public void setTriggers(List triggers) { this.triggers = triggers; } - public CardExpiringPointsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") @@ -115,35 +112,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public CardExpiringPointsNotificationPolicy batchSize(Long batchSize) { - public CardExpiringPointsNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,7 +159,6 @@ public int hashCode() { return Objects.hash(name, triggers, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -189,4 +183,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java index edfd1bf6..0238f3bb 100644 --- a/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,15 +30,16 @@ public class CardExpiringPointsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. */ @JsonAdapter(PeriodEnum.Adapter.class) public enum PeriodEnum { W("w"), - + D("d"); private String value; @@ -74,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) thr @Override public PeriodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PeriodEnum.fromValue(value); } } @@ -84,52 +84,50 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PERIOD) private PeriodEnum period; + public CardExpiringPointsNotificationTrigger amount(Long amount) { - public CardExpiringPointsNotificationTrigger amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * The amount of period. * minimum: 1 + * * @return amount - **/ + **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - public CardExpiringPointsNotificationTrigger period(PeriodEnum period) { - + this.period = period; return this; } - /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + /** + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. + * * @return period - **/ + **/ @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") public PeriodEnum getPeriod() { return period; } - public void setPeriod(PeriodEnum period) { this.period = period; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,7 +146,6 @@ public int hashCode() { return Objects.hash(amount, period); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -171,4 +168,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java b/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java index 0a3df33f..1afaa9a3 100644 --- a/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class CardLedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class CardLedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CUSTOMER_PROFILE_I_D = "customerProfileID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE_I_D) @@ -72,83 +71,80 @@ public class CardLedgerPointsEntryIntegrationAPI { @SerializedName(SERIALIZED_NAME_AMOUNT) private BigDecimal amount; + public CardLedgerPointsEntryIntegrationAPI id(Long id) { - public CardLedgerPointsEntryIntegrationAPI id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the transaction that adds loyalty points. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the transaction that adds loyalty points.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CardLedgerPointsEntryIntegrationAPI created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty card points were added. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty card points were added.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CardLedgerPointsEntryIntegrationAPI programId(Long programId) { - public CardLedgerPointsEntryIntegrationAPI programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public CardLedgerPointsEntryIntegrationAPI customerProfileID(String customerProfileID) { - + this.customerProfileID = customerProfileID; return this; } - /** + /** * Integration ID of the customer profile linked to the card. + * * @return customerProfileID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "Integration ID of the customer profile linked to the card.") @@ -156,22 +152,21 @@ public String getCustomerProfileID() { return customerProfileID; } - public void setCustomerProfileID(String customerProfileID) { this.customerProfileID = customerProfileID; } - public CardLedgerPointsEntryIntegrationAPI customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where points were added. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where points were added.") @@ -179,122 +174,119 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } - public CardLedgerPointsEntryIntegrationAPI name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason of the transaction that adds loyalty points. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 10% points of a purchase's current total", required = true, value = "Name or reason of the transaction that adds loyalty points.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CardLedgerPointsEntryIntegrationAPI startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are active immediately. - `timestamp value`: Points become active + * at a given date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public CardLedgerPointsEntryIntegrationAPI expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date and time. + /** + * Date when points expire. Possible values are: - `unlimited`: Points + * have no expiration date. - `timestamp value`: Points expire on the + * given date and time. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-08-02T15:04:05Z07:00", required = true, value = "Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date and time. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public CardLedgerPointsEntryIntegrationAPI subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public CardLedgerPointsEntryIntegrationAPI amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -318,10 +310,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, programId, customerProfileID, customerSessionId, name, startDate, expiryDate, subledgerId, amount); + return Objects.hash(id, created, programId, customerProfileID, customerSessionId, name, startDate, expiryDate, + subledgerId, amount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -352,4 +344,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java index 10ff2326..6346feb3 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class CardLedgerTransactionLogEntry { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CARD_IDENTIFIER = "cardIdentifier"; @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) @@ -46,23 +45,24 @@ public class CardLedgerTransactionLogEntry { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Integer sessionId; + private Long sessionId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) private String customerSessionId; /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { ADDITION("addition"), - + SUBTRACTION("subtraction"); private String value; @@ -97,7 +97,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -129,131 +129,126 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; - + private Long id; public CardLedgerTransactionLogEntry created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty card transaction occurred. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty card transaction occurred.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CardLedgerTransactionLogEntry programId(Long programId) { - public CardLedgerTransactionLogEntry programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public CardLedgerTransactionLogEntry cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @ApiModelProperty(example = "summer-loyalty-card-0543", required = true, value = "The alphanumeric identifier of the loyalty card. ") public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } + public CardLedgerTransactionLogEntry applicationId(Long applicationId) { - public CardLedgerTransactionLogEntry applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CardLedgerTransactionLogEntry sessionId(Long sessionId) { - public CardLedgerTransactionLogEntry sessionId(Integer sessionId) { - this.sessionId = sessionId; return this; } - /** - * The **internal** ID of the session. + /** + * The **internal** ID of the session. + * * @return sessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "233", value = "The **internal** ID of the session. ") - public Integer getSessionId() { + public Long getSessionId() { return sessionId; } - - public void setSessionId(Integer sessionId) { + public void setSessionId(Long sessionId) { this.sessionId = sessionId; } - public CardLedgerTransactionLogEntry customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where the transaction occurred. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where the transaction occurred.") @@ -261,166 +256,162 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } - public CardLedgerTransactionLogEntry type(TypeEnum type) { - + this.type = type; return this; } - /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + /** + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. + * * @return type - **/ + **/ @ApiModelProperty(example = "addition", required = true, value = "Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public CardLedgerTransactionLogEntry name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason of the loyalty ledger transaction. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 10% points of a purchase's current total", required = true, value = "Name or reason of the loyalty ledger transaction.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CardLedgerTransactionLogEntry startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are immediately active. - a timestamp value: Points become active at a given + * date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public CardLedgerTransactionLogEntry expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points become active from the given date. + /** + * Date when points expire. Possible values are: - `unlimited`: Points + * have no expiration date. - `timestamp value`: Points become active + * from the given date. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-08-02T15:04:05Z07:00", required = true, value = "Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points become active from the given date. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public CardLedgerTransactionLogEntry subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public CardLedgerTransactionLogEntry amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added or deducted in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added or deducted in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } + public CardLedgerTransactionLogEntry id(Long id) { - public CardLedgerTransactionLogEntry id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the loyalty ledger entry. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger entry.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -447,10 +438,10 @@ 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(created, programId, cardIdentifier, applicationId, sessionId, customerSessionId, type, name, + startDate, expiryDate, subledgerId, amount, id); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -484,4 +475,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java index 18664982..1a8ce732 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class CardLedgerTransactionLogEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CARD_IDENTIFIER = "cardIdentifier"; @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) @@ -49,12 +48,13 @@ public class CardLedgerTransactionLogEntryIntegrationAPI { private String customerSessionId; /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { ADDITION("addition"), - + SUBTRACTION("subtraction"); private String value; @@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -121,93 +121,90 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) private String ruleName; - public CardLedgerTransactionLogEntryIntegrationAPI created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty card transaction occurred. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty card transaction occurred.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CardLedgerTransactionLogEntryIntegrationAPI programId(Long programId) { - public CardLedgerTransactionLogEntryIntegrationAPI programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public CardLedgerTransactionLogEntryIntegrationAPI cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @ApiModelProperty(example = "summer-loyalty-card-0543", required = true, value = "The alphanumeric identifier of the loyalty card. ") public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } - public CardLedgerTransactionLogEntryIntegrationAPI customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where the transaction occurred. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where the transaction occurred.") @@ -215,199 +212,195 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } - public CardLedgerTransactionLogEntryIntegrationAPI type(TypeEnum type) { - + this.type = type; return this; } - /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + /** + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. + * * @return type - **/ + **/ @ApiModelProperty(example = "addition", required = true, value = "Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public CardLedgerTransactionLogEntryIntegrationAPI name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason of the loyalty ledger transaction. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 10% points of a purchase's current total", required = true, value = "Name or reason of the loyalty ledger transaction.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CardLedgerTransactionLogEntryIntegrationAPI startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are active immediately. - a timestamp value: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are active immediately. - a timestamp value: Points become active at a given + * date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are active immediately. - a timestamp value: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public CardLedgerTransactionLogEntryIntegrationAPI expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. + /** + * Date when points expire. Possible values are: - `unlimited`: Points + * have no expiration date. - `timestamp value`: Points expire on the + * given date. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-08-02T15:04:05Z07:00", required = true, value = "Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public CardLedgerTransactionLogEntryIntegrationAPI subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public CardLedgerTransactionLogEntryIntegrationAPI amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added or deducted in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added or deducted in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } + public CardLedgerTransactionLogEntryIntegrationAPI id(Long id) { - public CardLedgerTransactionLogEntryIntegrationAPI id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the loyalty ledger transaction. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public CardLedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { - public CardLedgerTransactionLogEntryIntegrationAPI rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** + /** * The ID of the ruleset containing the rule that triggered this effect. + * * @return rulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The ID of the ruleset containing the rule that triggered this effect.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } - public CardLedgerTransactionLogEntryIntegrationAPI ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that triggered this effect. + * * @return ruleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Add 2 points", value = "The name of the rule that triggered this effect.") @@ -415,12 +408,10 @@ public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -447,10 +438,10 @@ 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(created, programId, cardIdentifier, customerSessionId, type, name, startDate, expiryDate, + subledgerId, amount, id, rulesetId, ruleName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -484,4 +475,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CartItem.java b/src/main/java/one/talon/model/CartItem.java index 8258b6a4..ca90dfde 100644 --- a/src/main/java/one/talon/model/CartItem.java +++ b/src/main/java/one/talon/model/CartItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -48,15 +47,15 @@ public class CartItem { public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - private Integer quantity; + private Long quantity; public static final String SERIALIZED_NAME_RETURNED_QUANTITY = "returnedQuantity"; @SerializedName(SERIALIZED_NAME_RETURNED_QUANTITY) - private Integer returnedQuantity; + private Long returnedQuantity; public static final String SERIALIZED_NAME_REMAINING_QUANTITY = "remainingQuantity"; @SerializedName(SERIALIZED_NAME_REMAINING_QUANTITY) - private Integer remainingQuantity; + private Long remainingQuantity; public static final String SERIALIZED_NAME_PRICE = "price"; @SerializedName(SERIALIZED_NAME_PRICE) @@ -92,8 +91,8 @@ public class CartItem { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - /*allow Serializing null for this field */ - @JsonNullable + /* allow Serializing null for this field */ + @JsonNullable private Object attributes; public static final String SERIALIZED_NAME_ADDITIONAL_COSTS = "additionalCosts"; @@ -102,19 +101,19 @@ public class CartItem { public static final String SERIALIZED_NAME_CATALOG_ITEM_I_D = "catalogItemID"; @SerializedName(SERIALIZED_NAME_CATALOG_ITEM_I_D) - private Integer catalogItemID; - + private Long catalogItemID; public CartItem name(String name) { - + this.name = name; return this; } - /** + /** * Name of item. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Air Glide", value = "Name of item.") @@ -122,113 +121,118 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CartItem sku(String sku) { - + this.sku = sku; return this; } - /** + /** * Stock keeping unit of item. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU1241028", required = true, value = "Stock keeping unit of item.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } + public CartItem quantity(Long quantity) { - public CartItem quantity(Integer quantity) { - this.quantity = quantity; return this; } - /** - * Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. + /** + * Number of units of this item. Due to [cart item + * flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), + * if you provide a quantity greater than 1, the item will be split in as many + * items as the provided quantity. This will impact the number of **per-item** + * effects triggered from your campaigns. * minimum: 1 + * * @return quantity - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. ") - public Integer getQuantity() { + public Long getQuantity() { return quantity; } - - public void setQuantity(Integer quantity) { + public void setQuantity(Long quantity) { this.quantity = quantity; } + public CartItem returnedQuantity(Long returnedQuantity) { - public CartItem returnedQuantity(Integer returnedQuantity) { - this.returnedQuantity = returnedQuantity; return this; } - /** - * Number of returned items, calculated internally based on returns of this item. + /** + * Number of returned items, calculated internally based on returns of this + * item. + * * @return returnedQuantity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Number of returned items, calculated internally based on returns of this item.") - public Integer getReturnedQuantity() { + public Long getReturnedQuantity() { return returnedQuantity; } - - public void setReturnedQuantity(Integer returnedQuantity) { + public void setReturnedQuantity(Long returnedQuantity) { this.returnedQuantity = returnedQuantity; } + public CartItem remainingQuantity(Long remainingQuantity) { - public CartItem remainingQuantity(Integer remainingQuantity) { - this.remainingQuantity = remainingQuantity; return this; } - /** - * Remaining quantity of the item, calculated internally based on returns of this item. + /** + * Remaining quantity of the item, calculated internally based on returns of + * this item. + * * @return remainingQuantity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Remaining quantity of the item, calculated internally based on returns of this item.") - public Integer getRemainingQuantity() { + public Long getRemainingQuantity() { return remainingQuantity; } - - public void setRemainingQuantity(Integer remainingQuantity) { + public void setRemainingQuantity(Long remainingQuantity) { this.remainingQuantity = remainingQuantity; } - public CartItem price(BigDecimal price) { - + this.price = price; return this; } - /** - * Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. + /** + * Price of the item in the currency defined by your Application. This field is + * required if this item is not part of a + * [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + * If it is part of a catalog, setting a price here overrides the price from the + * catalog. + * * @return price - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "99.99", value = "Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. ") @@ -236,22 +240,21 @@ public BigDecimal getPrice() { return price; } - public void setPrice(BigDecimal price) { this.price = price; } - public CartItem category(String category) { - + this.category = category; return this; } - /** + /** * Type, group or model of the item. + * * @return category - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "shoes", value = "Type, group or model of the item.") @@ -259,22 +262,21 @@ public String getCategory() { return category; } - public void setCategory(String category) { this.category = category; } - public CartItem product(Product product) { - + this.product = product; return this; } - /** + /** * Get product + * * @return product - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -282,22 +284,21 @@ public Product getProduct() { return product; } - public void setProduct(Product product) { this.product = product; } - public CartItem weight(BigDecimal weight) { - + this.weight = weight; return this; } - /** + /** * Weight of item in grams. + * * @return weight - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1130.0", value = "Weight of item in grams.") @@ -305,22 +306,21 @@ public BigDecimal getWeight() { return weight; } - public void setWeight(BigDecimal weight) { this.weight = weight; } - public CartItem height(BigDecimal height) { - + this.height = height; return this; } - /** + /** * Height of item in mm. + * * @return height - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Height of item in mm.") @@ -328,22 +328,21 @@ public BigDecimal getHeight() { return height; } - public void setHeight(BigDecimal height) { this.height = height; } - public CartItem width(BigDecimal width) { - + this.width = width; return this; } - /** + /** * Width of item in mm. + * * @return width - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Width of item in mm.") @@ -351,22 +350,21 @@ public BigDecimal getWidth() { return width; } - public void setWidth(BigDecimal width) { this.width = width; } - public CartItem length(BigDecimal length) { - + this.length = length; return this; } - /** + /** * Length of item in mm. + * * @return length - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Length of item in mm.") @@ -374,22 +372,21 @@ public BigDecimal getLength() { return length; } - public void setLength(BigDecimal length) { this.length = length; } - public CartItem position(BigDecimal position) { - + this.position = position; return this; } - /** + /** * Position of the Cart Item in the Cart (calculated internally). + * * @return position - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Position of the Cart Item in the Cart (calculated internally).") @@ -397,22 +394,26 @@ public BigDecimal getPosition() { return position; } - public void setPosition(BigDecimal position) { this.position = position; } - public CartItem attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed. + /** + * Use this property to set a value for the attributes of your choice. + * [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent + * any information to attach to this cart item. Custom _cart item_ attributes + * must be created in the Campaign Manager before you set them with this + * property. **Note:** Any previously defined attributes that you do not include + * in the array will be removed. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"image\":\"11.jpeg\",\"material\":\"leather\"}", value = "Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed. ") @@ -420,14 +421,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CartItem additionalCosts(Map additionalCosts) { - + this.additionalCosts = additionalCosts; return this; } @@ -440,10 +439,14 @@ public CartItem putAdditionalCostsItem(String key, AdditionalCost additionalCost return this; } - /** - * Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + /** + * Use this property to set a value for the additional costs of this item, such + * as a shipping cost. They must be created in the Campaign Manager before you + * set them with this property. See [Managing additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * * @return additionalCosts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"shipping\":{\"price\":9}}", value = "Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). ") @@ -451,35 +454,33 @@ public Map getAdditionalCosts() { return additionalCosts; } - public void setAdditionalCosts(Map additionalCosts) { this.additionalCosts = additionalCosts; } + public CartItem catalogItemID(Long catalogItemID) { - public CartItem catalogItemID(Integer catalogItemID) { - this.catalogItemID = catalogItemID; return this; } - /** - * The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). + /** + * The [catalog item + * ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). + * * @return catalogItemID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog).") - public Integer getCatalogItemID() { + public Long getCatalogItemID() { return catalogItemID; } - - public void setCatalogItemID(Integer catalogItemID) { + public void setCatalogItemID(Long catalogItemID) { this.catalogItemID = catalogItemID; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -509,10 +510,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, height, width, length, position, attributes, additionalCosts, catalogItemID); + return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, + height, width, length, position, attributes, additionalCosts, catalogItemID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -549,4 +550,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Catalog.java b/src/main/java/one/talon/model/Catalog.java index 474e619d..bac39ffc 100644 --- a/src/main/java/one/talon/model/Catalog.java +++ b/src/main/java/one/talon/model/Catalog.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Catalog { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class Catalog { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -58,224 +57,214 @@ public class Catalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; + public Catalog id(Long id) { - public Catalog id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Catalog created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Catalog accountId(Long accountId) { - public Catalog accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public Catalog modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public Catalog name(String name) { - + this.name = name; return this; } - /** + /** * The cart item catalog name. + * * @return name - **/ + **/ @ApiModelProperty(example = "seafood", required = true, value = "The cart item catalog name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Catalog description(String description) { - + this.description = description; return this; } - /** + /** * A description of this cart item catalog. + * * @return description - **/ + **/ @ApiModelProperty(example = "seafood catalog", required = true, value = "A description of this cart item catalog.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public Catalog subscribedApplicationsIds(List subscribedApplicationsIds) { - public Catalog subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Catalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public Catalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the applications that are subscribed to this catalog. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public Catalog version(Long version) { - public Catalog version(Integer version) { - this.version = version; return this; } - /** + /** * The current version of this catalog. + * * @return version - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The current version of this catalog.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } + public Catalog createdBy(Long createdBy) { - public Catalog createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of user who created this catalog. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The ID of user who created this catalog.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -298,10 +287,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, name, description, subscribedApplicationsIds, version, createdBy); + return Objects.hash(id, created, accountId, modified, name, description, subscribedApplicationsIds, version, + createdBy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -331,4 +320,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CatalogItem.java b/src/main/java/one/talon/model/CatalogItem.java index 9e069c3a..c87d6c55 100644 --- a/src/main/java/one/talon/model/CatalogItem.java +++ b/src/main/java/one/talon/model/CatalogItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class CatalogItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +52,11 @@ public class CatalogItem { public static final String SERIALIZED_NAME_CATALOGID = "catalogid"; @SerializedName(SERIALIZED_NAME_CATALOGID) - private Integer catalogid; + private Long catalogid; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -67,83 +66,80 @@ public class CatalogItem { @SerializedName(SERIALIZED_NAME_PRODUCT) private Product product; + public CatalogItem id(Long id) { - public CatalogItem id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CatalogItem created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public CatalogItem sku(String sku) { - + this.sku = sku; return this; } - /** + /** * The stock keeping unit of the item. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU1241028", required = true, value = "The stock keeping unit of the item.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } - public CatalogItem price(BigDecimal price) { - + this.price = price; return this; } - /** + /** * Price of the item. + * * @return price - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "99.99", value = "Price of the item.") @@ -151,59 +147,55 @@ public BigDecimal getPrice() { return price; } - public void setPrice(BigDecimal price) { this.price = price; } + public CatalogItem catalogid(Long catalogid) { - public CatalogItem catalogid(Integer catalogid) { - this.catalogid = catalogid; return this; } - /** + /** * The ID of the catalog the item belongs to. + * * @return catalogid - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The ID of the catalog the item belongs to.") - public Integer getCatalogid() { + public Long getCatalogid() { return catalogid; } - - public void setCatalogid(Integer catalogid) { + public void setCatalogid(Long catalogid) { this.catalogid = catalogid; } + public CatalogItem version(Long version) { - public CatalogItem version(Integer version) { - this.version = version; return this; } - /** + /** * The version of the catalog item. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The version of the catalog item.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public CatalogItem attributes(List attributes) { - + this.attributes = attributes; return this; } @@ -216,10 +208,11 @@ public CatalogItem addAttributesItem(ItemAttribute attributesItem) { return this; } - /** + /** * Get attributes + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -227,22 +220,21 @@ public List getAttributes() { return attributes; } - public void setAttributes(List attributes) { this.attributes = attributes; } - public CatalogItem product(Product product) { - + this.product = product; return this; } - /** + /** * Get product + * * @return product - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -250,12 +242,10 @@ public Product getProduct() { return product; } - public void setProduct(Product product) { this.product = product; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -280,7 +270,6 @@ public int hashCode() { return Objects.hash(id, created, sku, price, catalogid, version, attributes, product); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -309,4 +298,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CatalogSyncRequest.java b/src/main/java/one/talon/model/CatalogSyncRequest.java index 699f4c03..44fc8b43 100644 --- a/src/main/java/one/talon/model/CatalogSyncRequest.java +++ b/src/main/java/one/talon/model/CatalogSyncRequest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,11 +37,10 @@ public class CatalogSyncRequest { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; - + private Long version; public CatalogSyncRequest actions(List actions) { - + this.actions = actions; return this; } @@ -52,46 +50,44 @@ public CatalogSyncRequest addActionsItem(CatalogAction actionsItem) { return this; } - /** + /** * Get actions + * * @return actions - **/ + **/ @ApiModelProperty(required = true, value = "") public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } + public CatalogSyncRequest version(Long version) { - public CatalogSyncRequest version(Integer version) { - this.version = version; return this; } - /** + /** * The version number of the catalog to apply the actions on. * minimum: 1 + * * @return version - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "244", value = "The version number of the catalog to apply the actions on.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,7 +106,6 @@ public int hashCode() { return Objects.hash(actions, version); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -133,4 +128,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java b/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java index 70d4540f..501cb7c8 100644 --- a/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java +++ b/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,56 +34,54 @@ public class CatalogsStrikethroughNotificationPolicy { public static final String SERIALIZED_NAME_AHEAD_OF_DAYS_TRIGGER = "aheadOfDaysTrigger"; @SerializedName(SERIALIZED_NAME_AHEAD_OF_DAYS_TRIGGER) - private Integer aheadOfDaysTrigger; - + private Long aheadOfDaysTrigger; public CatalogsStrikethroughNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CatalogsStrikethroughNotificationPolicy aheadOfDaysTrigger(Long aheadOfDaysTrigger) { - public CatalogsStrikethroughNotificationPolicy aheadOfDaysTrigger(Integer aheadOfDaysTrigger) { - this.aheadOfDaysTrigger = aheadOfDaysTrigger; return this; } - /** - * The number of days in advance that strikethrough pricing updates should be sent. + /** + * The number of days in advance that strikethrough pricing updates should be + * sent. * minimum: 1 * maximum: 30 + * * @return aheadOfDaysTrigger - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The number of days in advance that strikethrough pricing updates should be sent.") - public Integer getAheadOfDaysTrigger() { + public Long getAheadOfDaysTrigger() { return aheadOfDaysTrigger; } - - public void setAheadOfDaysTrigger(Integer aheadOfDaysTrigger) { + public void setAheadOfDaysTrigger(Long aheadOfDaysTrigger) { this.aheadOfDaysTrigger = aheadOfDaysTrigger; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,7 +100,6 @@ public int hashCode() { return Objects.hash(name, aheadOfDaysTrigger); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -126,4 +122,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Change.java b/src/main/java/one/talon/model/Change.java index f98ab0c7..89340c0e 100644 --- a/src/main/java/one/talon/model/Change.java +++ b/src/main/java/one/talon/model/Change.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Change { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +39,11 @@ public class Change { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @@ -60,130 +59,125 @@ public class Change { public static final String SERIALIZED_NAME_MANAGEMENT_KEY_ID = "managementKeyId"; @SerializedName(SERIALIZED_NAME_MANAGEMENT_KEY_ID) - private Integer managementKeyId; + private Long managementKeyId; + public Change id(Long id) { - public Change id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Change created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Change userId(Long userId) { - public Change userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } + public Change applicationId(Long applicationId) { - public Change applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * ID of application associated with change. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "359", value = "ID of application associated with change.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public Change entity(String entity) { - + this.entity = entity; return this; } - /** + /** * API endpoint on which the change was initiated. + * * @return entity - **/ + **/ @ApiModelProperty(example = "/v1/applications/359/campaigns/6727", required = true, value = "API endpoint on which the change was initiated.") public String getEntity() { return entity; } - public void setEntity(String entity) { this.entity = entity; } - public Change old(Object old) { - + this.old = old; return this; } - /** + /** * Resource before the change occurred. + * * @return old - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{}", value = "Resource before the change occurred.") @@ -191,22 +185,21 @@ public Object getOld() { return old; } - public void setOld(Object old) { this.old = old; } - public Change _new(Object _new) { - + this._new = _new; return this; } - /** + /** * Resource after the change occurred. + * * @return _new - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"applicationId\\\"\":359,\"attributes\\\"\":{},\"campaignGroups\\\"\":[],\"created\\\"\":\"2022-07-08T13:04:02.972762328Z\",\"description\\\"\":\"\",\"features\\\"\":[\"referrals\",\"loyalty\"],\"id\":6727}", value = "Resource after the change occurred.") @@ -214,35 +207,32 @@ public Object getNew() { return _new; } - public void setNew(Object _new) { this._new = _new; } + public Change managementKeyId(Long managementKeyId) { - public Change managementKeyId(Integer managementKeyId) { - this.managementKeyId = managementKeyId; return this; } - /** + /** * ID of management key used to perform changes. + * * @return managementKeyId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "ID of management key used to perform changes.") - public Integer getManagementKeyId() { + public Long getManagementKeyId() { return managementKeyId; } - - public void setManagementKeyId(Integer managementKeyId) { + public void setManagementKeyId(Long managementKeyId) { this.managementKeyId = managementKeyId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -267,7 +257,6 @@ public int hashCode() { return Objects.hash(id, created, userId, applicationId, entity, old, _new, managementKeyId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -296,4 +285,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java index ac6bcf44..d5eec8c7 100644 --- a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java +++ b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,9 @@ import org.threeten.bp.OffsetDateTime; /** - * The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an \"addLoyaltyPoints\" effect. + * The properties specific to the \"changeLoyaltyTierLevel\" effect. + * This is triggered whenever the user's loyalty tier is upgraded due to a + * validated rule that contained an \"addLoyaltyPoints\" effect. */ @ApiModel(description = "The properties specific to the \"changeLoyaltyTierLevel\" effect. This is triggered whenever the user's loyalty tier is upgraded due to a validated rule that contained an \"addLoyaltyPoints\" effect. ") @@ -37,7 +38,7 @@ public class ChangeLoyaltyTierLevelEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -55,83 +56,81 @@ public class ChangeLoyaltyTierLevelEffectProps { @SerializedName(SERIALIZED_NAME_EXPIRY_DATE) private OffsetDateTime expiryDate; - public ChangeLoyaltyTierLevelEffectProps ruleTitle(String ruleTitle) { - + this.ruleTitle = ruleTitle; return this; } - /** + /** * The title of the rule that triggered the tier upgrade. + * * @return ruleTitle - **/ + **/ @ApiModelProperty(required = true, value = "The title of the rule that triggered the tier upgrade.") public String getRuleTitle() { return ruleTitle; } - public void setRuleTitle(String ruleTitle) { this.ruleTitle = ruleTitle; } + public ChangeLoyaltyTierLevelEffectProps programId(Long programId) { - public ChangeLoyaltyTierLevelEffectProps programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * The ID of the loyalty program where these points were added. + * * @return programId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public ChangeLoyaltyTierLevelEffectProps subLedgerId(String subLedgerId) { - + this.subLedgerId = subLedgerId; return this; } - /** - * The ID of the subledger within the loyalty program where these points were added. + /** + * The ID of the subledger within the loyalty program where these points were + * added. + * * @return subLedgerId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the subledger within the loyalty program where these points were added.") public String getSubLedgerId() { return subLedgerId; } - public void setSubLedgerId(String subLedgerId) { this.subLedgerId = subLedgerId; } - public ChangeLoyaltyTierLevelEffectProps previousTierName(String previousTierName) { - + this.previousTierName = previousTierName; return this; } - /** + /** * The name of the tier from which the user was upgraded. + * * @return previousTierName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the tier from which the user was upgraded.") @@ -139,44 +138,42 @@ public String getPreviousTierName() { return previousTierName; } - public void setPreviousTierName(String previousTierName) { this.previousTierName = previousTierName; } - public ChangeLoyaltyTierLevelEffectProps newTierName(String newTierName) { - + this.newTierName = newTierName; return this; } - /** + /** * The name of the tier to which the user has been upgraded. + * * @return newTierName - **/ + **/ @ApiModelProperty(required = true, value = "The name of the tier to which the user has been upgraded.") public String getNewTierName() { return newTierName; } - public void setNewTierName(String newTierName) { this.newTierName = newTierName; } - public ChangeLoyaltyTierLevelEffectProps expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * The expiration date of the new tier. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The expiration date of the new tier.") @@ -184,12 +181,10 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -212,7 +207,6 @@ public int hashCode() { return Objects.hash(ruleTitle, programId, subLedgerId, previousTierName, newTierName, expiryDate); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -239,4 +233,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Collection.java b/src/main/java/one/talon/model/Collection.java index 43ee20af..7b7dd69d 100644 --- a/src/main/java/one/talon/model/Collection.java +++ b/src/main/java/one/talon/model/Collection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Collection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class Collection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -54,7 +53,7 @@ public class Collection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,123 +61,119 @@ public class Collection { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) private List payload = null; + public Collection id(Long id) { - public Collection id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Collection created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Collection accountId(Long accountId) { - public Collection accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public Collection modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public Collection description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -186,158 +181,150 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public Collection subscribedApplicationsIds(List subscribedApplicationsIds) { - public Collection subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Collection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public Collection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the Applications where this collection is enabled. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public Collection name(String name) { - + this.name = name; return this; } - /** + /** * The name of this collection. + * * @return name - **/ + **/ @ApiModelProperty(example = "My collection", required = true, value = "The name of this collection.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public Collection modifiedBy(Long modifiedBy) { - public Collection modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public Collection createdBy(Long createdBy) { - public Collection createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public Collection applicationId(Long applicationId) { - public Collection applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public Collection campaignId(Long campaignId) { - public Collection campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public Collection payload(List payload) { - + this.payload = payload; return this; } @@ -350,10 +337,11 @@ public Collection addPayloadItem(String payloadItem) { return this; } - /** + /** * The content of the collection. + * * @return payload - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[KTL-WH-ET-1, KTL-BL-ET-1]", value = "The content of the collection.") @@ -361,12 +349,10 @@ public List getPayload() { return payload; } - public void setPayload(List payload) { this.payload = payload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -392,10 +378,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, description, subscribedApplicationsIds, name, modifiedBy, createdBy, applicationId, campaignId, payload); + return Objects.hash(id, created, accountId, modified, description, subscribedApplicationsIds, name, modifiedBy, + createdBy, applicationId, campaignId, payload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -428,4 +414,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CollectionWithoutPayload.java b/src/main/java/one/talon/model/CollectionWithoutPayload.java index dd6e4fe8..e726356d 100644 --- a/src/main/java/one/talon/model/CollectionWithoutPayload.java +++ b/src/main/java/one/talon/model/CollectionWithoutPayload.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -54,7 +53,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,119 +61,115 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; + public CollectionWithoutPayload id(Long id) { - public CollectionWithoutPayload id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CollectionWithoutPayload created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CollectionWithoutPayload accountId(Long accountId) { - public CollectionWithoutPayload accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CollectionWithoutPayload modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public CollectionWithoutPayload description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -182,156 +177,148 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public CollectionWithoutPayload subscribedApplicationsIds(List subscribedApplicationsIds) { - public CollectionWithoutPayload subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public CollectionWithoutPayload addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public CollectionWithoutPayload addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the Applications where this collection is enabled. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public CollectionWithoutPayload name(String name) { - + this.name = name; return this; } - /** + /** * The name of this collection. + * * @return name - **/ + **/ @ApiModelProperty(example = "My collection", required = true, value = "The name of this collection.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CollectionWithoutPayload modifiedBy(Long modifiedBy) { - public CollectionWithoutPayload modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public CollectionWithoutPayload createdBy(Long createdBy) { - public CollectionWithoutPayload createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public CollectionWithoutPayload applicationId(Long applicationId) { - public CollectionWithoutPayload applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CollectionWithoutPayload campaignId(Long campaignId) { - public CollectionWithoutPayload campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -356,10 +343,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, description, subscribedApplicationsIds, name, modifiedBy, createdBy, applicationId, campaignId); + return Objects.hash(id, created, accountId, modified, description, subscribedApplicationsIds, name, modifiedBy, + createdBy, applicationId, campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -391,4 +378,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Coupon.java b/src/main/java/one/talon/model/Coupon.java index ab4a482c..efdbb4f1 100644 --- a/src/main/java/one/talon/model/Coupon.java +++ b/src/main/java/one/talon/model/Coupon.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class Coupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class Coupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +51,7 @@ public class Coupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +59,7 @@ public class Coupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +75,7 @@ public class Coupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Integer usageCounter; + private Long usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +95,7 @@ public class Coupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +103,7 @@ public class Coupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -122,131 +121,128 @@ public class Coupon { @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) private Boolean implicitlyReserved; + public Coupon id(Long id) { - public Coupon id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Coupon created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Coupon campaignId(Long campaignId) { - public Coupon campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public Coupon value(String value) { - + this.value = value; return this; } - /** + /** * The coupon code. + * * @return value - **/ + **/ @ApiModelProperty(example = "XMAS-20-2021", required = true, value = "The coupon code.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } + public Coupon usageLimit(Long usageLimit) { - public Coupon usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public Coupon discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -254,47 +250,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public Coupon reservationLimit(Long reservationLimit) { - public Coupon reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public Coupon startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -302,22 +296,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public Coupon expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -325,14 +318,12 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public Coupon limits(List limits) { - + this.limits = limits; return this; } @@ -345,10 +336,14 @@ public Coupon addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + /** + * Limits configuration for a coupon. These limits will override the limits set + * from the campaign. **Note:** Only usable when creating a single coupon which + * is not tied to a specific recipient. Only per-profile limits are allowed to + * be configured. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") @@ -356,44 +351,43 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public Coupon usageCounter(Long usageCounter) { - public Coupon usageCounter(Integer usageCounter) { - this.usageCounter = usageCounter; return this; } - /** + /** * The number of times the coupon has been successfully redeemed. + * * @return usageCounter - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Integer getUsageCounter() { + public Long getUsageCounter() { return usageCounter; } - - public void setUsageCounter(Integer usageCounter) { + public void setUsageCounter(Long usageCounter) { this.usageCounter = usageCounter; } - public Coupon discountCounter(BigDecimal discountCounter) { - + this.discountCounter = discountCounter; return this; } - /** - * The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. + /** + * The amount of discounts given on rules redeeming this coupon. Only usable if + * a coupon discount budget was set for this coupon. + * * @return discountCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10.0", value = "The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon.") @@ -401,22 +395,21 @@ public BigDecimal getDiscountCounter() { return discountCounter; } - public void setDiscountCounter(BigDecimal discountCounter) { this.discountCounter = discountCounter; } - public Coupon discountRemainder(BigDecimal discountRemainder) { - + this.discountRemainder = discountRemainder; return this; } - /** + /** * The remaining discount this coupon can give. + * * @return discountRemainder - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5.0", value = "The remaining discount this coupon can give.") @@ -424,22 +417,21 @@ public BigDecimal getDiscountRemainder() { return discountRemainder; } - public void setDiscountRemainder(BigDecimal discountRemainder) { this.discountRemainder = discountRemainder; } - public Coupon reservationCounter(BigDecimal reservationCounter) { - + this.reservationCounter = reservationCounter; return this; } - /** + /** * The number of times this coupon has been reserved. + * * @return reservationCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.0", value = "The number of times this coupon has been reserved.") @@ -447,22 +439,21 @@ public BigDecimal getReservationCounter() { return reservationCounter; } - public void setReservationCounter(BigDecimal reservationCounter) { this.reservationCounter = reservationCounter; } - public Coupon attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Custom attributes associated with this coupon. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Custom attributes associated with this coupon.") @@ -470,45 +461,44 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public Coupon referralId(Long referralId) { - public Coupon referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** - * The integration ID of the referring customer (if any) for whom this coupon was created as an effect. + /** + * The integration ID of the referring customer (if any) for whom this coupon + * was created as an effect. + * * @return referralId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public Coupon recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The Integration ID of the customer that is allowed to redeem this coupon. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The Integration ID of the customer that is allowed to redeem this coupon.") @@ -516,45 +506,45 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } + public Coupon importId(Long importId) { - public Coupon importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this coupon. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public Coupon reservation(Boolean reservation) { - + this.reservation = reservation; return this; } - /** - * Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. + /** + * Defines the reservation type: - `true`: The coupon can be reserved + * for multiple customers. - `false`: The coupon can be reserved only + * for one customer. It is a personal code. + * * @return reservation - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. ") @@ -562,22 +552,21 @@ public Boolean getReservation() { return reservation; } - public void setReservation(Boolean reservation) { this.reservation = reservation; } - public Coupon batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The id of the batch the coupon belongs to. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "32535-43255", value = "The id of the batch the coupon belongs to.") @@ -585,22 +574,22 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public Coupon isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -608,22 +597,21 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - public Coupon implicitlyReserved(Boolean implicitlyReserved) { - + this.implicitlyReserved = implicitlyReserved; return this; } - /** + /** * An indication of whether the coupon is implicitly reserved for all customers. + * * @return implicitlyReserved - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") @@ -631,12 +619,10 @@ public Boolean getImplicitlyReserved() { return implicitlyReserved; } - public void setImplicitlyReserved(Boolean implicitlyReserved) { this.implicitlyReserved = implicitlyReserved; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -672,10 +658,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved); + return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, + expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, + referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -718,4 +705,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponConstraints.java b/src/main/java/one/talon/model/CouponConstraints.java index 99490af8..6c1f1126 100644 --- a/src/main/java/one/talon/model/CouponConstraints.java +++ b/src/main/java/one/talon/model/CouponConstraints.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class CouponConstraints { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -41,7 +40,7 @@ public class CouponConstraints { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -51,44 +50,45 @@ public class CouponConstraints { @SerializedName(SERIALIZED_NAME_EXPIRY_DATE) private OffsetDateTime expiryDate; + public CouponConstraints usageLimit(Long usageLimit) { - public CouponConstraints usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public CouponConstraints discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -96,47 +96,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public CouponConstraints reservationLimit(Long reservationLimit) { - public CouponConstraints reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public CouponConstraints startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -144,22 +142,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public CouponConstraints expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -167,12 +164,10 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -194,7 +189,6 @@ public int hashCode() { return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -220,4 +214,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponCreationJob.java b/src/main/java/one/talon/model/CouponCreationJob.java index ca607a82..4e838a2d 100644 --- a/src/main/java/one/talon/model/CouponCreationJob.java +++ b/src/main/java/one/talon/model/CouponCreationJob.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,19 +43,19 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -64,7 +63,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +75,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Integer numberOfCoupons; + private Long numberOfCoupons; public static final String SERIALIZED_NAME_COUPON_SETTINGS = "couponSettings"; @SerializedName(SERIALIZED_NAME_COUPON_SETTINGS) @@ -96,11 +95,11 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CREATED_AMOUNT = "createdAmount"; @SerializedName(SERIALIZED_NAME_CREATED_AMOUNT) - private Integer createdAmount; + private Long createdAmount; public static final String SERIALIZED_NAME_FAIL_COUNT = "failCount"; @SerializedName(SERIALIZED_NAME_FAIL_COUNT) - private Integer failCount; + private Long failCount; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -108,7 +107,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_COMMUNICATED = "communicated"; @SerializedName(SERIALIZED_NAME_COMMUNICATED) @@ -116,159 +115,155 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CHUNK_EXECUTION_COUNT = "chunkExecutionCount"; @SerializedName(SERIALIZED_NAME_CHUNK_EXECUTION_COUNT) - private Integer chunkExecutionCount; + private Long chunkExecutionCount; public static final String SERIALIZED_NAME_CHUNK_SIZE = "chunkSize"; @SerializedName(SERIALIZED_NAME_CHUNK_SIZE) - private Integer chunkSize; + private Long chunkSize; + public CouponCreationJob id(Long id) { - public CouponCreationJob id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CouponCreationJob created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CouponCreationJob campaignId(Long campaignId) { - public CouponCreationJob campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public CouponCreationJob applicationId(Long applicationId) { - public CouponCreationJob applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CouponCreationJob accountId(Long accountId) { - public CouponCreationJob accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public CouponCreationJob usageLimit(Long usageLimit) { - public CouponCreationJob usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public CouponCreationJob discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -276,47 +271,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public CouponCreationJob reservationLimit(Long reservationLimit) { - public CouponCreationJob reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public CouponCreationJob startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -324,22 +317,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public CouponCreationJob expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -347,46 +339,44 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public CouponCreationJob numberOfCoupons(Long numberOfCoupons) { - public CouponCreationJob numberOfCoupons(Integer numberOfCoupons) { - this.numberOfCoupons = numberOfCoupons; return this; } - /** + /** * The number of new coupon codes to generate for the campaign. * minimum: 1 * maximum: 5000000 + * * @return numberOfCoupons - **/ + **/ @ApiModelProperty(example = "200000", required = true, value = "The number of new coupon codes to generate for the campaign.") - public Integer getNumberOfCoupons() { + public Long getNumberOfCoupons() { return numberOfCoupons; } - - public void setNumberOfCoupons(Integer numberOfCoupons) { + public void setNumberOfCoupons(Long numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } - public CouponCreationJob couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -394,124 +384,119 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public CouponCreationJob attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with coupons. + * * @return attributes - **/ + **/ @ApiModelProperty(required = true, value = "Arbitrary properties associated with coupons.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CouponCreationJob batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The batch ID coupons created by this job will bear. + * * @return batchId - **/ + **/ @ApiModelProperty(example = "tqyrgahe", required = true, value = "The batch ID coupons created by this job will bear.") public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public CouponCreationJob status(String status) { - + this.status = status; return this; } - /** - * The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full` + /** + * The current status of this request. Possible values: - `pending + * verification` - `pending` - `completed` - + * `failed` - `coupon pattern full` + * * @return status - **/ + **/ @ApiModelProperty(example = "pending", required = true, value = "The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full` ") public String getStatus() { return status; } - public void setStatus(String status) { this.status = status; } + public CouponCreationJob createdAmount(Long createdAmount) { - public CouponCreationJob createdAmount(Integer createdAmount) { - this.createdAmount = createdAmount; return this; } - /** + /** * The number of coupon codes that were already created for this request. + * * @return createdAmount - **/ + **/ @ApiModelProperty(example = "1000000", required = true, value = "The number of coupon codes that were already created for this request.") - public Integer getCreatedAmount() { + public Long getCreatedAmount() { return createdAmount; } - - public void setCreatedAmount(Integer createdAmount) { + public void setCreatedAmount(Long createdAmount) { this.createdAmount = createdAmount; } + public CouponCreationJob failCount(Long failCount) { - public CouponCreationJob failCount(Integer failCount) { - this.failCount = failCount; return this; } - /** + /** * The number of times this job failed. + * * @return failCount - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of times this job failed.") - public Integer getFailCount() { + public Long getFailCount() { return failCount; } - - public void setFailCount(Integer failCount) { + public void setFailCount(Long failCount) { this.failCount = failCount; } - public CouponCreationJob errors(List errors) { - + this.errors = errors; return this; } @@ -521,111 +506,109 @@ public CouponCreationJob addErrorsItem(String errorsItem) { return this; } - /** + /** * An array of individual problems encountered during the request. + * * @return errors - **/ + **/ @ApiModelProperty(example = "[Connection to database was reset, failed to generate enough unique codes, attribute 'PizzaLover' not found on entity 'Coupons']", required = true, value = "An array of individual problems encountered during the request.") public List getErrors() { return errors; } - public void setErrors(List errors) { this.errors = errors; } + public CouponCreationJob createdBy(Long createdBy) { - public CouponCreationJob createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public CouponCreationJob communicated(Boolean communicated) { - + this.communicated = communicated; return this; } - /** - * Whether or not the user that created this job was notified of its final state. + /** + * Whether or not the user that created this job was notified of its final + * state. + * * @return communicated - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "Whether or not the user that created this job was notified of its final state.") public Boolean getCommunicated() { return communicated; } - public void setCommunicated(Boolean communicated) { this.communicated = communicated; } + public CouponCreationJob chunkExecutionCount(Long chunkExecutionCount) { - public CouponCreationJob chunkExecutionCount(Integer chunkExecutionCount) { - this.chunkExecutionCount = chunkExecutionCount; return this; } - /** - * The number of times an attempt to create a chunk of coupons was made during the processing of the job. + /** + * The number of times an attempt to create a chunk of coupons was made during + * the processing of the job. + * * @return chunkExecutionCount - **/ + **/ @ApiModelProperty(example = "0", required = true, value = "The number of times an attempt to create a chunk of coupons was made during the processing of the job.") - public Integer getChunkExecutionCount() { + public Long getChunkExecutionCount() { return chunkExecutionCount; } - - public void setChunkExecutionCount(Integer chunkExecutionCount) { + public void setChunkExecutionCount(Long chunkExecutionCount) { this.chunkExecutionCount = chunkExecutionCount; } + public CouponCreationJob chunkSize(Long chunkSize) { - public CouponCreationJob chunkSize(Integer chunkSize) { - this.chunkSize = chunkSize; return this; } - /** - * The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. + /** + * The number of coupons that will be created in a single transactions. Coupons + * will be created in chunks until arriving at the requested amount. + * * @return chunkSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "20000", value = "The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount.") - public Integer getChunkSize() { + public Long getChunkSize() { return chunkSize; } - - public void setChunkSize(Integer chunkSize) { + public void setChunkSize(Long chunkSize) { this.chunkSize = chunkSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -661,10 +644,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, campaignId, applicationId, accountId, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, numberOfCoupons, couponSettings, attributes, batchId, status, createdAmount, failCount, errors, createdBy, communicated, chunkExecutionCount, chunkSize); + return Objects.hash(id, created, campaignId, applicationId, accountId, usageLimit, discountLimit, reservationLimit, + startDate, expiryDate, numberOfCoupons, couponSettings, attributes, batchId, status, createdAmount, failCount, + errors, createdBy, communicated, chunkExecutionCount, chunkSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -707,4 +691,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponDeletionFilters.java b/src/main/java/one/talon/model/CouponDeletionFilters.java index bc016897..2c1f76db 100644 --- a/src/main/java/one/talon/model/CouponDeletionFilters.java +++ b/src/main/java/one/talon/model/CouponDeletionFilters.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -47,14 +46,18 @@ public class CouponDeletionFilters { private OffsetDateTime startsBefore; /** - * - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which the start date is null or in the past and the expiration date is null or in the future. - `validFuture`: Matches coupons in which the start date is set and in the future. + * - `expired`: Matches coupons in which the expiration date is set + * and in the past. - `validNow`: Matches coupons in which the start + * date is null or in the past and the expiration date is null or in the future. + * - `validFuture`: Matches coupons in which the start date is set and + * in the future. */ @JsonAdapter(ValidEnum.Adapter.class) public enum ValidEnum { EXPIRED("expired"), - + VALIDNOW("validNow"), - + VALIDFUTURE("validFuture"); private String value; @@ -89,7 +92,7 @@ public void write(final JsonWriter jsonWriter, final ValidEnum enumeration) thro @Override public ValidEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ValidEnum.fromValue(value); } } @@ -125,7 +128,7 @@ public ValidEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; public static final String SERIALIZED_NAME_EXPIRES_AFTER = "expiresAfter"; @SerializedName(SERIALIZED_NAME_EXPIRES_AFTER) @@ -135,17 +138,19 @@ public ValidEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_EXPIRES_BEFORE) private OffsetDateTime expiresBefore; - public CouponDeletionFilters createdBefore(OffsetDateTime createdBefore) { - + this.createdBefore = createdBefore; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return createdBefore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -153,22 +158,23 @@ public OffsetDateTime getCreatedBefore() { return createdBefore; } - public void setCreatedBefore(OffsetDateTime createdBefore) { this.createdBefore = createdBefore; } - public CouponDeletionFilters createdAfter(OffsetDateTime createdAfter) { - + this.createdAfter = createdAfter; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return createdAfter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -176,22 +182,23 @@ public OffsetDateTime getCreatedAfter() { return createdAfter; } - public void setCreatedAfter(OffsetDateTime createdAfter) { this.createdAfter = createdAfter; } - public CouponDeletionFilters startsAfter(OffsetDateTime startsAfter) { - + this.startsAfter = startsAfter; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return startsAfter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -199,22 +206,23 @@ public OffsetDateTime getStartsAfter() { return startsAfter; } - public void setStartsAfter(OffsetDateTime startsAfter) { this.startsAfter = startsAfter; } - public CouponDeletionFilters startsBefore(OffsetDateTime startsBefore) { - + this.startsBefore = startsBefore; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return startsBefore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -222,22 +230,25 @@ public OffsetDateTime getStartsBefore() { return startsBefore; } - public void setStartsBefore(OffsetDateTime startsBefore) { this.startsBefore = startsBefore; } - public CouponDeletionFilters valid(ValidEnum valid) { - + this.valid = valid; return this; } - /** - * - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which the start date is null or in the past and the expiration date is null or in the future. - `validFuture`: Matches coupons in which the start date is set and in the future. + /** + * - `expired`: Matches coupons in which the expiration date is set + * and in the past. - `validNow`: Matches coupons in which the start + * date is null or in the past and the expiration date is null or in the future. + * - `validFuture`: Matches coupons in which the start date is set and + * in the future. + * * @return valid - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "- `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which the start date is null or in the past and the expiration date is null or in the future. - `validFuture`: Matches coupons in which the start date is set and in the future. ") @@ -245,22 +256,24 @@ public ValidEnum getValid() { return valid; } - public void setValid(ValidEnum valid) { this.valid = valid; } - public CouponDeletionFilters usable(Boolean usable) { - + this.usable = usable; return this; } - /** - * - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. + /** + * - `true`: only coupons where `usageCounter < + * usageLimit` will be returned. - `false`: only coupons where + * `usageCounter >= usageLimit` will be returned. - This field + * cannot be used in conjunction with the `usable` query parameter. + * * @return usable - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "- `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. ") @@ -268,22 +281,24 @@ public Boolean getUsable() { return usable; } - public void setUsable(Boolean usable) { this.usable = usable; } - public CouponDeletionFilters redeemed(Boolean redeemed) { - + this.redeemed = redeemed; return this; } - /** - * - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. **Note:** This field cannot be used in conjunction with the `usable` query parameter. + /** + * - `true`: only coupons where `usageCounter > 0` will + * be returned. - `false`: only coupons where `usageCounter + * = 0` will be returned. **Note:** This field cannot be used in + * conjunction with the `usable` query parameter. + * * @return redeemed - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "- `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. **Note:** This field cannot be used in conjunction with the `usable` query parameter. ") @@ -291,22 +306,22 @@ public Boolean getRedeemed() { return redeemed; } - public void setRedeemed(Boolean redeemed) { this.redeemed = redeemed; } - public CouponDeletionFilters recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** - * Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. + /** + * Filter results by match with a profile id specified in the coupon's + * `RecipientIntegrationId` field. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results by match with a profile id specified in the coupon's `RecipientIntegrationId` field. ") @@ -314,22 +329,21 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public CouponDeletionFilters exactMatch(Boolean exactMatch) { - + this.exactMatch = exactMatch; return this; } - /** + /** * Filter results to an exact case-insensitive matching against the coupon code + * * @return exactMatch - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results to an exact case-insensitive matching against the coupon code") @@ -337,22 +351,21 @@ public Boolean getExactMatch() { return exactMatch; } - public void setExactMatch(Boolean exactMatch) { this.exactMatch = exactMatch; } - public CouponDeletionFilters value(String value) { - + this.value = value; return this; } - /** + /** * Filter results by the coupon code + * * @return value - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results by the coupon code") @@ -360,22 +373,21 @@ public String getValue() { return value; } - public void setValue(String value) { this.value = value; } - public CouponDeletionFilters batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * Filter results by batches of coupons + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results by batches of coupons") @@ -383,45 +395,46 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } + public CouponDeletionFilters referralId(Long referralId) { - public CouponDeletionFilters referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** - * Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + /** + * Filter the results by matching them with the ID of a referral. This filter + * shows the coupons created by redeeming a referral code. + * * @return referralId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public CouponDeletionFilters expiresAfter(OffsetDateTime expiresAfter) { - + this.expiresAfter = expiresAfter; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return expiresAfter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -429,22 +442,23 @@ public OffsetDateTime getExpiresAfter() { return expiresAfter; } - public void setExpiresAfter(OffsetDateTime expiresAfter) { this.expiresAfter = expiresAfter; } - public CouponDeletionFilters expiresBefore(OffsetDateTime expiresBefore) { - + this.expiresBefore = expiresBefore; return this; } - /** - * Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. + /** + * Filter results comparing the parameter value, expected to be an RFC3339 + * timestamp string, to the coupon creation timestamp. You can use any time zone + * setting. Talon.One will convert to UTC internally. + * * @return expiresBefore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.") @@ -452,12 +466,10 @@ public OffsetDateTime getExpiresBefore() { return expiresBefore; } - public void setExpiresBefore(OffsetDateTime expiresBefore) { this.expiresBefore = expiresBefore; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -485,10 +497,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(createdBefore, createdAfter, startsAfter, startsBefore, valid, usable, redeemed, recipientIntegrationId, exactMatch, value, batchId, referralId, expiresAfter, expiresBefore); + return Objects.hash(createdBefore, createdAfter, startsAfter, startsBefore, valid, usable, redeemed, + recipientIntegrationId, exactMatch, value, batchId, referralId, expiresAfter, expiresBefore); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -523,4 +535,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponDeletionJob.java b/src/main/java/one/talon/model/CouponDeletionJob.java index 6cdb9efb..55609402 100644 --- a/src/main/java/one/talon/model/CouponDeletionJob.java +++ b/src/main/java/one/talon/model/CouponDeletionJob.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,11 +42,11 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) @@ -59,11 +58,11 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_DELETED_AMOUNT = "deletedAmount"; @SerializedName(SERIALIZED_NAME_DELETED_AMOUNT) - private Integer deletedAmount; + private Long deletedAmount; public static final String SERIALIZED_NAME_FAIL_COUNT = "failCount"; @SerializedName(SERIALIZED_NAME_FAIL_COUNT) - private Integer failCount; + private Long failCount; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -71,7 +70,7 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_COMMUNICATED = "communicated"; @SerializedName(SERIALIZED_NAME_COMMUNICATED) @@ -79,188 +78,180 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_CAMPAIGN_I_DS = "campaignIDs"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_I_DS) - private List campaignIDs = null; + private List campaignIDs = null; + public CouponDeletionJob id(Long id) { - public CouponDeletionJob id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CouponDeletionJob created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CouponDeletionJob applicationId(Long applicationId) { - public CouponDeletionJob applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public CouponDeletionJob accountId(Long accountId) { - public CouponDeletionJob accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CouponDeletionJob filters(CouponDeletionFilters filters) { - + this.filters = filters; return this; } - /** + /** * Get filters + * * @return filters - **/ + **/ @ApiModelProperty(required = true, value = "") public CouponDeletionFilters getFilters() { return filters; } - public void setFilters(CouponDeletionFilters filters) { this.filters = filters; } - public CouponDeletionJob status(String status) { - + this.status = status; return this; } - /** - * The current status of this request. Possible values: - `not_ready` - `pending` - `completed` - `failed` + /** + * The current status of this request. Possible values: - `not_ready` + * - `pending` - `completed` - `failed` + * * @return status - **/ + **/ @ApiModelProperty(example = "pending", required = true, value = "The current status of this request. Possible values: - `not_ready` - `pending` - `completed` - `failed` ") public String getStatus() { return status; } - public void setStatus(String status) { this.status = status; } + public CouponDeletionJob deletedAmount(Long deletedAmount) { - public CouponDeletionJob deletedAmount(Integer deletedAmount) { - this.deletedAmount = deletedAmount; return this; } - /** + /** * The number of coupon codes that were already deleted for this request. + * * @return deletedAmount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000000", value = "The number of coupon codes that were already deleted for this request.") - public Integer getDeletedAmount() { + public Long getDeletedAmount() { return deletedAmount; } - - public void setDeletedAmount(Integer deletedAmount) { + public void setDeletedAmount(Long deletedAmount) { this.deletedAmount = deletedAmount; } + public CouponDeletionJob failCount(Long failCount) { - public CouponDeletionJob failCount(Integer failCount) { - this.failCount = failCount; return this; } - /** + /** * The number of times this job failed. + * * @return failCount - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of times this job failed.") - public Integer getFailCount() { + public Long getFailCount() { return failCount; } - - public void setFailCount(Integer failCount) { + public void setFailCount(Long failCount) { this.failCount = failCount; } - public CouponDeletionJob errors(List errors) { - + this.errors = errors; return this; } @@ -270,97 +261,94 @@ public CouponDeletionJob addErrorsItem(String errorsItem) { return this; } - /** + /** * An array of individual problems encountered during the request. + * * @return errors - **/ + **/ @ApiModelProperty(example = "[Connection to database was reset, failed to delete codes]", required = true, value = "An array of individual problems encountered during the request.") public List getErrors() { return errors; } - public void setErrors(List errors) { this.errors = errors; } + public CouponDeletionJob createdBy(Long createdBy) { - public CouponDeletionJob createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public CouponDeletionJob communicated(Boolean communicated) { - + this.communicated = communicated; return this; } - /** - * Indicates whether the user that created this job was notified of its final state. + /** + * Indicates whether the user that created this job was notified of its final + * state. + * * @return communicated - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "Indicates whether the user that created this job was notified of its final state.") public Boolean getCommunicated() { return communicated; } - public void setCommunicated(Boolean communicated) { this.communicated = communicated; } + public CouponDeletionJob campaignIDs(List campaignIDs) { - public CouponDeletionJob campaignIDs(List campaignIDs) { - this.campaignIDs = campaignIDs; return this; } - public CouponDeletionJob addCampaignIDsItem(Integer campaignIDsItem) { + public CouponDeletionJob addCampaignIDsItem(Long campaignIDsItem) { if (this.campaignIDs == null) { - this.campaignIDs = new ArrayList(); + this.campaignIDs = new ArrayList(); } this.campaignIDs.add(campaignIDsItem); return this; } - /** + /** * Get campaignIDs + * * @return campaignIDs - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public List getCampaignIDs() { + public List getCampaignIDs() { return campaignIDs; } - - public void setCampaignIDs(List campaignIDs) { + public void setCampaignIDs(List campaignIDs) { this.campaignIDs = campaignIDs; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -386,10 +374,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, accountId, filters, status, deletedAmount, failCount, errors, createdBy, communicated, campaignIDs); + return Objects.hash(id, created, applicationId, accountId, filters, status, deletedAmount, failCount, errors, + createdBy, communicated, campaignIDs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -422,4 +410,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponRejectionReason.java b/src/main/java/one/talon/model/CouponRejectionReason.java index 528ba6d6..b91a7d92 100644 --- a/src/main/java/one/talon/model/CouponRejectionReason.java +++ b/src/main/java/one/talon/model/CouponRejectionReason.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,18 +24,20 @@ import java.io.IOException; /** - * Holds a reference to the campaign, the coupon and the reason for which that coupon was rejected. Should only be present when there is a 'rejectCoupon' effect. + * Holds a reference to the campaign, the coupon and the reason for which that + * coupon was rejected. Should only be present when there is a + * 'rejectCoupon' effect. */ @ApiModel(description = "Holds a reference to the campaign, the coupon and the reason for which that coupon was rejected. Should only be present when there is a 'rejectCoupon' effect.") public class CouponRejectionReason { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_COUPON_ID = "couponId"; @SerializedName(SERIALIZED_NAME_COUPON_ID) - private Integer couponId; + private Long couponId; /** * Gets or Sets reason @@ -44,27 +45,27 @@ public class CouponRejectionReason { @JsonAdapter(ReasonEnum.Adapter.class) public enum ReasonEnum { COUPONNOTFOUND("CouponNotFound"), - + COUPONPARTOFNOTRUNNINGCAMPAIGN("CouponPartOfNotRunningCampaign"), - + CAMPAIGNLIMITREACHED("CampaignLimitReached"), - + PROFILELIMITREACHED("ProfileLimitReached"), - + COUPONRECIPIENTDOESNOTMATCH("CouponRecipientDoesNotMatch"), - + COUPONEXPIRED("CouponExpired"), - + COUPONSTARTDATEINFUTURE("CouponStartDateInFuture"), - + COUPONREJECTEDBYCONDITION("CouponRejectedByCondition"), - + EFFECTCOULDNOTBEAPPLIED("EffectCouldNotBeApplied"), - + COUPONPARTOFNOTTRIGGEREDCAMPAIGN("CouponPartOfNotTriggeredCampaign"), - + COUPONRESERVATIONREQUIRED("CouponReservationRequired"), - + PROFILEREQUIRED("ProfileRequired"); private String value; @@ -99,7 +100,7 @@ public void write(final JsonWriter jsonWriter, final ReasonEnum enumeration) thr @Override public ReasonEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReasonEnum.fromValue(value); } } @@ -109,73 +110,69 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_REASON) private ReasonEnum reason; + public CouponRejectionReason campaignId(Long campaignId) { - public CouponRejectionReason campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Get campaignId + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "244", required = true, value = "") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public CouponRejectionReason couponId(Long couponId) { - public CouponRejectionReason couponId(Integer couponId) { - this.couponId = couponId; return this; } - /** + /** * Get couponId + * * @return couponId - **/ + **/ @ApiModelProperty(example = "4928", required = true, value = "") - public Integer getCouponId() { + public Long getCouponId() { return couponId; } - - public void setCouponId(Integer couponId) { + public void setCouponId(Long couponId) { this.couponId = couponId; } - public CouponRejectionReason reason(ReasonEnum reason) { - + this.reason = reason; return this; } - /** + /** * Get reason + * * @return reason - **/ + **/ @ApiModelProperty(example = "CouponNotFound", required = true, value = "") public ReasonEnum getReason() { return reason; } - public void setReason(ReasonEnum reason) { this.reason = reason; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,7 +192,6 @@ public int hashCode() { return Objects.hash(campaignId, couponId, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -219,4 +215,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CouponsNotificationPolicy.java b/src/main/java/one/talon/model/CouponsNotificationPolicy.java index 37dcbf4f..13d6dba2 100644 --- a/src/main/java/one/talon/model/CouponsNotificationPolicy.java +++ b/src/main/java/one/talon/model/CouponsNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,11 +40,11 @@ public class CouponsNotificationPolicy { @JsonAdapter(ScopesEnum.Adapter.class) public enum ScopesEnum { ALL("all"), - + CAMPAIGN_MANAGER("campaign_manager"), - + MANAGEMENT_API("management_api"), - + RULE_ENGINE("rule_engine"); private String value; @@ -80,7 +79,7 @@ public void write(final JsonWriter jsonWriter, final ScopesEnum enumeration) thr @Override public ScopesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ScopesEnum.fromValue(value); } } @@ -100,33 +99,31 @@ public ScopesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public CouponsNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CouponsNotificationPolicy scopes(List scopes) { - + this.scopes = scopes; return this; } @@ -136,32 +133,32 @@ public CouponsNotificationPolicy addScopesItem(ScopesEnum scopesItem) { return this; } - /** + /** * Get scopes + * * @return scopes - **/ + **/ @ApiModelProperty(required = true, value = "") public List getScopes() { return scopes; } - public void setScopes(List scopes) { this.scopes = scopes; } - public CouponsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") @@ -169,22 +166,22 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } - public CouponsNotificationPolicy includeData(Boolean includeData) { - + this.includeData = includeData; return this; } - /** - * Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included. + /** + * Indicates whether to include all generated coupons. If `false`, + * only the `batchId` of the generated coupons is included. + * * @return includeData - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included.") @@ -192,35 +189,33 @@ public Boolean getIncludeData() { return includeData; } - public void setIncludeData(Boolean includeData) { this.includeData = includeData; } + public CouponsNotificationPolicy batchSize(Long batchSize) { - public CouponsNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -242,7 +237,6 @@ public int hashCode() { return Objects.hash(name, scopes, batchingEnabled, includeData, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -268,4 +262,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CreateApplicationAPIKey.java b/src/main/java/one/talon/model/CreateApplicationAPIKey.java index b5869e1c..89b7bb6c 100644 --- a/src/main/java/one/talon/model/CreateApplicationAPIKey.java +++ b/src/main/java/one/talon/model/CreateApplicationAPIKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,28 +38,29 @@ public class CreateApplicationAPIKey { private OffsetDateTime expires; /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. */ @JsonAdapter(PlatformEnum.Adapter.class) public enum PlatformEnum { NONE("none"), - + SEGMENT("segment"), - + BRAZE("braze"), - + MPARTICLE("mparticle"), - + SHOPIFY("shopify"), - + ITERABLE("iterable"), - + CUSTOMER_ENGAGEMENT("customer_engagement"), - + CUSTOMER_DATA("customer_data"), - + SALESFORCE("salesforce"), - + EMARSYS("emarsys"); private String value; @@ -95,7 +95,7 @@ public void write(final JsonWriter jsonWriter, final PlatformEnum enumeration) t @Override public PlatformEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PlatformEnum.fromValue(value); } } @@ -106,7 +106,16 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { private PlatformEnum platform; /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { @@ -144,7 +153,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -156,63 +165,62 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Integer timeOffset; - + private Long timeOffset; public CreateApplicationAPIKey title(String title) { - + this.title = title; return this; } - /** + /** * Title of the API key. + * * @return title - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public CreateApplicationAPIKey expires(OffsetDateTime expires) { - + this.expires = expires; return this; } - /** + /** * The date the API key expires. + * * @return expires - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; } - public void setExpires(OffsetDateTime expires) { this.expires = expires; } - public CreateApplicationAPIKey platform(PlatformEnum platform) { - + this.platform = platform; return this; } - /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + /** + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. + * * @return platform - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "none", value = "The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. ") @@ -220,22 +228,30 @@ public PlatformEnum getPlatform() { return platform; } - public void setPlatform(PlatformEnum platform) { this.platform = platform; } - public CreateApplicationAPIKey type(TypeEnum type) { - + this.type = type; return this; } - /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + /** + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") @@ -243,35 +259,34 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public CreateApplicationAPIKey timeOffset(Long timeOffset) { - public CreateApplicationAPIKey timeOffset(Integer timeOffset) { - this.timeOffset = timeOffset; return this; } - /** - * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + /** + * A time offset in nanoseconds associated with the API key. When making a + * request using the API key, rule evaluation is based on a date that is + * calculated by adding the offset to the current date. + * * @return timeOffset - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Integer getTimeOffset() { + public Long getTimeOffset() { return timeOffset; } - - public void setTimeOffset(Integer timeOffset) { + public void setTimeOffset(Long timeOffset) { this.timeOffset = timeOffset; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -293,7 +308,6 @@ public int hashCode() { return Objects.hash(title, expires, platform, type, timeOffset); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -319,4 +333,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CreateManagementKey.java b/src/main/java/one/talon/model/CreateManagementKey.java index e79ad375..83049a7e 100644 --- a/src/main/java/one/talon/model/CreateManagementKey.java +++ b/src/main/java/one/talon/model/CreateManagementKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -47,55 +46,52 @@ public class CreateManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; - + private List allowedApplicationIds = null; public CreateManagementKey name(String name) { - + this.name = name; return this; } - /** + /** * Name for management key. + * * @return name - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Name for management key.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CreateManagementKey expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * The date the management key expires. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the management key expires.") public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public CreateManagementKey endpoints(List endpoints) { - + this.endpoints = endpoints; return this; } @@ -105,53 +101,53 @@ public CreateManagementKey addEndpointsItem(Endpoint endpointsItem) { return this; } - /** + /** * The list of endpoints that can be accessed with the key + * * @return endpoints - **/ + **/ @ApiModelProperty(required = true, value = "The list of endpoints that can be accessed with the key") public List getEndpoints() { return endpoints; } - public void setEndpoints(List endpoints) { this.endpoints = endpoints; } + public CreateManagementKey allowedApplicationIds(List allowedApplicationIds) { - public CreateManagementKey allowedApplicationIds(List allowedApplicationIds) { - this.allowedApplicationIds = allowedApplicationIds; return this; } - public CreateManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { + public CreateManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; } - /** - * A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. + /** + * A list of Application IDs that you can access with the management key. An + * empty or missing list means the management key can be used for all + * Applications in the account. + * * @return allowedApplicationIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -172,7 +168,6 @@ public int hashCode() { return Objects.hash(name, expiryDate, endpoints, allowedApplicationIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -197,4 +192,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CreateTemplateCampaign.java b/src/main/java/one/talon/model/CreateTemplateCampaign.java index 0096fcb3..2d76c922 100644 --- a/src/main/java/one/talon/model/CreateTemplateCampaign.java +++ b/src/main/java/one/talon/model/CreateTemplateCampaign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -43,7 +42,7 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; public static final String SERIALIZED_NAME_CAMPAIGN_ATTRIBUTES_OVERRIDES = "campaignAttributesOverrides"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ATTRIBUTES_OVERRIDES) @@ -59,7 +58,7 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -67,45 +66,44 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; + private Long evaluationGroupId; public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; - + private List linkedStoreIds = null; public CreateTemplateCampaign name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Discount campaign", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CreateTemplateCampaign description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This template is for discount campaigns.", value = "A detailed description of the campaign.") @@ -113,44 +111,44 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public CreateTemplateCampaign templateId(Long templateId) { - public CreateTemplateCampaign templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** - * The ID of the Campaign Template which will be used in order to create the Campaign. + /** + * The ID of the Campaign Template which will be used in order to create the + * Campaign. + * * @return templateId - **/ + **/ @ApiModelProperty(example = "4", required = true, value = "The ID of the Campaign Template which will be used in order to create the Campaign.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - public CreateTemplateCampaign campaignAttributesOverrides(Object campaignAttributesOverrides) { - + this.campaignAttributesOverrides = campaignAttributesOverrides; return this; } - /** - * Custom Campaign Attributes. If the Campaign Template defines the same values, they will be overridden. + /** + * Custom Campaign Attributes. If the Campaign Template defines the same values, + * they will be overridden. + * * @return campaignAttributesOverrides - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Custom Campaign Attributes. If the Campaign Template defines the same values, they will be overridden.") @@ -158,14 +156,12 @@ public Object getCampaignAttributesOverrides() { return campaignAttributesOverrides; } - public void setCampaignAttributesOverrides(Object campaignAttributesOverrides) { this.campaignAttributesOverrides = campaignAttributesOverrides; } - public CreateTemplateCampaign templateParamValues(List templateParamValues) { - + this.templateParamValues = templateParamValues; return this; } @@ -178,10 +174,12 @@ public CreateTemplateCampaign addTemplateParamValuesItem(Binding templateParamVa return this; } - /** - * Actual values to replace the template placeholder values in the Ruleset bindings. Values for all Template Parameters must be provided. + /** + * Actual values to replace the template placeholder values in the Ruleset + * bindings. Values for all Template Parameters must be provided. + * * @return templateParamValues - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Actual values to replace the template placeholder values in the Ruleset bindings. Values for all Template Parameters must be provided.") @@ -189,14 +187,12 @@ public List getTemplateParamValues() { return templateParamValues; } - public void setTemplateParamValues(List templateParamValues) { this.templateParamValues = templateParamValues; } - public CreateTemplateCampaign limitOverrides(List limitOverrides) { - + this.limitOverrides = limitOverrides; return this; } @@ -209,10 +205,12 @@ public CreateTemplateCampaign addLimitOverridesItem(LimitConfig limitOverridesIt return this; } - /** - * Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden. + /** + * Limits for this Campaign. If the Campaign Template or Application define + * default values for the same limits, they will be overridden. + * * @return limitOverrides - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden.") @@ -220,45 +218,44 @@ public List getLimitOverrides() { return limitOverrides; } - public void setLimitOverrides(List limitOverrides) { this.limitOverrides = limitOverrides; } + public CreateTemplateCampaign campaignGroups(List campaignGroups) { - public CreateTemplateCampaign campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public CreateTemplateCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { + public CreateTemplateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - public CreateTemplateCampaign tags(List tags) { - + this.tags = tags; return this; } @@ -271,10 +268,12 @@ public CreateTemplateCampaign addTagsItem(String tagsItem) { return this; } - /** - * A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list. + /** + * A list of tags for the campaign. If the campaign template has tags, they will + * be overridden by this list. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[summer]", value = "A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list.") @@ -282,66 +281,65 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } + public CreateTemplateCampaign evaluationGroupId(Long evaluationGroupId) { - public CreateTemplateCampaign evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } + public CreateTemplateCampaign linkedStoreIds(List linkedStoreIds) { - public CreateTemplateCampaign linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public CreateTemplateCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public CreateTemplateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that are linked to the campaign. **Note:** Campaigns with + * linked store IDs will only be evaluated when there is a [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -365,10 +363,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, templateId, campaignAttributesOverrides, templateParamValues, limitOverrides, campaignGroups, tags, evaluationGroupId, linkedStoreIds); + return Objects.hash(name, description, templateId, campaignAttributesOverrides, templateParamValues, limitOverrides, + campaignGroups, tags, evaluationGroupId, linkedStoreIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -399,4 +397,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomEffect.java b/src/main/java/one/talon/model/CustomEffect.java index c125f2ae..92863384 100644 --- a/src/main/java/one/talon/model/CustomEffect.java +++ b/src/main/java/one/talon/model/CustomEffect.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +42,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -51,7 +50,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_PER_ITEM = "isPerItem"; @SerializedName(SERIALIZED_NAME_IS_PER_ITEM) @@ -83,138 +82,133 @@ public class CustomEffect { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; + public CustomEffect id(Long id) { - public CustomEffect id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CustomEffect created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CustomEffect accountId(Long accountId) { - public CustomEffect accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public CustomEffect modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public CustomEffect applicationIds(List applicationIds) { - public CustomEffect applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public CustomEffect addApplicationIdsItem(Integer applicationIdsItem) { + public CustomEffect addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * The IDs of the Applications that are related to this entity. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public CustomEffect isPerItem(Boolean isPerItem) { - + this.isPerItem = isPerItem; return this; } - /** + /** * Indicates if this effect is per item or not. + * * @return isPerItem - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates if this effect is per item or not.") @@ -222,88 +216,84 @@ public Boolean getIsPerItem() { return isPerItem; } - public void setIsPerItem(Boolean isPerItem) { this.isPerItem = isPerItem; } - public CustomEffect name(String name) { - + this.name = name; return this; } - /** + /** * The name of this effect. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of this effect.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CustomEffect title(String title) { - + this.title = title; return this; } - /** + /** * The title of this effect. + * * @return title - **/ + **/ @ApiModelProperty(required = true, value = "The title of this effect.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public CustomEffect payload(String payload) { - + this.payload = payload; return this; } - /** + /** * The JSON payload of this effect. + * * @return payload - **/ + **/ @ApiModelProperty(required = true, value = "The JSON payload of this effect.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public CustomEffect description(String description) { - + this.description = description; return this; } - /** + /** * The description of this effect. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The description of this effect.") @@ -311,36 +301,33 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public CustomEffect enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this effect is active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this effect is active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public CustomEffect params(List params) { - + this.params = params; return this; } @@ -353,10 +340,11 @@ public CustomEffect addParamsItem(TemplateArgDef paramsItem) { return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Array of template argument definitions.") @@ -364,57 +352,53 @@ public List getParams() { return params; } - public void setParams(List params) { this.params = params; } + public CustomEffect modifiedBy(Long modifiedBy) { - public CustomEffect modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public CustomEffect createdBy(Long createdBy) { - public CustomEffect createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "216", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -442,10 +426,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, modified, applicationIds, isPerItem, name, title, payload, description, enabled, params, modifiedBy, createdBy); + return Objects.hash(id, created, accountId, modified, applicationIds, isPerItem, name, title, payload, description, + enabled, params, modifiedBy, createdBy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -480,4 +464,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomEffectProps.java b/src/main/java/one/talon/model/CustomEffectProps.java index 6ca12dad..ce1ea569 100644 --- a/src/main/java/one/talon/model/CustomEffectProps.java +++ b/src/main/java/one/talon/model/CustomEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class CustomEffectProps { public static final String SERIALIZED_NAME_EFFECT_ID = "effectId"; @SerializedName(SERIALIZED_NAME_EFFECT_ID) - private Integer effectId; + private Long effectId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -49,7 +48,7 @@ public class CustomEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Integer bundleIndex; + private Long bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) @@ -59,61 +58,60 @@ public class CustomEffectProps { @SerializedName(SERIALIZED_NAME_PAYLOAD) private Object payload; + public CustomEffectProps effectId(Long effectId) { - public CustomEffectProps effectId(Integer effectId) { - this.effectId = effectId; return this; } - /** + /** * The ID of the custom effect that was triggered. + * * @return effectId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the custom effect that was triggered.") - public Integer getEffectId() { + public Long getEffectId() { return effectId; } - - public void setEffectId(Integer effectId) { + public void setEffectId(Long effectId) { this.effectId = effectId; } - public CustomEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The type of the custom effect. + * * @return name - **/ + **/ @ApiModelProperty(example = "my_custom_effect", required = true, value = "The type of the custom effect.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public CustomEffectProps cartItemPosition(BigDecimal cartItemPosition) { - + this.cartItemPosition = cartItemPosition; return this; } - /** - * The index of the item in the cart item list to which the custom effect is applied. + /** + * The index of the item in the cart item list to which the custom effect is + * applied. + * * @return cartItemPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.0", value = "The index of the item in the cart item list to which the custom effect is applied.") @@ -121,22 +119,22 @@ public BigDecimal getCartItemPosition() { return cartItemPosition; } - public void setCartItemPosition(BigDecimal cartItemPosition) { this.cartItemPosition = cartItemPosition; } - public CustomEffectProps cartItemSubPosition(BigDecimal cartItemSubPosition) { - + this.cartItemSubPosition = cartItemSubPosition; return this; } - /** - * For cart items with quantity > 1, the sub position indicates to which item unit the custom effect is applied. + /** + * For cart items with quantity > 1, the sub position indicates to which item + * unit the custom effect is applied. + * * @return cartItemSubPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2.0", value = "For cart items with quantity > 1, the sub position indicates to which item unit the custom effect is applied. ") @@ -144,45 +142,44 @@ public BigDecimal getCartItemSubPosition() { return cartItemSubPosition; } - public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { this.cartItemSubPosition = cartItemSubPosition; } + public CustomEffectProps bundleIndex(Long bundleIndex) { - public CustomEffectProps bundleIndex(Integer bundleIndex) { - this.bundleIndex = bundleIndex; return this; } - /** - * The position of the bundle in a list of item bundles created from the same bundle definition. + /** + * The position of the bundle in a list of item bundles created from the same + * bundle definition. + * * @return bundleIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Integer getBundleIndex() { + public Long getBundleIndex() { return bundleIndex; } - - public void setBundleIndex(Integer bundleIndex) { + public void setBundleIndex(Long bundleIndex) { this.bundleIndex = bundleIndex; } - public CustomEffectProps bundleName(String bundleName) { - + this.bundleName = bundleName; return this; } - /** + /** * The name of the bundle definition. + * * @return bundleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "my_bundle", value = "The name of the bundle definition.") @@ -190,34 +187,31 @@ public String getBundleName() { return bundleName; } - public void setBundleName(String bundleName) { this.bundleName = bundleName; } - public CustomEffectProps payload(Object payload) { - + this.payload = payload; return this; } - /** + /** * The JSON payload of the custom effect. + * * @return payload - **/ + **/ @ApiModelProperty(required = true, value = "The JSON payload of the custom effect.") public Object getPayload() { return payload; } - public void setPayload(Object payload) { this.payload = payload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -241,7 +235,6 @@ public int hashCode() { return Objects.hash(effectId, name, cartItemPosition, cartItemSubPosition, bundleIndex, bundleName, payload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -269,4 +262,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerActivityReport.java b/src/main/java/one/talon/model/CustomerActivityReport.java index ab0297f7..51c99c31 100644 --- a/src/main/java/one/talon/model/CustomerActivityReport.java +++ b/src/main/java/one/talon/model/CustomerActivityReport.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,7 +45,7 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_CUSTOMER_ID = "customerId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_ID) - private Integer customerId; + private Long customerId; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -54,15 +53,15 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_COUPON_REDEMPTIONS = "couponRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTIONS) - private Integer couponRedemptions; + private Long couponRedemptions; public static final String SERIALIZED_NAME_COUPON_USE_ATTEMPTS = "couponUseAttempts"; @SerializedName(SERIALIZED_NAME_COUPON_USE_ATTEMPTS) - private Integer couponUseAttempts; + private Long couponUseAttempts; public static final String SERIALIZED_NAME_COUPON_FAILED_ATTEMPTS = "couponFailedAttempts"; @SerializedName(SERIALIZED_NAME_COUPON_FAILED_ATTEMPTS) - private Integer couponFailedAttempts; + private Long couponFailedAttempts; public static final String SERIALIZED_NAME_ACCRUED_DISCOUNTS = "accruedDiscounts"; @SerializedName(SERIALIZED_NAME_ACCRUED_DISCOUNTS) @@ -74,115 +73,111 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_TOTAL_ORDERS = "totalOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS) - private Integer totalOrders; + private Long totalOrders; public static final String SERIALIZED_NAME_TOTAL_ORDERS_NO_COUPON = "totalOrdersNoCoupon"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS_NO_COUPON) - private Integer totalOrdersNoCoupon; + private Long totalOrdersNoCoupon; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) private String campaignName; - public CustomerActivityReport integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public CustomerActivityReport created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public CustomerActivityReport name(String name) { - + this.name = name; return this; } - /** + /** * The name for this customer profile. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name for this customer profile.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public CustomerActivityReport customerId(Long customerId) { - public CustomerActivityReport customerId(Integer customerId) { - this.customerId = customerId; return this; } - /** + /** * The internal Talon.One ID of the customer. + * * @return customerId - **/ + **/ @ApiModelProperty(required = true, value = "The internal Talon.One ID of the customer.") - public Integer getCustomerId() { + public Long getCustomerId() { return customerId; } - - public void setCustomerId(Integer customerId) { + public void setCustomerId(Long customerId) { this.customerId = customerId; } - public CustomerActivityReport lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** + /** * The last activity of the customer. + * * @return lastActivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The last activity of the customer.") @@ -190,188 +185,178 @@ public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } + public CustomerActivityReport couponRedemptions(Long couponRedemptions) { - public CustomerActivityReport couponRedemptions(Integer couponRedemptions) { - this.couponRedemptions = couponRedemptions; return this; } - /** + /** * Number of coupon redemptions in all customer campaigns. + * * @return couponRedemptions - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in all customer campaigns.") - public Integer getCouponRedemptions() { + public Long getCouponRedemptions() { return couponRedemptions; } - - public void setCouponRedemptions(Integer couponRedemptions) { + public void setCouponRedemptions(Long couponRedemptions) { this.couponRedemptions = couponRedemptions; } + public CustomerActivityReport couponUseAttempts(Long couponUseAttempts) { - public CustomerActivityReport couponUseAttempts(Integer couponUseAttempts) { - this.couponUseAttempts = couponUseAttempts; return this; } - /** + /** * Number of coupon use attempts in all customer campaigns. + * * @return couponUseAttempts - **/ + **/ @ApiModelProperty(required = true, value = "Number of coupon use attempts in all customer campaigns.") - public Integer getCouponUseAttempts() { + public Long getCouponUseAttempts() { return couponUseAttempts; } - - public void setCouponUseAttempts(Integer couponUseAttempts) { + public void setCouponUseAttempts(Long couponUseAttempts) { this.couponUseAttempts = couponUseAttempts; } + public CustomerActivityReport couponFailedAttempts(Long couponFailedAttempts) { - public CustomerActivityReport couponFailedAttempts(Integer couponFailedAttempts) { - this.couponFailedAttempts = couponFailedAttempts; return this; } - /** + /** * Number of failed coupon use attempts in all customer campaigns. + * * @return couponFailedAttempts - **/ + **/ @ApiModelProperty(required = true, value = "Number of failed coupon use attempts in all customer campaigns.") - public Integer getCouponFailedAttempts() { + public Long getCouponFailedAttempts() { return couponFailedAttempts; } - - public void setCouponFailedAttempts(Integer couponFailedAttempts) { + public void setCouponFailedAttempts(Long couponFailedAttempts) { this.couponFailedAttempts = couponFailedAttempts; } - public CustomerActivityReport accruedDiscounts(BigDecimal accruedDiscounts) { - + this.accruedDiscounts = accruedDiscounts; return this; } - /** + /** * Number of accrued discounts in all customer campaigns. + * * @return accruedDiscounts - **/ + **/ @ApiModelProperty(required = true, value = "Number of accrued discounts in all customer campaigns.") public BigDecimal getAccruedDiscounts() { return accruedDiscounts; } - public void setAccruedDiscounts(BigDecimal accruedDiscounts) { this.accruedDiscounts = accruedDiscounts; } - public CustomerActivityReport accruedRevenue(BigDecimal accruedRevenue) { - + this.accruedRevenue = accruedRevenue; return this; } - /** + /** * Amount of accrued revenue in all customer campaigns. + * * @return accruedRevenue - **/ + **/ @ApiModelProperty(required = true, value = "Amount of accrued revenue in all customer campaigns.") public BigDecimal getAccruedRevenue() { return accruedRevenue; } - public void setAccruedRevenue(BigDecimal accruedRevenue) { this.accruedRevenue = accruedRevenue; } + public CustomerActivityReport totalOrders(Long totalOrders) { - public CustomerActivityReport totalOrders(Integer totalOrders) { - this.totalOrders = totalOrders; return this; } - /** + /** * Number of orders in all customer campaigns. + * * @return totalOrders - **/ + **/ @ApiModelProperty(required = true, value = "Number of orders in all customer campaigns.") - public Integer getTotalOrders() { + public Long getTotalOrders() { return totalOrders; } - - public void setTotalOrders(Integer totalOrders) { + public void setTotalOrders(Long totalOrders) { this.totalOrders = totalOrders; } + public CustomerActivityReport totalOrdersNoCoupon(Long totalOrdersNoCoupon) { - public CustomerActivityReport totalOrdersNoCoupon(Integer totalOrdersNoCoupon) { - this.totalOrdersNoCoupon = totalOrdersNoCoupon; return this; } - /** + /** * Number of orders without coupon used in all customer campaigns. + * * @return totalOrdersNoCoupon - **/ + **/ @ApiModelProperty(required = true, value = "Number of orders without coupon used in all customer campaigns.") - public Integer getTotalOrdersNoCoupon() { + public Long getTotalOrdersNoCoupon() { return totalOrdersNoCoupon; } - - public void setTotalOrdersNoCoupon(Integer totalOrdersNoCoupon) { + public void setTotalOrdersNoCoupon(Long totalOrdersNoCoupon) { this.totalOrdersNoCoupon = totalOrdersNoCoupon; } - public CustomerActivityReport campaignName(String campaignName) { - + this.campaignName = campaignName; return this; } - /** + /** * The name of the campaign this customer belongs to. + * * @return campaignName - **/ + **/ @ApiModelProperty(required = true, value = "The name of the campaign this customer belongs to.") public String getCampaignName() { return campaignName; } - public void setCampaignName(String campaignName) { this.campaignName = campaignName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -398,10 +383,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(integrationId, created, name, customerId, lastActivity, couponRedemptions, couponUseAttempts, couponFailedAttempts, accruedDiscounts, accruedRevenue, totalOrders, totalOrdersNoCoupon, campaignName); + return Objects.hash(integrationId, created, name, customerId, lastActivity, couponRedemptions, couponUseAttempts, + couponFailedAttempts, accruedDiscounts, accruedRevenue, totalOrders, totalOrdersNoCoupon, campaignName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -435,4 +420,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerAnalytics.java b/src/main/java/one/talon/model/CustomerAnalytics.java index 9aa11399..8fa6ebf3 100644 --- a/src/main/java/one/talon/model/CustomerAnalytics.java +++ b/src/main/java/one/talon/model/CustomerAnalytics.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,23 +32,23 @@ public class CustomerAnalytics { public static final String SERIALIZED_NAME_ACCEPTED_COUPONS = "acceptedCoupons"; @SerializedName(SERIALIZED_NAME_ACCEPTED_COUPONS) - private Integer acceptedCoupons; + private Long acceptedCoupons; public static final String SERIALIZED_NAME_CREATED_COUPONS = "createdCoupons"; @SerializedName(SERIALIZED_NAME_CREATED_COUPONS) - private Integer createdCoupons; + private Long createdCoupons; public static final String SERIALIZED_NAME_FREE_ITEMS = "freeItems"; @SerializedName(SERIALIZED_NAME_FREE_ITEMS) - private Integer freeItems; + private Long freeItems; public static final String SERIALIZED_NAME_TOTAL_ORDERS = "totalOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS) - private Integer totalOrders; + private Long totalOrders; public static final String SERIALIZED_NAME_TOTAL_DISCOUNTED_ORDERS = "totalDiscountedOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_DISCOUNTED_ORDERS) - private Integer totalDiscountedOrders; + private Long totalDiscountedOrders; public static final String SERIALIZED_NAME_TOTAL_REVENUE = "totalRevenue"; @SerializedName(SERIALIZED_NAME_TOTAL_REVENUE) @@ -59,161 +58,153 @@ public class CustomerAnalytics { @SerializedName(SERIALIZED_NAME_TOTAL_DISCOUNTS) private BigDecimal totalDiscounts; + public CustomerAnalytics acceptedCoupons(Long acceptedCoupons) { - public CustomerAnalytics acceptedCoupons(Integer acceptedCoupons) { - this.acceptedCoupons = acceptedCoupons; return this; } - /** + /** * Total accepted coupons for this customer. + * * @return acceptedCoupons - **/ + **/ @ApiModelProperty(required = true, value = "Total accepted coupons for this customer.") - public Integer getAcceptedCoupons() { + public Long getAcceptedCoupons() { return acceptedCoupons; } - - public void setAcceptedCoupons(Integer acceptedCoupons) { + public void setAcceptedCoupons(Long acceptedCoupons) { this.acceptedCoupons = acceptedCoupons; } + public CustomerAnalytics createdCoupons(Long createdCoupons) { - public CustomerAnalytics createdCoupons(Integer createdCoupons) { - this.createdCoupons = createdCoupons; return this; } - /** + /** * Total created coupons for this customer. + * * @return createdCoupons - **/ + **/ @ApiModelProperty(required = true, value = "Total created coupons for this customer.") - public Integer getCreatedCoupons() { + public Long getCreatedCoupons() { return createdCoupons; } - - public void setCreatedCoupons(Integer createdCoupons) { + public void setCreatedCoupons(Long createdCoupons) { this.createdCoupons = createdCoupons; } + public CustomerAnalytics freeItems(Long freeItems) { - public CustomerAnalytics freeItems(Integer freeItems) { - this.freeItems = freeItems; return this; } - /** + /** * Total free items given to this customer. + * * @return freeItems - **/ + **/ @ApiModelProperty(required = true, value = "Total free items given to this customer.") - public Integer getFreeItems() { + public Long getFreeItems() { return freeItems; } - - public void setFreeItems(Integer freeItems) { + public void setFreeItems(Long freeItems) { this.freeItems = freeItems; } + public CustomerAnalytics totalOrders(Long totalOrders) { - public CustomerAnalytics totalOrders(Integer totalOrders) { - this.totalOrders = totalOrders; return this; } - /** + /** * Total orders made by this customer. + * * @return totalOrders - **/ + **/ @ApiModelProperty(required = true, value = "Total orders made by this customer.") - public Integer getTotalOrders() { + public Long getTotalOrders() { return totalOrders; } - - public void setTotalOrders(Integer totalOrders) { + public void setTotalOrders(Long totalOrders) { this.totalOrders = totalOrders; } + public CustomerAnalytics totalDiscountedOrders(Long totalDiscountedOrders) { - public CustomerAnalytics totalDiscountedOrders(Integer totalDiscountedOrders) { - this.totalDiscountedOrders = totalDiscountedOrders; return this; } - /** + /** * Total orders made by this customer that had a discount. + * * @return totalDiscountedOrders - **/ + **/ @ApiModelProperty(required = true, value = "Total orders made by this customer that had a discount.") - public Integer getTotalDiscountedOrders() { + public Long getTotalDiscountedOrders() { return totalDiscountedOrders; } - - public void setTotalDiscountedOrders(Integer totalDiscountedOrders) { + public void setTotalDiscountedOrders(Long totalDiscountedOrders) { this.totalDiscountedOrders = totalDiscountedOrders; } - public CustomerAnalytics totalRevenue(BigDecimal totalRevenue) { - + this.totalRevenue = totalRevenue; return this; } - /** + /** * Total Revenue across all closed sessions. + * * @return totalRevenue - **/ + **/ @ApiModelProperty(required = true, value = "Total Revenue across all closed sessions.") public BigDecimal getTotalRevenue() { return totalRevenue; } - public void setTotalRevenue(BigDecimal totalRevenue) { this.totalRevenue = totalRevenue; } - public CustomerAnalytics totalDiscounts(BigDecimal totalDiscounts) { - + this.totalDiscounts = totalDiscounts; return this; } - /** + /** * The sum of discounts that were given across all closed sessions. + * * @return totalDiscounts - **/ + **/ @ApiModelProperty(required = true, value = "The sum of discounts that were given across all closed sessions.") public BigDecimal getTotalDiscounts() { return totalDiscounts; } - public void setTotalDiscounts(BigDecimal totalDiscounts) { this.totalDiscounts = totalDiscounts; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -234,10 +225,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(acceptedCoupons, createdCoupons, freeItems, totalOrders, totalDiscountedOrders, totalRevenue, totalDiscounts); + return Objects.hash(acceptedCoupons, createdCoupons, freeItems, totalOrders, totalDiscountedOrders, totalRevenue, + totalDiscounts); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -265,4 +256,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerProfile.java b/src/main/java/one/talon/model/CustomerProfile.java index d76f8daa..301634a0 100644 --- a/src/main/java/one/talon/model/CustomerProfile.java +++ b/src/main/java/one/talon/model/CustomerProfile.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class CustomerProfile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +52,11 @@ public class CustomerProfile { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Integer closedSessions; + private Long closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -79,163 +78,158 @@ public class CustomerProfile { @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; + public CustomerProfile id(Long id) { - public CustomerProfile id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CustomerProfile created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public CustomerProfile integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public CustomerProfile attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @ApiModelProperty(example = "{\"Language\":\"english\",\"ShippingCountry\":\"DE\"}", required = true, value = "Arbitrary properties associated with this item.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public CustomerProfile accountId(Long accountId) { - public CustomerProfile accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the Talon.One account that owns this profile. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public CustomerProfile closedSessions(Long closedSessions) { - public CustomerProfile closedSessions(Integer closedSessions) { - this.closedSessions = closedSessions; return this; } - /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + /** + * The total amount of closed sessions by a customer. A closed session is a + * successful purchase. + * * @return closedSessions - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") - public Integer getClosedSessions() { + public Long getClosedSessions() { return closedSessions; } - - public void setClosedSessions(Integer closedSessions) { + public void setClosedSessions(Long closedSessions) { this.closedSessions = closedSessions; } - public CustomerProfile totalSales(BigDecimal totalSales) { - + this.totalSales = totalSales; return this; } - /** - * The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. + /** + * The total amount of money spent by the customer **before** discounts are + * applied. The total sales amount excludes the following: - Cancelled or + * reopened sessions. - Returned items. + * * @return totalSales - **/ + **/ @ApiModelProperty(example = "299.99", required = true, value = "The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. ") public BigDecimal getTotalSales() { return totalSales; } - public void setTotalSales(BigDecimal totalSales) { this.totalSales = totalSales; } - public CustomerProfile loyaltyMemberships(List loyaltyMemberships) { - + this.loyaltyMemberships = loyaltyMemberships; return this; } @@ -248,10 +242,11 @@ public CustomerProfile addLoyaltyMembershipsItem(LoyaltyMembership loyaltyMember return this; } - /** - * **DEPRECATED** A list of loyalty programs joined by the customer. + /** + * **DEPRECATED** A list of loyalty programs joined by the customer. + * * @return loyaltyMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "**DEPRECATED** A list of loyalty programs joined by the customer. ") @@ -259,14 +254,12 @@ public List getLoyaltyMemberships() { return loyaltyMemberships; } - public void setLoyaltyMemberships(List loyaltyMemberships) { this.loyaltyMemberships = loyaltyMemberships; } - public CustomerProfile audienceMemberships(List audienceMemberships) { - + this.audienceMemberships = audienceMemberships; return this; } @@ -279,10 +272,11 @@ public CustomerProfile addAudienceMembershipsItem(AudienceMembership audienceMem return this; } - /** + /** * The audiences the customer belongs to. + * * @return audienceMemberships - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The audiences the customer belongs to.") @@ -290,44 +284,49 @@ public List getAudienceMemberships() { return audienceMemberships; } - public void setAudienceMemberships(List audienceMemberships) { this.audienceMemberships = audienceMemberships; } - public CustomerProfile lastActivity(OffsetDateTime lastActivity) { - + this.lastActivity = lastActivity; return this; } - /** - * Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. + /** + * Timestamp of the most recent event received from this customer. This field is + * updated on calls that trigger the Rule Engine and that are not [dry + * requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). + * For example, [reserving a + * coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) + * for a customer doesn't impact this field. + * * @return lastActivity - **/ + **/ @ApiModelProperty(example = "2020-02-08T14:15:20Z", required = true, value = "Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. ") public OffsetDateTime getLastActivity() { return lastActivity; } - public void setLastActivity(OffsetDateTime lastActivity) { this.lastActivity = lastActivity; } - public CustomerProfile sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + /** + * An indicator of whether the customer is part of a sandbox or live + * Application. See the + * [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). ") @@ -335,12 +334,10 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -365,10 +362,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, loyaltyMemberships, audienceMemberships, lastActivity, sandbox); + return Objects.hash(id, created, integrationId, attributes, accountId, closedSessions, totalSales, + loyaltyMemberships, audienceMemberships, lastActivity, sandbox); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -400,4 +397,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java index 7db07c3c..c5e29c53 100644 --- a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java +++ b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -30,12 +29,16 @@ public class CustomerProfileAudienceRequestItem { /** - * Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. + * Defines the action to perform: - `add`: Adds the customer profile + * to the audience. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `delete`: Removes + * the customer profile from the audience. */ @JsonAdapter(ActionEnum.Adapter.class) public enum ActionEnum { ADD("add"), - + DELETE("delete"); private String value; @@ -70,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final ActionEnum enumeration) thr @Override public ActionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ActionEnum.fromValue(value); } } @@ -86,75 +89,76 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Integer audienceId; - + private Long audienceId; public CustomerProfileAudienceRequestItem action(ActionEnum action) { - + this.action = action; return this; } - /** - * Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. + /** + * Defines the action to perform: - `add`: Adds the customer profile + * to the audience. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `delete`: Removes + * the customer profile from the audience. + * * @return action - **/ + **/ @ApiModelProperty(example = "add", required = true, value = "Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. ") public ActionEnum getAction() { return action; } - public void setAction(ActionEnum action) { this.action = action; } - public CustomerProfileAudienceRequestItem profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** + /** * The ID of this customer profile in the third-party integration. + * * @return profileIntegrationId - **/ + **/ @ApiModelProperty(example = "R195412", required = true, value = "The ID of this customer profile in the third-party integration.") public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public CustomerProfileAudienceRequestItem audienceId(Long audienceId) { - public CustomerProfileAudienceRequestItem audienceId(Integer audienceId) { - this.audienceId = audienceId; return this; } - /** - * The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). + /** + * The ID of the audience. You get it via the `id` property when + * [creating an audience](#operation/createAudienceV2). + * * @return audienceId - **/ + **/ @ApiModelProperty(example = "748", required = true, value = "The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2).") - public Integer getAudienceId() { + public Long getAudienceId() { return audienceId; } - - public void setAudienceId(Integer audienceId) { + public void setAudienceId(Long audienceId) { this.audienceId = audienceId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,7 +178,6 @@ public int hashCode() { return Objects.hash(action, profileIntegrationId, audienceId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -198,4 +201,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java b/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java index 9856c651..7bc39db8 100644 --- a/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java +++ b/src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,13 +37,13 @@ public class CustomerProfileIntegrationRequestV2 { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - /*allow Serializing null for this field */ - @JsonNullable + /* allow Serializing null for this field */ + @JsonNullable private Object attributes; public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_AUDIENCES_CHANGES = "audiencesChanges"; @SerializedName(SERIALIZED_NAME_AUDIENCES_CHANGES) @@ -56,15 +55,15 @@ public class CustomerProfileIntegrationRequestV2 { @JsonAdapter(ResponseContentEnum.Adapter.class) public enum ResponseContentEnum { CUSTOMERPROFILE("customerProfile"), - + TRIGGEREDCAMPAIGNS("triggeredCampaigns"), - + LOYALTY("loyalty"), - + EVENT("event"), - + AWARDEDGIVEAWAYS("awardedGiveaways"), - + RULEFAILUREREASONS("ruleFailureReasons"); private String value; @@ -99,7 +98,7 @@ public void write(final JsonWriter jsonWriter, final ResponseContentEnum enumera @Override public ResponseContentEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ResponseContentEnum.fromValue(value); } } @@ -109,17 +108,17 @@ public ResponseContentEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_RESPONSE_CONTENT) private List responseContent = null; - public CustomerProfileIntegrationRequestV2 attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"Language\":\"english\",\"ShippingCountry\":\"DE\"}", value = "Arbitrary properties associated with this item.") @@ -127,53 +126,54 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public CustomerProfileIntegrationRequestV2 evaluableCampaignIds(List evaluableCampaignIds) { - public CustomerProfileIntegrationRequestV2 evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public CustomerProfileIntegrationRequestV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public CustomerProfileIntegrationRequestV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - public CustomerProfileIntegrationRequestV2 audiencesChanges(ProfileAudiencesChanges audiencesChanges) { - + this.audiencesChanges = audiencesChanges; return this; } - /** + /** * Get audiencesChanges + * * @return audiencesChanges - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -181,14 +181,12 @@ public ProfileAudiencesChanges getAudiencesChanges() { return audiencesChanges; } - public void setAudiencesChanges(ProfileAudiencesChanges audiencesChanges) { this.audiencesChanges = audiencesChanges; } - public CustomerProfileIntegrationRequestV2 responseContent(List responseContent) { - + this.responseContent = responseContent; return this; } @@ -201,10 +199,13 @@ public CustomerProfileIntegrationRequestV2 addResponseContentItem(ResponseConten return this; } - /** - * Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. + /** + * Extends the response with the chosen data entities. Use this property to get + * as much data as you need in one _Update customer profile_ request instead of + * sending extra requests to other endpoints. + * * @return responseContent - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. ") @@ -212,12 +213,10 @@ public List getResponseContent() { return responseContent; } - public void setResponseContent(List responseContent) { this.responseContent = responseContent; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -238,7 +237,6 @@ public int hashCode() { return Objects.hash(attributes, evaluableCampaignIds, audiencesChanges, responseContent); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -263,4 +261,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerProfileSearchQuery.java b/src/main/java/one/talon/model/CustomerProfileSearchQuery.java index a68a18cf..054d924c 100644 --- a/src/main/java/one/talon/model/CustomerProfileSearchQuery.java +++ b/src/main/java/one/talon/model/CustomerProfileSearchQuery.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,19 +40,20 @@ public class CustomerProfileSearchQuery { public static final String SERIALIZED_NAME_PROFILE_I_DS = "profileIDs"; @SerializedName(SERIALIZED_NAME_PROFILE_I_DS) - private List profileIDs = null; - + private List profileIDs = null; public CustomerProfileSearchQuery attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Properties to match against a customer profile. All provided attributes will be exactly matched against profile attributes. + /** + * Properties to match against a customer profile. All provided attributes will + * be exactly matched against profile attributes. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Properties to match against a customer profile. All provided attributes will be exactly matched against profile attributes.") @@ -61,14 +61,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CustomerProfileSearchQuery integrationIDs(List integrationIDs) { - + this.integrationIDs = integrationIDs; return this; } @@ -81,10 +79,11 @@ public CustomerProfileSearchQuery addIntegrationIDsItem(String integrationIDsIte return this; } - /** + /** * Get integrationIDs + * * @return integrationIDs - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -92,43 +91,40 @@ public List getIntegrationIDs() { return integrationIDs; } - public void setIntegrationIDs(List integrationIDs) { this.integrationIDs = integrationIDs; } + public CustomerProfileSearchQuery profileIDs(List profileIDs) { - public CustomerProfileSearchQuery profileIDs(List profileIDs) { - this.profileIDs = profileIDs; return this; } - public CustomerProfileSearchQuery addProfileIDsItem(Integer profileIDsItem) { + public CustomerProfileSearchQuery addProfileIDsItem(Long profileIDsItem) { if (this.profileIDs == null) { - this.profileIDs = new ArrayList(); + this.profileIDs = new ArrayList(); } this.profileIDs.add(profileIDsItem); return this; } - /** + /** * Get profileIDs + * * @return profileIDs - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public List getProfileIDs() { + public List getProfileIDs() { return profileIDs; } - - public void setProfileIDs(List profileIDs) { + public void setProfileIDs(List profileIDs) { this.profileIDs = profileIDs; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,7 +144,6 @@ public int hashCode() { return Objects.hash(attributes, integrationIDs, profileIDs); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -172,4 +167,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerSession.java b/src/main/java/one/talon/model/CustomerSession.java index 4167bcd4..82caad6d 100644 --- a/src/main/java/one/talon/model/CustomerSession.java +++ b/src/main/java/one/talon/model/CustomerSession.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,7 +45,7 @@ public class CustomerSession { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -61,16 +60,22 @@ public class CustomerSession { private String referral; /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. `closed` → `cancelled` or + * `partially_returned` 4. `partially_returned` → + * `cancelled` For more information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { OPEN("open"), - + CLOSED("closed"), - + PARTIALLY_RETURNED("partially_returned"), - + CANCELLED("cancelled"); private String value; @@ -105,7 +110,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -143,163 +148,163 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_UPDATED) private OffsetDateTime updated; - public CustomerSession integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public CustomerSession created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public CustomerSession applicationId(Long applicationId) { - public CustomerSession applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public CustomerSession profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public CustomerSession coupon(String coupon) { - + this.coupon = coupon; return this; } - /** + /** * Any coupon code entered. + * * @return coupon - **/ + **/ @ApiModelProperty(example = "XMAS-2021", required = true, value = "Any coupon code entered.") public String getCoupon() { return coupon; } - public void setCoupon(String coupon) { this.coupon = coupon; } - public CustomerSession referral(String referral) { - + this.referral = referral; return this; } - /** + /** * Any referral code entered. + * * @return referral - **/ + **/ @ApiModelProperty(example = "2740-tbjua-6720", required = true, value = "Any referral code entered.") public String getReferral() { return referral; } - public void setReferral(String referral) { this.referral = referral; } - public CustomerSession state(StateEnum state) { - + this.state = state; return this; } - /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + /** + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. `closed` → `cancelled` or + * `partially_returned` 4. `partially_returned` → + * `cancelled` For more information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * * @return state - **/ + **/ @ApiModelProperty(example = "open", required = true, value = "Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public CustomerSession cartItems(List cartItems) { - + this.cartItems = cartItems; return this; } @@ -309,24 +314,23 @@ public CustomerSession addCartItemsItem(CartItem cartItemsItem) { return this; } - /** + /** * Serialized JSON representation. + * * @return cartItems - **/ + **/ @ApiModelProperty(required = true, value = "Serialized JSON representation.") public List getCartItems() { return cartItems; } - public void setCartItems(List cartItems) { this.cartItems = cartItems; } - public CustomerSession identifiers(List identifiers) { - + this.identifiers = identifiers; return this; } @@ -339,10 +343,15 @@ public CustomerSession addIdentifiersItem(String identifiersItem) { return this; } - /** - * Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). + /** + * Session custom identifiers that you can set limits on or use inside your + * rules. For example, you can use IP addresses as identifiers to potentially + * identify devices and limit discounts abuse in case of customers creating + * multiple accounts. See the + * [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). + * * @return identifiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[91.11.156.141]", value = "Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). ") @@ -350,80 +359,77 @@ public List getIdentifiers() { return identifiers; } - public void setIdentifiers(List identifiers) { this.identifiers = identifiers; } - public CustomerSession total(BigDecimal total) { - + this.total = total; return this; } - /** + /** * The total sum of the cart in one session. + * * @return total - **/ + **/ @ApiModelProperty(required = true, value = "The total sum of the cart in one session.") public BigDecimal getTotal() { return total; } - public void setTotal(BigDecimal total) { this.total = total; } - public CustomerSession attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * A key-value map of the sessions attributes. The potentially valid attributes are configured in your accounts developer settings. + /** + * A key-value map of the sessions attributes. The potentially valid attributes + * are configured in your accounts developer settings. + * * @return attributes - **/ + **/ @ApiModelProperty(required = true, value = "A key-value map of the sessions attributes. The potentially valid attributes are configured in your accounts developer settings. ") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CustomerSession firstSession(Boolean firstSession) { - + this.firstSession = firstSession; return this; } - /** - * Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions. + /** + * Indicates whether this is the first session for the customer's profile. + * Will always be true for anonymous sessions. + * * @return firstSession - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions.") public Boolean getFirstSession() { return firstSession; } - public void setFirstSession(Boolean firstSession) { this.firstSession = firstSession; } - public CustomerSession discounts(Map discounts) { - + this.discounts = discounts; return this; } @@ -433,44 +439,43 @@ public CustomerSession putDiscountsItem(String key, BigDecimal discountsItem) { return this; } - /** - * A map of labelled discount values, values will be in the same currency as the application associated with the session. + /** + * A map of labelled discount values, values will be in the same currency as the + * application associated with the session. + * * @return discounts - **/ + **/ @ApiModelProperty(required = true, value = "A map of labelled discount values, values will be in the same currency as the application associated with the session.") public Map getDiscounts() { return discounts; } - public void setDiscounts(Map discounts) { this.discounts = discounts; } - public CustomerSession updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** + /** * Timestamp of the most recent event received on this session. + * * @return updated - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "Timestamp of the most recent event received on this session.") public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -498,10 +503,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(integrationId, created, applicationId, profileId, coupon, referral, state, cartItems, identifiers, total, attributes, firstSession, discounts, updated); + return Objects.hash(integrationId, created, applicationId, profileId, coupon, referral, state, cartItems, + identifiers, total, attributes, firstSession, discounts, updated); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -536,4 +541,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/CustomerSessionV2.java b/src/main/java/one/talon/model/CustomerSessionV2.java index da6eb135..0427e731 100644 --- a/src/main/java/one/talon/model/CustomerSessionV2.java +++ b/src/main/java/one/talon/model/CustomerSessionV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -40,7 +39,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -52,7 +51,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -64,7 +63,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_COUPON_CODES = "couponCodes"; @SerializedName(SERIALIZED_NAME_COUPON_CODES) @@ -79,16 +78,29 @@ public class CustomerSessionV2 { private List loyaltyCards = null; /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. Either: - `closed` → `cancelled` + * (**only** via [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) + * or - `closed` → `partially_returned` (**only** via + * [Return cart + * items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) + * - `closed` → `open` (**only** via [Reopen customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) + * 4. `partially_returned` → `cancelled` For more + * information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { OPEN("open"), - + CLOSED("closed"), - + PARTIALLY_RETURNED("partially_returned"), - + CANCELLED("cancelled"); private String value; @@ -123,7 +135,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -169,127 +181,124 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_UPDATED) private OffsetDateTime updated; + public CustomerSessionV2 id(Long id) { - public CustomerSessionV2 id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public CustomerSessionV2 created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public CustomerSessionV2 integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The integration ID set by your integration layer. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID set by your integration layer.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } + public CustomerSessionV2 applicationId(Long applicationId) { - public CustomerSessionV2 applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public CustomerSessionV2 profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public CustomerSessionV2 storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -297,45 +306,45 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public CustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { - public CustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public CustomerSessionV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public CustomerSessionV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - public CustomerSessionV2 couponCodes(List couponCodes) { - + this.couponCodes = couponCodes; return this; } @@ -348,10 +357,17 @@ public CustomerSessionV2 addCouponCodesItem(String couponCodesItem) { return this; } - /** - * Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. + /** + * Any coupon codes entered. **Important - for requests only**: - If you [create + * a coupon + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign, ensure the session contains a coupon code by the time you + * close it. - In requests where `dry=false`, providing an empty + * array discards any previous coupons. To avoid this, omit the parameter + * entirely. + * * @return couponCodes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[XMAS-20-2021]", value = "Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. ") @@ -359,22 +375,27 @@ public List getCouponCodes() { return couponCodes; } - public void setCouponCodes(List couponCodes) { this.couponCodes = couponCodes; } - public CustomerSessionV2 referralCode(String referralCode) { - + this.referralCode = referralCode; return this; } - /** - * Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. + /** + * Any referral code entered. **Important - for requests only**: - If you + * [create a referral + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign, ensure the session contains a referral code by the time + * you close it. - In requests where `dry=false`, providing an + * empty value discards the previous referral code. To avoid this, omit the + * parameter entirely. + * * @return referralCode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "NT2K54D9", value = "Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. ") @@ -382,14 +403,12 @@ public String getReferralCode() { return referralCode; } - public void setReferralCode(String referralCode) { this.referralCode = referralCode; } - public CustomerSessionV2 loyaltyCards(List loyaltyCards) { - + this.loyaltyCards = loyaltyCards; return this; } @@ -402,10 +421,11 @@ public CustomerSessionV2 addLoyaltyCardsItem(String loyaltyCardsItem) { return this; } - /** + /** * Identifier of a loyalty card. + * * @return loyaltyCards - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of a loyalty card.") @@ -413,36 +433,46 @@ public List getLoyaltyCards() { return loyaltyCards; } - public void setLoyaltyCards(List loyaltyCards) { this.loyaltyCards = loyaltyCards; } - public CustomerSessionV2 state(StateEnum state) { - + this.state = state; return this; } - /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + /** + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. Either: - `closed` → `cancelled` + * (**only** via [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) + * or - `closed` → `partially_returned` (**only** via + * [Return cart + * items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) + * - `closed` → `open` (**only** via [Reopen customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) + * 4. `partially_returned` → `cancelled` For more + * information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * * @return state - **/ + **/ @ApiModelProperty(example = "open", required = true, value = "Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public CustomerSessionV2 cartItems(List cartItems) { - + this.cartItems = cartItems; return this; } @@ -452,24 +482,25 @@ public CustomerSessionV2 addCartItemsItem(CartItem cartItemsItem) { return this; } - /** - * The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. + /** + * The items to add to this session. **Do not exceed 1000 items** and ensure the + * sum of all cart item's `quantity` **does not exceed 10.000** + * per request. + * * @return cartItems - **/ + **/ @ApiModelProperty(required = true, value = "The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. ") public List getCartItems() { return cartItems; } - public void setCartItems(List cartItems) { this.cartItems = cartItems; } - public CustomerSessionV2 additionalCosts(Map additionalCosts) { - + this.additionalCosts = additionalCosts; return this; } @@ -482,10 +513,14 @@ public CustomerSessionV2 putAdditionalCostsItem(String key, AdditionalCost addit return this; } - /** - * Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + /** + * Use this property to set a value for the additional costs of this session, + * such as a shipping cost. They must be created in the Campaign Manager before + * you set them with this property. See [Managing additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * * @return additionalCosts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"shipping\":{\"price\":9}}", value = "Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). ") @@ -493,14 +528,12 @@ public Map getAdditionalCosts() { return additionalCosts; } - public void setAdditionalCosts(Map additionalCosts) { this.additionalCosts = additionalCosts; } - public CustomerSessionV2 identifiers(List identifiers) { - + this.identifiers = identifiers; return this; } @@ -513,10 +546,22 @@ public CustomerSessionV2 addIdentifiersItem(String identifiersItem) { return this; } - /** - * Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). - We recommend passing an anonymized (hashed) version of the identifier value. + /** + * Session custom identifiers that you can set limits on or use inside your + * rules. For example, you can use IP addresses as identifiers to potentially + * identify devices and limit discounts abuse in case of customers creating + * multiple accounts. See the + * [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). + * **Important**: Ensure the session contains an identifier by the time you + * close it if: - You [create a unique identifier + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign. - Your campaign has + * [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). + * - We recommend passing an anonymized (hashed) version of the identifier + * value. + * * @return identifiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[d41306257915f83fe01e54092ae470f631161ea16fcf4415842eed41470386ea]", value = "Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). - We recommend passing an anonymized (hashed) version of the identifier value. ") @@ -524,144 +569,145 @@ public List getIdentifiers() { return identifiers; } - public void setIdentifiers(List identifiers) { this.identifiers = identifiers; } - public CustomerSessionV2 attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. + /** + * Use this property to set a value for the attributes of your choice. + * Attributes represent any information to attach to your session, like the + * shipping city. You can use [built-in + * attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) + * or [custom + * ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). + * Custom attributes must be created in the Campaign Manager before you set them + * with this property. + * * @return attributes - **/ + **/ @ApiModelProperty(example = "{\"ShippingCity\":\"Berlin\"}", required = true, value = "Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. ") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public CustomerSessionV2 firstSession(Boolean firstSession) { - + this.firstSession = firstSession; return this; } - /** - * Indicates whether this is the first session for the customer's profile. It's always `true` for anonymous sessions. + /** + * Indicates whether this is the first session for the customer's profile. + * It's always `true` for anonymous sessions. + * * @return firstSession - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates whether this is the first session for the customer's profile. It's always `true` for anonymous sessions.") public Boolean getFirstSession() { return firstSession; } - public void setFirstSession(Boolean firstSession) { this.firstSession = firstSession; } - public CustomerSessionV2 total(BigDecimal total) { - + this.total = total; return this; } - /** - * The total value of cart items and additional costs in the session, before any discounts are applied. + /** + * The total value of cart items and additional costs in the session, before any + * discounts are applied. + * * @return total - **/ + **/ @ApiModelProperty(example = "119.99", required = true, value = "The total value of cart items and additional costs in the session, before any discounts are applied.") public BigDecimal getTotal() { return total; } - public void setTotal(BigDecimal total) { this.total = total; } - public CustomerSessionV2 cartItemTotal(BigDecimal cartItemTotal) { - + this.cartItemTotal = cartItemTotal; return this; } - /** + /** * The total value of cart items, before any discounts are applied. + * * @return cartItemTotal - **/ + **/ @ApiModelProperty(example = "99.99", required = true, value = "The total value of cart items, before any discounts are applied.") public BigDecimal getCartItemTotal() { return cartItemTotal; } - public void setCartItemTotal(BigDecimal cartItemTotal) { this.cartItemTotal = cartItemTotal; } - public CustomerSessionV2 additionalCostTotal(BigDecimal additionalCostTotal) { - + this.additionalCostTotal = additionalCostTotal; return this; } - /** + /** * The total value of additional costs, before any discounts are applied. + * * @return additionalCostTotal - **/ + **/ @ApiModelProperty(example = "20.0", required = true, value = "The total value of additional costs, before any discounts are applied.") public BigDecimal getAdditionalCostTotal() { return additionalCostTotal; } - public void setAdditionalCostTotal(BigDecimal additionalCostTotal) { this.additionalCostTotal = additionalCostTotal; } - public CustomerSessionV2 updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** + /** * Timestamp of the most recent event received on this session. + * * @return updated - **/ + **/ @ApiModelProperty(example = "2020-02-08T14:15:22Z", required = true, value = "Timestamp of the most recent event received on this session.") public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -695,10 +741,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, integrationId, applicationId, profileId, storeIntegrationId, evaluableCampaignIds, couponCodes, referralCode, loyaltyCards, state, cartItems, additionalCosts, identifiers, attributes, firstSession, total, cartItemTotal, additionalCostTotal, updated); + return Objects.hash(id, created, integrationId, applicationId, profileId, storeIntegrationId, evaluableCampaignIds, + couponCodes, referralCode, loyaltyCards, state, cartItems, additionalCosts, identifiers, attributes, + firstSession, total, cartItemTotal, additionalCostTotal, updated); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -739,4 +786,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/DeductLoyaltyPoints.java b/src/main/java/one/talon/model/DeductLoyaltyPoints.java index 9accf9a7..d1808973 100644 --- a/src/main/java/one/talon/model/DeductLoyaltyPoints.java +++ b/src/main/java/one/talon/model/DeductLoyaltyPoints.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,43 +44,42 @@ public class DeductLoyaltyPoints { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; - + private Long applicationId; public DeductLoyaltyPoints points(BigDecimal points) { - + this.points = points; return this; } - /** + /** * Amount of loyalty points. * minimum: 0 * maximum: 999999999999.99 + * * @return points - **/ + **/ @ApiModelProperty(example = "300.0", required = true, value = "Amount of loyalty points.") public BigDecimal getPoints() { return points; } - public void setPoints(BigDecimal points) { this.points = points; } - public DeductLoyaltyPoints name(String name) { - + this.name = name; return this; } - /** + /** * Name / reason for the point deduction. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Penalty", value = "Name / reason for the point deduction.") @@ -89,22 +87,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public DeductLoyaltyPoints subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger the points are deducted from. + * * @return subledgerId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sub-123", value = "ID of the subledger the points are deducted from.") @@ -112,35 +109,32 @@ public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } + public DeductLoyaltyPoints applicationId(Long applicationId) { - public DeductLoyaltyPoints applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * ID of the Application that is connected to the loyalty program. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "ID of the Application that is connected to the loyalty program.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,7 +155,6 @@ public int hashCode() { return Objects.hash(points, name, subledgerId, applicationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -186,4 +179,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java index a8611258..30c4b62a 100644 --- a/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,10 @@ import java.math.BigDecimal; /** - * The properties specific to the \"deductLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained a condition to only trigger when the given number of loyalty points could be deduced. These points are automatically stored and managed inside Talon.One. + * The properties specific to the \"deductLoyaltyPoints\" effect. This + * gets triggered whenever a validated rule contained a condition to only + * trigger when the given number of loyalty points could be deduced. These + * points are automatically stored and managed inside Talon.One. */ @ApiModel(description = "The properties specific to the \"deductLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained a condition to only trigger when the given number of loyalty points could be deduced. These points are automatically stored and managed inside Talon.One.") @@ -37,7 +39,7 @@ public class DeductLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -59,149 +61,146 @@ public class DeductLoyaltyPointsEffectProps { @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) private String cardIdentifier; - public DeductLoyaltyPointsEffectProps ruleTitle(String ruleTitle) { - + this.ruleTitle = ruleTitle; return this; } - /** + /** * The title of the rule that contained triggered this points deduction. + * * @return ruleTitle - **/ + **/ @ApiModelProperty(required = true, value = "The title of the rule that contained triggered this points deduction.") public String getRuleTitle() { return ruleTitle; } - public void setRuleTitle(String ruleTitle) { this.ruleTitle = ruleTitle; } + public DeductLoyaltyPointsEffectProps programId(Long programId) { - public DeductLoyaltyPointsEffectProps programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * The ID of the loyalty program where these points were added. + * * @return programId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public DeductLoyaltyPointsEffectProps subLedgerId(String subLedgerId) { - + this.subLedgerId = subLedgerId; return this; } - /** - * The ID of the subledger within the loyalty program where these points were added. + /** + * The ID of the subledger within the loyalty program where these points were + * added. + * * @return subLedgerId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the subledger within the loyalty program where these points were added.") public String getSubLedgerId() { return subLedgerId; } - public void setSubLedgerId(String subLedgerId) { this.subLedgerId = subLedgerId; } - public DeductLoyaltyPointsEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The amount of points that were deducted. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The amount of points that were deducted.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public DeductLoyaltyPointsEffectProps transactionUUID(String transactionUUID) { - + this.transactionUUID = transactionUUID; return this; } - /** + /** * The identifier of this deduction in the loyalty ledger. + * * @return transactionUUID - **/ + **/ @ApiModelProperty(required = true, value = "The identifier of this deduction in the loyalty ledger.") public String getTransactionUUID() { return transactionUUID; } - public void setTransactionUUID(String transactionUUID) { this.transactionUUID = transactionUUID; } - public DeductLoyaltyPointsEffectProps name(String name) { - + this.name = name; return this; } - /** - * The name property gets one of the following two values. It can be the loyalty program name or it can represent a reason for the respective deduction of loyalty points. The latter is an optional value defined in a deduction rule. + /** + * The name property gets one of the following two values. It can be the loyalty + * program name or it can represent a reason for the respective deduction of + * loyalty points. The latter is an optional value defined in a deduction rule. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name property gets one of the following two values. It can be the loyalty program name or it can represent a reason for the respective deduction of loyalty points. The latter is an optional value defined in a deduction rule. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public DeductLoyaltyPointsEffectProps cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -209,12 +208,10 @@ public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -238,7 +235,6 @@ public int hashCode() { return Objects.hash(ruleTitle, programId, subLedgerId, value, transactionUUID, name, cardIdentifier); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -266,4 +262,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Effect.java b/src/main/java/one/talon/model/Effect.java index 00b1a918..e20efa01 100644 --- a/src/main/java/one/talon/model/Effect.java +++ b/src/main/java/one/talon/model/Effect.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,22 +24,23 @@ import java.io.IOException; /** - * A generic effect that is fired by a triggered campaign. The props property will contain information specific to the specific effect type. + * A generic effect that is fired by a triggered campaign. The props property + * will contain information specific to the specific effect type. */ @ApiModel(description = "A generic effect that is fired by a triggered campaign. The props property will contain information specific to the specific effect type.") public class Effect { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Integer ruleIndex; + private Long ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -52,19 +52,19 @@ public class Effect { public static final String SERIALIZED_NAME_TRIGGERED_BY_COUPON = "triggeredByCoupon"; @SerializedName(SERIALIZED_NAME_TRIGGERED_BY_COUPON) - private Integer triggeredByCoupon; + private Long triggeredByCoupon; public static final String SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM = "triggeredForCatalogItem"; @SerializedName(SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM) - private Integer triggeredForCatalogItem; + private Long triggeredForCatalogItem; public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Integer conditionIndex; + private Long conditionIndex; public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Integer evaluationGroupID; + private Long evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) @@ -72,229 +72,226 @@ public class Effect { public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_ID = "campaignRevisionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_ID) - private Integer campaignRevisionId; + private Long campaignRevisionId; public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID = "campaignRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID) - private Integer campaignRevisionVersionId; + private Long campaignRevisionVersionId; public static final String SERIALIZED_NAME_PROPS = "props"; @SerializedName(SERIALIZED_NAME_PROPS) private Object props; + public Effect campaignId(Long campaignId) { - public Effect campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that triggered this effect. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "244", required = true, value = "The ID of the campaign that triggered this effect.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public Effect rulesetId(Long rulesetId) { - public Effect rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** - * The ID of the ruleset that was active in the campaign when this effect was triggered. + /** + * The ID of the ruleset that was active in the campaign when this effect was + * triggered. + * * @return rulesetId - **/ + **/ @ApiModelProperty(example = "73", required = true, value = "The ID of the ruleset that was active in the campaign when this effect was triggered.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } + public Effect ruleIndex(Long ruleIndex) { - public Effect ruleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; return this; } - /** + /** * The position of the rule that triggered this effect within the ruleset. + * * @return ruleIndex - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Integer getRuleIndex() { + public Long getRuleIndex() { return ruleIndex; } - - public void setRuleIndex(Integer ruleIndex) { + public void setRuleIndex(Long ruleIndex) { this.ruleIndex = ruleIndex; } - public Effect ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that triggered this effect. + * * @return ruleName - **/ + **/ @ApiModelProperty(example = "Give 20% discount", required = true, value = "The name of the rule that triggered this effect.") public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public Effect effectType(String effectType) { - + this.effectType = effectType; return this; } - /** - * The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + /** + * The type of effect that was triggered. See [API + * effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * * @return effectType - **/ + **/ @ApiModelProperty(example = "rejectCoupon", required = true, value = "The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") public String getEffectType() { return effectType; } - public void setEffectType(String effectType) { this.effectType = effectType; } + public Effect triggeredByCoupon(Long triggeredByCoupon) { - public Effect triggeredByCoupon(Integer triggeredByCoupon) { - this.triggeredByCoupon = triggeredByCoupon; return this; } - /** + /** * The ID of the coupon that was being evaluated when this effect was triggered. + * * @return triggeredByCoupon - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated when this effect was triggered.") - public Integer getTriggeredByCoupon() { + public Long getTriggeredByCoupon() { return triggeredByCoupon; } - - public void setTriggeredByCoupon(Integer triggeredByCoupon) { + public void setTriggeredByCoupon(Long triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; } + public Effect triggeredForCatalogItem(Long triggeredForCatalogItem) { - public Effect triggeredForCatalogItem(Integer triggeredForCatalogItem) { - this.triggeredForCatalogItem = triggeredForCatalogItem; return this; } - /** - * The ID of the catalog item that was being evaluated when this effect was triggered. + /** + * The ID of the catalog item that was being evaluated when this effect was + * triggered. + * * @return triggeredForCatalogItem - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The ID of the catalog item that was being evaluated when this effect was triggered.") - public Integer getTriggeredForCatalogItem() { + public Long getTriggeredForCatalogItem() { return triggeredForCatalogItem; } - - public void setTriggeredForCatalogItem(Integer triggeredForCatalogItem) { + public void setTriggeredForCatalogItem(Long triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; } + public Effect conditionIndex(Long conditionIndex) { - public Effect conditionIndex(Integer conditionIndex) { - this.conditionIndex = conditionIndex; return this; } - /** + /** * The index of the condition that was triggered. + * * @return conditionIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The index of the condition that was triggered.") - public Integer getConditionIndex() { + public Long getConditionIndex() { return conditionIndex; } - - public void setConditionIndex(Integer conditionIndex) { + public void setConditionIndex(Long conditionIndex) { this.conditionIndex = conditionIndex; } + public Effect evaluationGroupID(Long evaluationGroupID) { - public Effect evaluationGroupID(Integer evaluationGroupID) { - this.evaluationGroupID = evaluationGroupID; return this; } - /** - * The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + /** + * The ID of the evaluation group. For more information, see [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + * * @return evaluationGroupID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Integer getEvaluationGroupID() { + public Long getEvaluationGroupID() { return evaluationGroupID; } - - public void setEvaluationGroupID(Integer evaluationGroupID) { + public void setEvaluationGroupID(Long evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } - public Effect evaluationGroupMode(String evaluationGroupMode) { - + this.evaluationGroupMode = evaluationGroupMode; return this; } - /** - * The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + /** + * The evaluation mode of the evaluation group. For more information, see + * [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + * * @return evaluationGroupMode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "stackable", value = "The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") @@ -302,80 +299,77 @@ public String getEvaluationGroupMode() { return evaluationGroupMode; } - public void setEvaluationGroupMode(String evaluationGroupMode) { this.evaluationGroupMode = evaluationGroupMode; } + public Effect campaignRevisionId(Long campaignRevisionId) { - public Effect campaignRevisionId(Integer campaignRevisionId) { - this.campaignRevisionId = campaignRevisionId; return this; } - /** + /** * The revision ID of the campaign that was used when triggering the effect. + * * @return campaignRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The revision ID of the campaign that was used when triggering the effect.") - public Integer getCampaignRevisionId() { + public Long getCampaignRevisionId() { return campaignRevisionId; } - - public void setCampaignRevisionId(Integer campaignRevisionId) { + public void setCampaignRevisionId(Long campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; } + public Effect campaignRevisionVersionId(Long campaignRevisionVersionId) { - public Effect campaignRevisionVersionId(Integer campaignRevisionVersionId) { - this.campaignRevisionVersionId = campaignRevisionVersionId; return this; } - /** - * The revision version ID of the campaign that was used when triggering the effect. + /** + * The revision version ID of the campaign that was used when triggering the + * effect. + * * @return campaignRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The revision version ID of the campaign that was used when triggering the effect.") - public Integer getCampaignRevisionVersionId() { + public Long getCampaignRevisionVersionId() { return campaignRevisionVersionId; } - - public void setCampaignRevisionVersionId(Integer campaignRevisionVersionId) { + public void setCampaignRevisionVersionId(Long campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; } - public Effect props(Object props) { - + this.props = props; return this; } - /** - * The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + /** + * The properties of the effect. See [API + * effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * * @return props - **/ + **/ @ApiModelProperty(required = true, value = "The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") public Object getProps() { return props; } - public void setProps(Object props) { this.props = props; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -402,10 +396,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId, props); + return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, + triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, + campaignRevisionVersionId, props); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -439,4 +434,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/EffectEntity.java b/src/main/java/one/talon/model/EffectEntity.java index 59f569e7..cd694c09 100644 --- a/src/main/java/one/talon/model/EffectEntity.java +++ b/src/main/java/one/talon/model/EffectEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,22 +24,23 @@ import java.io.IOException; /** - * Definition of all properties that are present on all effects, independent of their type. + * Definition of all properties that are present on all effects, independent of + * their type. */ @ApiModel(description = "Definition of all properties that are present on all effects, independent of their type.") public class EffectEntity { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Integer ruleIndex; + private Long ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -52,19 +52,19 @@ public class EffectEntity { public static final String SERIALIZED_NAME_TRIGGERED_BY_COUPON = "triggeredByCoupon"; @SerializedName(SERIALIZED_NAME_TRIGGERED_BY_COUPON) - private Integer triggeredByCoupon; + private Long triggeredByCoupon; public static final String SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM = "triggeredForCatalogItem"; @SerializedName(SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM) - private Integer triggeredForCatalogItem; + private Long triggeredForCatalogItem; public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Integer conditionIndex; + private Long conditionIndex; public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Integer evaluationGroupID; + private Long evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) @@ -72,225 +72,222 @@ public class EffectEntity { public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_ID = "campaignRevisionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_ID) - private Integer campaignRevisionId; + private Long campaignRevisionId; public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID = "campaignRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID) - private Integer campaignRevisionVersionId; + private Long campaignRevisionVersionId; + public EffectEntity campaignId(Long campaignId) { - public EffectEntity campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that triggered this effect. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "244", required = true, value = "The ID of the campaign that triggered this effect.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public EffectEntity rulesetId(Long rulesetId) { - public EffectEntity rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** - * The ID of the ruleset that was active in the campaign when this effect was triggered. + /** + * The ID of the ruleset that was active in the campaign when this effect was + * triggered. + * * @return rulesetId - **/ + **/ @ApiModelProperty(example = "73", required = true, value = "The ID of the ruleset that was active in the campaign when this effect was triggered.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } + public EffectEntity ruleIndex(Long ruleIndex) { - public EffectEntity ruleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; return this; } - /** + /** * The position of the rule that triggered this effect within the ruleset. + * * @return ruleIndex - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Integer getRuleIndex() { + public Long getRuleIndex() { return ruleIndex; } - - public void setRuleIndex(Integer ruleIndex) { + public void setRuleIndex(Long ruleIndex) { this.ruleIndex = ruleIndex; } - public EffectEntity ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that triggered this effect. + * * @return ruleName - **/ + **/ @ApiModelProperty(example = "Give 20% discount", required = true, value = "The name of the rule that triggered this effect.") public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public EffectEntity effectType(String effectType) { - + this.effectType = effectType; return this; } - /** - * The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + /** + * The type of effect that was triggered. See [API + * effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * * @return effectType - **/ + **/ @ApiModelProperty(example = "rejectCoupon", required = true, value = "The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).") public String getEffectType() { return effectType; } - public void setEffectType(String effectType) { this.effectType = effectType; } + public EffectEntity triggeredByCoupon(Long triggeredByCoupon) { - public EffectEntity triggeredByCoupon(Integer triggeredByCoupon) { - this.triggeredByCoupon = triggeredByCoupon; return this; } - /** + /** * The ID of the coupon that was being evaluated when this effect was triggered. + * * @return triggeredByCoupon - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated when this effect was triggered.") - public Integer getTriggeredByCoupon() { + public Long getTriggeredByCoupon() { return triggeredByCoupon; } - - public void setTriggeredByCoupon(Integer triggeredByCoupon) { + public void setTriggeredByCoupon(Long triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; } + public EffectEntity triggeredForCatalogItem(Long triggeredForCatalogItem) { - public EffectEntity triggeredForCatalogItem(Integer triggeredForCatalogItem) { - this.triggeredForCatalogItem = triggeredForCatalogItem; return this; } - /** - * The ID of the catalog item that was being evaluated when this effect was triggered. + /** + * The ID of the catalog item that was being evaluated when this effect was + * triggered. + * * @return triggeredForCatalogItem - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The ID of the catalog item that was being evaluated when this effect was triggered.") - public Integer getTriggeredForCatalogItem() { + public Long getTriggeredForCatalogItem() { return triggeredForCatalogItem; } - - public void setTriggeredForCatalogItem(Integer triggeredForCatalogItem) { + public void setTriggeredForCatalogItem(Long triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; } + public EffectEntity conditionIndex(Long conditionIndex) { - public EffectEntity conditionIndex(Integer conditionIndex) { - this.conditionIndex = conditionIndex; return this; } - /** + /** * The index of the condition that was triggered. + * * @return conditionIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The index of the condition that was triggered.") - public Integer getConditionIndex() { + public Long getConditionIndex() { return conditionIndex; } - - public void setConditionIndex(Integer conditionIndex) { + public void setConditionIndex(Long conditionIndex) { this.conditionIndex = conditionIndex; } + public EffectEntity evaluationGroupID(Long evaluationGroupID) { - public EffectEntity evaluationGroupID(Integer evaluationGroupID) { - this.evaluationGroupID = evaluationGroupID; return this; } - /** - * The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + /** + * The ID of the evaluation group. For more information, see [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + * * @return evaluationGroupID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Integer getEvaluationGroupID() { + public Long getEvaluationGroupID() { return evaluationGroupID; } - - public void setEvaluationGroupID(Integer evaluationGroupID) { + public void setEvaluationGroupID(Long evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } - public EffectEntity evaluationGroupMode(String evaluationGroupMode) { - + this.evaluationGroupMode = evaluationGroupMode; return this; } - /** - * The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + /** + * The evaluation mode of the evaluation group. For more information, see + * [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + * * @return evaluationGroupMode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "stackable", value = "The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") @@ -298,58 +295,55 @@ public String getEvaluationGroupMode() { return evaluationGroupMode; } - public void setEvaluationGroupMode(String evaluationGroupMode) { this.evaluationGroupMode = evaluationGroupMode; } + public EffectEntity campaignRevisionId(Long campaignRevisionId) { - public EffectEntity campaignRevisionId(Integer campaignRevisionId) { - this.campaignRevisionId = campaignRevisionId; return this; } - /** + /** * The revision ID of the campaign that was used when triggering the effect. + * * @return campaignRevisionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The revision ID of the campaign that was used when triggering the effect.") - public Integer getCampaignRevisionId() { + public Long getCampaignRevisionId() { return campaignRevisionId; } - - public void setCampaignRevisionId(Integer campaignRevisionId) { + public void setCampaignRevisionId(Long campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; } + public EffectEntity campaignRevisionVersionId(Long campaignRevisionVersionId) { - public EffectEntity campaignRevisionVersionId(Integer campaignRevisionVersionId) { - this.campaignRevisionVersionId = campaignRevisionVersionId; return this; } - /** - * The revision version ID of the campaign that was used when triggering the effect. + /** + * The revision version ID of the campaign that was used when triggering the + * effect. + * * @return campaignRevisionVersionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The revision version ID of the campaign that was used when triggering the effect.") - public Integer getCampaignRevisionVersionId() { + public Long getCampaignRevisionVersionId() { return campaignRevisionVersionId; } - - public void setCampaignRevisionVersionId(Integer campaignRevisionVersionId) { + public void setCampaignRevisionVersionId(Long campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -375,10 +369,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId); + return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, + triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, + campaignRevisionVersionId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -411,4 +406,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Entity.java b/src/main/java/one/talon/model/Entity.java index 18b92c88..17c25bea 100644 --- a/src/main/java/one/talon/model/Entity.java +++ b/src/main/java/one/talon/model/Entity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,57 +31,54 @@ public class Entity { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; + public Entity id(Long id) { - public Entity id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Entity created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,7 +97,6 @@ public int hashCode() { return Objects.hash(id, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,4 +119,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/EntityWithTalangVisibleID.java b/src/main/java/one/talon/model/EntityWithTalangVisibleID.java index 29695353..441f22bf 100644 --- a/src/main/java/one/talon/model/EntityWithTalangVisibleID.java +++ b/src/main/java/one/talon/model/EntityWithTalangVisibleID.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,57 +31,54 @@ public class EntityWithTalangVisibleID { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; + public EntityWithTalangVisibleID id(Long id) { - public EntityWithTalangVisibleID id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public EntityWithTalangVisibleID created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The exact moment this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The exact moment this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,7 +97,6 @@ public int hashCode() { return Objects.hash(id, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,4 +119,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Environment.java b/src/main/java/one/talon/model/Environment.java index e1d534f2..bd990045 100644 --- a/src/main/java/one/talon/model/Environment.java +++ b/src/main/java/one/talon/model/Environment.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,7 +44,7 @@ public class Environment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,7 +52,7 @@ public class Environment { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_SLOTS = "slots"; @SerializedName(SERIALIZED_NAME_SLOTS) @@ -103,75 +102,71 @@ public class Environment { @SerializedName(SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTERS) private List applicationCartItemFilters = null; + public Environment id(Long id) { - public Environment id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Environment created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Environment applicationId(Long applicationId) { - public Environment applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public Environment slots(List slots) { - + this.slots = slots; return this; } @@ -181,24 +176,23 @@ public Environment addSlotsItem(SlotDef slotsItem) { return this; } - /** + /** * The slots defined for this application. + * * @return slots - **/ + **/ @ApiModelProperty(required = true, value = "The slots defined for this application.") public List getSlots() { return slots; } - public void setSlots(List slots) { this.slots = slots; } - public Environment functions(List functions) { - + this.functions = functions; return this; } @@ -208,24 +202,23 @@ public Environment addFunctionsItem(FunctionDef functionsItem) { return this; } - /** + /** * The functions defined for this application. + * * @return functions - **/ + **/ @ApiModelProperty(required = true, value = "The functions defined for this application.") public List getFunctions() { return functions; } - public void setFunctions(List functions) { this.functions = functions; } - public Environment templates(List templates) { - + this.templates = templates; return this; } @@ -235,46 +228,44 @@ public Environment addTemplatesItem(TemplateDef templatesItem) { return this; } - /** + /** * The templates defined for this application. + * * @return templates - **/ + **/ @ApiModelProperty(required = true, value = "The templates defined for this application.") public List getTemplates() { return templates; } - public void setTemplates(List templates) { this.templates = templates; } - public Environment variables(String variables) { - + this.variables = variables; return this; } - /** + /** * A stringified version of the environment's Talang variables scope. + * * @return variables - **/ + **/ @ApiModelProperty(required = true, value = "A stringified version of the environment's Talang variables scope.") public String getVariables() { return variables; } - public void setVariables(String variables) { this.variables = variables; } - public Environment giveawaysPools(List giveawaysPools) { - + this.giveawaysPools = giveawaysPools; return this; } @@ -287,10 +278,11 @@ public Environment addGiveawaysPoolsItem(GiveawaysPool giveawaysPoolsItem) { return this; } - /** + /** * The giveaways pools that the application is subscribed to. + * * @return giveawaysPools - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The giveaways pools that the application is subscribed to.") @@ -298,14 +290,12 @@ public List getGiveawaysPools() { return giveawaysPools; } - public void setGiveawaysPools(List giveawaysPools) { this.giveawaysPools = giveawaysPools; } - public Environment loyaltyPrograms(List loyaltyPrograms) { - + this.loyaltyPrograms = loyaltyPrograms; return this; } @@ -318,10 +308,11 @@ public Environment addLoyaltyProgramsItem(LoyaltyProgram loyaltyProgramsItem) { return this; } - /** + /** * The loyalty programs that the application is subscribed to. + * * @return loyaltyPrograms - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The loyalty programs that the application is subscribed to.") @@ -329,14 +320,12 @@ public List getLoyaltyPrograms() { return loyaltyPrograms; } - public void setLoyaltyPrograms(List loyaltyPrograms) { this.loyaltyPrograms = loyaltyPrograms; } - public Environment achievements(List achievements) { - + this.achievements = achievements; return this; } @@ -349,10 +338,11 @@ public Environment addAchievementsItem(Achievement achievementsItem) { return this; } - /** + /** * The achievements, linked to the campaigns, belonging to the application. + * * @return achievements - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievements, linked to the campaigns, belonging to the application.") @@ -360,14 +350,12 @@ public List getAchievements() { return achievements; } - public void setAchievements(List achievements) { this.achievements = achievements; } - public Environment attributes(List attributes) { - + this.attributes = attributes; return this; } @@ -380,10 +368,11 @@ public Environment addAttributesItem(Attribute attributesItem) { return this; } - /** + /** * The attributes that the application is subscribed to. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The attributes that the application is subscribed to.") @@ -391,14 +380,12 @@ public List getAttributes() { return attributes; } - public void setAttributes(List attributes) { this.attributes = attributes; } - public Environment additionalCosts(List additionalCosts) { - + this.additionalCosts = additionalCosts; return this; } @@ -411,10 +398,11 @@ public Environment addAdditionalCostsItem(AccountAdditionalCost additionalCostsI return this; } - /** + /** * The additional costs that the application is subscribed to. + * * @return additionalCosts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The additional costs that the application is subscribed to.") @@ -422,14 +410,12 @@ public List getAdditionalCosts() { return additionalCosts; } - public void setAdditionalCosts(List additionalCosts) { this.additionalCosts = additionalCosts; } - public Environment audiences(List audiences) { - + this.audiences = audiences; return this; } @@ -442,10 +428,11 @@ public Environment addAudiencesItem(Audience audiencesItem) { return this; } - /** + /** * The audiences contained in the account which the application belongs to. + * * @return audiences - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The audiences contained in the account which the application belongs to.") @@ -453,14 +440,12 @@ public List getAudiences() { return audiences; } - public void setAudiences(List audiences) { this.audiences = audiences; } - public Environment collections(List collections) { - + this.collections = collections; return this; } @@ -473,10 +458,11 @@ public Environment addCollectionsItem(Collection collectionsItem) { return this; } - /** + /** * The account-level collections that the application is subscribed to. + * * @return collections - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The account-level collections that the application is subscribed to.") @@ -484,14 +470,12 @@ public List getCollections() { return collections; } - public void setCollections(List collections) { this.collections = collections; } - public Environment applicationCartItemFilters(List applicationCartItemFilters) { - + this.applicationCartItemFilters = applicationCartItemFilters; return this; } @@ -504,10 +488,11 @@ public Environment addApplicationCartItemFiltersItem(ApplicationCIF applicationC return this; } - /** + /** * The cart item filters belonging to the Application. + * * @return applicationCartItemFilters - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The cart item filters belonging to the Application.") @@ -515,12 +500,10 @@ public List getApplicationCartItemFilters() { return applicationCartItemFilters; } - public void setApplicationCartItemFilters(List applicationCartItemFilters) { this.applicationCartItemFilters = applicationCartItemFilters; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -549,10 +532,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, loyaltyPrograms, achievements, attributes, additionalCosts, audiences, collections, applicationCartItemFilters); + return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, + loyaltyPrograms, achievements, attributes, additionalCosts, audiences, collections, applicationCartItemFilters); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -588,4 +571,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ErrorResponseWithStatus.java b/src/main/java/one/talon/model/ErrorResponseWithStatus.java index c8dadbf9..e8f8ef29 100644 --- a/src/main/java/one/talon/model/ErrorResponseWithStatus.java +++ b/src/main/java/one/talon/model/ErrorResponseWithStatus.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -42,19 +41,19 @@ public class ErrorResponseWithStatus { public static final String SERIALIZED_NAME_STATUS_CODE = "StatusCode"; @SerializedName(SERIALIZED_NAME_STATUS_CODE) - private Integer statusCode; - + private Long statusCode; public ErrorResponseWithStatus message(String message) { - + this.message = message; return this; } - /** + /** * Get message + * * @return message - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,14 +61,12 @@ public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } - public ErrorResponseWithStatus errors(List errors) { - + this.errors = errors; return this; } @@ -82,10 +79,11 @@ public ErrorResponseWithStatus addErrorsItem(APIError errorsItem) { return this; } - /** + /** * An array of individual problems encountered during the request. + * * @return errors - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "An array of individual problems encountered during the request.") @@ -93,35 +91,32 @@ public List getErrors() { return errors; } - public void setErrors(List errors) { this.errors = errors; } + public ErrorResponseWithStatus statusCode(Long statusCode) { - public ErrorResponseWithStatus statusCode(Integer statusCode) { - this.statusCode = statusCode; return this; } - /** + /** * The error code + * * @return statusCode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The error code") - public Integer getStatusCode() { + public Long getStatusCode() { return statusCode; } - - public void setStatusCode(Integer statusCode) { + public void setStatusCode(Long statusCode) { this.statusCode = statusCode; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,7 +136,6 @@ public int hashCode() { return Objects.hash(message, errors, statusCode); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -165,4 +159,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/EvaluableCampaignIds.java b/src/main/java/one/talon/model/EvaluableCampaignIds.java index 9db37558..9eac63f7 100644 --- a/src/main/java/one/talon/model/EvaluableCampaignIds.java +++ b/src/main/java/one/talon/model/EvaluableCampaignIds.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,40 +32,41 @@ public class EvaluableCampaignIds { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; + public EvaluableCampaignIds evaluableCampaignIds(List evaluableCampaignIds) { - public EvaluableCampaignIds evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public EvaluableCampaignIds addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public EvaluableCampaignIds addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,7 +84,6 @@ public int hashCode() { return Objects.hash(evaluableCampaignIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -106,4 +105,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Event.java b/src/main/java/one/talon/model/Event.java index 9e426c2a..19cc82d4 100644 --- a/src/main/java/one/talon/model/Event.java +++ b/src/main/java/one/talon/model/Event.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class Event { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class Event { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -78,83 +77,82 @@ public class Event { @SerializedName(SERIALIZED_NAME_META) private Meta meta; + public Event id(Long id) { - public Event id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Event created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Event applicationId(Long applicationId) { - public Event applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public Event profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") @@ -162,22 +160,21 @@ public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public Event storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -185,66 +182,63 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } - public Event type(String type) { - + this.type = type; return this; } - /** + /** * A string representing the event. Must not be a reserved event name. + * * @return type - **/ + **/ @ApiModelProperty(example = "pageViewed", required = true, value = "A string representing the event. Must not be a reserved event name.") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public Event attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary additional JSON data associated with the event. + * * @return attributes - **/ + **/ @ApiModelProperty(example = "{\"myAttribute\":\"myValue\"}", required = true, value = "Arbitrary additional JSON data associated with the event.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public Event sessionId(String sessionId) { - + this.sessionId = sessionId; return this; } - /** + /** * The ID of the session that this event occurred in. + * * @return sessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "175KJPS947296", value = "The ID of the session that this event occurred in.") @@ -252,14 +246,12 @@ public String getSessionId() { return sessionId; } - public void setSessionId(String sessionId) { this.sessionId = sessionId; } - public Event effects(List effects) { - + this.effects = effects; return this; } @@ -269,24 +261,25 @@ public Event addEffectsItem(Object effectsItem) { return this; } - /** - * An array of effects generated by the rules of the enabled campaigns of the Application. You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + /** + * An array of effects generated by the rules of the enabled campaigns of the + * Application. You decide how to apply them in your system. See the list of + * [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). + * * @return effects - **/ + **/ @ApiModelProperty(required = true, value = "An array of effects generated by the rules of the enabled campaigns of the Application. You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). ") public List getEffects() { return effects; } - public void setEffects(List effects) { this.effects = effects; } - public Event ledgerEntries(List ledgerEntries) { - + this.ledgerEntries = ledgerEntries; return this; } @@ -299,10 +292,11 @@ public Event addLedgerEntriesItem(LedgerEntry ledgerEntriesItem) { return this; } - /** + /** * Ledger entries for the event. + * * @return ledgerEntries - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Ledger entries for the event.") @@ -310,22 +304,21 @@ public List getLedgerEntries() { return ledgerEntries; } - public void setLedgerEntries(List ledgerEntries) { this.ledgerEntries = ledgerEntries; } - public Event meta(Meta meta) { - + this.meta = meta; return this; } - /** + /** * Get meta + * * @return meta - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -333,12 +326,10 @@ public Meta getMeta() { return meta; } - public void setMeta(Meta meta) { this.meta = meta; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -363,10 +354,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, profileId, storeIntegrationId, type, attributes, sessionId, effects, ledgerEntries, meta); + return Objects.hash(id, created, applicationId, profileId, storeIntegrationId, type, attributes, sessionId, effects, + ledgerEntries, meta); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -398,4 +389,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/EventType.java b/src/main/java/one/talon/model/EventType.java index 819c73b7..6bbd530b 100644 --- a/src/main/java/one/talon/model/EventType.java +++ b/src/main/java/one/talon/model/EventType.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class EventType { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -50,105 +49,102 @@ public class EventType { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public EventType id(Long id) { - public EventType id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public EventType created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public EventType title(String title) { - + this.title = title; return this; } - /** + /** * The human-friendly name for this event type. + * * @return title - **/ + **/ @ApiModelProperty(example = "Survey Completed", required = true, value = "The human-friendly name for this event type.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public EventType name(String name) { - + this.name = name; return this; } - /** - * The integration name for this event type. This will be used in URLs and cannot be changed after an event type has been created. + /** + * The integration name for this event type. This will be used in URLs and + * cannot be changed after an event type has been created. + * * @return name - **/ + **/ @ApiModelProperty(example = "surveyCompleted", required = true, value = "The integration name for this event type. This will be used in URLs and cannot be changed after an event type has been created.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public EventType description(String description) { - + this.description = description; return this; } - /** - * A description of what the event represents. + /** + * A description of what the event represents. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "The survey was submitted by the customer.", value = "A description of what the event represents. ") @@ -156,12 +152,10 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,7 +177,6 @@ public int hashCode() { return Objects.hash(id, created, title, name, description); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/EventV2.java b/src/main/java/one/talon/model/EventV2.java index f4659912..525d9d72 100644 --- a/src/main/java/one/talon/model/EventV2.java +++ b/src/main/java/one/talon/model/EventV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,7 +40,7 @@ public class EventV2 { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -51,17 +50,19 @@ public class EventV2 { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; - public EventV2 profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") @@ -69,22 +70,21 @@ public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public EventV2 storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -92,75 +92,81 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public EventV2 evaluableCampaignIds(List evaluableCampaignIds) { - public EventV2 evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public EventV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public EventV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - public EventV2 type(String type) { - + this.type = type; return this; } - /** - * A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + /** + * A string representing the event name. Must not be a reserved event name. You + * create this value when you [create an + * attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * of type `event` in the Campaign Manager. + * * @return type - **/ + **/ @ApiModelProperty(example = "pageViewed", required = true, value = "A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. ") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public EventV2 attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + /** + * Arbitrary additional JSON properties associated with the event. They must be + * created in the Campaign Manager before setting them with this property. See + * [creating custom + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"myAttribute\":\"myValue\"}", value = "Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute).") @@ -168,12 +174,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,7 +199,6 @@ public int hashCode() { return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -221,4 +224,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java index 5274282e..554ec677 100644 --- a/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,33 +45,31 @@ public class ExpiringCouponsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public ExpiringCouponsNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Notification to Google", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public ExpiringCouponsNotificationPolicy triggers(List triggers) { - + this.triggers = triggers; return this; } @@ -82,32 +79,32 @@ public ExpiringCouponsNotificationPolicy addTriggersItem(ExpiringCouponsNotifica return this; } - /** + /** * Get triggers + * * @return triggers - **/ + **/ @ApiModelProperty(required = true, value = "") public List getTriggers() { return triggers; } - public void setTriggers(List triggers) { this.triggers = triggers; } - public ExpiringCouponsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") @@ -115,35 +112,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public ExpiringCouponsNotificationPolicy batchSize(Long batchSize) { - public ExpiringCouponsNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,7 +159,6 @@ public int hashCode() { return Objects.hash(name, triggers, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -189,4 +183,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java index 71c0651c..568d25ea 100644 --- a/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,15 +30,16 @@ public class ExpiringCouponsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. */ @JsonAdapter(PeriodEnum.Adapter.class) public enum PeriodEnum { W("w"), - + D("d"); private String value; @@ -74,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) thr @Override public PeriodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PeriodEnum.fromValue(value); } } @@ -84,52 +84,50 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PERIOD) private PeriodEnum period; + public ExpiringCouponsNotificationTrigger amount(Long amount) { - public ExpiringCouponsNotificationTrigger amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * The amount of period. * minimum: 0 + * * @return amount - **/ + **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - public ExpiringCouponsNotificationTrigger period(PeriodEnum period) { - + this.period = period; return this; } - /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + /** + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. + * * @return period - **/ + **/ @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") public PeriodEnum getPeriod() { return period; } - public void setPeriod(PeriodEnum period) { this.period = period; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,7 +146,6 @@ public int hashCode() { return Objects.hash(amount, period); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -171,4 +168,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java b/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java index 1f430ad4..d136d413 100644 --- a/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,33 +45,31 @@ public class ExpiringPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public ExpiringPointsNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Notification to Google", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public ExpiringPointsNotificationPolicy triggers(List triggers) { - + this.triggers = triggers; return this; } @@ -82,32 +79,32 @@ public ExpiringPointsNotificationPolicy addTriggersItem(ExpiringPointsNotificati return this; } - /** + /** * Get triggers + * * @return triggers - **/ + **/ @ApiModelProperty(required = true, value = "") public List getTriggers() { return triggers; } - public void setTriggers(List triggers) { this.triggers = triggers; } - public ExpiringPointsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether batching is activated.") @@ -115,35 +112,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public ExpiringPointsNotificationPolicy batchSize(Long batchSize) { - public ExpiringPointsNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,7 +159,6 @@ public int hashCode() { return Objects.hash(name, triggers, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -189,4 +183,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java b/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java index 01c62140..9798a1a3 100644 --- a/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java +++ b/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,15 +30,16 @@ public class ExpiringPointsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. */ @JsonAdapter(PeriodEnum.Adapter.class) public enum PeriodEnum { W("w"), - + D("d"); private String value; @@ -74,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) thr @Override public PeriodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PeriodEnum.fromValue(value); } } @@ -84,52 +84,50 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PERIOD) private PeriodEnum period; + public ExpiringPointsNotificationTrigger amount(Long amount) { - public ExpiringPointsNotificationTrigger amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * The amount of period. * minimum: 1 + * * @return amount - **/ + **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - public ExpiringPointsNotificationTrigger period(PeriodEnum period) { - + this.period = period; return this; } - /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + /** + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. + * * @return period - **/ + **/ @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") public PeriodEnum getPeriod() { return period; } - public void setPeriod(PeriodEnum period) { this.period = period; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,7 +146,6 @@ public int hashCode() { return Objects.hash(amount, period); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -171,4 +168,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Export.java b/src/main/java/one/talon/model/Export.java index f094e39c..5a63db3e 100644 --- a/src/main/java/one/talon/model/Export.java +++ b/src/main/java/one/talon/model/Export.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Export { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +39,11 @@ public class Export { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; /** * The name of the entity that was exported. @@ -52,17 +51,17 @@ public class Export { @JsonAdapter(EntityEnum.Adapter.class) public enum EntityEnum { COUPON("Coupon"), - + REFERRAL("Referral"), - + EFFECT("Effect"), - + CUSTOMERSESSION("CustomerSession"), - + LOYALTYLEDGER("LoyaltyLedger"), - + LOYALTYLEDGERLOG("LoyaltyLedgerLog"), - + COLLECTION("Collection"); private String value; @@ -97,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final EntityEnum enumeration) thr @Override public EntityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EntityEnum.fromValue(value); } } @@ -111,139 +110,132 @@ public EntityEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FILTER) private Object filter; + public Export id(Long id) { - public Export id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Export created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Export accountId(Long accountId) { - public Export accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public Export userId(Long userId) { - public Export userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public Export entity(EntityEnum entity) { - + this.entity = entity; return this; } - /** + /** * The name of the entity that was exported. + * * @return entity - **/ + **/ @ApiModelProperty(required = true, value = "The name of the entity that was exported.") public EntityEnum getEntity() { return entity; } - public void setEntity(EntityEnum entity) { this.entity = entity; } - public Export filter(Object filter) { - + this.filter = filter; return this; } - /** + /** * Map of keys and values that were used to filter the exported rows. + * * @return filter - **/ + **/ @ApiModelProperty(required = true, value = "Map of keys and values that were used to filter the exported rows.") public Object getFilter() { return filter; } - public void setFilter(Object filter) { this.filter = filter; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -266,7 +258,6 @@ public int hashCode() { return Objects.hash(id, created, accountId, userId, entity, filter); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -293,4 +284,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/GenerateCampaignDescription.java b/src/main/java/one/talon/model/GenerateCampaignDescription.java index 31a36883..2b999f82 100644 --- a/src/main/java/one/talon/model/GenerateCampaignDescription.java +++ b/src/main/java/one/talon/model/GenerateCampaignDescription.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,57 +30,54 @@ public class GenerateCampaignDescription { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Integer rulesetID; + private Long rulesetID; public static final String SERIALIZED_NAME_CURRENCY = "currency"; @SerializedName(SERIALIZED_NAME_CURRENCY) private String currency; + public GenerateCampaignDescription rulesetID(Long rulesetID) { - public GenerateCampaignDescription rulesetID(Integer rulesetID) { - this.rulesetID = rulesetID; return this; } - /** + /** * ID of a ruleset. + * * @return rulesetID - **/ + **/ @ApiModelProperty(required = true, value = "ID of a ruleset.") - public Integer getRulesetID() { + public Long getRulesetID() { return rulesetID; } - - public void setRulesetID(Integer rulesetID) { + public void setRulesetID(Long rulesetID) { this.rulesetID = rulesetID; } - public GenerateCampaignDescription currency(String currency) { - + this.currency = currency; return this; } - /** + /** * Currency for the campaign. + * * @return currency - **/ + **/ @ApiModelProperty(required = true, value = "Currency for the campaign.") public String getCurrency() { return currency; } - public void setCurrency(String currency) { this.currency = currency; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(rulesetID, currency); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/GenerateCampaignTags.java b/src/main/java/one/talon/model/GenerateCampaignTags.java index 4df09824..46062a63 100644 --- a/src/main/java/one/talon/model/GenerateCampaignTags.java +++ b/src/main/java/one/talon/model/GenerateCampaignTags.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class GenerateCampaignTags { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Integer rulesetID; + private Long rulesetID; + public GenerateCampaignTags rulesetID(Long rulesetID) { - public GenerateCampaignTags rulesetID(Integer rulesetID) { - this.rulesetID = rulesetID; return this; } - /** + /** * ID of a ruleset. + * * @return rulesetID - **/ + **/ @ApiModelProperty(required = true, value = "ID of a ruleset.") - public Integer getRulesetID() { + public Long getRulesetID() { return rulesetID; } - - public void setRulesetID(Integer rulesetID) { + public void setRulesetID(Long rulesetID) { this.rulesetID = rulesetID; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(rulesetID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/GetIntegrationCouponRequest.java b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java index d8e6e76b..9e8605c2 100644 --- a/src/main/java/one/talon/model/GetIntegrationCouponRequest.java +++ b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,64 +32,61 @@ public class GetIntegrationCouponRequest { public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = new ArrayList(); + private List campaignIds = new ArrayList(); public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) - private Integer limit; + private Long limit; + public GetIntegrationCouponRequest campaignIds(List campaignIds) { - public GetIntegrationCouponRequest campaignIds(List campaignIds) { - this.campaignIds = campaignIds; return this; } - public GetIntegrationCouponRequest addCampaignIdsItem(Integer campaignIdsItem) { + public GetIntegrationCouponRequest addCampaignIdsItem(Long campaignIdsItem) { this.campaignIds.add(campaignIdsItem); return this; } - /** + /** * A list of IDs of the campaigns to get coupons from. + * * @return campaignIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of IDs of the campaigns to get coupons from.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } + public GetIntegrationCouponRequest limit(Long limit) { - public GetIntegrationCouponRequest limit(Integer limit) { - this.limit = limit; return this; } - /** + /** * The maximum number of coupons included in the response. * minimum: 1 * maximum: 1000 + * * @return limit - **/ + **/ @ApiModelProperty(required = true, value = "The maximum number of coupons included in the response.") - public Integer getLimit() { + public Long getLimit() { return limit; } - - public void setLimit(Integer limit) { + public void setLimit(Long limit) { this.limit = limit; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -109,7 +105,6 @@ public int hashCode() { return Objects.hash(campaignIds, limit); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -132,4 +127,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Giveaway.java b/src/main/java/one/talon/model/Giveaway.java index 7cbc1414..a6226dac 100644 --- a/src/main/java/one/talon/model/Giveaway.java +++ b/src/main/java/one/talon/model/Giveaway.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Integer poolId; + private Long poolId; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -64,7 +63,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -72,107 +71,103 @@ public class Giveaway { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; + public Giveaway id(Long id) { - public Giveaway id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Giveaway created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Giveaway code(String code) { - + this.code = code; return this; } - /** + /** * The code value of this giveaway. + * * @return code - **/ + **/ @ApiModelProperty(example = "GIVEAWAY1", required = true, value = "The code value of this giveaway.") public String getCode() { return code; } - public void setCode(String code) { this.code = code; } + public Giveaway poolId(Long poolId) { - public Giveaway poolId(Integer poolId) { - this.poolId = poolId; return this; } - /** + /** * The ID of the pool to return giveaway codes from. + * * @return poolId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the pool to return giveaway codes from.") - public Integer getPoolId() { + public Long getPoolId() { return poolId; } - - public void setPoolId(Integer poolId) { + public void setPoolId(Long poolId) { this.poolId = poolId; } - public Giveaway startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the giveaway becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp at which point the giveaway becomes valid.") @@ -180,22 +175,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public Giveaway endDate(OffsetDateTime endDate) { - + this.endDate = endDate; return this; } - /** + /** * Timestamp at which point the giveaway becomes invalid. + * * @return endDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp at which point the giveaway becomes invalid.") @@ -203,22 +197,21 @@ public OffsetDateTime getEndDate() { return endDate; } - public void setEndDate(OffsetDateTime endDate) { this.endDate = endDate; } - public Giveaway attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this giveaway. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this giveaway.") @@ -226,22 +219,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public Giveaway used(Boolean used) { - + this.used = used; return this; } - /** + /** * Indicates whether this giveaway code was given before. + * * @return used - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether this giveaway code was given before.") @@ -249,45 +241,44 @@ public Boolean getUsed() { return used; } - public void setUsed(Boolean used) { this.used = used; } + public Giveaway importId(Long importId) { - public Giveaway importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this giveaway. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this giveaway.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public Giveaway profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** - * The third-party integration ID of the customer profile that was awarded the giveaway, if the giveaway was awarded. + /** + * The third-party integration ID of the customer profile that was awarded the + * giveaway, if the giveaway was awarded. + * * @return profileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "R195412", value = "The third-party integration ID of the customer profile that was awarded the giveaway, if the giveaway was awarded.") @@ -295,35 +286,33 @@ public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public Giveaway profileId(Long profileId) { - public Giveaway profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** - * The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. + /** + * The internal ID of the customer profile that was awarded the giveaway, if the + * giveaway was awarded and an internal ID exists. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -348,10 +337,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, code, poolId, startDate, endDate, attributes, used, importId, profileIntegrationId, profileId); + return Objects.hash(id, created, code, poolId, startDate, endDate, attributes, used, importId, profileIntegrationId, + profileId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -383,4 +372,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/GiveawaysPool.java b/src/main/java/one/talon/model/GiveawaysPool.java index 0235b0a9..c56e5599 100644 --- a/src/main/java/one/talon/model/GiveawaysPool.java +++ b/src/main/java/one/talon/model/GiveawaysPool.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +42,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -55,7 +54,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -67,111 +66,107 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; + public GiveawaysPool id(Long id) { - public GiveawaysPool id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public GiveawaysPool created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public GiveawaysPool accountId(Long accountId) { - public GiveawaysPool accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public GiveawaysPool name(String name) { - + this.name = name; return this; } - /** + /** * The name of this giveaways pool. + * * @return name - **/ + **/ @ApiModelProperty(example = "My giveaway pool", required = true, value = "The name of this giveaways pool.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public GiveawaysPool description(String description) { - + this.description = description; return this; } - /** + /** * The description of this giveaways pool. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Generic pool", value = "The description of this giveaways pool.") @@ -179,75 +174,74 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public GiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { - public GiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public GiveawaysPool addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public GiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of the IDs of the applications that this giveaways pool is enabled for. + /** + * A list of the IDs of the applications that this giveaways pool is enabled + * for. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[2, 4]", value = "A list of the IDs of the applications that this giveaways pool is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public GiveawaysPool sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public GiveawaysPool modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * Timestamp of the most recent update to the giveaways pool. + * * @return modified - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the giveaways pool.") @@ -255,57 +249,53 @@ public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public GiveawaysPool createdBy(Long createdBy) { - public GiveawaysPool createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this giveaways pool. + * * @return createdBy - **/ + **/ @ApiModelProperty(required = true, value = "ID of the user who created this giveaways pool.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public GiveawaysPool modifiedBy(Long modifiedBy) { - public GiveawaysPool modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this giveaways pool if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "ID of the user who last updated this giveaways pool if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -329,10 +319,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, accountId, name, description, subscribedApplicationsIds, sandbox, modified, createdBy, modifiedBy); + return Objects.hash(id, created, accountId, name, description, subscribedApplicationsIds, sandbox, modified, + createdBy, modifiedBy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -363,4 +353,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/HiddenConditionsEffects.java b/src/main/java/one/talon/model/HiddenConditionsEffects.java index c40bb062..c1d8bb2d 100644 --- a/src/main/java/one/talon/model/HiddenConditionsEffects.java +++ b/src/main/java/one/talon/model/HiddenConditionsEffects.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -42,15 +41,14 @@ public class HiddenConditionsEffects { public static final String SERIALIZED_NAME_CUSTOM_EFFECTS = "customEffects"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECTS) - private List customEffects = null; + private List customEffects = null; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private List webhooks = null; - + private List webhooks = null; public HiddenConditionsEffects builtInEffects(List builtInEffects) { - + this.builtInEffects = builtInEffects; return this; } @@ -63,10 +61,11 @@ public HiddenConditionsEffects addBuiltInEffectsItem(String builtInEffectsItem) return this; } - /** + /** * List of hidden built-in effects. + * * @return builtInEffects - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[addFreeItem, createNotification]", value = "List of hidden built-in effects.") @@ -74,14 +73,12 @@ public List getBuiltInEffects() { return builtInEffects; } - public void setBuiltInEffects(List builtInEffects) { this.builtInEffects = builtInEffects; } - public HiddenConditionsEffects conditions(List conditions) { - + this.conditions = conditions; return this; } @@ -94,10 +91,11 @@ public HiddenConditionsEffects addConditionsItem(String conditionsItem) { return this; } - /** + /** * List of hidden conditions. + * * @return conditions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[checkAttributeValue, couponCodeIsValid]", value = "List of hidden conditions.") @@ -105,74 +103,70 @@ public List getConditions() { return conditions; } - public void setConditions(List conditions) { this.conditions = conditions; } + public HiddenConditionsEffects customEffects(List customEffects) { - public HiddenConditionsEffects customEffects(List customEffects) { - this.customEffects = customEffects; return this; } - public HiddenConditionsEffects addCustomEffectsItem(Integer customEffectsItem) { + public HiddenConditionsEffects addCustomEffectsItem(Long customEffectsItem) { if (this.customEffects == null) { - this.customEffects = new ArrayList(); + this.customEffects = new ArrayList(); } this.customEffects.add(customEffectsItem); return this; } - /** + /** * List of the IDs of hidden custom effects. + * * @return customEffects - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2]", value = "List of the IDs of hidden custom effects.") - public List getCustomEffects() { + public List getCustomEffects() { return customEffects; } - - public void setCustomEffects(List customEffects) { + public void setCustomEffects(List customEffects) { this.customEffects = customEffects; } + public HiddenConditionsEffects webhooks(List webhooks) { - public HiddenConditionsEffects webhooks(List webhooks) { - this.webhooks = webhooks; return this; } - public HiddenConditionsEffects addWebhooksItem(Integer webhooksItem) { + public HiddenConditionsEffects addWebhooksItem(Long webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList(); } this.webhooks.add(webhooksItem); return this; } - /** + /** * List of the IDs of hidden webhooks. + * * @return webhooks - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[3, 4]", value = "List of the IDs of hidden webhooks.") - public List getWebhooks() { + public List getWebhooks() { return webhooks; } - - public void setWebhooks(List webhooks) { + public void setWebhooks(List webhooks) { this.webhooks = webhooks; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -193,7 +187,6 @@ public int hashCode() { return Objects.hash(builtInEffects, conditions, customEffects, webhooks); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -218,4 +211,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/IdentifiableEntity.java b/src/main/java/one/talon/model/IdentifiableEntity.java index 23d85468..6293976e 100644 --- a/src/main/java/one/talon/model/IdentifiableEntity.java +++ b/src/main/java/one/talon/model/IdentifiableEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,30 @@ public class IdentifiableEntity { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; + public IdentifiableEntity id(Long id) { - public IdentifiableEntity id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +71,6 @@ public int hashCode() { return Objects.hash(id); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ImportEntity.java b/src/main/java/one/talon/model/ImportEntity.java index 426c6151..dbbd561d 100644 --- a/src/main/java/one/talon/model/ImportEntity.java +++ b/src/main/java/one/talon/model/ImportEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,32 +30,30 @@ public class ImportEntity { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; + public ImportEntity importId(Long importId) { - public ImportEntity importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this referral. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -74,7 +71,6 @@ public int hashCode() { return Objects.hash(importId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -96,4 +92,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java index 6fc0dc15..173a09cb 100644 --- a/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java +++ b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,14 +25,16 @@ import java.math.BigDecimal; /** - * The properties specific to the \"increaseAchievementProgress\" effect. This gets triggered whenever a validated rule contained an \"increase customer progress\" effect. + * The properties specific to the \"increaseAchievementProgress\" + * effect. This gets triggered whenever a validated rule contained an + * \"increase customer progress\" effect. */ @ApiModel(description = "The properties specific to the \"increaseAchievementProgress\" effect. This gets triggered whenever a validated rule contained an \"increase customer progress\" effect.") public class IncreaseAchievementProgressEffectProps { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Integer achievementId; + private Long achievementId; public static final String SERIALIZED_NAME_ACHIEVEMENT_NAME = "achievementName"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_NAME) @@ -41,7 +42,7 @@ public class IncreaseAchievementProgressEffectProps { public static final String SERIALIZED_NAME_PROGRESS_TRACKER_ID = "progressTrackerId"; @SerializedName(SERIALIZED_NAME_PROGRESS_TRACKER_ID) - private Integer progressTrackerId; + private Long progressTrackerId; public static final String SERIALIZED_NAME_DELTA = "delta"; @SerializedName(SERIALIZED_NAME_DELTA) @@ -59,162 +60,156 @@ public class IncreaseAchievementProgressEffectProps { @SerializedName(SERIALIZED_NAME_IS_JUST_COMPLETED) private Boolean isJustCompleted; + public IncreaseAchievementProgressEffectProps achievementId(Long achievementId) { - public IncreaseAchievementProgressEffectProps achievementId(Integer achievementId) { - this.achievementId = achievementId; return this; } - /** + /** * The internal ID of the achievement. + * * @return achievementId - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The internal ID of the achievement.") - public Integer getAchievementId() { + public Long getAchievementId() { return achievementId; } - - public void setAchievementId(Integer achievementId) { + public void setAchievementId(Long achievementId) { this.achievementId = achievementId; } - public IncreaseAchievementProgressEffectProps achievementName(String achievementName) { - + this.achievementName = achievementName; return this; } - /** + /** * The name of the achievement. + * * @return achievementName - **/ + **/ @ApiModelProperty(example = "FreeCoffee10Orders", required = true, value = "The name of the achievement.") public String getAchievementName() { return achievementName; } - public void setAchievementName(String achievementName) { this.achievementName = achievementName; } + public IncreaseAchievementProgressEffectProps progressTrackerId(Long progressTrackerId) { - public IncreaseAchievementProgressEffectProps progressTrackerId(Integer progressTrackerId) { - this.progressTrackerId = progressTrackerId; return this; } - /** + /** * The internal ID of the achievement progress tracker. + * * @return progressTrackerId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The internal ID of the achievement progress tracker.") - public Integer getProgressTrackerId() { + public Long getProgressTrackerId() { return progressTrackerId; } - - public void setProgressTrackerId(Integer progressTrackerId) { + public void setProgressTrackerId(Long progressTrackerId) { this.progressTrackerId = progressTrackerId; } - public IncreaseAchievementProgressEffectProps delta(BigDecimal delta) { - + this.delta = delta; return this; } - /** - * The value by which the customer's current progress in the achievement is increased. + /** + * The value by which the customer's current progress in the achievement is + * increased. + * * @return delta - **/ + **/ @ApiModelProperty(required = true, value = "The value by which the customer's current progress in the achievement is increased.") public BigDecimal getDelta() { return delta; } - public void setDelta(BigDecimal delta) { this.delta = delta; } - public IncreaseAchievementProgressEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The current progress of the customer in the achievement. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The current progress of the customer in the achievement.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public IncreaseAchievementProgressEffectProps target(BigDecimal target) { - + this.target = target; return this; } - /** + /** * The target value to complete the achievement. + * * @return target - **/ + **/ @ApiModelProperty(required = true, value = "The target value to complete the achievement.") public BigDecimal getTarget() { return target; } - public void setTarget(BigDecimal target) { this.target = target; } - public IncreaseAchievementProgressEffectProps isJustCompleted(Boolean isJustCompleted) { - + this.isJustCompleted = isJustCompleted; return this; } - /** - * Indicates if the customer has completed the achievement in the current session. + /** + * Indicates if the customer has completed the achievement in the current + * session. + * * @return isJustCompleted - **/ + **/ @ApiModelProperty(required = true, value = "Indicates if the customer has completed the achievement in the current session.") public Boolean getIsJustCompleted() { return isJustCompleted; } - public void setIsJustCompleted(Boolean isJustCompleted) { this.isJustCompleted = isJustCompleted; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -238,7 +233,6 @@ public int hashCode() { return Objects.hash(achievementId, achievementName, progressTrackerId, delta, value, target, isJustCompleted); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -266,4 +260,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse200.java b/src/main/java/one/talon/model/InlineResponse200.java index a9f02b8f..d4cf3b57 100644 --- a/src/main/java/one/talon/model/InlineResponse200.java +++ b/src/main/java/one/talon/model/InlineResponse200.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse200 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse200 totalResultSize(Long totalResultSize) { - public InlineResponse200 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse200 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse200 addDataItem(CustomerProfile dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse2001.java b/src/main/java/one/talon/model/InlineResponse2001.java index 014d40f8..0211e59b 100644 --- a/src/main/java/one/talon/model/InlineResponse2001.java +++ b/src/main/java/one/talon/model/InlineResponse2001.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse2001 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse2001 totalResultSize(Long totalResultSize) { - public InlineResponse2001 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse2001 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse2001 addDataItem(AchievementStatusEntry dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20010.java b/src/main/java/one/talon/model/InlineResponse20010.java index e796f326..0feafde5 100644 --- a/src/main/java/one/talon/model/InlineResponse20010.java +++ b/src/main/java/one/talon/model/InlineResponse20010.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20010 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20010 totalResultSize(Long totalResultSize) { - public InlineResponse20010 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20010 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20010 addDataItem(Coupon dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20013.java b/src/main/java/one/talon/model/InlineResponse20013.java index 02ed6bcf..cffb44f5 100644 --- a/src/main/java/one/talon/model/InlineResponse20013.java +++ b/src/main/java/one/talon/model/InlineResponse20013.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20013 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20013 totalResultSize(Long totalResultSize) { - public InlineResponse20013 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20013 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20013 addDataItem(CampaignGroup dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20015.java b/src/main/java/one/talon/model/InlineResponse20015.java index 70367dd5..23f0fe76 100644 --- a/src/main/java/one/talon/model/InlineResponse20015.java +++ b/src/main/java/one/talon/model/InlineResponse20015.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20015 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20015 totalResultSize(Long totalResultSize) { - public InlineResponse20015 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20015 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20015 addDataItem(LoyaltyProgram dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20016.java b/src/main/java/one/talon/model/InlineResponse20016.java index 8f4e502b..dfdda745 100644 --- a/src/main/java/one/talon/model/InlineResponse20016.java +++ b/src/main/java/one/talon/model/InlineResponse20016.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20016 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20016 totalResultSize(Long totalResultSize) { - public InlineResponse20016 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20016 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20016 addDataItem(LoyaltyDashboardData dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse2002.java b/src/main/java/one/talon/model/InlineResponse2002.java index b59dbe26..50dba4a9 100644 --- a/src/main/java/one/talon/model/InlineResponse2002.java +++ b/src/main/java/one/talon/model/InlineResponse2002.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse2002 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse2002 totalResultSize(Long totalResultSize) { - public InlineResponse2002 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse2002 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse2002 addDataItem(AchievementProgress dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20020.java b/src/main/java/one/talon/model/InlineResponse20020.java index 58c0fa16..7e761926 100644 --- a/src/main/java/one/talon/model/InlineResponse20020.java +++ b/src/main/java/one/talon/model/InlineResponse20020.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20020 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20020 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20020 totalResultSize(Long totalResultSize) { - public InlineResponse20020 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20020 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20020 addDataItem(CollectionWithoutPayload dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20023.java b/src/main/java/one/talon/model/InlineResponse20023.java index 8f60f76b..1ed46b82 100644 --- a/src/main/java/one/talon/model/InlineResponse20023.java +++ b/src/main/java/one/talon/model/InlineResponse20023.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20023 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20023 totalResultSize(Long totalResultSize) { - public InlineResponse20023 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20023 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20023 addDataItem(CampaignAnalytics dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20024.java b/src/main/java/one/talon/model/InlineResponse20024.java index 3935bb1d..16e60723 100644 --- a/src/main/java/one/talon/model/InlineResponse20024.java +++ b/src/main/java/one/talon/model/InlineResponse20024.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class InlineResponse20024 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; @SerializedName(SERIALIZED_NAME_HAS_MORE) @@ -44,40 +43,39 @@ public class InlineResponse20024 { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20024 totalResultSize(Long totalResultSize) { - public InlineResponse20024 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20024 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -85,14 +83,12 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - public InlineResponse20024 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20024 addDataItem(ApplicationCustomer dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(totalResultSize, hasMore, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20025.java b/src/main/java/one/talon/model/InlineResponse20025.java index 9fd34f51..df1b490a 100644 --- a/src/main/java/one/talon/model/InlineResponse20025.java +++ b/src/main/java/one/talon/model/InlineResponse20025.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20025 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20025 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20025 totalResultSize(Long totalResultSize) { - public InlineResponse20025 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20025 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20025 addDataItem(ApplicationCustomer dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20026.java b/src/main/java/one/talon/model/InlineResponse20026.java index 2cafddad..c0e01858 100644 --- a/src/main/java/one/talon/model/InlineResponse20026.java +++ b/src/main/java/one/talon/model/InlineResponse20026.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20026 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20026 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20026 totalResultSize(Long totalResultSize) { - public InlineResponse20026 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20026 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20026 addDataItem(CustomerProfile dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20031.java b/src/main/java/one/talon/model/InlineResponse20031.java index 3c71211d..aadd8c75 100644 --- a/src/main/java/one/talon/model/InlineResponse20031.java +++ b/src/main/java/one/talon/model/InlineResponse20031.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,37 +32,35 @@ public class InlineResponse20031 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20031 totalResultSize(Long totalResultSize) { - public InlineResponse20031 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20031 data(List data) { - + this.data = data; return this; } @@ -73,22 +70,21 @@ public InlineResponse20031 addDataItem(String dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -107,7 +103,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -130,4 +125,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20032.java b/src/main/java/one/talon/model/InlineResponse20032.java index e6915216..61a02c64 100644 --- a/src/main/java/one/talon/model/InlineResponse20032.java +++ b/src/main/java/one/talon/model/InlineResponse20032.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20032 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20032 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20032 totalResultSize(Long totalResultSize) { - public InlineResponse20032 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20032 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20032 addDataItem(Audience dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20035.java b/src/main/java/one/talon/model/InlineResponse20035.java index 9804eb42..c90e56ab 100644 --- a/src/main/java/one/talon/model/InlineResponse20035.java +++ b/src/main/java/one/talon/model/InlineResponse20035.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20035 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20035 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20035 totalResultSize(Long totalResultSize) { - public InlineResponse20035 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20035 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20035 addDataItem(ApplicationReferee dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20036.java b/src/main/java/one/talon/model/InlineResponse20036.java index 6295809f..05b34bdf 100644 --- a/src/main/java/one/talon/model/InlineResponse20036.java +++ b/src/main/java/one/talon/model/InlineResponse20036.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20036 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20036 totalResultSize(Long totalResultSize) { - public InlineResponse20036 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20036 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20036 addDataItem(Attribute dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20037.java b/src/main/java/one/talon/model/InlineResponse20037.java index 2082cff3..f1a2444b 100644 --- a/src/main/java/one/talon/model/InlineResponse20037.java +++ b/src/main/java/one/talon/model/InlineResponse20037.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20037 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20037 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20037 totalResultSize(Long totalResultSize) { - public InlineResponse20037 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20037 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20037 addDataItem(CatalogItem dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20038.java b/src/main/java/one/talon/model/InlineResponse20038.java index 354c35b9..dbb30727 100644 --- a/src/main/java/one/talon/model/InlineResponse20038.java +++ b/src/main/java/one/talon/model/InlineResponse20038.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20038 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20038 totalResultSize(Long totalResultSize) { - public InlineResponse20038 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20038 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20038 addDataItem(AccountAdditionalCost dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20039.java b/src/main/java/one/talon/model/InlineResponse20039.java index 05b0b5dd..65fa09ce 100644 --- a/src/main/java/one/talon/model/InlineResponse20039.java +++ b/src/main/java/one/talon/model/InlineResponse20039.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20039 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20039 totalResultSize(Long totalResultSize) { - public InlineResponse20039 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20039 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20039 addDataItem(WebhookWithOutgoingIntegrationDetails dat return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20040.java b/src/main/java/one/talon/model/InlineResponse20040.java index f7c6d690..bfc0546f 100644 --- a/src/main/java/one/talon/model/InlineResponse20040.java +++ b/src/main/java/one/talon/model/InlineResponse20040.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20040 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20040 totalResultSize(Long totalResultSize) { - public InlineResponse20040 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20040 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20040 addDataItem(WebhookActivationLogEntry dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20041.java b/src/main/java/one/talon/model/InlineResponse20041.java index b4d6f335..f8cd2faf 100644 --- a/src/main/java/one/talon/model/InlineResponse20041.java +++ b/src/main/java/one/talon/model/InlineResponse20041.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20041 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20041 totalResultSize(Long totalResultSize) { - public InlineResponse20041 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20041 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20041 addDataItem(WebhookLogEntry dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20042.java b/src/main/java/one/talon/model/InlineResponse20042.java index bd5378b1..6000d7fb 100644 --- a/src/main/java/one/talon/model/InlineResponse20042.java +++ b/src/main/java/one/talon/model/InlineResponse20042.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20042 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20042 totalResultSize(Long totalResultSize) { - public InlineResponse20042 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20042 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20042 addDataItem(EventType dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20043.java b/src/main/java/one/talon/model/InlineResponse20043.java index f7cd7ddd..8f86d0f4 100644 --- a/src/main/java/one/talon/model/InlineResponse20043.java +++ b/src/main/java/one/talon/model/InlineResponse20043.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20043 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20043 totalResultSize(Long totalResultSize) { - public InlineResponse20043 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20043 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20043 addDataItem(User dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20044.java b/src/main/java/one/talon/model/InlineResponse20044.java index 78f07479..7757c518 100644 --- a/src/main/java/one/talon/model/InlineResponse20044.java +++ b/src/main/java/one/talon/model/InlineResponse20044.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class InlineResponse20044 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; @SerializedName(SERIALIZED_NAME_HAS_MORE) @@ -44,40 +43,39 @@ public class InlineResponse20044 { @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20044 totalResultSize(Long totalResultSize) { - public InlineResponse20044 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20044 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -85,14 +83,12 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - public InlineResponse20044 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20044 addDataItem(Change dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(totalResultSize, hasMore, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20045.java b/src/main/java/one/talon/model/InlineResponse20045.java index 9f079907..f1a398b1 100644 --- a/src/main/java/one/talon/model/InlineResponse20045.java +++ b/src/main/java/one/talon/model/InlineResponse20045.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20045 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20045 totalResultSize(Long totalResultSize) { - public InlineResponse20045 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20045 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20045 addDataItem(Export dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20046.java b/src/main/java/one/talon/model/InlineResponse20046.java index 69f1a693..962b37d3 100644 --- a/src/main/java/one/talon/model/InlineResponse20046.java +++ b/src/main/java/one/talon/model/InlineResponse20046.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse20046 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse20046 totalResultSize(Long totalResultSize) { - public InlineResponse20046 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20046 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse20046 addDataItem(RoleV2 dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse20047.java b/src/main/java/one/talon/model/InlineResponse20047.java index 9c9f0bee..13923280 100644 --- a/src/main/java/one/talon/model/InlineResponse20047.java +++ b/src/main/java/one/talon/model/InlineResponse20047.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,23 +37,23 @@ public class InlineResponse20047 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20047 hasMore(Boolean hasMore) { - + this.hasMore = hasMore; return this; } - /** + /** * Get hasMore + * * @return hasMore - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -62,37 +61,34 @@ public Boolean getHasMore() { return hasMore; } - public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } + public InlineResponse20047 totalResultSize(Long totalResultSize) { - public InlineResponse20047 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse20047 data(List data) { - + this.data = data; return this; } @@ -102,22 +98,21 @@ public InlineResponse20047 addDataItem(Store dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,7 +132,6 @@ public int hashCode() { return Objects.hash(hasMore, totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -161,4 +155,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse2007.java b/src/main/java/one/talon/model/InlineResponse2007.java index 5c305ec5..c6c02f64 100644 --- a/src/main/java/one/talon/model/InlineResponse2007.java +++ b/src/main/java/one/talon/model/InlineResponse2007.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse2007 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse2007 totalResultSize(Long totalResultSize) { - public InlineResponse2007 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse2007 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse2007 addDataItem(Application dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse2008.java b/src/main/java/one/talon/model/InlineResponse2008.java index 1bff03dc..38eecdb7 100644 --- a/src/main/java/one/talon/model/InlineResponse2008.java +++ b/src/main/java/one/talon/model/InlineResponse2008.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse2008 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse2008 totalResultSize(Long totalResultSize) { - public InlineResponse2008 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse2008 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse2008 addDataItem(Campaign dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse2009.java b/src/main/java/one/talon/model/InlineResponse2009.java index beb9abb8..8305c5a8 100644 --- a/src/main/java/one/talon/model/InlineResponse2009.java +++ b/src/main/java/one/talon/model/InlineResponse2009.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse2009 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse2009 totalResultSize(Long totalResultSize) { - public InlineResponse2009 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse2009 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse2009 addDataItem(Ruleset dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InlineResponse201.java b/src/main/java/one/talon/model/InlineResponse201.java index f7303689..8ca64fef 100644 --- a/src/main/java/one/talon/model/InlineResponse201.java +++ b/src/main/java/one/talon/model/InlineResponse201.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class InlineResponse201 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Integer totalResultSize; + private Long totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); + public InlineResponse201 totalResultSize(Long totalResultSize) { - public InlineResponse201 totalResultSize(Integer totalResultSize) { - this.totalResultSize = totalResultSize; return this; } - /** + /** * Get totalResultSize + * * @return totalResultSize - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "") - public Integer getTotalResultSize() { + public Long getTotalResultSize() { return totalResultSize; } - - public void setTotalResultSize(Integer totalResultSize) { + public void setTotalResultSize(Long totalResultSize) { this.totalResultSize = totalResultSize; } - public InlineResponse201 data(List data) { - + this.data = data; return this; } @@ -74,22 +71,21 @@ public InlineResponse201 addDataItem(Referral dataItem) { return this; } - /** + /** * Get data + * * @return data - **/ + **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } - public void setData(List data) { this.data = data; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(totalResultSize, data); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/IntegrationCoupon.java b/src/main/java/one/talon/model/IntegrationCoupon.java index 5ba8e5c4..18b789d0 100644 --- a/src/main/java/one/talon/model/IntegrationCoupon.java +++ b/src/main/java/one/talon/model/IntegrationCoupon.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +51,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +59,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +75,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Integer usageCounter; + private Long usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +95,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +103,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -124,133 +123,130 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT = "profileRedemptionCount"; @SerializedName(SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT) - private Integer profileRedemptionCount; + private Long profileRedemptionCount; + public IntegrationCoupon id(Long id) { - public IntegrationCoupon id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public IntegrationCoupon created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public IntegrationCoupon campaignId(Long campaignId) { - public IntegrationCoupon campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public IntegrationCoupon value(String value) { - + this.value = value; return this; } - /** + /** * The coupon code. + * * @return value - **/ + **/ @ApiModelProperty(example = "XMAS-20-2021", required = true, value = "The coupon code.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } + public IntegrationCoupon usageLimit(Long usageLimit) { - public IntegrationCoupon usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public IntegrationCoupon discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -258,47 +254,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public IntegrationCoupon reservationLimit(Long reservationLimit) { - public IntegrationCoupon reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public IntegrationCoupon startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -306,22 +300,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public IntegrationCoupon expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -329,14 +322,12 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public IntegrationCoupon limits(List limits) { - + this.limits = limits; return this; } @@ -349,10 +340,14 @@ public IntegrationCoupon addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + /** + * Limits configuration for a coupon. These limits will override the limits set + * from the campaign. **Note:** Only usable when creating a single coupon which + * is not tied to a specific recipient. Only per-profile limits are allowed to + * be configured. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") @@ -360,44 +355,43 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public IntegrationCoupon usageCounter(Long usageCounter) { - public IntegrationCoupon usageCounter(Integer usageCounter) { - this.usageCounter = usageCounter; return this; } - /** + /** * The number of times the coupon has been successfully redeemed. + * * @return usageCounter - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Integer getUsageCounter() { + public Long getUsageCounter() { return usageCounter; } - - public void setUsageCounter(Integer usageCounter) { + public void setUsageCounter(Long usageCounter) { this.usageCounter = usageCounter; } - public IntegrationCoupon discountCounter(BigDecimal discountCounter) { - + this.discountCounter = discountCounter; return this; } - /** - * The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. + /** + * The amount of discounts given on rules redeeming this coupon. Only usable if + * a coupon discount budget was set for this coupon. + * * @return discountCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10.0", value = "The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon.") @@ -405,22 +399,21 @@ public BigDecimal getDiscountCounter() { return discountCounter; } - public void setDiscountCounter(BigDecimal discountCounter) { this.discountCounter = discountCounter; } - public IntegrationCoupon discountRemainder(BigDecimal discountRemainder) { - + this.discountRemainder = discountRemainder; return this; } - /** + /** * The remaining discount this coupon can give. + * * @return discountRemainder - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5.0", value = "The remaining discount this coupon can give.") @@ -428,22 +421,21 @@ public BigDecimal getDiscountRemainder() { return discountRemainder; } - public void setDiscountRemainder(BigDecimal discountRemainder) { this.discountRemainder = discountRemainder; } - public IntegrationCoupon reservationCounter(BigDecimal reservationCounter) { - + this.reservationCounter = reservationCounter; return this; } - /** + /** * The number of times this coupon has been reserved. + * * @return reservationCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.0", value = "The number of times this coupon has been reserved.") @@ -451,22 +443,21 @@ public BigDecimal getReservationCounter() { return reservationCounter; } - public void setReservationCounter(BigDecimal reservationCounter) { this.reservationCounter = reservationCounter; } - public IntegrationCoupon attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Custom attributes associated with this coupon. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Custom attributes associated with this coupon.") @@ -474,45 +465,44 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public IntegrationCoupon referralId(Long referralId) { - public IntegrationCoupon referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** - * The integration ID of the referring customer (if any) for whom this coupon was created as an effect. + /** + * The integration ID of the referring customer (if any) for whom this coupon + * was created as an effect. + * * @return referralId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public IntegrationCoupon recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The Integration ID of the customer that is allowed to redeem this coupon. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The Integration ID of the customer that is allowed to redeem this coupon.") @@ -520,45 +510,45 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } + public IntegrationCoupon importId(Long importId) { - public IntegrationCoupon importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this coupon. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public IntegrationCoupon reservation(Boolean reservation) { - + this.reservation = reservation; return this; } - /** - * Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. + /** + * Defines the reservation type: - `true`: The coupon can be reserved + * for multiple customers. - `false`: The coupon can be reserved only + * for one customer. It is a personal code. + * * @return reservation - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. ") @@ -566,22 +556,21 @@ public Boolean getReservation() { return reservation; } - public void setReservation(Boolean reservation) { this.reservation = reservation; } - public IntegrationCoupon batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The id of the batch the coupon belongs to. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "32535-43255", value = "The id of the batch the coupon belongs to.") @@ -589,22 +578,22 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public IntegrationCoupon isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -612,22 +601,21 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - public IntegrationCoupon implicitlyReserved(Boolean implicitlyReserved) { - + this.implicitlyReserved = implicitlyReserved; return this; } - /** + /** * An indication of whether the coupon is implicitly reserved for all customers. + * * @return implicitlyReserved - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") @@ -635,34 +623,31 @@ public Boolean getImplicitlyReserved() { return implicitlyReserved; } - public void setImplicitlyReserved(Boolean implicitlyReserved) { this.implicitlyReserved = implicitlyReserved; } + public IntegrationCoupon profileRedemptionCount(Long profileRedemptionCount) { - public IntegrationCoupon profileRedemptionCount(Integer profileRedemptionCount) { - this.profileRedemptionCount = profileRedemptionCount; return this; } - /** + /** * The number of times the coupon was redeemed by the profile. + * * @return profileRedemptionCount - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The number of times the coupon was redeemed by the profile.") - public Integer getProfileRedemptionCount() { + public Long getProfileRedemptionCount() { return profileRedemptionCount; } - - public void setProfileRedemptionCount(Integer profileRedemptionCount) { + public void setProfileRedemptionCount(Long profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -699,10 +684,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved, profileRedemptionCount); + return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, + expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, + referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved, + profileRedemptionCount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -746,4 +733,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/IntegrationEventV2Request.java b/src/main/java/one/talon/model/IntegrationEventV2Request.java index 441f8496..c70db86d 100644 --- a/src/main/java/one/talon/model/IntegrationEventV2Request.java +++ b/src/main/java/one/talon/model/IntegrationEventV2Request.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,7 +44,7 @@ public class IntegrationEventV2Request { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -53,8 +52,8 @@ public class IntegrationEventV2Request { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - /*allow Serializing null for this field */ - @JsonNullable + /* allow Serializing null for this field */ + @JsonNullable private Object attributes; /** @@ -63,15 +62,15 @@ public class IntegrationEventV2Request { @JsonAdapter(ResponseContentEnum.Adapter.class) public enum ResponseContentEnum { CUSTOMERPROFILE("customerProfile"), - + TRIGGEREDCAMPAIGNS("triggeredCampaigns"), - + LOYALTY("loyalty"), - + EVENT("event"), - + AWARDEDGIVEAWAYS("awardedGiveaways"), - + RULEFAILUREREASONS("ruleFailureReasons"); private String value; @@ -106,7 +105,7 @@ public void write(final JsonWriter jsonWriter, final ResponseContentEnum enumera @Override public ResponseContentEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ResponseContentEnum.fromValue(value); } } @@ -116,17 +115,19 @@ public ResponseContentEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_RESPONSE_CONTENT) private List responseContent = null; - public IntegrationEventV2Request profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") @@ -134,22 +135,21 @@ public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public IntegrationEventV2Request storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -157,75 +157,81 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public IntegrationEventV2Request evaluableCampaignIds(List evaluableCampaignIds) { - public IntegrationEventV2Request evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public IntegrationEventV2Request addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public IntegrationEventV2Request addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - public IntegrationEventV2Request type(String type) { - + this.type = type; return this; } - /** - * A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + /** + * A string representing the event name. Must not be a reserved event name. You + * create this value when you [create an + * attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * of type `event` in the Campaign Manager. + * * @return type - **/ + **/ @ApiModelProperty(example = "pageViewed", required = true, value = "A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. ") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public IntegrationEventV2Request attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + /** + * Arbitrary additional JSON properties associated with the event. They must be + * created in the Campaign Manager before setting them with this property. See + * [creating custom + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"myAttribute\":\"myValue\"}", value = "Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute).") @@ -233,14 +239,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public IntegrationEventV2Request responseContent(List responseContent) { - + this.responseContent = responseContent; return this; } @@ -253,10 +257,12 @@ public IntegrationEventV2Request addResponseContentItem(ResponseContentEnum resp return this; } - /** - * Optional list of requested information to be present on the response related to the tracking custom event. + /** + * Optional list of requested information to be present on the response related + * to the tracking custom event. + * * @return responseContent - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[triggeredCampaigns, customerProfile]", value = "Optional list of requested information to be present on the response related to the tracking custom event. ") @@ -264,12 +270,10 @@ public List getResponseContent() { return responseContent; } - public void setResponseContent(List responseContent) { this.responseContent = responseContent; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -292,7 +296,6 @@ public int hashCode() { return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes, responseContent); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -319,4 +322,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InventoryCoupon.java b/src/main/java/one/talon/model/InventoryCoupon.java index 2fae67f5..22433f26 100644 --- a/src/main/java/one/talon/model/InventoryCoupon.java +++ b/src/main/java/one/talon/model/InventoryCoupon.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +51,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +59,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +75,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Integer usageCounter; + private Long usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +95,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +103,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -124,137 +123,134 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT = "profileRedemptionCount"; @SerializedName(SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT) - private Integer profileRedemptionCount; + private Long profileRedemptionCount; public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) private String state; + public InventoryCoupon id(Long id) { - public InventoryCoupon id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public InventoryCoupon created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public InventoryCoupon campaignId(Long campaignId) { - public InventoryCoupon campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public InventoryCoupon value(String value) { - + this.value = value; return this; } - /** + /** * The coupon code. + * * @return value - **/ + **/ @ApiModelProperty(example = "XMAS-20-2021", required = true, value = "The coupon code.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } + public InventoryCoupon usageLimit(Long usageLimit) { - public InventoryCoupon usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public InventoryCoupon discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -262,47 +258,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public InventoryCoupon reservationLimit(Long reservationLimit) { - public InventoryCoupon reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public InventoryCoupon startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -310,22 +304,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public InventoryCoupon expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -333,14 +326,12 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public InventoryCoupon limits(List limits) { - + this.limits = limits; return this; } @@ -353,10 +344,14 @@ public InventoryCoupon addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + /** + * Limits configuration for a coupon. These limits will override the limits set + * from the campaign. **Note:** Only usable when creating a single coupon which + * is not tied to a specific recipient. Only per-profile limits are allowed to + * be configured. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") @@ -364,44 +359,43 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public InventoryCoupon usageCounter(Long usageCounter) { - public InventoryCoupon usageCounter(Integer usageCounter) { - this.usageCounter = usageCounter; return this; } - /** + /** * The number of times the coupon has been successfully redeemed. + * * @return usageCounter - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Integer getUsageCounter() { + public Long getUsageCounter() { return usageCounter; } - - public void setUsageCounter(Integer usageCounter) { + public void setUsageCounter(Long usageCounter) { this.usageCounter = usageCounter; } - public InventoryCoupon discountCounter(BigDecimal discountCounter) { - + this.discountCounter = discountCounter; return this; } - /** - * The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. + /** + * The amount of discounts given on rules redeeming this coupon. Only usable if + * a coupon discount budget was set for this coupon. + * * @return discountCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10.0", value = "The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon.") @@ -409,22 +403,21 @@ public BigDecimal getDiscountCounter() { return discountCounter; } - public void setDiscountCounter(BigDecimal discountCounter) { this.discountCounter = discountCounter; } - public InventoryCoupon discountRemainder(BigDecimal discountRemainder) { - + this.discountRemainder = discountRemainder; return this; } - /** + /** * The remaining discount this coupon can give. + * * @return discountRemainder - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5.0", value = "The remaining discount this coupon can give.") @@ -432,22 +425,21 @@ public BigDecimal getDiscountRemainder() { return discountRemainder; } - public void setDiscountRemainder(BigDecimal discountRemainder) { this.discountRemainder = discountRemainder; } - public InventoryCoupon reservationCounter(BigDecimal reservationCounter) { - + this.reservationCounter = reservationCounter; return this; } - /** + /** * The number of times this coupon has been reserved. + * * @return reservationCounter - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.0", value = "The number of times this coupon has been reserved.") @@ -455,22 +447,21 @@ public BigDecimal getReservationCounter() { return reservationCounter; } - public void setReservationCounter(BigDecimal reservationCounter) { this.reservationCounter = reservationCounter; } - public InventoryCoupon attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Custom attributes associated with this coupon. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Custom attributes associated with this coupon.") @@ -478,45 +469,44 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public InventoryCoupon referralId(Long referralId) { - public InventoryCoupon referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** - * The integration ID of the referring customer (if any) for whom this coupon was created as an effect. + /** + * The integration ID of the referring customer (if any) for whom this coupon + * was created as an effect. + * * @return referralId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public InventoryCoupon recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The Integration ID of the customer that is allowed to redeem this coupon. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The Integration ID of the customer that is allowed to redeem this coupon.") @@ -524,45 +514,45 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } + public InventoryCoupon importId(Long importId) { - public InventoryCoupon importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this coupon. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public InventoryCoupon reservation(Boolean reservation) { - + this.reservation = reservation; return this; } - /** - * Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. + /** + * Defines the reservation type: - `true`: The coupon can be reserved + * for multiple customers. - `false`: The coupon can be reserved only + * for one customer. It is a personal code. + * * @return reservation - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. ") @@ -570,22 +560,21 @@ public Boolean getReservation() { return reservation; } - public void setReservation(Boolean reservation) { this.reservation = reservation; } - public InventoryCoupon batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The id of the batch the coupon belongs to. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "32535-43255", value = "The id of the batch the coupon belongs to.") @@ -593,22 +582,22 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public InventoryCoupon isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -616,22 +605,21 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - public InventoryCoupon implicitlyReserved(Boolean implicitlyReserved) { - + this.implicitlyReserved = implicitlyReserved; return this; } - /** + /** * An indication of whether the coupon is implicitly reserved for all customers. + * * @return implicitlyReserved - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") @@ -639,56 +627,62 @@ public Boolean getImplicitlyReserved() { return implicitlyReserved; } - public void setImplicitlyReserved(Boolean implicitlyReserved) { this.implicitlyReserved = implicitlyReserved; } + public InventoryCoupon profileRedemptionCount(Long profileRedemptionCount) { - public InventoryCoupon profileRedemptionCount(Integer profileRedemptionCount) { - this.profileRedemptionCount = profileRedemptionCount; return this; } - /** + /** * The number of times the coupon was redeemed by the profile. + * * @return profileRedemptionCount - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The number of times the coupon was redeemed by the profile.") - public Integer getProfileRedemptionCount() { + public Long getProfileRedemptionCount() { return profileRedemptionCount; } - - public void setProfileRedemptionCount(Integer profileRedemptionCount) { + public void setProfileRedemptionCount(Long profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; } - public InventoryCoupon state(String state) { - + this.state = state; return this; } - /** - * Can be: - `active`: The coupon can be used. It is a reserved coupon that is not pending, used, or expired, and it has a non-exhausted limit counter. **Note:** This coupon state is returned for [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule), but the coupon cannot be used until the campaign is **running**. - `used`: The coupon has been redeemed and cannot be used again. It is not pending and has reached its redemption limit or was redeemed by the profile before expiration. - `expired`: The coupon was never redeemed, and it is now expired. It is non-pending, non-active, and non-used by the profile. - `pending`: The coupon will be usable in the future. - `disabled`: The coupon is part of a non-active campaign. + /** + * Can be: - `active`: The coupon can be used. It is a reserved coupon + * that is not pending, used, or expired, and it has a non-exhausted limit + * counter. **Note:** This coupon state is returned for [scheduled + * campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule), + * but the coupon cannot be used until the campaign is **running**. - + * `used`: The coupon has been redeemed and cannot be used again. It + * is not pending and has reached its redemption limit or was redeemed by the + * profile before expiration. - `expired`: The coupon was never + * redeemed, and it is now expired. It is non-pending, non-active, and non-used + * by the profile. - `pending`: The coupon will be usable in the + * future. - `disabled`: The coupon is part of a non-active campaign. + * * @return state - **/ + **/ @ApiModelProperty(example = "active", required = true, value = "Can be: - `active`: The coupon can be used. It is a reserved coupon that is not pending, used, or expired, and it has a non-exhausted limit counter. **Note:** This coupon state is returned for [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule), but the coupon cannot be used until the campaign is **running**. - `used`: The coupon has been redeemed and cannot be used again. It is not pending and has reached its redemption limit or was redeemed by the profile before expiration. - `expired`: The coupon was never redeemed, and it is now expired. It is non-pending, non-active, and non-used by the profile. - `pending`: The coupon will be usable in the future. - `disabled`: The coupon is part of a non-active campaign. ") public String getState() { return state; } - public void setState(String state) { this.state = state; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -726,10 +720,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved, profileRedemptionCount, state); + return Objects.hash(id, created, campaignId, value, usageLimit, discountLimit, reservationLimit, startDate, + expiryDate, limits, usageCounter, discountCounter, discountRemainder, reservationCounter, attributes, + referralId, recipientIntegrationId, importId, reservation, batchId, isReservationMandatory, implicitlyReserved, + profileRedemptionCount, state); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -774,4 +770,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/InventoryReferral.java b/src/main/java/one/talon/model/InventoryReferral.java index 9d6810cf..ea513b30 100644 --- a/src/main/java/one/talon/model/InventoryReferral.java +++ b/src/main/java/one/talon/model/InventoryReferral.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -50,11 +49,11 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -70,7 +69,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -78,7 +77,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Integer usageCounter; + private Long usageCounter; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) @@ -88,61 +87,59 @@ public class InventoryReferral { @SerializedName(SERIALIZED_NAME_REFERRED_CUSTOMERS) private List referredCustomers = new ArrayList(); + public InventoryReferral id(Long id) { - public InventoryReferral id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public InventoryReferral created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public InventoryReferral startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -150,22 +147,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public InventoryReferral expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -173,90 +170,87 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public InventoryReferral usageLimit(Long usageLimit) { - public InventoryReferral usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. `0` means no limit + * but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } + public InventoryReferral campaignId(Long campaignId) { - public InventoryReferral campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign from which the referral received the referral code. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public InventoryReferral advocateProfileIntegrationId(String advocateProfileIntegrationId) { - + this.advocateProfileIntegrationId = advocateProfileIntegrationId; return this; } - /** + /** * The Integration ID of the Advocate's Profile. + * * @return advocateProfileIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The Integration ID of the Advocate's Profile.") public String getAdvocateProfileIntegrationId() { return advocateProfileIntegrationId; } - public void setAdvocateProfileIntegrationId(String advocateProfileIntegrationId) { this.advocateProfileIntegrationId = advocateProfileIntegrationId; } - public InventoryReferral friendProfileIntegrationId(String friendProfileIntegrationId) { - + this.friendProfileIntegrationId = friendProfileIntegrationId; return this; } - /** + /** * An optional Integration ID of the Friend's Profile. + * * @return friendProfileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "BZGGC2454PA", value = "An optional Integration ID of the Friend's Profile.") @@ -264,22 +258,21 @@ public String getFriendProfileIntegrationId() { return friendProfileIntegrationId; } - public void setFriendProfileIntegrationId(String friendProfileIntegrationId) { this.friendProfileIntegrationId = friendProfileIntegrationId; } - public InventoryReferral attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"channel\":\"web\"}", value = "Arbitrary properties associated with this item.") @@ -287,89 +280,85 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public InventoryReferral importId(Long importId) { - public InventoryReferral importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this referral. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public InventoryReferral code(String code) { - + this.code = code; return this; } - /** + /** * The referral code. + * * @return code - **/ + **/ @ApiModelProperty(example = "27G47Y54VH9L", required = true, value = "The referral code.") public String getCode() { return code; } - public void setCode(String code) { this.code = code; } + public InventoryReferral usageCounter(Long usageCounter) { - public InventoryReferral usageCounter(Integer usageCounter) { - this.usageCounter = usageCounter; return this; } - /** + /** * The number of times this referral code has been successfully used. + * * @return usageCounter - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of times this referral code has been successfully used.") - public Integer getUsageCounter() { + public Long getUsageCounter() { return usageCounter; } - - public void setUsageCounter(Integer usageCounter) { + public void setUsageCounter(Long usageCounter) { this.usageCounter = usageCounter; } - public InventoryReferral batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The ID of the batch the referrals belong to. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "tqyrgahe", value = "The ID of the batch the referrals belong to.") @@ -377,14 +366,12 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public InventoryReferral referredCustomers(List referredCustomers) { - + this.referredCustomers = referredCustomers; return this; } @@ -394,22 +381,21 @@ public InventoryReferral addReferredCustomersItem(String referredCustomersItem) return this; } - /** + /** * An array of referred customers. + * * @return referredCustomers - **/ + **/ @ApiModelProperty(required = true, value = "An array of referred customers.") public List getReferredCustomers() { return referredCustomers; } - public void setReferredCustomers(List referredCustomers) { this.referredCustomers = referredCustomers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -437,10 +423,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, friendProfileIntegrationId, attributes, importId, code, usageCounter, batchId, referredCustomers); + return Objects.hash(id, created, startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, + friendProfileIntegrationId, attributes, importId, code, usageCounter, batchId, referredCustomers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -475,4 +461,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ItemAttribute.java b/src/main/java/one/talon/model/ItemAttribute.java index 34a4a365..2129d29e 100644 --- a/src/main/java/one/talon/model/ItemAttribute.java +++ b/src/main/java/one/talon/model/ItemAttribute.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class ItemAttribute { public static final String SERIALIZED_NAME_ATTRIBUTEID = "attributeid"; @SerializedName(SERIALIZED_NAME_ATTRIBUTEID) - private Integer attributeid; + private Long attributeid; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -41,73 +40,69 @@ public class ItemAttribute { @SerializedName(SERIALIZED_NAME_VALUE) private Object value; + public ItemAttribute attributeid(Long attributeid) { - public ItemAttribute attributeid(Integer attributeid) { - this.attributeid = attributeid; return this; } - /** + /** * The ID of the attribute of the item. + * * @return attributeid - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The ID of the attribute of the item.") - public Integer getAttributeid() { + public Long getAttributeid() { return attributeid; } - - public void setAttributeid(Integer attributeid) { + public void setAttributeid(Long attributeid) { this.attributeid = attributeid; } - public ItemAttribute name(String name) { - + this.name = name; return this; } - /** + /** * The name of the attribute. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of the attribute.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public ItemAttribute value(Object value) { - + this.value = value; return this; } - /** + /** * The value of the attribute. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The value of the attribute.") public Object getValue() { return value; } - public void setValue(Object value) { this.value = value; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,7 +122,6 @@ public int hashCode() { return Objects.hash(attributeid, name, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,4 +145,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LedgerEntry.java b/src/main/java/one/talon/model/LedgerEntry.java index 1edddddd..1e887d1b 100644 --- a/src/main/java/one/talon/model/LedgerEntry.java +++ b/src/main/java/one/talon/model/LedgerEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -45,19 +44,19 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Integer loyaltyProgramId; + private Long loyaltyProgramId; public static final String SERIALIZED_NAME_EVENT_ID = "eventId"; @SerializedName(SERIALIZED_NAME_EVENT_ID) - private Integer eventId; + private Long eventId; public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -69,230 +68,221 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId"; @SerializedName(SERIALIZED_NAME_REFERENCE_ID) - private Integer referenceId; + private Long referenceId; + public LedgerEntry id(Long id) { - public LedgerEntry id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LedgerEntry created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public LedgerEntry profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } + public LedgerEntry accountId(Long accountId) { - public LedgerEntry accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the Talon.One account that owns this profile. + * * @return accountId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the Talon.One account that owns this profile.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public LedgerEntry loyaltyProgramId(Long loyaltyProgramId) { - public LedgerEntry loyaltyProgramId(Integer loyaltyProgramId) { - this.loyaltyProgramId = loyaltyProgramId; return this; } - /** + /** * ID of the ledger. + * * @return loyaltyProgramId - **/ + **/ @ApiModelProperty(example = "323414846", required = true, value = "ID of the ledger.") - public Integer getLoyaltyProgramId() { + public Long getLoyaltyProgramId() { return loyaltyProgramId; } - - public void setLoyaltyProgramId(Integer loyaltyProgramId) { + public void setLoyaltyProgramId(Long loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } + public LedgerEntry eventId(Long eventId) { - public LedgerEntry eventId(Integer eventId) { - this.eventId = eventId; return this; } - /** + /** * ID of the related event. + * * @return eventId - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "ID of the related event.") - public Integer getEventId() { + public Long getEventId() { return eventId; } - - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } + public LedgerEntry amount(Long amount) { - public LedgerEntry amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * Amount of loyalty points. + * * @return amount - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "Amount of loyalty points.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - public LedgerEntry reason(String reason) { - + this.reason = reason; return this; } - /** + /** * reason for awarding/deducting points. + * * @return reason - **/ + **/ @ApiModelProperty(example = "Customer appeasement.", required = true, value = "reason for awarding/deducting points.") public String getReason() { return reason; } - public void setReason(String reason) { this.reason = reason; } - public LedgerEntry expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the points. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-04-26T11:02:38Z", required = true, value = "Expiration date of the points.") public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public LedgerEntry referenceId(Long referenceId) { - public LedgerEntry referenceId(Integer referenceId) { - this.referenceId = referenceId; return this; } - /** + /** * The ID of the balancing ledgerEntry. + * * @return referenceId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the balancing ledgerEntry.") - public Integer getReferenceId() { + public Long getReferenceId() { return referenceId; } - - public void setReferenceId(Integer referenceId) { + public void setReferenceId(Long referenceId) { this.referenceId = referenceId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -316,10 +306,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, profileId, accountId, loyaltyProgramId, eventId, amount, reason, expiryDate, referenceId); + return Objects.hash(id, created, profileId, accountId, loyaltyProgramId, eventId, amount, reason, expiryDate, + referenceId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -350,4 +340,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java b/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java index fed96758..6cad5cfe 100644 --- a/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class LedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class LedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) @@ -68,83 +67,80 @@ public class LedgerPointsEntryIntegrationAPI { @SerializedName(SERIALIZED_NAME_AMOUNT) private BigDecimal amount; + public LedgerPointsEntryIntegrationAPI id(Long id) { - public LedgerPointsEntryIntegrationAPI id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the transaction that adds loyalty points. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the transaction that adds loyalty points.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LedgerPointsEntryIntegrationAPI created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty points were added. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty points were added.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public LedgerPointsEntryIntegrationAPI programId(Long programId) { - public LedgerPointsEntryIntegrationAPI programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public LedgerPointsEntryIntegrationAPI customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where points were added. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where points were added.") @@ -152,122 +148,119 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } - public LedgerPointsEntryIntegrationAPI name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason of the transaction that adds loyalty points. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 10% points of a purchase's current total", required = true, value = "Name or reason of the transaction that adds loyalty points.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LedgerPointsEntryIntegrationAPI startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are active immediately. - `timestamp value`: Points become active + * at a given date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public LedgerPointsEntryIntegrationAPI expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date and time. + /** + * Date when points expire. Possible values are: - `unlimited`: Points + * have no expiration date. - `timestamp value`: Points expire on the + * given date and time. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-08-02T15:04:05Z07:00", required = true, value = "Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date and time. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public LedgerPointsEntryIntegrationAPI subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public LedgerPointsEntryIntegrationAPI amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -293,7 +286,6 @@ public int hashCode() { return Objects.hash(id, created, programId, customerSessionId, name, startDate, expiryDate, subledgerId, amount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -323,4 +315,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java index 02900b01..f9d211e7 100644 --- a/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,19 +38,20 @@ public class LedgerTransactionLogEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) private String customerSessionId; /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { ADDITION("addition"), - + SUBTRACTION("subtraction"); private String value; @@ -86,7 +86,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -118,11 +118,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -132,61 +132,59 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FLAGS) private LoyaltyLedgerEntryFlags flags; - public LedgerTransactionLogEntryIntegrationAPI created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty transaction occurred. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty transaction occurred.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public LedgerTransactionLogEntryIntegrationAPI programId(Long programId) { - public LedgerTransactionLogEntryIntegrationAPI programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public LedgerTransactionLogEntryIntegrationAPI customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where the transaction occurred. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where the transaction occurred.") @@ -194,199 +192,195 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } - public LedgerTransactionLogEntryIntegrationAPI type(TypeEnum type) { - + this.type = type; return this; } - /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + /** + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. + * * @return type - **/ + **/ @ApiModelProperty(example = "addition", required = true, value = "Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public LedgerTransactionLogEntryIntegrationAPI name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason of the loyalty ledger transaction. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 10% points of a purchase's current total", required = true, value = "Name or reason of the loyalty ledger transaction.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LedgerTransactionLogEntryIntegrationAPI startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are immediately active. - a timestamp value: Points become active at a given + * date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public LedgerTransactionLogEntryIntegrationAPI expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. + /** + * Date when points expire. Possible values are: - `unlimited`: Points + * have no expiration date. - `timestamp value`: Points expire on the + * given date. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-08-02T15:04:05Z07:00", required = true, value = "Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public LedgerTransactionLogEntryIntegrationAPI subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public LedgerTransactionLogEntryIntegrationAPI amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added or deducted in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added or deducted in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } + public LedgerTransactionLogEntryIntegrationAPI id(Long id) { - public LedgerTransactionLogEntryIntegrationAPI id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the loyalty ledger transaction. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public LedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { - public LedgerTransactionLogEntryIntegrationAPI rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** + /** * The ID of the ruleset containing the rule that triggered this effect. + * * @return rulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The ID of the ruleset containing the rule that triggered this effect.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } - public LedgerTransactionLogEntryIntegrationAPI ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that triggered this effect. + * * @return ruleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Add 2 points", value = "The name of the rule that triggered this effect.") @@ -394,22 +388,21 @@ public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public LedgerTransactionLogEntryIntegrationAPI flags(LoyaltyLedgerEntryFlags flags) { - + this.flags = flags; return this; } - /** + /** * Get flags + * * @return flags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -417,12 +410,10 @@ public LoyaltyLedgerEntryFlags getFlags() { return flags; } - public void setFlags(LoyaltyLedgerEntryFlags flags) { this.flags = flags; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -449,10 +440,10 @@ 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(created, programId, customerSessionId, type, name, startDate, expiryDate, subledgerId, amount, + id, rulesetId, ruleName, flags); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -486,4 +477,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LimitCounter.java b/src/main/java/one/talon/model/LimitCounter.java index a5bac14b..7d8f61c6 100644 --- a/src/main/java/one/talon/model/LimitCounter.java +++ b/src/main/java/one/talon/model/LimitCounter.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,19 +31,19 @@ public class LimitCounter { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -52,7 +51,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -60,7 +59,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_COUPON_ID = "couponId"; @SerializedName(SERIALIZED_NAME_COUPON_ID) - private Integer couponId; + private Long couponId; public static final String SERIALIZED_NAME_COUPON_VALUE = "couponValue"; @SerializedName(SERIALIZED_NAME_COUPON_VALUE) @@ -68,7 +67,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; public static final String SERIALIZED_NAME_REFERRAL_VALUE = "referralValue"; @SerializedName(SERIALIZED_NAME_REFERRAL_VALUE) @@ -90,150 +89,144 @@ public class LimitCounter { @SerializedName(SERIALIZED_NAME_COUNTER) private BigDecimal counter; + public LimitCounter campaignId(Long campaignId) { - public LimitCounter campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public LimitCounter applicationId(Long applicationId) { - public LimitCounter applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public LimitCounter accountId(Long accountId) { - public LimitCounter accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public LimitCounter id(Long id) { - public LimitCounter id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LimitCounter action(String action) { - + this.action = action; return this; } - /** + /** * The limitable action of the limit counter. + * * @return action - **/ + **/ @ApiModelProperty(example = "setDiscount", required = true, value = "The limitable action of the limit counter.") public String getAction() { return action; } - public void setAction(String action) { this.action = action; } + public LimitCounter profileId(Long profileId) { - public LimitCounter profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The profile ID for which this limit counter is used. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "335", value = "The profile ID for which this limit counter is used.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - public LimitCounter profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** + /** * The profile integration ID for which this limit counter is used. + * * @return profileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The profile integration ID for which this limit counter is used.") @@ -241,45 +234,43 @@ public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public LimitCounter couponId(Long couponId) { - public LimitCounter couponId(Integer couponId) { - this.couponId = couponId; return this; } - /** + /** * The internal coupon ID for which this limit counter is used. + * * @return couponId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "34", value = "The internal coupon ID for which this limit counter is used.") - public Integer getCouponId() { + public Long getCouponId() { return couponId; } - - public void setCouponId(Integer couponId) { + public void setCouponId(Long couponId) { this.couponId = couponId; } - public LimitCounter couponValue(String couponValue) { - + this.couponValue = couponValue; return this; } - /** + /** * The coupon value for which this limit counter is used. + * * @return couponValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "XMAS-20-2021", value = "The coupon value for which this limit counter is used.") @@ -287,45 +278,43 @@ public String getCouponValue() { return couponValue; } - public void setCouponValue(String couponValue) { this.couponValue = couponValue; } + public LimitCounter referralId(Long referralId) { - public LimitCounter referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** + /** * The referral ID for which this limit counter is used. + * * @return referralId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The referral ID for which this limit counter is used.") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public LimitCounter referralValue(String referralValue) { - + this.referralValue = referralValue; return this; } - /** + /** * The referral value for which this limit counter is used. + * * @return referralValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "", value = "The referral value for which this limit counter is used.") @@ -333,22 +322,21 @@ public String getReferralValue() { return referralValue; } - public void setReferralValue(String referralValue) { this.referralValue = referralValue; } - public LimitCounter identifier(String identifier) { - + this.identifier = identifier; return this; } - /** + /** * The arbitrary identifier for which this limit counter is used. + * * @return identifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "91.11.156.141", value = "The arbitrary identifier for which this limit counter is used.") @@ -356,22 +344,21 @@ public String getIdentifier() { return identifier; } - public void setIdentifier(String identifier) { this.identifier = identifier; } - public LimitCounter period(String period) { - + this.period = period; return this; } - /** + /** * The time period for which this limit counter is used. + * * @return period - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Y2021M8", value = "The time period for which this limit counter is used.") @@ -379,56 +366,52 @@ public String getPeriod() { return period; } - public void setPeriod(String period) { this.period = period; } - public LimitCounter limit(BigDecimal limit) { - + this.limit = limit; return this; } - /** + /** * The highest possible value for this limit counter. + * * @return limit - **/ + **/ @ApiModelProperty(example = "10.0", required = true, value = "The highest possible value for this limit counter.") public BigDecimal getLimit() { return limit; } - public void setLimit(BigDecimal limit) { this.limit = limit; } - public LimitCounter counter(BigDecimal counter) { - + this.counter = counter; return this; } - /** + /** * The current value for this limit counter. + * * @return counter - **/ + **/ @ApiModelProperty(example = "5.0", required = true, value = "The current value for this limit counter.") public BigDecimal getCounter() { return counter; } - public void setCounter(BigDecimal counter) { this.counter = counter; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -457,10 +440,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(campaignId, applicationId, accountId, id, action, profileId, profileIntegrationId, couponId, couponValue, referralId, referralValue, identifier, period, limit, counter); + return Objects.hash(campaignId, applicationId, accountId, id, action, profileId, profileIntegrationId, couponId, + couponValue, referralId, referralValue, identifier, period, limit, counter); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -496,4 +479,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ListCampaignStoreBudgets.java b/src/main/java/one/talon/model/ListCampaignStoreBudgets.java index af82bff9..99093de2 100644 --- a/src/main/java/one/talon/model/ListCampaignStoreBudgets.java +++ b/src/main/java/one/talon/model/ListCampaignStoreBudgets.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class ListCampaignStoreBudgets { public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) - private Integer limit; + private Long limit; public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -46,83 +45,80 @@ public class ListCampaignStoreBudgets { @SerializedName(SERIALIZED_NAME_PERIOD) private String period; - public ListCampaignStoreBudgets store(ListCampaignStoreBudgetsStore store) { - + this.store = store; return this; } - /** + /** * Get store + * * @return store - **/ + **/ @ApiModelProperty(required = true, value = "") public ListCampaignStoreBudgetsStore getStore() { return store; } - public void setStore(ListCampaignStoreBudgetsStore store) { this.store = store; } + public ListCampaignStoreBudgets limit(Long limit) { - public ListCampaignStoreBudgets limit(Integer limit) { - this.limit = limit; return this; } - /** + /** * Get limit + * * @return limit - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getLimit() { + public Long getLimit() { return limit; } - - public void setLimit(Integer limit) { + public void setLimit(Long limit) { this.limit = limit; } - public ListCampaignStoreBudgets action(String action) { - + this.action = action; return this; } - /** + /** * Get action + * * @return action - **/ + **/ @ApiModelProperty(required = true, value = "") public String getAction() { return action; } - public void setAction(String action) { this.action = action; } - public ListCampaignStoreBudgets period(String period) { - + this.period = period; return this; } - /** + /** * Get period + * * @return period - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -130,12 +126,10 @@ public String getPeriod() { return period; } - public void setPeriod(String period) { this.period = period; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -156,7 +150,6 @@ public int hashCode() { return Objects.hash(store, limit, action, period); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -181,4 +174,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java b/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java index a402aa05..c7242bbc 100644 --- a/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java +++ b/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class ListCampaignStoreBudgetsStore { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) @@ -41,73 +40,69 @@ public class ListCampaignStoreBudgetsStore { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public ListCampaignStoreBudgetsStore id(Long id) { - public ListCampaignStoreBudgetsStore id(Integer id) { - this.id = id; return this; } - /** + /** * Get id + * * @return id - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ListCampaignStoreBudgetsStore integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * Get integrationId + * * @return integrationId - **/ + **/ @ApiModelProperty(required = true, value = "") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public ListCampaignStoreBudgetsStore name(String name) { - + this.name = name; return this; } - /** + /** * Get name + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "") public String getName() { return name; } - public void setName(String name) { this.name = name; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,7 +122,6 @@ public int hashCode() { return Objects.hash(id, integrationId, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,4 +145,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyCard.java b/src/main/java/one/talon/model/LoyaltyCard.java index 99b4b53b..2fb64f5e 100644 --- a/src/main/java/one/talon/model/LoyaltyCard.java +++ b/src/main/java/one/talon/model/LoyaltyCard.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,7 +37,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,7 +45,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Integer programID; + private Long programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -70,7 +69,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Integer usersPerCardLimit; + private Long usersPerCardLimit; public static final String SERIALIZED_NAME_PROFILES = "profiles"; @SerializedName(SERIALIZED_NAME_PROFILES) @@ -100,83 +99,80 @@ public class LoyaltyCard { @SerializedName(SERIALIZED_NAME_BATCH_ID) private String batchId; + public LoyaltyCard id(Long id) { - public LoyaltyCard id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LoyaltyCard created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public LoyaltyCard programID(Long programID) { - public LoyaltyCard programID(Integer programID) { - this.programID = programID; return this; } - /** + /** * The ID of the loyalty program that owns this entity. + * * @return programID - **/ + **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Integer getProgramID() { + public Long getProgramID() { return programID; } - - public void setProgramID(Integer programID) { + public void setProgramID(Long programID) { this.programID = programID; } - public LoyaltyCard programName(String programName) { - + this.programName = programName; return this; } - /** + /** * The integration name of the loyalty program that owns this entity. + * * @return programName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty_program", value = "The integration name of the loyalty program that owns this entity.") @@ -184,22 +180,22 @@ public String getProgramName() { return programName; } - public void setProgramName(String programName) { this.programName = programName; } - public LoyaltyCard programTitle(String programTitle) { - + this.programTitle = programTitle; return this; } - /** - * The Campaign Manager-displayed name of the loyalty program that owns this entity. + /** + * The Campaign Manager-displayed name of the loyalty program that owns this + * entity. + * * @return programTitle - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty program", value = "The Campaign Manager-displayed name of the loyalty program that owns this entity.") @@ -207,44 +203,43 @@ public String getProgramTitle() { return programTitle; } - public void setProgramTitle(String programTitle) { this.programTitle = programTitle; } - public LoyaltyCard status(String status) { - + this.status = status; return this; } - /** - * Status of the loyalty card. Can be `active` or `inactive`. + /** + * Status of the loyalty card. Can be `active` or + * `inactive`. + * * @return status - **/ + **/ @ApiModelProperty(example = "active", required = true, value = "Status of the loyalty card. Can be `active` or `inactive`. ") public String getStatus() { return status; } - public void setStatus(String status) { this.status = status; } - public LoyaltyCard blockReason(String blockReason) { - + this.blockReason = blockReason; return this; } - /** - * Reason for transferring and blocking the loyalty card. + /** + * Reason for transferring and blocking the loyalty card. + * * @return blockReason - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Current card lost. Customer needs a new card.", value = "Reason for transferring and blocking the loyalty card. ") @@ -252,59 +247,56 @@ public String getBlockReason() { return blockReason; } - public void setBlockReason(String blockReason) { this.blockReason = blockReason; } - public LoyaltyCard identifier(String identifier) { - + this.identifier = identifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return identifier - **/ + **/ @ApiModelProperty(example = "summer-loyalty-card-0543", required = true, value = "The alphanumeric identifier of the loyalty card. ") public String getIdentifier() { return identifier; } - public void setIdentifier(String identifier) { this.identifier = identifier; } + public LoyaltyCard usersPerCardLimit(Long usersPerCardLimit) { - public LoyaltyCard usersPerCardLimit(Integer usersPerCardLimit) { - this.usersPerCardLimit = usersPerCardLimit; return this; } - /** - * The max amount of customer profiles that can be linked to the card. 0 means unlimited. + /** + * The max amount of customer profiles that can be linked to the card. 0 means + * unlimited. * minimum: 0 + * * @return usersPerCardLimit - **/ + **/ @ApiModelProperty(example = "111", required = true, value = "The max amount of customer profiles that can be linked to the card. 0 means unlimited. ") - public Integer getUsersPerCardLimit() { + public Long getUsersPerCardLimit() { return usersPerCardLimit; } - - public void setUsersPerCardLimit(Integer usersPerCardLimit) { + public void setUsersPerCardLimit(Long usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } - public LoyaltyCard profiles(List profiles) { - + this.profiles = profiles; return this; } @@ -317,10 +309,11 @@ public LoyaltyCard addProfilesItem(LoyaltyCardProfileRegistration profilesItem) return this; } - /** + /** * Integration IDs of the customers profiles linked to the card. + * * @return profiles - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Integration IDs of the customers profiles linked to the card.") @@ -328,22 +321,21 @@ public List getProfiles() { return profiles; } - public void setProfiles(List profiles) { this.profiles = profiles; } - public LoyaltyCard ledger(LedgerInfo ledger) { - + this.ledger = ledger; return this; } - /** + /** * Get ledger + * * @return ledger - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -351,14 +343,12 @@ public LedgerInfo getLedger() { return ledger; } - public void setLedger(LedgerInfo ledger) { this.ledger = ledger; } - public LoyaltyCard subledgers(Map subledgers) { - + this.subledgers = subledgers; return this; } @@ -371,10 +361,11 @@ public LoyaltyCard putSubledgersItem(String key, LedgerInfo subledgersItem) { return this; } - /** + /** * Displays point balances of the card in the subledgers of the loyalty program. + * * @return subledgers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Displays point balances of the card in the subledgers of the loyalty program.") @@ -382,22 +373,21 @@ public Map getSubledgers() { return subledgers; } - public void setSubledgers(Map subledgers) { this.subledgers = subledgers; } - public LoyaltyCard modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * Timestamp of the most recent update of the loyalty card. + * * @return modified - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp of the most recent update of the loyalty card.") @@ -405,22 +395,21 @@ public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public LoyaltyCard oldCardIdentifier(String oldCardIdentifier) { - + this.oldCardIdentifier = oldCardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return oldCardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -428,22 +417,21 @@ public String getOldCardIdentifier() { return oldCardIdentifier; } - public void setOldCardIdentifier(String oldCardIdentifier) { this.oldCardIdentifier = oldCardIdentifier; } - public LoyaltyCard newCardIdentifier(String newCardIdentifier) { - + this.newCardIdentifier = newCardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return newCardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -451,22 +439,21 @@ public String getNewCardIdentifier() { return newCardIdentifier; } - public void setNewCardIdentifier(String newCardIdentifier) { this.newCardIdentifier = newCardIdentifier; } - public LoyaltyCard batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The ID of the batch in which the loyalty card was created. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "wdefpov", value = "The ID of the batch in which the loyalty card was created.") @@ -474,12 +461,10 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -509,10 +494,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, programID, programName, programTitle, status, blockReason, identifier, usersPerCardLimit, profiles, ledger, subledgers, modified, oldCardIdentifier, newCardIdentifier, batchId); + return Objects.hash(id, created, programID, programName, programTitle, status, blockReason, identifier, + usersPerCardLimit, profiles, ledger, subledgers, modified, oldCardIdentifier, newCardIdentifier, batchId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -549,4 +534,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyCardBatch.java b/src/main/java/one/talon/model/LoyaltyCardBatch.java index a5bb9eb6..b2268a14 100644 --- a/src/main/java/one/talon/model/LoyaltyCardBatch.java +++ b/src/main/java/one/talon/model/LoyaltyCardBatch.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class LoyaltyCardBatch { public static final String SERIALIZED_NAME_NUMBER_OF_CARDS = "numberOfCards"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_CARDS) - private Integer numberOfCards; + private Long numberOfCards; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) @@ -44,7 +43,7 @@ public class LoyaltyCardBatch { @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { ACTIVE("active"), - + INACTIVE("inactive"); private String value; @@ -79,7 +78,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -93,39 +92,38 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CARD_CODE_SETTINGS) private CodeGeneratorSettings cardCodeSettings; + public LoyaltyCardBatch numberOfCards(Long numberOfCards) { - public LoyaltyCardBatch numberOfCards(Integer numberOfCards) { - this.numberOfCards = numberOfCards; return this; } - /** + /** * Number of loyalty cards in the batch. + * * @return numberOfCards - **/ + **/ @ApiModelProperty(example = "5000", required = true, value = "Number of loyalty cards in the batch.") - public Integer getNumberOfCards() { + public Long getNumberOfCards() { return numberOfCards; } - - public void setNumberOfCards(Integer numberOfCards) { + public void setNumberOfCards(Long numberOfCards) { this.numberOfCards = numberOfCards; } - public LoyaltyCardBatch batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * ID of the loyalty card batch. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "hwernpjz", value = "ID of the loyalty card batch.") @@ -133,22 +131,21 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - public LoyaltyCardBatch status(StatusEnum status) { - + this.status = status; return this; } - /** + /** * Status of the loyalty cards in the batch. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "active", value = "Status of the loyalty cards in the batch.") @@ -156,22 +153,21 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - public LoyaltyCardBatch cardCodeSettings(CodeGeneratorSettings cardCodeSettings) { - + this.cardCodeSettings = cardCodeSettings; return this; } - /** + /** * Get cardCodeSettings + * * @return cardCodeSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -179,12 +175,10 @@ public CodeGeneratorSettings getCardCodeSettings() { return cardCodeSettings; } - public void setCardCodeSettings(CodeGeneratorSettings cardCodeSettings) { this.cardCodeSettings = cardCodeSettings; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -205,7 +199,6 @@ public int hashCode() { return Objects.hash(numberOfCards, batchId, status, cardCodeSettings); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -230,4 +223,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java b/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java index 2ea77ea9..ef06d1be 100644 --- a/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java +++ b/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,57 +30,54 @@ public class LoyaltyCardBatchResponse { public static final String SERIALIZED_NAME_NUMBER_OF_CARDS_GENERATED = "numberOfCardsGenerated"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_CARDS_GENERATED) - private Integer numberOfCardsGenerated; + private Long numberOfCardsGenerated; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) private String batchId; + public LoyaltyCardBatchResponse numberOfCardsGenerated(Long numberOfCardsGenerated) { - public LoyaltyCardBatchResponse numberOfCardsGenerated(Integer numberOfCardsGenerated) { - this.numberOfCardsGenerated = numberOfCardsGenerated; return this; } - /** + /** * Number of loyalty cards in the batch. + * * @return numberOfCardsGenerated - **/ + **/ @ApiModelProperty(example = "5000", required = true, value = "Number of loyalty cards in the batch.") - public Integer getNumberOfCardsGenerated() { + public Long getNumberOfCardsGenerated() { return numberOfCardsGenerated; } - - public void setNumberOfCardsGenerated(Integer numberOfCardsGenerated) { + public void setNumberOfCardsGenerated(Long numberOfCardsGenerated) { this.numberOfCardsGenerated = numberOfCardsGenerated; } - public LoyaltyCardBatchResponse batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * ID of the loyalty card batch. + * * @return batchId - **/ + **/ @ApiModelProperty(example = "hwernpjz", required = true, value = "ID of the loyalty card batch.") public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(numberOfCardsGenerated, batchId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyLedgerEntry.java b/src/main/java/one/talon/model/LoyaltyLedgerEntry.java index b1876bcf..c8006510 100644 --- a/src/main/java/one/talon/model/LoyaltyLedgerEntry.java +++ b/src/main/java/one/talon/model/LoyaltyLedgerEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,7 +38,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Integer programID; + private Long programID; public static final String SERIALIZED_NAME_CUSTOMER_PROFILE_I_D = "customerProfileID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE_I_D) @@ -47,7 +46,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_CARD_I_D = "cardID"; @SerializedName(SERIALIZED_NAME_CARD_I_D) - private Integer cardID; + private Long cardID; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_I_D = "customerSessionID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_I_D) @@ -55,7 +54,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_EVENT_I_D = "eventID"; @SerializedName(SERIALIZED_NAME_EVENT_I_D) - private Integer eventID; + private Long eventID; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -83,7 +82,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) - private Integer userID; + private Long userID; public static final String SERIALIZED_NAME_ARCHIVED = "archived"; @SerializedName(SERIALIZED_NAME_ARCHIVED) @@ -93,61 +92,59 @@ public class LoyaltyLedgerEntry { @SerializedName(SERIALIZED_NAME_FLAGS) private LoyaltyLedgerEntryFlags flags; - public LoyaltyLedgerEntry created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Get created + * * @return created - **/ + **/ @ApiModelProperty(example = "2021-07-20T22:00Z", required = true, value = "") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public LoyaltyLedgerEntry programID(Long programID) { - public LoyaltyLedgerEntry programID(Integer programID) { - this.programID = programID; return this; } - /** + /** * Get programID + * * @return programID - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "") - public Integer getProgramID() { + public Long getProgramID() { return programID; } - - public void setProgramID(Integer programID) { + public void setProgramID(Long programID) { this.programID = programID; } - public LoyaltyLedgerEntry customerProfileID(String customerProfileID) { - + this.customerProfileID = customerProfileID; return this; } - /** + /** * Get customerProfileID + * * @return customerProfileID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "") @@ -155,45 +152,43 @@ public String getCustomerProfileID() { return customerProfileID; } - public void setCustomerProfileID(String customerProfileID) { this.customerProfileID = customerProfileID; } + public LoyaltyLedgerEntry cardID(Long cardID) { - public LoyaltyLedgerEntry cardID(Integer cardID) { - this.cardID = cardID; return this; } - /** + /** * Get cardID + * * @return cardID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "241", value = "") - public Integer getCardID() { + public Long getCardID() { return cardID; } - - public void setCardID(Integer cardID) { + public void setCardID(Long cardID) { this.cardID = cardID; } - public LoyaltyLedgerEntry customerSessionID(String customerSessionID) { - + this.customerSessionID = customerSessionID; return this; } - /** + /** * Get customerSessionID + * * @return customerSessionID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "t2gy5s-47274", value = "") @@ -201,89 +196,87 @@ public String getCustomerSessionID() { return customerSessionID; } - public void setCustomerSessionID(String customerSessionID) { this.customerSessionID = customerSessionID; } + public LoyaltyLedgerEntry eventID(Long eventID) { - public LoyaltyLedgerEntry eventID(Integer eventID) { - this.eventID = eventID; return this; } - /** + /** * Get eventID + * * @return eventID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "") - public Integer getEventID() { + public Long getEventID() { return eventID; } - - public void setEventID(Integer eventID) { + public void setEventID(Long eventID) { this.eventID = eventID; } - public LoyaltyLedgerEntry type(String type) { - + this.type = type; return this; } - /** - * The type of the ledger transaction. Possible values are: - `addition` - `subtraction` - `expire` - `expiring` (for expiring points ledgers) + /** + * The type of the ledger transaction. Possible values are: - + * `addition` - `subtraction` - `expire` - + * `expiring` (for expiring points ledgers) + * * @return type - **/ + **/ @ApiModelProperty(example = "addition", required = true, value = "The type of the ledger transaction. Possible values are: - `addition` - `subtraction` - `expire` - `expiring` (for expiring points ledgers) ") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public LoyaltyLedgerEntry amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Get amount + * * @return amount - **/ + **/ @ApiModelProperty(example = "100.0", required = true, value = "") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } - public LoyaltyLedgerEntry startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Get startDate + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "") @@ -291,22 +284,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public LoyaltyLedgerEntry expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Get expiryDate + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2022-07-20T22:00Z", value = "") @@ -314,89 +306,88 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public LoyaltyLedgerEntry name(String name) { - + this.name = name; return this; } - /** - * A name referencing the condition or effect that added this entry, or the specific name provided in an API call. + /** + * A name referencing the condition or effect that added this entry, or the + * specific name provided in an API call. + * * @return name - **/ + **/ @ApiModelProperty(example = "Add points on purchase", required = true, value = "A name referencing the condition or effect that added this entry, or the specific name provided in an API call.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LoyaltyLedgerEntry subLedgerID(String subLedgerID) { - + this.subLedgerID = subLedgerID; return this; } - /** - * This specifies if we are adding loyalty points to the main ledger or a subledger. + /** + * This specifies if we are adding loyalty points to the main ledger or a + * subledger. + * * @return subLedgerID - **/ + **/ @ApiModelProperty(example = "mysubledger", required = true, value = "This specifies if we are adding loyalty points to the main ledger or a subledger.") public String getSubLedgerID() { return subLedgerID; } - public void setSubLedgerID(String subLedgerID) { this.subLedgerID = subLedgerID; } + public LoyaltyLedgerEntry userID(Long userID) { - public LoyaltyLedgerEntry userID(Integer userID) { - this.userID = userID; return this; } - /** - * This is the ID of the user who created this entry, if the addition or subtraction was done manually. + /** + * This is the ID of the user who created this entry, if the addition or + * subtraction was done manually. + * * @return userID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "499", value = "This is the ID of the user who created this entry, if the addition or subtraction was done manually.") - public Integer getUserID() { + public Long getUserID() { return userID; } - - public void setUserID(Integer userID) { + public void setUserID(Long userID) { this.userID = userID; } - public LoyaltyLedgerEntry archived(Boolean archived) { - + this.archived = archived; return this; } - /** + /** * Indicates if the entry belongs to the archived session. + * * @return archived - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates if the entry belongs to the archived session.") @@ -404,22 +395,21 @@ public Boolean getArchived() { return archived; } - public void setArchived(Boolean archived) { this.archived = archived; } - public LoyaltyLedgerEntry flags(LoyaltyLedgerEntryFlags flags) { - + this.flags = flags; return this; } - /** + /** * Get flags + * * @return flags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -427,12 +417,10 @@ public LoyaltyLedgerEntryFlags getFlags() { return flags; } - public void setFlags(LoyaltyLedgerEntryFlags flags) { this.flags = flags; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -461,10 +449,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(created, programID, customerProfileID, cardID, customerSessionID, eventID, type, amount, startDate, expiryDate, name, subLedgerID, userID, archived, flags); + return Objects.hash(created, programID, customerProfileID, cardID, customerSessionID, eventID, type, amount, + startDate, expiryDate, name, subLedgerID, userID, archived, flags); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -500,4 +488,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyMembership.java b/src/main/java/one/talon/model/LoyaltyMembership.java index 40e1ab44..b5b55779 100644 --- a/src/main/java/one/talon/model/LoyaltyMembership.java +++ b/src/main/java/one/talon/model/LoyaltyMembership.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,19 +35,19 @@ public class LoyaltyMembership { public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Integer loyaltyProgramId; - + private Long loyaltyProgramId; public LoyaltyMembership joined(OffsetDateTime joined) { - + this.joined = joined; return this; } - /** + /** * The moment in which the loyalty program was joined. + * * @return joined - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2012-03-20T14:15:22Z", value = "The moment in which the loyalty program was joined.") @@ -56,34 +55,31 @@ public OffsetDateTime getJoined() { return joined; } - public void setJoined(OffsetDateTime joined) { this.joined = joined; } + public LoyaltyMembership loyaltyProgramId(Long loyaltyProgramId) { - public LoyaltyMembership loyaltyProgramId(Integer loyaltyProgramId) { - this.loyaltyProgramId = loyaltyProgramId; return this; } - /** + /** * The ID of the loyalty program belonging to this entity. + * * @return loyaltyProgramId - **/ + **/ @ApiModelProperty(example = "323414846", required = true, value = "The ID of the loyalty program belonging to this entity.") - public Integer getLoyaltyProgramId() { + public Long getLoyaltyProgramId() { return loyaltyProgramId; } - - public void setLoyaltyProgramId(Integer loyaltyProgramId) { + public void setLoyaltyProgramId(Long loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -102,7 +98,6 @@ public int hashCode() { return Objects.hash(joined, loyaltyProgramId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -125,4 +120,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyProgram.java b/src/main/java/one/talon/model/LoyaltyProgram.java index 39812e36..8d1f2c64 100644 --- a/src/main/java/one/talon/model/LoyaltyProgram.java +++ b/src/main/java/one/talon/model/LoyaltyProgram.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,7 +52,7 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = new ArrayList(); + private List subscribedApplications = new ArrayList(); public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -69,21 +68,27 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Integer usersPerCardLimit; + private Long usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. */ @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) public enum ProgramJoinPolicyEnum { NOT_JOIN("not_join"), - + POINTS_ACTIVATED("points_activated"), - + POINTS_EARNED("points_earned"); private String value; @@ -118,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enume @Override public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ProgramJoinPolicyEnum.fromValue(value); } } @@ -129,16 +134,24 @@ public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOExceptio private ProgramJoinPolicyEnum programJoinPolicy; /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. */ @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) public enum TiersExpirationPolicyEnum { TIER_START_DATE("tier_start_date"), - + PROGRAM_JOIN_DATE("program_join_date"), - + CUSTOMER_ATTRIBUTE("customer_attribute"), - + ABSOLUTE_EXPIRATION("absolute_expiration"); private String value; @@ -173,7 +186,7 @@ public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum e @Override public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersExpirationPolicyEnum.fromValue(value); } } @@ -192,12 +205,16 @@ public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOExce private String tiersExpireIn; /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. */ @JsonAdapter(TiersDowngradePolicyEnum.Adapter.class) public enum TiersDowngradePolicyEnum { ONE_DOWN("one_down"), - + BALANCE_BASED("balance_based"); private String value; @@ -232,7 +249,7 @@ public void write(final JsonWriter jsonWriter, final TiersDowngradePolicyEnum en @Override public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersDowngradePolicyEnum.fromValue(value); } } @@ -247,14 +264,21 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep private CodeGeneratorSettings cardCodeSettings; /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. */ @JsonAdapter(ReturnPolicyEnum.Adapter.class) public enum ReturnPolicyEnum { ONLY_PENDING("only_pending"), - + WITHIN_BALANCE("within_balance"), - + UNLIMITED("unlimited"); private String value; @@ -289,7 +313,7 @@ public void write(final JsonWriter jsonWriter, final ReturnPolicyEnum enumeratio @Override public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReturnPolicyEnum.fromValue(value); } } @@ -301,7 +325,7 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Integer accountID; + private Long accountID; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -339,244 +363,260 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAN_UPDATE_SUBLEDGERS) private Boolean canUpdateSubledgers = false; + public LoyaltyProgram id(Long id) { - public LoyaltyProgram id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of loyalty program. + * * @return id - **/ + **/ @ApiModelProperty(example = "139", required = true, value = "The ID of loyalty program.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LoyaltyProgram created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public LoyaltyProgram title(String title) { - + this.title = title; return this; } - /** + /** * The display title for the Loyalty Program. + * * @return title - **/ + **/ @ApiModelProperty(example = "Point collection", required = true, value = "The display title for the Loyalty Program.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public LoyaltyProgram description(String description) { - + this.description = description; return this; } - /** + /** * Description of our Loyalty Program. + * * @return description - **/ + **/ @ApiModelProperty(example = "Customers collect 10 points per 1$ spent", required = true, value = "Description of our Loyalty Program.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public LoyaltyProgram subscribedApplications(List subscribedApplications) { - public LoyaltyProgram subscribedApplications(List subscribedApplications) { - this.subscribedApplications = subscribedApplications; return this; } - public LoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { + public LoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { this.subscribedApplications.add(subscribedApplicationsItem); return this; } - /** - * A list containing the IDs of all applications that are subscribed to this Loyalty Program. + /** + * A list containing the IDs of all applications that are subscribed to this + * Loyalty Program. + * * @return subscribedApplications - **/ + **/ @ApiModelProperty(example = "[132, 97]", required = true, value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } - public LoyaltyProgram defaultValidity(String defaultValidity) { - + this.defaultValidity = defaultValidity; return this; } - /** - * The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration after which new loyalty points should expire. Can be + * 'unlimited' or a specific time. The time format is a number followed + * by one letter indicating the time unit, like '30s', '40m', + * '1h', '5D', '7W', or 10M'. These rounding + * suffixes are also supported: - '_D' for rounding down. Can be used as + * a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultValidity - **/ + **/ @ApiModelProperty(example = "2W_U", required = true, value = "The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") public String getDefaultValidity() { return defaultValidity; } - public void setDefaultValidity(String defaultValidity) { this.defaultValidity = defaultValidity; } - public LoyaltyProgram defaultPending(String defaultPending) { - + this.defaultPending = defaultPending; return this; } - /** - * The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration of the pending time after which points should be valid. + * Can be 'immediate' or a specific time. The time format is a number + * followed by one letter indicating the time unit, like '30s', + * '40m', '1h', '5D', '7W', or 10M'. These + * rounding suffixes are also supported: - '_D' for rounding down. Can + * be used as a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultPending - **/ + **/ @ApiModelProperty(example = "immediate", required = true, value = "The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") public String getDefaultPending() { return defaultPending; } - public void setDefaultPending(String defaultPending) { this.defaultPending = defaultPending; } - public LoyaltyProgram allowSubledger(Boolean allowSubledger) { - + this.allowSubledger = allowSubledger; return this; } - /** + /** * Indicates if this program supports subledgers inside the program. + * * @return allowSubledger - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "Indicates if this program supports subledgers inside the program.") public Boolean getAllowSubledger() { return allowSubledger; } - public void setAllowSubledger(Boolean allowSubledger) { this.allowSubledger = allowSubledger; } + public LoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { - public LoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { - this.usersPerCardLimit = usersPerCardLimit; return this; } - /** - * The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. + /** + * The max amount of user profiles with whom a card can be shared. This can be + * set to 0 for no limit. This property is only used when `cardBased` + * is `true`. * minimum: 0 + * * @return usersPerCardLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Integer getUsersPerCardLimit() { + public Long getUsersPerCardLimit() { return usersPerCardLimit; } - - public void setUsersPerCardLimit(Integer usersPerCardLimit) { + public void setUsersPerCardLimit(Long usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } - public LoyaltyProgram sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public LoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { - + this.programJoinPolicy = programJoinPolicy; return this; } - /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + /** + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. + * * @return programJoinPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. ") @@ -584,22 +624,29 @@ public ProgramJoinPolicyEnum getProgramJoinPolicy() { return programJoinPolicy; } - public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { this.programJoinPolicy = programJoinPolicy; } - public LoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { - + this.tiersExpirationPolicy = tiersExpirationPolicy; return this; } - /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + /** + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. + * * @return tiersExpirationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. ") @@ -607,22 +654,23 @@ public TiersExpirationPolicyEnum getTiersExpirationPolicy() { return tiersExpirationPolicy; } - public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { this.tiersExpirationPolicy = tiersExpirationPolicy; } - public LoyaltyProgram tierCycleStartDate(OffsetDateTime tierCycleStartDate) { - + this.tierCycleStartDate = tierCycleStartDate; return this; } - /** - * Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. + /** + * Timestamp at which the tier cycle starts for all customers in the loyalty + * program. **Note**: This is only required when the tier expiration policy is + * set to `absolute_expiration`. + * * @return tierCycleStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. ") @@ -630,22 +678,30 @@ public OffsetDateTime getTierCycleStartDate() { return tierCycleStartDate; } - public void setTierCycleStartDate(OffsetDateTime tierCycleStartDate) { this.tierCycleStartDate = tierCycleStartDate; } - public LoyaltyProgram tiersExpireIn(String tiersExpireIn) { - + this.tiersExpireIn = tiersExpireIn; return this; } - /** - * The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + /** + * The amount of time after which the tier expires and is reevaluated. The time + * format is an **integer** followed by one letter indicating the time unit. + * Examples: `30s`, `40m`, `1h`, `5D`, + * `7W`, `10M`, `15Y`. Available units: - + * `s`: seconds - `m`: minutes - `h`: hours - + * `D`: days - `W`: weeks - `M`: months - + * `Y`: years You can round certain units up or down: - `_D` + * for rounding down days only. Signifies the start of the day. - `_U` + * for rounding up days, weeks, months and years. Signifies the end of the day, + * week, month or year. + * * @return tiersExpireIn - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "27W_U", value = "The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. ") @@ -653,22 +709,25 @@ public String getTiersExpireIn() { return tiersExpireIn; } - public void setTiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; } - public LoyaltyProgram tiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { - + this.tiersDowngradePolicy = tiersDowngradePolicy; return this; } - /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + /** + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. + * * @return tiersDowngradePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. ") @@ -676,22 +735,21 @@ public TiersDowngradePolicyEnum getTiersDowngradePolicy() { return tiersDowngradePolicy; } - public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { this.tiersDowngradePolicy = tiersDowngradePolicy; } - public LoyaltyProgram cardCodeSettings(CodeGeneratorSettings cardCodeSettings) { - + this.cardCodeSettings = cardCodeSettings; return this; } - /** + /** * Get cardCodeSettings + * * @return cardCodeSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -699,22 +757,28 @@ public CodeGeneratorSettings getCardCodeSettings() { return cardCodeSettings; } - public void setCardCodeSettings(CodeGeneratorSettings cardCodeSettings) { this.cardCodeSettings = cardCodeSettings; } - public LoyaltyProgram returnPolicy(ReturnPolicyEnum returnPolicy) { - + this.returnPolicy = returnPolicy; return this; } - /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + /** + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. + * * @return returnPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. ") @@ -722,58 +786,54 @@ public ReturnPolicyEnum getReturnPolicy() { return returnPolicy; } - public void setReturnPolicy(ReturnPolicyEnum returnPolicy) { this.returnPolicy = returnPolicy; } + public LoyaltyProgram accountID(Long accountID) { - public LoyaltyProgram accountID(Integer accountID) { - this.accountID = accountID; return this; } - /** + /** * The ID of the Talon.One account that owns this program. + * * @return accountID - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the Talon.One account that owns this program.") - public Integer getAccountID() { + public Long getAccountID() { return accountID; } - - public void setAccountID(Integer accountID) { + public void setAccountID(Long accountID) { this.accountID = accountID; } - public LoyaltyProgram name(String name) { - + this.name = name; return this; } - /** + /** * The internal name for the Loyalty Program. This is an immutable value. + * * @return name - **/ + **/ @ApiModelProperty(example = "my_program", required = true, value = "The internal name for the Loyalty Program. This is an immutable value.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LoyaltyProgram tiers(List tiers) { - + this.tiers = tiers; return this; } @@ -786,10 +846,11 @@ public LoyaltyProgram addTiersItem(LoyaltyTier tiersItem) { return this; } - /** + /** * The tiers in this loyalty program. + * * @return tiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[{name=Gold, minPoints=300, id=3, created=2021-06-10T09:05:27.993483Z, programID=139}, {name=Silver, minPoints=200, id=2, created=2021-06-10T09:04:59.355258Z, programID=139}, {name=Bronze, minPoints=100, id=1, created=2021-06-10T09:04:39.355258Z, programID=139}]", value = "The tiers in this loyalty program.") @@ -797,66 +858,64 @@ public List getTiers() { return tiers; } - public void setTiers(List tiers) { this.tiers = tiers; } - public LoyaltyProgram timezone(String timezone) { - + this.timezone = timezone; return this; } - /** + /** * A string containing an IANA timezone descriptor. + * * @return timezone - **/ + **/ @ApiModelProperty(example = "Europe/Berlin", required = true, value = "A string containing an IANA timezone descriptor.") public String getTimezone() { return timezone; } - public void setTimezone(String timezone) { this.timezone = timezone; } - public LoyaltyProgram cardBased(Boolean cardBased) { - + this.cardBased = cardBased; return this; } - /** - * Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based. + /** + * Defines the type of loyalty program: - `true`: the program is a + * card-based. - `false`: the program is profile-based. + * * @return cardBased - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based. ") public Boolean getCardBased() { return cardBased; } - public void setCardBased(Boolean cardBased) { this.cardBased = cardBased; } - public LoyaltyProgram canUpdateTiers(Boolean canUpdateTiers) { - + this.canUpdateTiers = canUpdateTiers; return this; } - /** - * `True` if the tier definitions can be updated. + /** + * `True` if the tier definitions can be updated. + * * @return canUpdateTiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "`True` if the tier definitions can be updated. ") @@ -864,22 +923,21 @@ public Boolean getCanUpdateTiers() { return canUpdateTiers; } - public void setCanUpdateTiers(Boolean canUpdateTiers) { this.canUpdateTiers = canUpdateTiers; } - public LoyaltyProgram canUpdateJoinPolicy(Boolean canUpdateJoinPolicy) { - + this.canUpdateJoinPolicy = canUpdateJoinPolicy; return this; } - /** - * `True` if the program join policy can be updated. + /** + * `True` if the program join policy can be updated. + * * @return canUpdateJoinPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "`True` if the program join policy can be updated. ") @@ -887,22 +945,21 @@ public Boolean getCanUpdateJoinPolicy() { return canUpdateJoinPolicy; } - public void setCanUpdateJoinPolicy(Boolean canUpdateJoinPolicy) { this.canUpdateJoinPolicy = canUpdateJoinPolicy; } - public LoyaltyProgram canUpdateTierExpirationPolicy(Boolean canUpdateTierExpirationPolicy) { - + this.canUpdateTierExpirationPolicy = canUpdateTierExpirationPolicy; return this; } - /** - * `True` if the tier expiration policy can be updated. + /** + * `True` if the tier expiration policy can be updated. + * * @return canUpdateTierExpirationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "`True` if the tier expiration policy can be updated. ") @@ -910,22 +967,22 @@ public Boolean getCanUpdateTierExpirationPolicy() { return canUpdateTierExpirationPolicy; } - public void setCanUpdateTierExpirationPolicy(Boolean canUpdateTierExpirationPolicy) { this.canUpdateTierExpirationPolicy = canUpdateTierExpirationPolicy; } - public LoyaltyProgram canUpgradeToAdvancedTiers(Boolean canUpgradeToAdvancedTiers) { - + this.canUpgradeToAdvancedTiers = canUpgradeToAdvancedTiers; return this; } - /** - * `True` if the program can be upgraded to use the `tiersExpireIn` and `tiersDowngradePolicy` properties. + /** + * `True` if the program can be upgraded to use the + * `tiersExpireIn` and `tiersDowngradePolicy` properties. + * * @return canUpgradeToAdvancedTiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "`True` if the program can be upgraded to use the `tiersExpireIn` and `tiersDowngradePolicy` properties. ") @@ -933,22 +990,22 @@ public Boolean getCanUpgradeToAdvancedTiers() { return canUpgradeToAdvancedTiers; } - public void setCanUpgradeToAdvancedTiers(Boolean canUpgradeToAdvancedTiers) { this.canUpgradeToAdvancedTiers = canUpgradeToAdvancedTiers; } - public LoyaltyProgram canUpdateSubledgers(Boolean canUpdateSubledgers) { - + this.canUpdateSubledgers = canUpdateSubledgers; return this; } - /** - * `True` if the `allowSubledger` property can be updated in the loyalty program. + /** + * `True` if the `allowSubledger` property can be updated in + * the loyalty program. + * * @return canUpdateSubledgers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "`True` if the `allowSubledger` property can be updated in the loyalty program. ") @@ -956,12 +1013,10 @@ public Boolean getCanUpdateSubledgers() { return canUpdateSubledgers; } - public void setCanUpdateSubledgers(Boolean canUpdateSubledgers) { this.canUpdateSubledgers = canUpdateSubledgers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -1002,10 +1057,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, tiersDowngradePolicy, cardCodeSettings, returnPolicy, accountID, name, tiers, timezone, cardBased, canUpdateTiers, canUpdateJoinPolicy, canUpdateTierExpirationPolicy, canUpgradeToAdvancedTiers, canUpdateSubledgers); + return Objects.hash(id, created, title, description, subscribedApplications, defaultValidity, defaultPending, + allowSubledger, usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, + tiersExpireIn, tiersDowngradePolicy, cardCodeSettings, returnPolicy, accountID, name, tiers, timezone, + cardBased, canUpdateTiers, canUpdateJoinPolicy, canUpdateTierExpirationPolicy, canUpgradeToAdvancedTiers, + canUpdateSubledgers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1034,7 +1092,8 @@ public String toString() { sb.append(" cardBased: ").append(toIndentedString(cardBased)).append("\n"); sb.append(" canUpdateTiers: ").append(toIndentedString(canUpdateTiers)).append("\n"); sb.append(" canUpdateJoinPolicy: ").append(toIndentedString(canUpdateJoinPolicy)).append("\n"); - sb.append(" canUpdateTierExpirationPolicy: ").append(toIndentedString(canUpdateTierExpirationPolicy)).append("\n"); + sb.append(" canUpdateTierExpirationPolicy: ").append(toIndentedString(canUpdateTierExpirationPolicy)) + .append("\n"); sb.append(" canUpgradeToAdvancedTiers: ").append(toIndentedString(canUpgradeToAdvancedTiers)).append("\n"); sb.append(" canUpdateSubledgers: ").append(toIndentedString(canUpdateSubledgers)).append("\n"); sb.append("}"); @@ -1053,4 +1112,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyProgramEntity.java b/src/main/java/one/talon/model/LoyaltyProgramEntity.java index 84dfd908..6f212faa 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramEntity.java +++ b/src/main/java/one/talon/model/LoyaltyProgramEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class LoyaltyProgramEntity { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Integer programID; + private Long programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -41,39 +40,38 @@ public class LoyaltyProgramEntity { @SerializedName(SERIALIZED_NAME_PROGRAM_TITLE) private String programTitle; + public LoyaltyProgramEntity programID(Long programID) { - public LoyaltyProgramEntity programID(Integer programID) { - this.programID = programID; return this; } - /** + /** * The ID of the loyalty program that owns this entity. + * * @return programID - **/ + **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Integer getProgramID() { + public Long getProgramID() { return programID; } - - public void setProgramID(Integer programID) { + public void setProgramID(Long programID) { this.programID = programID; } - public LoyaltyProgramEntity programName(String programName) { - + this.programName = programName; return this; } - /** + /** * The integration name of the loyalty program that owns this entity. + * * @return programName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty_program", value = "The integration name of the loyalty program that owns this entity.") @@ -81,22 +79,22 @@ public String getProgramName() { return programName; } - public void setProgramName(String programName) { this.programName = programName; } - public LoyaltyProgramEntity programTitle(String programTitle) { - + this.programTitle = programTitle; return this; } - /** - * The Campaign Manager-displayed name of the loyalty program that owns this entity. + /** + * The Campaign Manager-displayed name of the loyalty program that owns this + * entity. + * * @return programTitle - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty program", value = "The Campaign Manager-displayed name of the loyalty program that owns this entity.") @@ -104,12 +102,10 @@ public String getProgramTitle() { return programTitle; } - public void setProgramTitle(String programTitle) { this.programTitle = programTitle; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +125,6 @@ public int hashCode() { return Objects.hash(programID, programName, programTitle); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java index 484ebdf0..5263e309 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java +++ b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class LoyaltyProgramLedgers { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -59,83 +58,81 @@ public class LoyaltyProgramLedgers { @SerializedName(SERIALIZED_NAME_SUB_LEDGERS) private Map subLedgers = null; + public LoyaltyProgramLedgers id(Long id) { - public LoyaltyProgramLedgers id(Integer id) { - this.id = id; return this; } - /** + /** * The internal ID of loyalty program. + * * @return id - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The internal ID of loyalty program.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LoyaltyProgramLedgers title(String title) { - + this.title = title; return this; } - /** + /** * Visible name of loyalty program. + * * @return title - **/ + **/ @ApiModelProperty(example = "My loyalty program", required = true, value = "Visible name of loyalty program.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public LoyaltyProgramLedgers name(String name) { - + this.name = name; return this; } - /** + /** * Internal name of loyalty program. + * * @return name - **/ + **/ @ApiModelProperty(example = "program1", required = true, value = "Internal name of loyalty program.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LoyaltyProgramLedgers joinDate(OffsetDateTime joinDate) { - + this.joinDate = joinDate; return this; } - /** - * The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. + /** + * The date on which the customer joined the loyalty program in RFC3339. + * **Note**: This is in the loyalty program's time zone. + * * @return joinDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. ") @@ -143,36 +140,33 @@ public OffsetDateTime getJoinDate() { return joinDate; } - public void setJoinDate(OffsetDateTime joinDate) { this.joinDate = joinDate; } - public LoyaltyProgramLedgers ledger(LedgerInfo ledger) { - + this.ledger = ledger; return this; } - /** + /** * Get ledger + * * @return ledger - **/ + **/ @ApiModelProperty(required = true, value = "") public LedgerInfo getLedger() { return ledger; } - public void setLedger(LedgerInfo ledger) { this.ledger = ledger; } - public LoyaltyProgramLedgers subLedgers(Map subLedgers) { - + this.subLedgers = subLedgers; return this; } @@ -185,10 +179,11 @@ public LoyaltyProgramLedgers putSubLedgersItem(String key, LedgerInfo subLedgers return this; } - /** + /** * A map containing information about each loyalty subledger. + * * @return subLedgers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A map containing information about each loyalty subledger.") @@ -196,12 +191,10 @@ public Map getSubLedgers() { return subLedgers; } - public void setSubLedgers(Map subLedgers) { this.subLedgers = subLedgers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -224,7 +217,6 @@ public int hashCode() { return Objects.hash(id, title, name, joinDate, ledger, subLedgers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -251,4 +243,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyProgramSubledgers.java b/src/main/java/one/talon/model/LoyaltyProgramSubledgers.java index 366cc96a..b27b2efc 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramSubledgers.java +++ b/src/main/java/one/talon/model/LoyaltyProgramSubledgers.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class LoyaltyProgramSubledgers { public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Integer loyaltyProgramId; + private Long loyaltyProgramId; public static final String SERIALIZED_NAME_SUBLEDGER_IDS = "subledgerIds"; @SerializedName(SERIALIZED_NAME_SUBLEDGER_IDS) private List subledgerIds = new ArrayList(); + public LoyaltyProgramSubledgers loyaltyProgramId(Long loyaltyProgramId) { - public LoyaltyProgramSubledgers loyaltyProgramId(Integer loyaltyProgramId) { - this.loyaltyProgramId = loyaltyProgramId; return this; } - /** + /** * The internal ID of the loyalty program. + * * @return loyaltyProgramId - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "The internal ID of the loyalty program.") - public Integer getLoyaltyProgramId() { + public Long getLoyaltyProgramId() { return loyaltyProgramId; } - - public void setLoyaltyProgramId(Integer loyaltyProgramId) { + public void setLoyaltyProgramId(Long loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } - public LoyaltyProgramSubledgers subledgerIds(List subledgerIds) { - + this.subledgerIds = subledgerIds; return this; } @@ -74,22 +71,21 @@ public LoyaltyProgramSubledgers addSubledgerIdsItem(String subledgerIdsItem) { return this; } - /** + /** * The list of subledger IDs. + * * @return subledgerIds - **/ + **/ @ApiModelProperty(required = true, value = "The list of subledger IDs.") public List getSubledgerIds() { return subledgerIds; } - public void setSubledgerIds(List subledgerIds) { this.subledgerIds = subledgerIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(loyaltyProgramId, subledgerIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java index f67d3932..dddcbf28 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java +++ b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,27 +33,28 @@ public class LoyaltyProgramTransaction { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { ADDITION("addition"), - + SUBTRACTION("subtraction"); private String value; @@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -133,11 +133,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_USER_EMAIL = "userEmail"; @SerializedName(SERIALIZED_NAME_USER_EMAIL) @@ -145,7 +145,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -155,216 +155,211 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FLAGS) private LoyaltyLedgerEntryFlags flags; + public LoyaltyProgramTransaction id(Long id) { - public LoyaltyProgramTransaction id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the loyalty ledger transaction. + * * @return id - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public LoyaltyProgramTransaction programId(Long programId) { - public LoyaltyProgramTransaction programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * ID of the loyalty program. + * * @return programId - **/ + **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } + public LoyaltyProgramTransaction campaignId(Long campaignId) { - public LoyaltyProgramTransaction campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "324", value = "ID of the campaign.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public LoyaltyProgramTransaction created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Date and time the loyalty transaction occurred. + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "Date and time the loyalty transaction occurred.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public LoyaltyProgramTransaction type(TypeEnum type) { - + this.type = type; return this; } - /** - * Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. + /** + * Type of transaction. Possible values: - `addition`: Signifies added + * points. - `subtraction`: Signifies deducted points. + * * @return type - **/ + **/ @ApiModelProperty(example = "addition", required = true, value = "Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. ") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public LoyaltyProgramTransaction amount(BigDecimal amount) { - + this.amount = amount; return this; } - /** + /** * Amount of loyalty points added or deducted in the transaction. + * * @return amount - **/ + **/ @ApiModelProperty(example = "10.25", required = true, value = "Amount of loyalty points added or deducted in the transaction.") public BigDecimal getAmount() { return amount; } - public void setAmount(BigDecimal amount) { this.amount = amount; } - public LoyaltyProgramTransaction name(String name) { - + this.name = name; return this; } - /** + /** * Name or reason for the loyalty ledger transaction. + * * @return name - **/ + **/ @ApiModelProperty(example = "Reward 50 points for each $500 purchase", required = true, value = "Name or reason for the loyalty ledger transaction.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LoyaltyProgramTransaction startDate(String startDate) { - + this.startDate = startDate; return this; } - /** - * When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. + /** + * When points become active. Possible values: - `immediate`: Points + * are immediately active. - a timestamp value: Points become active at a given + * date and time. + * * @return startDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points become active. Possible values: - `immediate`: Points are immediately active. - a timestamp value: Points become active at a given date and time. ") public String getStartDate() { return startDate; } - public void setStartDate(String startDate) { this.startDate = startDate; } - public LoyaltyProgramTransaction expiryDate(String expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * When points expire. Possible values: - `unlimited`: Points have no expiration date. - a timestamp value: Points expire at a given date and time. + /** + * When points expire. Possible values: - `unlimited`: Points have no + * expiration date. - a timestamp value: Points expire at a given date and time. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2022-01-02T15:04:05Z07:00", required = true, value = "When points expire. Possible values: - `unlimited`: Points have no expiration date. - a timestamp value: Points expire at a given date and time. ") public String getExpiryDate() { return expiryDate; } - public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } - public LoyaltyProgramTransaction customerProfileId(String customerProfileId) { - + this.customerProfileId = customerProfileId; return this; } - /** + /** * Customer profile integration ID used in the loyalty program. + * * @return customerProfileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "kda0fajs0-fad9f-fd9dfsa9-fd9dasjf9", value = "Customer profile integration ID used in the loyalty program.") @@ -372,22 +367,21 @@ public String getCustomerProfileId() { return customerProfileId; } - public void setCustomerProfileId(String customerProfileId) { this.customerProfileId = customerProfileId; } - public LoyaltyProgramTransaction cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -395,44 +389,42 @@ public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } - public LoyaltyProgramTransaction subledgerId(String subledgerId) { - + this.subledgerId = subledgerId; return this; } - /** + /** * ID of the subledger. + * * @return subledgerId - **/ + **/ @ApiModelProperty(example = "sub-123", required = true, value = "ID of the subledger.") public String getSubledgerId() { return subledgerId; } - public void setSubledgerId(String subledgerId) { this.subledgerId = subledgerId; } - public LoyaltyProgramTransaction customerSessionId(String customerSessionId) { - + this.customerSessionId = customerSessionId; return this; } - /** + /** * ID of the customer session where the transaction occurred. + * * @return customerSessionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "05c2da0d-48fa-4aa1-b629-898f58f1584d", value = "ID of the customer session where the transaction occurred.") @@ -440,68 +432,67 @@ public String getCustomerSessionId() { return customerSessionId; } - public void setCustomerSessionId(String customerSessionId) { this.customerSessionId = customerSessionId; } + public LoyaltyProgramTransaction importId(Long importId) { - public LoyaltyProgramTransaction importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * ID of the import where the transaction occurred. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "ID of the import where the transaction occurred.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } + public LoyaltyProgramTransaction userId(Long userId) { - public LoyaltyProgramTransaction userId(Integer userId) { - this.userId = userId; return this; } - /** - * ID of the user who manually added or deducted points. Applies only to manual transactions. + /** + * ID of the user who manually added or deducted points. Applies only to manual + * transactions. + * * @return userId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "ID of the user who manually added or deducted points. Applies only to manual transactions.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public LoyaltyProgramTransaction userEmail(String userEmail) { - + this.userEmail = userEmail; return this; } - /** - * The email of the Campaign Manager account that manually added or deducted points. Applies only to manual transactions. + /** + * The email of the Campaign Manager account that manually added or deducted + * points. Applies only to manual transactions. + * * @return userEmail - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "john.doe@example.com", value = "The email of the Campaign Manager account that manually added or deducted points. Applies only to manual transactions.") @@ -509,45 +500,45 @@ public String getUserEmail() { return userEmail; } - public void setUserEmail(String userEmail) { this.userEmail = userEmail; } + public LoyaltyProgramTransaction rulesetId(Long rulesetId) { - public LoyaltyProgramTransaction rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** - * ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. + /** + * ID of the ruleset containing the rule that triggered the effect. Applies only + * for transactions that resulted from a customer session. + * * @return rulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } - public LoyaltyProgramTransaction ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** - * Name of the rule that triggered the effect. Applies only for transactions that resulted from a customer session. + /** + * Name of the rule that triggered the effect. Applies only for transactions + * that resulted from a customer session. + * * @return ruleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10 points for every $100 spent", value = "Name of the rule that triggered the effect. Applies only for transactions that resulted from a customer session.") @@ -555,22 +546,21 @@ public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public LoyaltyProgramTransaction flags(LoyaltyLedgerEntryFlags flags) { - + this.flags = flags; return this; } - /** + /** * Get flags + * * @return flags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -578,12 +568,10 @@ public LoyaltyLedgerEntryFlags getFlags() { return flags; } - public void setFlags(LoyaltyLedgerEntryFlags flags) { this.flags = flags; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -616,10 +604,11 @@ 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, programId, campaignId, created, type, amount, name, startDate, expiryDate, + customerProfileId, cardIdentifier, subledgerId, customerSessionId, importId, userId, userEmail, rulesetId, + ruleName, flags); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -659,4 +648,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/LoyaltyTier.java b/src/main/java/one/talon/model/LoyaltyTier.java index b827886d..c873c59a 100644 --- a/src/main/java/one/talon/model/LoyaltyTier.java +++ b/src/main/java/one/talon/model/LoyaltyTier.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class LoyaltyTier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +41,7 @@ public class LoyaltyTier { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Integer programID; + private Long programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -60,83 +59,80 @@ public class LoyaltyTier { @SerializedName(SERIALIZED_NAME_MIN_POINTS) private BigDecimal minPoints; + public LoyaltyTier id(Long id) { - public LoyaltyTier id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public LoyaltyTier created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public LoyaltyTier programID(Long programID) { - public LoyaltyTier programID(Integer programID) { - this.programID = programID; return this; } - /** + /** * The ID of the loyalty program that owns this entity. + * * @return programID - **/ + **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Integer getProgramID() { + public Long getProgramID() { return programID; } - - public void setProgramID(Integer programID) { + public void setProgramID(Long programID) { this.programID = programID; } - public LoyaltyTier programName(String programName) { - + this.programName = programName; return this; } - /** + /** * The integration name of the loyalty program that owns this entity. + * * @return programName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty_program", value = "The integration name of the loyalty program that owns this entity.") @@ -144,22 +140,22 @@ public String getProgramName() { return programName; } - public void setProgramName(String programName) { this.programName = programName; } - public LoyaltyTier programTitle(String programTitle) { - + this.programTitle = programTitle; return this; } - /** - * The Campaign Manager-displayed name of the loyalty program that owns this entity. + /** + * The Campaign Manager-displayed name of the loyalty program that owns this + * entity. + * * @return programTitle - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Loyalty program", value = "The Campaign Manager-displayed name of the loyalty program that owns this entity.") @@ -167,58 +163,54 @@ public String getProgramTitle() { return programTitle; } - public void setProgramTitle(String programTitle) { this.programTitle = programTitle; } - public LoyaltyTier name(String name) { - + this.name = name; return this; } - /** + /** * The name of the tier. + * * @return name - **/ + **/ @ApiModelProperty(example = "Gold", required = true, value = "The name of the tier.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public LoyaltyTier minPoints(BigDecimal minPoints) { - + this.minPoints = minPoints; return this; } - /** + /** * The minimum amount of points required to enter the tier. * minimum: 0 * maximum: 999999999999.99 + * * @return minPoints - **/ + **/ @ApiModelProperty(example = "300.0", required = true, value = "The minimum amount of points required to enter the tier.") public BigDecimal getMinPoints() { return minPoints; } - public void setMinPoints(BigDecimal minPoints) { this.minPoints = minPoints; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -242,7 +234,6 @@ public int hashCode() { return Objects.hash(id, created, programID, programName, programTitle, name, minPoints); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -270,4 +261,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ManagementKey.java b/src/main/java/one/talon/model/ManagementKey.java index 201d99b2..4ef52ebc 100644 --- a/src/main/java/one/talon/model/ManagementKey.java +++ b/src/main/java/one/talon/model/ManagementKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -47,19 +46,19 @@ public class ManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; + private List allowedApplicationIds = null; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Integer accountID; + private Long accountID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -69,53 +68,50 @@ public class ManagementKey { @SerializedName(SERIALIZED_NAME_DISABLED) private Boolean disabled; - public ManagementKey name(String name) { - + this.name = name; return this; } - /** + /** * Name for management key. + * * @return name - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Name for management key.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public ManagementKey expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * The date the management key expires. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the management key expires.") public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public ManagementKey endpoints(List endpoints) { - + this.endpoints = endpoints; return this; } @@ -125,151 +121,149 @@ public ManagementKey addEndpointsItem(Endpoint endpointsItem) { return this; } - /** + /** * The list of endpoints that can be accessed with the key + * * @return endpoints - **/ + **/ @ApiModelProperty(required = true, value = "The list of endpoints that can be accessed with the key") public List getEndpoints() { return endpoints; } - public void setEndpoints(List endpoints) { this.endpoints = endpoints; } + public ManagementKey allowedApplicationIds(List allowedApplicationIds) { - public ManagementKey allowedApplicationIds(List allowedApplicationIds) { - this.allowedApplicationIds = allowedApplicationIds; return this; } - public ManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { + public ManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; } - /** - * A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. + /** + * A list of Application IDs that you can access with the management key. An + * empty or missing list means the management key can be used for all + * Applications in the account. + * * @return allowedApplicationIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } + public ManagementKey id(Long id) { - public ManagementKey id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the management key. + * * @return id - **/ + **/ @ApiModelProperty(example = "34", required = true, value = "ID of the management key.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public ManagementKey createdBy(Long createdBy) { - public ManagementKey createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created it. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "280", required = true, value = "ID of the user who created it.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public ManagementKey accountID(Long accountID) { - public ManagementKey accountID(Integer accountID) { - this.accountID = accountID; return this; } - /** + /** * ID of account the key is used for. + * * @return accountID - **/ + **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Integer getAccountID() { + public Long getAccountID() { return accountID; } - - public void setAccountID(Integer accountID) { + public void setAccountID(Long accountID) { this.accountID = accountID; } - public ManagementKey created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The date the management key was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2022-03-02T16:46:17.758585Z", required = true, value = "The date the management key was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public ManagementKey disabled(Boolean disabled) { - + this.disabled = disabled; return this; } - /** - * The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. + /** + * The management key is disabled (this property is set to `true`) + * when the user who created the key is disabled or deleted. + * * @return disabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted.") @@ -277,12 +271,10 @@ public Boolean getDisabled() { return disabled; } - public void setDisabled(Boolean disabled) { this.disabled = disabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -305,10 +297,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, expiryDate, endpoints, allowedApplicationIds, id, createdBy, accountID, created, disabled); + return Objects.hash(name, expiryDate, endpoints, allowedApplicationIds, id, createdBy, accountID, created, + disabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -338,4 +330,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ManagerConfig.java b/src/main/java/one/talon/model/ManagerConfig.java index 3dcb3c07..6cb1aeaf 100644 --- a/src/main/java/one/talon/model/ManagerConfig.java +++ b/src/main/java/one/talon/model/ManagerConfig.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class ManagerConfig { public static final String SERIALIZED_NAME_SCHEMA_VERSION = "schemaVersion"; @SerializedName(SERIALIZED_NAME_SCHEMA_VERSION) - private Integer schemaVersion; + private Long schemaVersion; + public ManagerConfig schemaVersion(Long schemaVersion) { - public ManagerConfig schemaVersion(Integer schemaVersion) { - this.schemaVersion = schemaVersion; return this; } - /** + /** * Get schemaVersion + * * @return schemaVersion - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getSchemaVersion() { + public Long getSchemaVersion() { return schemaVersion; } - - public void setSchemaVersion(Integer schemaVersion) { + public void setSchemaVersion(Long schemaVersion) { this.schemaVersion = schemaVersion; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(schemaVersion); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MessageLogEntry.java b/src/main/java/one/talon/model/MessageLogEntry.java index 3aadc98b..7131108d 100644 --- a/src/main/java/one/talon/model/MessageLogEntry.java +++ b/src/main/java/one/talon/model/MessageLogEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -47,7 +46,7 @@ public class MessageLogEntry { public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) - private Integer notificationId; + private Long notificationId; public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) @@ -55,7 +54,7 @@ public class MessageLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Integer webhookId; + private Long webhookId; public static final String SERIALIZED_NAME_WEBHOOK_NAME = "webhookName"; @SerializedName(SERIALIZED_NAME_WEBHOOK_NAME) @@ -74,14 +73,14 @@ public class MessageLogEntry { private OffsetDateTime createdAt; /** - * The entity type the log is related to. + * The entity type the log is related to. */ @JsonAdapter(EntityTypeEnum.Adapter.class) public enum EntityTypeEnum { APPLICATION("application"), - + LOYALTY_PROGRAM("loyalty_program"), - + WEBHOOK("webhook"); private String value; @@ -116,7 +115,7 @@ public void write(final JsonWriter jsonWriter, final EntityTypeEnum enumeration) @Override public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EntityTypeEnum.fromValue(value); } } @@ -132,71 +131,69 @@ public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Integer loyaltyProgramId; + private Long loyaltyProgramId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; - + private Long campaignId; public MessageLogEntry id(String id) { - + this.id = id; return this; } - /** + /** * Unique identifier of the message. + * * @return id - **/ + **/ @ApiModelProperty(example = "123e4567-e89b-12d3-a456-426614174000", required = true, value = "Unique identifier of the message.") public String getId() { return id; } - public void setId(String id) { this.id = id; } - public MessageLogEntry service(String service) { - + this.service = service; return this; } - /** + /** * Name of the service that generated the log entry. + * * @return service - **/ + **/ @ApiModelProperty(example = "NotificationService", required = true, value = "Name of the service that generated the log entry.") public String getService() { return service; } - public void setService(String service) { this.service = service; } - public MessageLogEntry changeType(String changeType) { - + this.changeType = changeType; return this; } - /** + /** * Type of change that triggered the notification. + * * @return changeType - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Update", value = "Type of change that triggered the notification.") @@ -204,45 +201,43 @@ public String getChangeType() { return changeType; } - public void setChangeType(String changeType) { this.changeType = changeType; } + public MessageLogEntry notificationId(Long notificationId) { - public MessageLogEntry notificationId(Integer notificationId) { - this.notificationId = notificationId; return this; } - /** + /** * ID of the notification. + * * @return notificationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "101", value = "ID of the notification.") - public Integer getNotificationId() { + public Long getNotificationId() { return notificationId; } - - public void setNotificationId(Integer notificationId) { + public void setNotificationId(Long notificationId) { this.notificationId = notificationId; } - public MessageLogEntry notificationName(String notificationName) { - + this.notificationName = notificationName; return this; } - /** + /** * The name of the notification. + * * @return notificationName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My campaign notification", value = "The name of the notification.") @@ -250,45 +245,43 @@ public String getNotificationName() { return notificationName; } - public void setNotificationName(String notificationName) { this.notificationName = notificationName; } + public MessageLogEntry webhookId(Long webhookId) { - public MessageLogEntry webhookId(Integer webhookId) { - this.webhookId = webhookId; return this; } - /** + /** * ID of the webhook. + * * @return webhookId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "101", value = "ID of the webhook.") - public Integer getWebhookId() { + public Long getWebhookId() { return webhookId; } - - public void setWebhookId(Integer webhookId) { + public void setWebhookId(Long webhookId) { this.webhookId = webhookId; } - public MessageLogEntry webhookName(String webhookName) { - + this.webhookName = webhookName; return this; } - /** + /** * The name of the webhook. + * * @return webhookName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My webhook", value = "The name of the webhook.") @@ -296,22 +289,21 @@ public String getWebhookName() { return webhookName; } - public void setWebhookName(String webhookName) { this.webhookName = webhookName; } - public MessageLogEntry request(MessageLogRequest request) { - + this.request = request; return this; } - /** + /** * Get request + * * @return request - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -319,22 +311,21 @@ public MessageLogRequest getRequest() { return request; } - public void setRequest(MessageLogRequest request) { this.request = request; } - public MessageLogEntry response(MessageLogResponse response) { - + this.response = response; return this; } - /** + /** * Get response + * * @return response - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -342,66 +333,63 @@ public MessageLogResponse getResponse() { return response; } - public void setResponse(MessageLogResponse response) { this.response = response; } - public MessageLogEntry createdAt(OffsetDateTime createdAt) { - + this.createdAt = createdAt; return this; } - /** + /** * Timestamp when the log entry was created. + * * @return createdAt - **/ + **/ @ApiModelProperty(example = "2021-07-20T22:00Z", required = true, value = "Timestamp when the log entry was created.") public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } - public MessageLogEntry entityType(EntityTypeEnum entityType) { - + this.entityType = entityType; return this; } - /** - * The entity type the log is related to. + /** + * The entity type the log is related to. + * * @return entityType - **/ + **/ @ApiModelProperty(example = "loyalty_program", required = true, value = "The entity type the log is related to. ") public EntityTypeEnum getEntityType() { return entityType; } - public void setEntityType(EntityTypeEnum entityType) { this.entityType = entityType; } - public MessageLogEntry url(String url) { - + this.url = url; return this; } - /** + /** * The target URL of the request. + * * @return url - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", value = "The target URL of the request.") @@ -409,84 +397,79 @@ public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } + public MessageLogEntry applicationId(Long applicationId) { - public MessageLogEntry applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Identifier of the Application. * minimum: 1 + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "Identifier of the Application.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public MessageLogEntry loyaltyProgramId(Long loyaltyProgramId) { - public MessageLogEntry loyaltyProgramId(Integer loyaltyProgramId) { - this.loyaltyProgramId = loyaltyProgramId; return this; } - /** + /** * Identifier of the loyalty program. * minimum: 1 + * * @return loyaltyProgramId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "Identifier of the loyalty program.") - public Integer getLoyaltyProgramId() { + public Long getLoyaltyProgramId() { return loyaltyProgramId; } - - public void setLoyaltyProgramId(Integer loyaltyProgramId) { + public void setLoyaltyProgramId(Long loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } + public MessageLogEntry campaignId(Long campaignId) { - public MessageLogEntry campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Identifier of the campaign. * minimum: 1 + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "Identifier of the campaign.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -515,10 +498,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, service, changeType, notificationId, notificationName, webhookId, webhookName, request, response, createdAt, entityType, url, applicationId, loyaltyProgramId, campaignId); + return Objects.hash(id, service, changeType, notificationId, notificationName, webhookId, webhookName, request, + response, createdAt, entityType, url, applicationId, loyaltyProgramId, campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -554,4 +537,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MessageLogResponse.java b/src/main/java/one/talon/model/MessageLogResponse.java index 8bd50aaf..34cd9b2e 100644 --- a/src/main/java/one/talon/model/MessageLogResponse.java +++ b/src/main/java/one/talon/model/MessageLogResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,19 +40,19 @@ public class MessageLogResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; - + private Long status; public MessageLogResponse createdAt(OffsetDateTime createdAt) { - + this.createdAt = createdAt; return this; } - /** + /** * Timestamp when the response was received. + * * @return createdAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00:50Z", value = "Timestamp when the response was received.") @@ -61,22 +60,21 @@ public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } - public MessageLogResponse response(byte[] response) { - + this.response = response; return this; } - /** + /** * Raw response data. + * * @return response - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "UmVzcG9uc2UgY29udGVudA==", value = "Raw response data.") @@ -84,35 +82,32 @@ public byte[] getResponse() { return response; } - public void setResponse(byte[] response) { this.response = response; } + public MessageLogResponse status(Long status) { - public MessageLogResponse status(Integer status) { - this.status = status; return this; } - /** + /** * HTTP status code of the response. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "200", value = "HTTP status code of the response.") - public Integer getStatus() { + public Long getStatus() { return status; } - - public void setStatus(Integer status) { + public void setStatus(Long status) { this.status = status; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,7 +127,6 @@ public int hashCode() { return Objects.hash(createdAt, Arrays.hashCode(response), status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -156,4 +150,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MessageTest.java b/src/main/java/one/talon/model/MessageTest.java index 35b2a1f7..d449318b 100644 --- a/src/main/java/one/talon/model/MessageTest.java +++ b/src/main/java/one/talon/model/MessageTest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,53 +34,50 @@ public class MessageTest { public static final String SERIALIZED_NAME_HTTP_STATUS = "httpStatus"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS) - private Integer httpStatus; - + private Long httpStatus; public MessageTest httpResponse(String httpResponse) { - + this.httpResponse = httpResponse; return this; } - /** + /** * The returned http response. + * * @return httpResponse - **/ + **/ @ApiModelProperty(example = "HTTP/1.1 200 OK Content-Type: application/json Content-Length: 256 { \"message\": \"Hello, world!\", \"status\": \"success\" } ", required = true, value = "The returned http response.") public String getHttpResponse() { return httpResponse; } - public void setHttpResponse(String httpResponse) { this.httpResponse = httpResponse; } + public MessageTest httpStatus(Long httpStatus) { - public MessageTest httpStatus(Integer httpStatus) { - this.httpStatus = httpStatus; return this; } - /** + /** * The returned http status code. + * * @return httpStatus - **/ + **/ @ApiModelProperty(example = "200", required = true, value = "The returned http status code.") - public Integer getHttpStatus() { + public Long getHttpStatus() { return httpStatus; } - - public void setHttpStatus(Integer httpStatus) { + public void setHttpStatus(Long httpStatus) { this.httpStatus = httpStatus; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(httpResponse, httpStatus); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ModelImport.java b/src/main/java/one/talon/model/ModelImport.java index a98c1761..01322c24 100644 --- a/src/main/java/one/talon/model/ModelImport.java +++ b/src/main/java/one/talon/model/ModelImport.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class ModelImport { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +39,11 @@ public class ModelImport { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @@ -52,142 +51,135 @@ public class ModelImport { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; + public ModelImport id(Long id) { - public ModelImport id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ModelImport created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public ModelImport accountId(Long accountId) { - public ModelImport accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public ModelImport userId(Long userId) { - public ModelImport userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public ModelImport entity(String entity) { - + this.entity = entity; return this; } - /** - * The name of the entity that was imported. + /** + * The name of the entity that was imported. + * * @return entity - **/ + **/ @ApiModelProperty(example = "AttributeAllowedList", required = true, value = "The name of the entity that was imported. ") public String getEntity() { return entity; } - public void setEntity(String entity) { this.entity = entity; } + public ModelImport amount(Long amount) { - public ModelImport amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * The number of values that were imported. * minimum: 0 + * * @return amount - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The number of values that were imported.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,7 +202,6 @@ public int hashCode() { return Objects.hash(id, created, accountId, userId, entity, amount); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -237,4 +228,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ModelReturn.java b/src/main/java/one/talon/model/ModelReturn.java index cb2ce6bf..6d79f1cf 100644 --- a/src/main/java/one/talon/model/ModelReturn.java +++ b/src/main/java/one/talon/model/ModelReturn.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class ModelReturn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,11 +42,11 @@ public class ModelReturn { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_RETURNED_CART_ITEMS = "returnedCartItems"; @SerializedName(SERIALIZED_NAME_RETURNED_CART_ITEMS) @@ -55,11 +54,11 @@ public class ModelReturn { public static final String SERIALIZED_NAME_EVENT_ID = "eventId"; @SerializedName(SERIALIZED_NAME_EVENT_ID) - private Integer eventId; + private Long eventId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Integer sessionId; + private Long sessionId; public static final String SERIALIZED_NAME_SESSION_INTEGRATION_ID = "sessionIntegrationId"; @SerializedName(SERIALIZED_NAME_SESSION_INTEGRATION_ID) @@ -67,7 +66,7 @@ public class ModelReturn { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -75,99 +74,94 @@ public class ModelReturn { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; + public ModelReturn id(Long id) { - public ModelReturn id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ModelReturn created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public ModelReturn applicationId(Long applicationId) { - public ModelReturn applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public ModelReturn accountId(Long accountId) { - public ModelReturn accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public ModelReturn returnedCartItems(List returnedCartItems) { - + this.returnedCartItems = returnedCartItems; return this; } @@ -177,121 +171,117 @@ public ModelReturn addReturnedCartItemsItem(ReturnedCartItem returnedCartItemsIt return this; } - /** + /** * List of cart items to be returned. + * * @return returnedCartItems - **/ + **/ @ApiModelProperty(required = true, value = "List of cart items to be returned.") public List getReturnedCartItems() { return returnedCartItems; } - public void setReturnedCartItems(List returnedCartItems) { this.returnedCartItems = returnedCartItems; } + public ModelReturn eventId(Long eventId) { - public ModelReturn eventId(Integer eventId) { - this.eventId = eventId; return this; } - /** + /** * The event ID of that was generated for this return. + * * @return eventId - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "The event ID of that was generated for this return.") - public Integer getEventId() { + public Long getEventId() { return eventId; } - - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } + public ModelReturn sessionId(Long sessionId) { - public ModelReturn sessionId(Integer sessionId) { - this.sessionId = sessionId; return this; } - /** + /** * The internal ID of the session this return was requested on. + * * @return sessionId - **/ + **/ @ApiModelProperty(example = "123", required = true, value = "The internal ID of the session this return was requested on.") - public Integer getSessionId() { + public Long getSessionId() { return sessionId; } - - public void setSessionId(Integer sessionId) { + public void setSessionId(Long sessionId) { this.sessionId = sessionId; } - public ModelReturn sessionIntegrationId(String sessionIntegrationId) { - + this.sessionIntegrationId = sessionIntegrationId; return this; } - /** + /** * The integration ID of the session this return was requested on. + * * @return sessionIntegrationId - **/ + **/ @ApiModelProperty(example = "0c0e0207-eb30-4e06-a56c-2b7c8a64953c", required = true, value = "The integration ID of the session this return was requested on.") public String getSessionIntegrationId() { return sessionIntegrationId; } - public void setSessionIntegrationId(String sessionIntegrationId) { this.sessionIntegrationId = sessionIntegrationId; } + public ModelReturn profileId(Long profileId) { - public ModelReturn profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The internal ID of the profile this return was requested on. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "123", value = "The internal ID of the profile this return was requested on.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - public ModelReturn profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** + /** * The integration ID of the profile this return was requested on. + * * @return profileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "0c0e0207-eb30-4e06-a56c-2b7c8a64953c", value = "The integration ID of the profile this return was requested on.") @@ -299,35 +289,32 @@ public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public ModelReturn createdBy(Long createdBy) { - public ModelReturn createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who requested this return. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "123", value = "ID of the user who requested this return.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -352,10 +339,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, applicationId, accountId, returnedCartItems, eventId, sessionId, sessionIntegrationId, profileId, profileIntegrationId, createdBy); + return Objects.hash(id, created, applicationId, accountId, returnedCartItems, eventId, sessionId, + sessionIntegrationId, profileId, profileIntegrationId, createdBy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -387,4 +374,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MultiApplicationEntity.java b/src/main/java/one/talon/model/MultiApplicationEntity.java index 3a04e0ae..33a9cc00 100644 --- a/src/main/java/one/talon/model/MultiApplicationEntity.java +++ b/src/main/java/one/talon/model/MultiApplicationEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,36 +32,34 @@ public class MultiApplicationEntity { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); + public MultiApplicationEntity applicationIds(List applicationIds) { - public MultiApplicationEntity applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public MultiApplicationEntity addApplicationIdsItem(Integer applicationIdsItem) { + public MultiApplicationEntity addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * The IDs of the Applications that are related to this entity. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,7 +77,6 @@ public int hashCode() { return Objects.hash(applicationIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -102,4 +98,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MultipleAudiences.java b/src/main/java/one/talon/model/MultipleAudiences.java index 92bbd338..6ebdf169 100644 --- a/src/main/java/one/talon/model/MultipleAudiences.java +++ b/src/main/java/one/talon/model/MultipleAudiences.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,37 +33,35 @@ public class MultipleAudiences { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = new ArrayList(); + public MultipleAudiences accountId(Long accountId) { - public MultipleAudiences accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public MultipleAudiences audiences(List audiences) { - + this.audiences = audiences; return this; } @@ -74,22 +71,21 @@ public MultipleAudiences addAudiencesItem(MultipleAudiencesItem audiencesItem) { return this; } - /** + /** * Get audiences + * * @return audiences - **/ + **/ @ApiModelProperty(required = true, value = "") public List getAudiences() { return audiences; } - public void setAudiences(List audiences) { this.audiences = audiences; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(accountId, audiences); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/MultipleAudiencesItem.java b/src/main/java/one/talon/model/MultipleAudiencesItem.java index 39919551..82accede 100644 --- a/src/main/java/one/talon/model/MultipleAudiencesItem.java +++ b/src/main/java/one/talon/model/MultipleAudiencesItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class MultipleAudiencesItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,14 +46,14 @@ public class MultipleAudiencesItem { private String integrationId; /** - * Indicates whether the audience is new, updated or unmodified by the request. + * Indicates whether the audience is new, updated or unmodified by the request. */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { UNMODIFIED("unmodified"), - + UPDATED("updated"), - + NEW("new"); private String value; @@ -89,7 +88,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr @Override public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StatusEnum.fromValue(value); } } @@ -99,117 +98,111 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public MultipleAudiencesItem id(Long id) { - public MultipleAudiencesItem id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public MultipleAudiencesItem created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public MultipleAudiencesItem name(String name) { - + this.name = name; return this; } - /** + /** * The human-friendly display name for this audience. + * * @return name - **/ + **/ @ApiModelProperty(example = "Travel audience", required = true, value = "The human-friendly display name for this audience.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public MultipleAudiencesItem integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** + /** * The ID of this audience in the third-party integration. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "382370BKDB946", required = true, value = "The ID of this audience in the third-party integration.") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } - public MultipleAudiencesItem status(StatusEnum status) { - + this.status = status; return this; } - /** - * Indicates whether the audience is new, updated or unmodified by the request. + /** + * Indicates whether the audience is new, updated or unmodified by the request. + * * @return status - **/ + **/ @ApiModelProperty(example = "new", required = true, value = "Indicates whether the audience is new, updated or unmodified by the request. ") public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -231,7 +224,6 @@ public int hashCode() { return Objects.hash(id, created, name, integrationId, status); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -257,4 +249,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewAdditionalCost.java b/src/main/java/one/talon/model/NewAdditionalCost.java index acd19ba7..715eb303 100644 --- a/src/main/java/one/talon/model/NewAdditionalCost.java +++ b/src/main/java/one/talon/model/NewAdditionalCost.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,17 +44,20 @@ public class NewAdditionalCost { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; /** - * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. + * The type of additional cost. Possible value: - `session`: + * Additional cost will be added per session. - `item`: Additional + * cost will be added per item. - `both`: Additional cost will be + * added per item and session. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { SESSION("session"), - + ITEM("item"), - + BOTH("both"); private String value; @@ -90,7 +92,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -100,114 +102,116 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private TypeEnum type = TypeEnum.SESSION; - public NewAdditionalCost name(String name) { - + this.name = name; return this; } - /** + /** * The internal name used in API requests. + * * @return name - **/ + **/ @ApiModelProperty(example = "shippingFee", required = true, value = "The internal name used in API requests.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewAdditionalCost title(String title) { - + this.title = title; return this; } - /** - * The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. + /** + * The human-readable name for the additional cost that will be shown in the + * Campaign Manager. Like `name`, the combination of entity and title + * must also be unique. + * * @return title - **/ + **/ @ApiModelProperty(example = "Shipping fee", required = true, value = "The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewAdditionalCost description(String description) { - + this.description = description; return this; } - /** + /** * A description of this additional cost. + * * @return description - **/ + **/ @ApiModelProperty(example = "A shipping fee", required = true, value = "A description of this additional cost.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewAdditionalCost addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of the IDs of the applications that are subscribed to this additional cost. + /** + * A list of the IDs of the applications that are subscribed to this additional + * cost. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[3, 13]", value = "A list of the IDs of the applications that are subscribed to this additional cost.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public NewAdditionalCost type(TypeEnum type) { - + this.type = type; return this; } - /** - * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. + /** + * The type of additional cost. Possible value: - `session`: + * Additional cost will be added per session. - `item`: Additional + * cost will be added per item. - `both`: Additional cost will be + * added per item and session. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "session", value = "The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. ") @@ -215,12 +219,10 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -242,7 +244,6 @@ public int hashCode() { return Objects.hash(name, title, description, subscribedApplicationsIds, type); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -268,4 +269,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java b/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java index a5407a1d..083384a5 100644 --- a/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java +++ b/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -38,58 +37,55 @@ public class NewAppWideCouponDeletionJob { public static final String SERIALIZED_NAME_CAMPAIGNIDS = "campaignids"; @SerializedName(SERIALIZED_NAME_CAMPAIGNIDS) - private List campaignids = new ArrayList(); - + private List campaignids = new ArrayList(); public NewAppWideCouponDeletionJob filters(CouponDeletionFilters filters) { - + this.filters = filters; return this; } - /** + /** * Get filters + * * @return filters - **/ + **/ @ApiModelProperty(required = true, value = "") public CouponDeletionFilters getFilters() { return filters; } - public void setFilters(CouponDeletionFilters filters) { this.filters = filters; } + public NewAppWideCouponDeletionJob campaignids(List campaignids) { - public NewAppWideCouponDeletionJob campaignids(List campaignids) { - this.campaignids = campaignids; return this; } - public NewAppWideCouponDeletionJob addCampaignidsItem(Integer campaignidsItem) { + public NewAppWideCouponDeletionJob addCampaignidsItem(Long campaignidsItem) { this.campaignids.add(campaignidsItem); return this; } - /** + /** * Get campaignids + * * @return campaignids - **/ + **/ @ApiModelProperty(required = true, value = "") - public List getCampaignids() { + public List getCampaignids() { return campaignids; } - - public void setCampaignids(List campaignids) { + public void setCampaignids(List campaignids) { this.campaignids = campaignids; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,7 +104,6 @@ public int hashCode() { return Objects.hash(filters, campaignids); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -131,4 +126,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewApplicationAPIKey.java b/src/main/java/one/talon/model/NewApplicationAPIKey.java index 478dd59a..a5751dae 100644 --- a/src/main/java/one/talon/model/NewApplicationAPIKey.java +++ b/src/main/java/one/talon/model/NewApplicationAPIKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,28 +38,29 @@ public class NewApplicationAPIKey { private OffsetDateTime expires; /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. */ @JsonAdapter(PlatformEnum.Adapter.class) public enum PlatformEnum { NONE("none"), - + SEGMENT("segment"), - + BRAZE("braze"), - + MPARTICLE("mparticle"), - + SHOPIFY("shopify"), - + ITERABLE("iterable"), - + CUSTOMER_ENGAGEMENT("customer_engagement"), - + CUSTOMER_DATA("customer_data"), - + SALESFORCE("salesforce"), - + EMARSYS("emarsys"); private String value; @@ -95,7 +95,7 @@ public void write(final JsonWriter jsonWriter, final PlatformEnum enumeration) t @Override public PlatformEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PlatformEnum.fromValue(value); } } @@ -106,7 +106,16 @@ public PlatformEnum read(final JsonReader jsonReader) throws IOException { private PlatformEnum platform; /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { @@ -144,7 +153,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -156,23 +165,23 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Integer timeOffset; + private Long timeOffset; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Integer accountID; + private Long accountID; public static final String SERIALIZED_NAME_APPLICATION_I_D = "applicationID"; @SerializedName(SERIALIZED_NAME_APPLICATION_I_D) - private Integer applicationID; + private Long applicationID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -182,61 +191,60 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_KEY) private String key; - public NewApplicationAPIKey title(String title) { - + this.title = title; return this; } - /** + /** * Title of the API key. + * * @return title - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Title of the API key.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewApplicationAPIKey expires(OffsetDateTime expires) { - + this.expires = expires; return this; } - /** + /** * The date the API key expires. + * * @return expires - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the API key expires.") public OffsetDateTime getExpires() { return expires; } - public void setExpires(OffsetDateTime expires) { this.expires = expires; } - public NewApplicationAPIKey platform(PlatformEnum platform) { - + this.platform = platform; return this; } - /** - * The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. + /** + * The third-party platform the API key is valid for. Use `none` for a + * generic API key to be used from your own integration layer. + * * @return platform - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "none", value = "The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. ") @@ -244,22 +252,30 @@ public PlatformEnum getPlatform() { return platform; } - public void setPlatform(PlatformEnum platform) { this.platform = platform; } - public NewApplicationAPIKey type(TypeEnum type) { - + this.type = type; return this; } - /** - * The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. + /** + * The API key type. Can be empty or `staging`. Staging API keys can + * only be used for dry requests with the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint, [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint, and [Track + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * endpoint. When using the _Update customer profile_ endpoint with a staging + * API key, the query parameter `runRuleEngine` must be + * `true`. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "staging", value = "The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. ") @@ -267,167 +283,160 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public NewApplicationAPIKey timeOffset(Long timeOffset) { - public NewApplicationAPIKey timeOffset(Integer timeOffset) { - this.timeOffset = timeOffset; return this; } - /** - * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + /** + * A time offset in nanoseconds associated with the API key. When making a + * request using the API key, rule evaluation is based on a date that is + * calculated by adding the offset to the current date. + * * @return timeOffset - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Integer getTimeOffset() { + public Long getTimeOffset() { return timeOffset; } - - public void setTimeOffset(Integer timeOffset) { + public void setTimeOffset(Long timeOffset) { this.timeOffset = timeOffset; } + public NewApplicationAPIKey id(Long id) { - public NewApplicationAPIKey id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the API Key. + * * @return id - **/ + **/ @ApiModelProperty(example = "34", required = true, value = "ID of the API Key.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public NewApplicationAPIKey createdBy(Long createdBy) { - public NewApplicationAPIKey createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of user who created. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "280", required = true, value = "ID of user who created.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public NewApplicationAPIKey accountID(Long accountID) { - public NewApplicationAPIKey accountID(Integer accountID) { - this.accountID = accountID; return this; } - /** + /** * ID of account the key is used for. + * * @return accountID - **/ + **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Integer getAccountID() { + public Long getAccountID() { return accountID; } - - public void setAccountID(Integer accountID) { + public void setAccountID(Long accountID) { this.accountID = accountID; } + public NewApplicationAPIKey applicationID(Long applicationID) { - public NewApplicationAPIKey applicationID(Integer applicationID) { - this.applicationID = applicationID; return this; } - /** + /** * ID of application the key is used for. + * * @return applicationID - **/ + **/ @ApiModelProperty(example = "54", required = true, value = "ID of application the key is used for.") - public Integer getApplicationID() { + public Long getApplicationID() { return applicationID; } - - public void setApplicationID(Integer applicationID) { + public void setApplicationID(Long applicationID) { this.applicationID = applicationID; } - public NewApplicationAPIKey created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The date the API key was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2022-03-02T16:46:17.758585Z", required = true, value = "The date the API key was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public NewApplicationAPIKey key(String key) { - + this.key = key; return this; } - /** + /** * The API key. + * * @return key - **/ + **/ @ApiModelProperty(example = "f45f90d21dcd9bac965c45e547e9754a3196891d09948e35adbcbedc4e9e4b01", required = true, value = "The API key.") public String getKey() { return key; } - public void setKey(String key) { this.key = key; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -452,10 +461,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, expires, platform, type, timeOffset, id, createdBy, accountID, applicationID, created, key); + return Objects.hash(title, expires, platform, type, timeOffset, id, createdBy, accountID, applicationID, created, + key); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -487,4 +496,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewApplicationCIF.java b/src/main/java/one/talon/model/NewApplicationCIF.java index 47e9839a..950d715c 100644 --- a/src/main/java/one/talon/model/NewApplicationCIF.java +++ b/src/main/java/one/talon/model/NewApplicationCIF.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -40,53 +39,52 @@ public class NewApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Integer activeExpressionId; + private Long activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) private OffsetDateTime modified; - public NewApplicationCIF name(String name) { - + this.name = name; return this; } - /** + /** * The name of the Application cart item filter used in API requests. + * * @return name - **/ + **/ @ApiModelProperty(example = "Filter items by product", required = true, value = "The name of the Application cart item filter used in API requests.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewApplicationCIF description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the Application cart item filter. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This filter allows filtering by shoes", value = "A short description of the Application cart item filter.") @@ -94,91 +92,87 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewApplicationCIF activeExpressionId(Long activeExpressionId) { - public NewApplicationCIF activeExpressionId(Integer activeExpressionId) { - this.activeExpressionId = activeExpressionId; return this; } - /** + /** * The ID of the expression that the Application cart item filter uses. + * * @return activeExpressionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Integer getActiveExpressionId() { + public Long getActiveExpressionId() { return activeExpressionId; } - - public void setActiveExpressionId(Integer activeExpressionId) { + public void setActiveExpressionId(Long activeExpressionId) { this.activeExpressionId = activeExpressionId; } + public NewApplicationCIF modifiedBy(Long modifiedBy) { - public NewApplicationCIF modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * The ID of the user who last updated the Application cart item filter. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public NewApplicationCIF createdBy(Long createdBy) { - public NewApplicationCIF createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of the user who created the Application cart item filter. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public NewApplicationCIF modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * Timestamp of the most recent update to the Application cart item filter. + * * @return modified - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the Application cart item filter.") @@ -186,12 +180,10 @@ public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -214,7 +206,6 @@ public int hashCode() { return Objects.hash(name, description, activeExpressionId, modifiedBy, createdBy, modified); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -241,4 +232,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewApplicationCIFExpression.java b/src/main/java/one/talon/model/NewApplicationCIFExpression.java index 2cd31bcf..3eaf8d2e 100644 --- a/src/main/java/one/talon/model/NewApplicationCIFExpression.java +++ b/src/main/java/one/talon/model/NewApplicationCIFExpression.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,65 +32,62 @@ public class NewApplicationCIFExpression { public static final String SERIALIZED_NAME_CART_ITEM_FILTER_ID = "cartItemFilterId"; @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTER_ID) - private Integer cartItemFilterId; + private Long cartItemFilterId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) private List expression = null; + public NewApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { - public NewApplicationCIFExpression cartItemFilterId(Integer cartItemFilterId) { - this.cartItemFilterId = cartItemFilterId; return this; } - /** + /** * The ID of the Application cart item filter. + * * @return cartItemFilterId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the Application cart item filter.") - public Integer getCartItemFilterId() { + public Long getCartItemFilterId() { return cartItemFilterId; } - - public void setCartItemFilterId(Integer cartItemFilterId) { + public void setCartItemFilterId(Long cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; } + public NewApplicationCIFExpression createdBy(Long createdBy) { - public NewApplicationCIFExpression createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of the user who created the Application cart item filter. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public NewApplicationCIFExpression expression(List expression) { - + this.expression = expression; return this; } @@ -104,10 +100,12 @@ public NewApplicationCIFExpression addExpressionItem(Object expressionItem) { return this; } - /** - * Arbitrary additional JSON data associated with the Application cart item filter. + /** + * Arbitrary additional JSON data associated with the Application cart item + * filter. + * * @return expression - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{expr=[filter, [., Session, CartItems], [[Item], [catch, false, [=, [., Item, Category], Kitchen]]]]}", value = "Arbitrary additional JSON data associated with the Application cart item filter.") @@ -115,12 +113,10 @@ public List getExpression() { return expression; } - public void setExpression(List expression) { this.expression = expression; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,7 +136,6 @@ public int hashCode() { return Objects.hash(cartItemFilterId, createdBy, expression); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -164,4 +159,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewAttribute.java b/src/main/java/one/talon/model/NewAttribute.java index 22ce8d71..374b9d28 100644 --- a/src/main/java/one/talon/model/NewAttribute.java +++ b/src/main/java/one/talon/model/NewAttribute.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,28 +31,31 @@ public class NewAttribute { /** - * The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. + * The name of the entity that can have this attribute. When creating or + * updating the entities of a given type, you can include an + * `attributes` object with keys corresponding to the `name` + * of the custom attributes for that type. */ @JsonAdapter(EntityEnum.Adapter.class) public enum EntityEnum { APPLICATION("Application"), - + CAMPAIGN("Campaign"), - + CUSTOMERPROFILE("CustomerProfile"), - + CUSTOMERSESSION("CustomerSession"), - + CARTITEM("CartItem"), - + COUPON("Coupon"), - + EVENT("Event"), - + GIVEAWAY("Giveaway"), - + REFERRAL("Referral"), - + STORE("Store"); private String value; @@ -88,7 +90,7 @@ public void write(final JsonWriter jsonWriter, final EntityEnum enumeration) thr @Override public EntityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EntityEnum.fromValue(value); } } @@ -111,26 +113,28 @@ public EntityEnum read(final JsonReader jsonReader) throws IOException { private String title; /** - * The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format. + * The data type of the attribute, a `time` attribute must be sent as + * a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * timestamp format. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { STRING("string"), - + NUMBER("number"), - + BOOLEAN("boolean"), - + TIME("time"), - + _LIST_STRING_("(list string)"), - + _LIST_NUMBER_("(list number)"), - + _LIST_TIME_("(list time)"), - + LOCATION("location"), - + _LIST_LOCATION_("(list location)"); private String value; @@ -165,7 +169,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -197,11 +201,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS = "subscribedCatalogsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS) - private List subscribedCatalogsIds = null; + private List subscribedCatalogsIds = null; /** * Gets or Sets allowedSubscriptions @@ -209,7 +213,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(AllowedSubscriptionsEnum.Adapter.class) public enum AllowedSubscriptionsEnum { APPLICATION("application"), - + CATALOG("catalog"); private String value; @@ -244,7 +248,7 @@ public void write(final JsonWriter jsonWriter, final AllowedSubscriptionsEnum en @Override public AllowedSubscriptionsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return AllowedSubscriptionsEnum.fromValue(value); } } @@ -254,39 +258,41 @@ public AllowedSubscriptionsEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_ALLOWED_SUBSCRIPTIONS) private List allowedSubscriptions = null; - public NewAttribute entity(EntityEnum entity) { - + this.entity = entity; return this; } - /** - * The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. + /** + * The name of the entity that can have this attribute. When creating or + * updating the entities of a given type, you can include an + * `attributes` object with keys corresponding to the `name` + * of the custom attributes for that type. + * * @return entity - **/ + **/ @ApiModelProperty(example = "Event", required = true, value = "The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type.") public EntityEnum getEntity() { return entity; } - public void setEntity(EntityEnum entity) { this.entity = entity; } - public NewAttribute eventType(String eventType) { - + this.eventType = eventType; return this; } - /** + /** * Get eventType + * * @return eventType - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "pageViewed", value = "") @@ -294,102 +300,103 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { this.eventType = eventType; } - public NewAttribute name(String name) { - + this.name = name; return this; } - /** - * The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. + /** + * The attribute name that will be used in API requests and Talang. E.g. if + * `name == \"region\"` then you would set the + * region attribute by including an `attributes.region` property in + * your request payload. + * * @return name - **/ + **/ @ApiModelProperty(example = "pageViewed", required = true, value = "The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewAttribute title(String title) { - + this.title = title; return this; } - /** - * The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. + /** + * The human-readable name for the attribute that will be shown in the Campaign + * Manager. Like `name`, the combination of entity and title must also + * be unique. + * * @return title - **/ + **/ @ApiModelProperty(example = "Page view event", required = true, value = "The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewAttribute type(TypeEnum type) { - + this.type = type; return this; } - /** - * The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format. + /** + * The data type of the attribute, a `time` attribute must be sent as + * a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * timestamp format. + * * @return type - **/ + **/ @ApiModelProperty(example = "string", required = true, value = "The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public NewAttribute description(String description) { - + this.description = description; return this; } - /** + /** * A description of this attribute. + * * @return description - **/ + **/ @ApiModelProperty(example = "Event triggered when a customer displays a page.", required = true, value = "A description of this attribute.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewAttribute suggestions(List suggestions) { - + this.suggestions = suggestions; return this; } @@ -399,32 +406,33 @@ public NewAttribute addSuggestionsItem(String suggestionsItem) { return this; } - /** + /** * A list of suggestions for the attribute. + * * @return suggestions - **/ + **/ @ApiModelProperty(required = true, value = "A list of suggestions for the attribute.") public List getSuggestions() { return suggestions; } - public void setSuggestions(List suggestions) { this.suggestions = suggestions; } - public NewAttribute hasAllowedList(Boolean hasAllowedList) { - + this.hasAllowedList = hasAllowedList; return this; } - /** - * Whether or not this attribute has an allowed list of values associated with it. + /** + * Whether or not this attribute has an allowed list of values associated with + * it. + * * @return hasAllowedList - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Whether or not this attribute has an allowed list of values associated with it.") @@ -432,22 +440,23 @@ public Boolean getHasAllowedList() { return hasAllowedList; } - public void setHasAllowedList(Boolean hasAllowedList) { this.hasAllowedList = hasAllowedList; } - public NewAttribute restrictedBySuggestions(Boolean restrictedBySuggestions) { - + this.restrictedBySuggestions = restrictedBySuggestions; return this; } - /** - * Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). + /** + * Whether or not this attribute's value is restricted by suggestions + * (`suggestions` property) or by an allowed list of value + * (`hasAllowedList` property). + * * @return restrictedBySuggestions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). ") @@ -455,98 +464,93 @@ public Boolean getRestrictedBySuggestions() { return restrictedBySuggestions; } - public void setRestrictedBySuggestions(Boolean restrictedBySuggestions) { this.restrictedBySuggestions = restrictedBySuggestions; } - public NewAttribute editable(Boolean editable) { - + this.editable = editable; return this; } - /** + /** * Whether or not this attribute can be edited. + * * @return editable - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Whether or not this attribute can be edited.") public Boolean getEditable() { return editable; } - public void setEditable(Boolean editable) { this.editable = editable; } + public NewAttribute subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewAttribute subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewAttribute addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewAttribute addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the applications where this attribute is available. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 4, 9]", value = "A list of the IDs of the applications where this attribute is available.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public NewAttribute subscribedCatalogsIds(List subscribedCatalogsIds) { - public NewAttribute subscribedCatalogsIds(List subscribedCatalogsIds) { - this.subscribedCatalogsIds = subscribedCatalogsIds; return this; } - public NewAttribute addSubscribedCatalogsIdsItem(Integer subscribedCatalogsIdsItem) { + public NewAttribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) { if (this.subscribedCatalogsIds == null) { - this.subscribedCatalogsIds = new ArrayList(); + this.subscribedCatalogsIds = new ArrayList(); } this.subscribedCatalogsIds.add(subscribedCatalogsIdsItem); return this; } - /** + /** * A list of the IDs of the catalogs where this attribute is available. + * * @return subscribedCatalogsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[2, 5]", value = "A list of the IDs of the catalogs where this attribute is available.") - public List getSubscribedCatalogsIds() { + public List getSubscribedCatalogsIds() { return subscribedCatalogsIds; } - - public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { + public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; } - public NewAttribute allowedSubscriptions(List allowedSubscriptions) { - + this.allowedSubscriptions = allowedSubscriptions; return this; } @@ -559,10 +563,12 @@ public NewAttribute addAllowedSubscriptionsItem(AllowedSubscriptionsEnum allowed return this; } - /** - * A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. + /** + * A list of allowed subscription types for this attribute. **Note:** This only + * applies to attributes associated with the `CartItem` entity. + * * @return allowedSubscriptions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[application, catalog]", value = "A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. ") @@ -570,12 +576,10 @@ public List getAllowedSubscriptions() { return allowedSubscriptions; } - public void setAllowedSubscriptions(List allowedSubscriptions) { this.allowedSubscriptions = allowedSubscriptions; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -602,10 +606,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(entity, eventType, name, title, type, description, suggestions, hasAllowedList, restrictedBySuggestions, editable, subscribedApplicationsIds, subscribedCatalogsIds, allowedSubscriptions); + return Objects.hash(entity, eventType, name, title, type, description, suggestions, hasAllowedList, + restrictedBySuggestions, editable, subscribedApplicationsIds, subscribedCatalogsIds, allowedSubscriptions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -639,4 +643,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaign.java b/src/main/java/one/talon/model/NewCampaign.java index c2ff9038..034f5093 100644 --- a/src/main/java/one/talon/model/NewCampaign.java +++ b/src/main/java/one/talon/model/NewCampaign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -55,14 +54,14 @@ public class NewCampaign { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"); private String value; @@ -97,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -109,7 +108,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -121,15 +120,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -164,7 +163,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -188,15 +187,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -231,7 +232,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -243,45 +244,44 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; - + private Long evaluationGroupId; public NewCampaign name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewCampaign description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -289,22 +289,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewCampaign startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -312,22 +311,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public NewCampaign endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -335,22 +333,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public NewCampaign attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -358,59 +355,56 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public NewCampaign state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @ApiModelProperty(example = "enabled", required = true, value = "A disabled or archived campaign is not evaluated for rules or coupons. ") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public NewCampaign activeRulesetId(Long activeRulesetId) { - public NewCampaign activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public NewCampaign tags(List tags) { - + this.tags = tags; return this; } @@ -420,24 +414,23 @@ public NewCampaign addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[summer]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public NewCampaign features(List features) { - + this.features = features; return this; } @@ -447,32 +440,32 @@ public NewCampaign addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * The features enabled in this campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, referrals]", required = true, value = "The features enabled in this campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public NewCampaign couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -480,22 +473,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public NewCampaign referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -503,14 +495,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public NewCampaign limits(List limits) { - + this.limits = limits; return this; } @@ -520,63 +510,68 @@ public NewCampaign addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. + /** + * The set of [budget + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) + * for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. ") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public NewCampaign campaignGroups(List campaignGroups) { - public NewCampaign campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public NewCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { + public NewCampaign addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - public NewCampaign type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "advanced", value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") @@ -584,66 +579,66 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public NewCampaign linkedStoreIds(List linkedStoreIds) { - public NewCampaign linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public NewCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public NewCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. + /** + * A list of store IDs that you want to link to the campaign. **Note:** + * Campaigns with linked store IDs will only be evaluated when there is a + * [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } + public NewCampaign evaluationGroupId(Long evaluationGroupId) { - public NewCampaign evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -673,10 +668,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, evaluationGroupId); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, + couponSettings, referralSettings, limits, campaignGroups, type, linkedStoreIds, evaluationGroupId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -713,4 +708,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java b/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java index f234592c..add22629 100644 --- a/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class NewCampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Integer parentId; + private Long parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -47,11 +46,11 @@ public class NewCampaignEvaluationGroup { @JsonAdapter(EvaluationModeEnum.Adapter.class) public enum EvaluationModeEnum { STACKABLE("stackable"), - + LISTORDER("listOrder"), - + LOWESTDISCOUNT("lowestDiscount"), - + HIGHESTDISCOUNT("highestDiscount"); private String value; @@ -86,7 +85,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationModeEnum enumerat @Override public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationModeEnum.fromValue(value); } } @@ -102,7 +101,7 @@ public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(EvaluationScopeEnum.Adapter.class) public enum EvaluationScopeEnum { CARTITEM("cartItem"), - + SESSION("session"); private String value; @@ -137,7 +136,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationScopeEnum enumera @Override public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationScopeEnum.fromValue(value); } } @@ -151,62 +150,60 @@ public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_LOCKED) private Boolean locked; - public NewCampaignEvaluationGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign evaluation group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer campaigns", required = true, value = "The name of the campaign evaluation group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public NewCampaignEvaluationGroup parentId(Long parentId) { - public NewCampaignEvaluationGroup parentId(Integer parentId) { - this.parentId = parentId; return this; } - /** + /** * The ID of the parent group that contains the campaign evaluation group. * minimum: 1 + * * @return parentId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Integer getParentId() { + public Long getParentId() { return parentId; } - - public void setParentId(Integer parentId) { + public void setParentId(Long parentId) { this.parentId = parentId; } - public NewCampaignEvaluationGroup description(String description) { - + this.description = description; return this; } - /** + /** * A description of the campaign evaluation group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This campaign evaluation group contains all campaigns that are running in the summer.", value = "A description of the campaign evaluation group.") @@ -214,78 +211,74 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewCampaignEvaluationGroup evaluationMode(EvaluationModeEnum evaluationMode) { - + this.evaluationMode = evaluationMode; return this; } - /** + /** * The mode by which campaigns in the campaign evaluation group are evaluated. + * * @return evaluationMode - **/ + **/ @ApiModelProperty(required = true, value = "The mode by which campaigns in the campaign evaluation group are evaluated.") public EvaluationModeEnum getEvaluationMode() { return evaluationMode; } - public void setEvaluationMode(EvaluationModeEnum evaluationMode) { this.evaluationMode = evaluationMode; } - public NewCampaignEvaluationGroup evaluationScope(EvaluationScopeEnum evaluationScope) { - + this.evaluationScope = evaluationScope; return this; } - /** + /** * The evaluation scope of the campaign evaluation group. + * * @return evaluationScope - **/ + **/ @ApiModelProperty(required = true, value = "The evaluation scope of the campaign evaluation group.") public EvaluationScopeEnum getEvaluationScope() { return evaluationScope; } - public void setEvaluationScope(EvaluationScopeEnum evaluationScope) { this.evaluationScope = evaluationScope; } - public NewCampaignEvaluationGroup locked(Boolean locked) { - + this.locked = locked; return this; } - /** - * An indicator of whether the campaign evaluation group is locked for modification. + /** + * An indicator of whether the campaign evaluation group is locked for + * modification. + * * @return locked - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "An indicator of whether the campaign evaluation group is locked for modification.") public Boolean getLocked() { return locked; } - public void setLocked(Boolean locked) { this.locked = locked; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -308,7 +301,6 @@ public int hashCode() { return Objects.hash(name, parentId, description, evaluationMode, evaluationScope, locked); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -335,4 +327,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignGroup.java b/src/main/java/one/talon/model/NewCampaignGroup.java index b9a90979..68cecf90 100644 --- a/src/main/java/one/talon/model/NewCampaignGroup.java +++ b/src/main/java/one/talon/model/NewCampaignGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,45 +40,44 @@ public class NewCampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; - + private List campaignIds = null; public NewCampaignGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign access group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewCampaignGroup description(String description) { - + this.description = description; return this; } - /** + /** * A longer description of the campaign access group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") @@ -87,74 +85,71 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of IDs of the Applications that this campaign access group is enabled for. + /** + * A list of IDs of the Applications that this campaign access group is enabled + * for. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public NewCampaignGroup campaignIds(List campaignIds) { - public NewCampaignGroup campaignIds(List campaignIds) { - this.campaignIds = campaignIds; return this; } - public NewCampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { + public NewCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; } - /** + /** * A list of IDs of the campaigns that are part of the campaign access group. + * * @return campaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,7 +170,6 @@ public int hashCode() { return Objects.hash(name, description, subscribedApplicationsIds, campaignIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -200,4 +194,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignSet.java b/src/main/java/one/talon/model/NewCampaignSet.java index 1769f548..3c566cfa 100644 --- a/src/main/java/one/talon/model/NewCampaignSet.java +++ b/src/main/java/one/talon/model/NewCampaignSet.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,84 +31,80 @@ public class NewCampaignSet { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) private CampaignSetBranchNode set; + public NewCampaignSet applicationId(Long applicationId) { - public NewCampaignSet applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public NewCampaignSet version(Long version) { - public NewCampaignSet version(Integer version) { - this.version = version; return this; } - /** + /** * Version of the campaign set. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Version of the campaign set.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public NewCampaignSet set(CampaignSetBranchNode set) { - + this.set = set; return this; } - /** + /** * Get set + * * @return set - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignSetBranchNode getSet() { return set; } - public void setSet(CampaignSetBranchNode set) { this.set = set; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +124,6 @@ public int hashCode() { return Objects.hash(applicationId, version, set); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +147,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignSetV2.java b/src/main/java/one/talon/model/NewCampaignSetV2.java index 8408bbc9..ee886ed8 100644 --- a/src/main/java/one/talon/model/NewCampaignSetV2.java +++ b/src/main/java/one/talon/model/NewCampaignSetV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,84 +32,80 @@ public class NewCampaignSetV2 { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) private CampaignPrioritiesV2 set; + public NewCampaignSetV2 applicationId(Long applicationId) { - public NewCampaignSetV2 applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public NewCampaignSetV2 version(Long version) { - public NewCampaignSetV2 version(Integer version) { - this.version = version; return this; } - /** + /** * Version of the campaign set. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Version of the campaign set.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public NewCampaignSetV2 set(CampaignPrioritiesV2 set) { - + this.set = set; return this; } - /** + /** * Get set + * * @return set - **/ + **/ @ApiModelProperty(required = true, value = "") public CampaignPrioritiesV2 getSet() { return set; } - public void setSet(CampaignPrioritiesV2 set) { this.set = set; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,7 +125,6 @@ public int hashCode() { return Objects.hash(applicationId, version, set); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -154,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java b/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java index 34e68198..dff04645 100644 --- a/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java +++ b/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,57 +31,55 @@ public class NewCampaignStoreBudgetStoreLimit { public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Integer storeId; + private Long storeId; public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) private BigDecimal limit; + public NewCampaignStoreBudgetStoreLimit storeId(Long storeId) { - public NewCampaignStoreBudgetStoreLimit storeId(Integer storeId) { - this.storeId = storeId; return this; } - /** - * The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. + /** + * The ID of the store. You can get this ID with the [List + * stores](#tag/Stores/operation/listStores) endpoint. + * * @return storeId - **/ + **/ @ApiModelProperty(example = "17", required = true, value = "The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. ") - public Integer getStoreId() { + public Long getStoreId() { return storeId; } - - public void setStoreId(Integer storeId) { + public void setStoreId(Long storeId) { this.storeId = storeId; } - public NewCampaignStoreBudgetStoreLimit limit(BigDecimal limit) { - + this.limit = limit; return this; } - /** + /** * The value to set for the limit. + * * @return limit - **/ + **/ @ApiModelProperty(example = "1000.0", required = true, value = "The value to set for the limit.") public BigDecimal getLimit() { return limit; } - public void setLimit(BigDecimal limit) { this.limit = limit; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,7 +98,6 @@ public int hashCode() { return Objects.hash(storeId, limit); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,4 +120,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCampaignTemplate.java b/src/main/java/one/talon/model/NewCampaignTemplate.java index afbb60b3..e12c10e9 100644 --- a/src/main/java/one/talon/model/NewCampaignTemplate.java +++ b/src/main/java/one/talon/model/NewCampaignTemplate.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -57,14 +56,15 @@ public class NewCampaignTemplate { private Object couponAttributes; /** - * Only Campaign Templates in 'available' state may be used to create Campaigns. + * Only Campaign Templates in 'available' state may be used to create + * Campaigns. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { DRAFT("draft"), - + ENABLED("enabled"), - + DISABLED("disabled"); private String value; @@ -99,7 +99,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -119,15 +119,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -162,7 +162,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -198,15 +198,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Integer defaultCampaignGroupId; + private Long defaultCampaignGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(CampaignTypeEnum.Adapter.class) public enum CampaignTypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -241,7 +243,7 @@ public void write(final JsonWriter jsonWriter, final CampaignTypeEnum enumeratio @Override public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CampaignTypeEnum.fromValue(value); } } @@ -251,83 +253,84 @@ public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAMPAIGN_TYPE) private CampaignTypeEnum campaignType = CampaignTypeEnum.ADVANCED; - public NewCampaignTemplate name(String name) { - + this.name = name; return this; } - /** + /** * The campaign template name. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The campaign template name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewCampaignTemplate description(String description) { - + this.description = description; return this; } - /** + /** * Customer-facing text that explains the objective of the template. + * * @return description - **/ + **/ @ApiModelProperty(required = true, value = "Customer-facing text that explains the objective of the template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewCampaignTemplate instructions(String instructions) { - + this.instructions = instructions; return this; } - /** - * Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign. + /** + * Customer-facing text that explains how to use the template. For example, you + * can use this property to explain the available attributes of this template, + * and how they can be modified when a user uses this template to create a new + * campaign. + * * @return instructions - **/ + **/ @ApiModelProperty(required = true, value = "Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign.") public String getInstructions() { return instructions; } - public void setInstructions(String instructions) { this.instructions = instructions; } - public NewCampaignTemplate campaignAttributes(Object campaignAttributes) { - + this.campaignAttributes = campaignAttributes; return this; } - /** - * The campaign attributes that campaigns created from this template will have by default. + /** + * The campaign attributes that campaigns created from this template will have + * by default. + * * @return campaignAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that campaigns created from this template will have by default.") @@ -335,22 +338,22 @@ public Object getCampaignAttributes() { return campaignAttributes; } - public void setCampaignAttributes(Object campaignAttributes) { this.campaignAttributes = campaignAttributes; } - public NewCampaignTemplate couponAttributes(Object couponAttributes) { - + this.couponAttributes = couponAttributes; return this; } - /** - * The campaign attributes that coupons created from this template will have by default. + /** + * The campaign attributes that coupons created from this template will have by + * default. + * * @return couponAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that coupons created from this template will have by default.") @@ -358,36 +361,34 @@ public Object getCouponAttributes() { return couponAttributes; } - public void setCouponAttributes(Object couponAttributes) { this.couponAttributes = couponAttributes; } - public NewCampaignTemplate state(StateEnum state) { - + this.state = state; return this; } - /** - * Only Campaign Templates in 'available' state may be used to create Campaigns. + /** + * Only Campaign Templates in 'available' state may be used to create + * Campaigns. + * * @return state - **/ + **/ @ApiModelProperty(required = true, value = "Only Campaign Templates in 'available' state may be used to create Campaigns.") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public NewCampaignTemplate tags(List tags) { - + this.tags = tags; return this; } @@ -400,10 +401,11 @@ public NewCampaignTemplate addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign template. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of tags for the campaign template.") @@ -411,14 +413,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public NewCampaignTemplate features(List features) { - + this.features = features; return this; } @@ -431,10 +431,11 @@ public NewCampaignTemplate addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign template. + * * @return features - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of features for the campaign template.") @@ -442,22 +443,21 @@ public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public NewCampaignTemplate couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -465,22 +465,22 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } + public NewCampaignTemplate couponReservationSettings( + CampaignTemplateCouponReservationSettings couponReservationSettings) { - public NewCampaignTemplate couponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { - this.couponReservationSettings = couponReservationSettings; return this; } - /** + /** * Get couponReservationSettings + * * @return couponReservationSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -488,22 +488,21 @@ public CampaignTemplateCouponReservationSettings getCouponReservationSettings() return couponReservationSettings; } - public void setCouponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { this.couponReservationSettings = couponReservationSettings; } - public NewCampaignTemplate referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -511,14 +510,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public NewCampaignTemplate limits(List limits) { - + this.limits = limits; return this; } @@ -531,10 +528,11 @@ public NewCampaignTemplate addLimitsItem(TemplateLimitConfig limitsItem) { return this; } - /** + /** * The set of limits that will operate for this campaign template. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The set of limits that will operate for this campaign template.") @@ -542,14 +540,12 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public NewCampaignTemplate templateParams(List templateParams) { - + this.templateParams = templateParams; return this; } @@ -562,10 +558,11 @@ public NewCampaignTemplate addTemplateParamsItem(CampaignTemplateParams template return this; } - /** + /** * Fields which can be used to replace values in a rule. + * * @return templateParams - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Fields which can be used to replace values in a rule.") @@ -573,14 +570,12 @@ public List getTemplateParams() { return templateParams; } - public void setTemplateParams(List templateParams) { this.templateParams = templateParams; } - public NewCampaignTemplate campaignCollections(List campaignCollections) { - + this.campaignCollections = campaignCollections; return this; } @@ -593,10 +588,11 @@ public NewCampaignTemplate addCampaignCollectionsItem(CampaignTemplateCollection return this; } - /** + /** * The campaign collections from the blueprint campaign for the template. + * * @return campaignCollections - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign collections from the blueprint campaign for the template.") @@ -604,57 +600,55 @@ public List getCampaignCollections() { return campaignCollections; } - public void setCampaignCollections(List campaignCollections) { this.campaignCollections = campaignCollections; } + public NewCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { - public NewCampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { - this.defaultCampaignGroupId = defaultCampaignGroupId; return this; } - /** + /** * The default campaign group ID. + * * @return defaultCampaignGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Integer getDefaultCampaignGroupId() { + public Long getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - - public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } - public NewCampaignTemplate campaignType(CampaignTypeEnum campaignType) { - + this.campaignType = campaignType; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return campaignType - **/ + **/ @ApiModelProperty(example = "advanced", required = true, value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") public CampaignTypeEnum getCampaignType() { return campaignType; } - public void setCampaignType(CampaignTypeEnum campaignType) { this.campaignType = campaignType; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -684,10 +678,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, instructions, campaignAttributes, couponAttributes, state, tags, features, couponSettings, couponReservationSettings, referralSettings, limits, templateParams, campaignCollections, defaultCampaignGroupId, campaignType); + return Objects.hash(name, description, instructions, campaignAttributes, couponAttributes, state, tags, features, + couponSettings, couponReservationSettings, referralSettings, limits, templateParams, campaignCollections, + defaultCampaignGroupId, campaignType); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -724,4 +719,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCatalog.java b/src/main/java/one/talon/model/NewCatalog.java index d29d1d24..7d121d9a 100644 --- a/src/main/java/one/talon/model/NewCatalog.java +++ b/src/main/java/one/talon/model/NewCatalog.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,84 +40,80 @@ public class NewCatalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; - + private List subscribedApplicationsIds = null; public NewCatalog name(String name) { - + this.name = name; return this; } - /** + /** * The cart item catalog name. + * * @return name - **/ + **/ @ApiModelProperty(example = "seafood", required = true, value = "The cart item catalog name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewCatalog description(String description) { - + this.description = description; return this; } - /** + /** * A description of this cart item catalog. + * * @return description - **/ + **/ @ApiModelProperty(example = "seafood catalog", required = true, value = "A description of this cart item catalog.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCatalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewCatalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the applications that are subscribed to this catalog. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,7 +133,6 @@ public int hashCode() { return Objects.hash(name, description, subscribedApplicationsIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -162,4 +156,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCollection.java b/src/main/java/one/talon/model/NewCollection.java index 2838e1b8..5564abc0 100644 --- a/src/main/java/one/talon/model/NewCollection.java +++ b/src/main/java/one/talon/model/NewCollection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,23 +36,23 @@ public class NewCollection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; - public NewCollection description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -61,65 +60,61 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewCollection subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewCollection subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCollection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewCollection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the Applications where this collection is enabled. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public NewCollection name(String name) { - + this.name = name; return this; } - /** + /** * The name of this collection. + * * @return name - **/ + **/ @ApiModelProperty(example = "My collection", required = true, value = "The name of this collection.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -139,7 +134,6 @@ public int hashCode() { return Objects.hash(description, subscribedApplicationsIds, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -163,4 +157,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCouponCreationJob.java b/src/main/java/one/talon/model/NewCouponCreationJob.java index 71ba949d..dd576790 100644 --- a/src/main/java/one/talon/model/NewCouponCreationJob.java +++ b/src/main/java/one/talon/model/NewCouponCreationJob.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -42,7 +41,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -54,7 +53,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Integer numberOfCoupons; + private Long numberOfCoupons; public static final String SERIALIZED_NAME_COUPON_SETTINGS = "couponSettings"; @SerializedName(SERIALIZED_NAME_COUPON_SETTINGS) @@ -64,43 +63,44 @@ public class NewCouponCreationJob { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; + public NewCouponCreationJob usageLimit(Long usageLimit) { - public NewCouponCreationJob usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public NewCouponCreationJob discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -108,47 +108,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public NewCouponCreationJob reservationLimit(Long reservationLimit) { - public NewCouponCreationJob reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public NewCouponCreationJob startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -156,22 +154,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public NewCouponCreationJob expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -179,46 +176,44 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public NewCouponCreationJob numberOfCoupons(Long numberOfCoupons) { - public NewCouponCreationJob numberOfCoupons(Integer numberOfCoupons) { - this.numberOfCoupons = numberOfCoupons; return this; } - /** + /** * The number of new coupon codes to generate for the campaign. * minimum: 1 * maximum: 5000000 + * * @return numberOfCoupons - **/ + **/ @ApiModelProperty(example = "200000", required = true, value = "The number of new coupon codes to generate for the campaign.") - public Integer getNumberOfCoupons() { + public Long getNumberOfCoupons() { return numberOfCoupons; } - - public void setNumberOfCoupons(Integer numberOfCoupons) { + public void setNumberOfCoupons(Long numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } - public NewCouponCreationJob couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -226,34 +221,31 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public NewCouponCreationJob attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with coupons. + * * @return attributes - **/ + **/ @ApiModelProperty(required = true, value = "Arbitrary properties associated with coupons.") public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -275,10 +267,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, numberOfCoupons, couponSettings, attributes); + return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, numberOfCoupons, + couponSettings, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -307,4 +299,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCoupons.java b/src/main/java/one/talon/model/NewCoupons.java index 83e44ccc..904d22dc 100644 --- a/src/main/java/one/talon/model/NewCoupons.java +++ b/src/main/java/one/talon/model/NewCoupons.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -44,7 +43,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -60,7 +59,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Integer numberOfCoupons; + private Long numberOfCoupons; public static final String SERIALIZED_NAME_UNIQUE_PREFIX = "uniquePrefix"; @SerializedName(SERIALIZED_NAME_UNIQUE_PREFIX) @@ -90,43 +89,44 @@ public class NewCoupons { @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) private Boolean implicitlyReserved; + public NewCoupons usageLimit(Long usageLimit) { - public NewCoupons usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public NewCoupons discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -134,47 +134,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public NewCoupons reservationLimit(Long reservationLimit) { - public NewCoupons reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public NewCoupons startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -182,22 +180,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public NewCoupons expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -205,14 +202,12 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public NewCoupons limits(List limits) { - + this.limits = limits; return this; } @@ -225,10 +220,14 @@ public NewCoupons addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + /** + * Limits configuration for a coupon. These limits will override the limits set + * from the campaign. **Note:** Only usable when creating a single coupon which + * is not tied to a specific recipient. Only per-profile limits are allowed to + * be configured. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") @@ -236,44 +235,46 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public NewCoupons numberOfCoupons(Long numberOfCoupons) { - public NewCoupons numberOfCoupons(Integer numberOfCoupons) { - this.numberOfCoupons = numberOfCoupons; return this; } - /** - * The number of new coupon codes to generate for the campaign. Must be at least 1. + /** + * The number of new coupon codes to generate for the campaign. Must be at least + * 1. + * * @return numberOfCoupons - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of new coupon codes to generate for the campaign. Must be at least 1.") - public Integer getNumberOfCoupons() { + public Long getNumberOfCoupons() { return numberOfCoupons; } - - public void setNumberOfCoupons(Integer numberOfCoupons) { + public void setNumberOfCoupons(Long numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } - public NewCoupons uniquePrefix(String uniquePrefix) { - + this.uniquePrefix = uniquePrefix; return this; } - /** - * **DEPRECATED** To create more than 20,000 coupons in one request, use [Create coupons asynchronously](https://docs.talon.one/management-api#operation/createCouponsAsync) endpoint. + /** + * **DEPRECATED** To create more than 20,000 coupons in one request, use [Create + * coupons + * asynchronously](https://docs.talon.one/management-api#operation/createCouponsAsync) + * endpoint. + * * @return uniquePrefix - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "", value = "**DEPRECATED** To create more than 20,000 coupons in one request, use [Create coupons asynchronously](https://docs.talon.one/management-api#operation/createCouponsAsync) endpoint. ") @@ -281,22 +282,21 @@ public String getUniquePrefix() { return uniquePrefix; } - public void setUniquePrefix(String uniquePrefix) { this.uniquePrefix = uniquePrefix; } - public NewCoupons attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"venueId\":12}", value = "Arbitrary properties associated with this item.") @@ -304,22 +304,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public NewCoupons recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The integration ID for this coupon's beneficiary's profile. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The integration ID for this coupon's beneficiary's profile.") @@ -327,14 +326,12 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public NewCoupons validCharacters(List validCharacters) { - + this.validCharacters = validCharacters; return this; } @@ -347,10 +344,13 @@ public NewCoupons addValidCharactersItem(String validCharactersItem) { return this; } - /** - * List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. + /** + * List of characters used to generate the random parts of a code. By default, + * the list of characters is equivalent to the `[A-Z, 0-9]` regular + * expression. + * * @return validCharacters - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[A, B, G, Y]", value = "List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. ") @@ -358,22 +358,23 @@ public List getValidCharacters() { return validCharacters; } - public void setValidCharacters(List validCharacters) { this.validCharacters = validCharacters; } - public NewCoupons couponPattern(String couponPattern) { - + this.couponPattern = couponPattern; return this; } - /** - * The pattern used to generate coupon codes. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. + /** + * The pattern used to generate coupon codes. The character `#` is a + * placeholder and is replaced by a random character from the + * `validCharacters` set. + * * @return couponPattern - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "SUMMER-#####", value = "The pattern used to generate coupon codes. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. ") @@ -381,22 +382,22 @@ public String getCouponPattern() { return couponPattern; } - public void setCouponPattern(String couponPattern) { this.couponPattern = couponPattern; } - public NewCoupons isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -404,22 +405,21 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - public NewCoupons implicitlyReserved(Boolean implicitlyReserved) { - + this.implicitlyReserved = implicitlyReserved; return this; } - /** + /** * An indication of whether the coupon is implicitly reserved for all customers. + * * @return implicitlyReserved - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") @@ -427,12 +427,10 @@ public Boolean getImplicitlyReserved() { return implicitlyReserved; } - public void setImplicitlyReserved(Boolean implicitlyReserved) { this.implicitlyReserved = implicitlyReserved; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -460,10 +458,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, numberOfCoupons, uniquePrefix, attributes, recipientIntegrationId, validCharacters, couponPattern, isReservationMandatory, implicitlyReserved); + return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, numberOfCoupons, + uniquePrefix, attributes, recipientIntegrationId, validCharacters, couponPattern, isReservationMandatory, + implicitlyReserved); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -498,4 +497,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java b/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java index 43dca7f3..4560b729 100644 --- a/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java +++ b/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class NewCouponsForMultipleRecipients { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -43,7 +42,7 @@ public class NewCouponsForMultipleRecipients { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -69,43 +68,44 @@ public class NewCouponsForMultipleRecipients { @SerializedName(SERIALIZED_NAME_COUPON_PATTERN) private String couponPattern; + public NewCouponsForMultipleRecipients usageLimit(Long usageLimit) { - public NewCouponsForMultipleRecipients usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public NewCouponsForMultipleRecipients discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -113,47 +113,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public NewCouponsForMultipleRecipients reservationLimit(Long reservationLimit) { - public NewCouponsForMultipleRecipients reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public NewCouponsForMultipleRecipients startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -161,22 +159,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public NewCouponsForMultipleRecipients expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -184,22 +181,21 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public NewCouponsForMultipleRecipients attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"venueId\":12}", value = "Arbitrary properties associated with this item.") @@ -207,14 +203,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public NewCouponsForMultipleRecipients recipientsIntegrationIds(List recipientsIntegrationIds) { - + this.recipientsIntegrationIds = recipientsIntegrationIds; return this; } @@ -224,24 +218,23 @@ public NewCouponsForMultipleRecipients addRecipientsIntegrationIdsItem(String re return this; } - /** + /** * The integration IDs for recipients. + * * @return recipientsIntegrationIds - **/ + **/ @ApiModelProperty(example = "[URNGV8294NV, BZGGC2454PA]", required = true, value = "The integration IDs for recipients.") public List getRecipientsIntegrationIds() { return recipientsIntegrationIds; } - public void setRecipientsIntegrationIds(List recipientsIntegrationIds) { this.recipientsIntegrationIds = recipientsIntegrationIds; } - public NewCouponsForMultipleRecipients validCharacters(List validCharacters) { - + this.validCharacters = validCharacters; return this; } @@ -254,10 +247,13 @@ public NewCouponsForMultipleRecipients addValidCharactersItem(String validCharac return this; } - /** - * List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. + /** + * List of characters used to generate the random parts of a code. By default, + * the list of characters is equivalent to the `[A-Z, 0-9]` regular + * expression. + * * @return validCharacters - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z]", value = "List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. ") @@ -265,22 +261,23 @@ public List getValidCharacters() { return validCharacters; } - public void setValidCharacters(List validCharacters) { this.validCharacters = validCharacters; } - public NewCouponsForMultipleRecipients couponPattern(String couponPattern) { - + this.couponPattern = couponPattern; return this; } - /** - * The pattern used to generate coupon codes. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. + /** + * The pattern used to generate coupon codes. The character `#` is a + * placeholder and is replaced by a random character from the + * `validCharacters` set. + * * @return couponPattern - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "SUMMER-#####", value = "The pattern used to generate coupon codes. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. ") @@ -288,12 +285,10 @@ public String getCouponPattern() { return couponPattern; } - public void setCouponPattern(String couponPattern) { this.couponPattern = couponPattern; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -316,10 +311,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, attributes, recipientsIntegrationIds, validCharacters, couponPattern); + return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, attributes, + recipientsIntegrationIds, validCharacters, couponPattern); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -349,4 +344,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCustomEffect.java b/src/main/java/one/talon/model/NewCustomEffect.java index 65ddfbc4..f8b49bbb 100644 --- a/src/main/java/one/talon/model/NewCustomEffect.java +++ b/src/main/java/one/talon/model/NewCustomEffect.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class NewCustomEffect { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_PER_ITEM = "isPerItem"; @SerializedName(SERIALIZED_NAME_IS_PER_ITEM) @@ -64,44 +63,43 @@ public class NewCustomEffect { @SerializedName(SERIALIZED_NAME_PARAMS) private List params = null; + public NewCustomEffect applicationIds(List applicationIds) { - public NewCustomEffect applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public NewCustomEffect addApplicationIdsItem(Integer applicationIdsItem) { + public NewCustomEffect addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * The IDs of the Applications that are related to this entity. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public NewCustomEffect isPerItem(Boolean isPerItem) { - + this.isPerItem = isPerItem; return this; } - /** + /** * Indicates if this effect is per item or not. + * * @return isPerItem - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates if this effect is per item or not.") @@ -109,88 +107,84 @@ public Boolean getIsPerItem() { return isPerItem; } - public void setIsPerItem(Boolean isPerItem) { this.isPerItem = isPerItem; } - public NewCustomEffect name(String name) { - + this.name = name; return this; } - /** + /** * The name of this effect. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of this effect.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewCustomEffect title(String title) { - + this.title = title; return this; } - /** + /** * The title of this effect. + * * @return title - **/ + **/ @ApiModelProperty(required = true, value = "The title of this effect.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewCustomEffect payload(String payload) { - + this.payload = payload; return this; } - /** + /** * The JSON payload of this effect. + * * @return payload - **/ + **/ @ApiModelProperty(required = true, value = "The JSON payload of this effect.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public NewCustomEffect description(String description) { - + this.description = description; return this; } - /** + /** * The description of this effect. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The description of this effect.") @@ -198,36 +192,33 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewCustomEffect enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this effect is active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this effect is active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public NewCustomEffect params(List params) { - + this.params = params; return this; } @@ -240,10 +231,11 @@ public NewCustomEffect addParamsItem(TemplateArgDef paramsItem) { return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Array of template argument definitions.") @@ -251,12 +243,10 @@ public List getParams() { return params; } - public void setParams(List params) { this.params = params; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -281,7 +271,6 @@ public int hashCode() { return Objects.hash(applicationIds, isPerItem, name, title, payload, description, enabled, params); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -310,4 +299,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewCustomerSessionV2.java b/src/main/java/one/talon/model/NewCustomerSessionV2.java index 1bd84f12..b832855f 100644 --- a/src/main/java/one/talon/model/NewCustomerSessionV2.java +++ b/src/main/java/one/talon/model/NewCustomerSessionV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -49,7 +48,7 @@ public class NewCustomerSessionV2 { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_COUPON_CODES = "couponCodes"; @SerializedName(SERIALIZED_NAME_COUPON_CODES) @@ -64,16 +63,29 @@ public class NewCustomerSessionV2 { private List loyaltyCards = null; /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. Either: - `closed` → `cancelled` + * (**only** via [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) + * or - `closed` → `partially_returned` (**only** via + * [Return cart + * items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) + * - `closed` → `open` (**only** via [Reopen customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) + * 4. `partially_returned` → `cancelled` For more + * information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { OPEN("open"), - + CLOSED("closed"), - + PARTIALLY_RETURNED("partially_returned"), - + CANCELLED("cancelled"); private String value; @@ -108,7 +120,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -132,21 +144,23 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - /*allow Serializing null for this field */ - @JsonNullable + /* allow Serializing null for this field */ + @JsonNullable private Object attributes; - public NewCustomerSessionV2 profileId(String profileId) { - + this.profileId = profileId; return this; } - /** - * ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + /** + * ID of the customer profile set by your integration layer. **Note:** If the + * customer does not yet have a known `profileId`, we recommend you + * use a guest `profileId`. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. ") @@ -154,22 +168,21 @@ public String getProfileId() { return profileId; } - public void setProfileId(String profileId) { this.profileId = profileId; } - public NewCustomerSessionV2 storeIntegrationId(String storeIntegrationId) { - + this.storeIntegrationId = storeIntegrationId; return this; } - /** + /** * The integration ID of the store. You choose this ID when you create a store. + * * @return storeIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "STORE-001", value = "The integration ID of the store. You choose this ID when you create a store.") @@ -177,45 +190,45 @@ public String getStoreIntegrationId() { return storeIntegrationId; } - public void setStoreIntegrationId(String storeIntegrationId) { this.storeIntegrationId = storeIntegrationId; } + public NewCustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { - public NewCustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { - this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public NewCustomerSessionV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { + public NewCustomerSessionV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; } - /** - * When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + /** + * When using the `dry` query parameter, use this property to list the + * campaign to be evaluated by the Rule Engine. These campaigns will be + * evaluated, even if they are disabled, allowing you to test specific campaigns + * before activating them. + * * @return evaluableCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } - public NewCustomerSessionV2 couponCodes(List couponCodes) { - + this.couponCodes = couponCodes; return this; } @@ -228,10 +241,17 @@ public NewCustomerSessionV2 addCouponCodesItem(String couponCodesItem) { return this; } - /** - * Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `\"couponCodes\": null` or omit the parameter entirely. + /** + * Any coupon codes entered. **Important - for requests only**: - If you [create + * a coupon + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign, ensure the session contains a coupon code by the time you + * close it. - In requests where `dry=false`, providing an empty + * array discards any previous coupons. To avoid this, provide + * `\"couponCodes\": null` or omit the parameter entirely. + * * @return couponCodes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[XMAS-20-2021]", value = "Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `\"couponCodes\": null` or omit the parameter entirely. ") @@ -239,22 +259,27 @@ public List getCouponCodes() { return couponCodes; } - public void setCouponCodes(List couponCodes) { this.couponCodes = couponCodes; } - public NewCustomerSessionV2 referralCode(String referralCode) { - + this.referralCode = referralCode; return this; } - /** - * Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `\"referralCode\": null` or omit the parameter entirely. + /** + * Any referral code entered. **Important - for requests only**: - If you + * [create a referral + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign, ensure the session contains a referral code by the time + * you close it. - In requests where `dry=false`, providing an + * empty value discards the previous referral code. To avoid this, provide + * `\"referralCode\": null` or omit the parameter entirely. + * * @return referralCode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "NT2K54D9", value = "Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `\"referralCode\": null` or omit the parameter entirely. ") @@ -262,14 +287,12 @@ public String getReferralCode() { return referralCode; } - public void setReferralCode(String referralCode) { this.referralCode = referralCode; } - public NewCustomerSessionV2 loyaltyCards(List loyaltyCards) { - + this.loyaltyCards = loyaltyCards; return this; } @@ -282,10 +305,11 @@ public NewCustomerSessionV2 addLoyaltyCardsItem(String loyaltyCardsItem) { return this; } - /** + /** * Identifier of a loyalty card. + * * @return loyaltyCards - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of a loyalty card.") @@ -293,22 +317,34 @@ public List getLoyaltyCards() { return loyaltyCards; } - public void setLoyaltyCards(List loyaltyCards) { this.loyaltyCards = loyaltyCards; } - public NewCustomerSessionV2 state(StateEnum state) { - + this.state = state; return this; } - /** - * Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + /** + * Indicates the current state of the session. Sessions can be created as + * `open` or `closed`. The state transitions are: 1. + * `open` → `closed` 2. `open` → + * `cancelled` 3. Either: - `closed` → `cancelled` + * (**only** via [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) + * or - `closed` → `partially_returned` (**only** via + * [Return cart + * items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) + * - `closed` → `open` (**only** via [Reopen customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) + * 4. `partially_returned` → `cancelled` For more + * information, see [Customer session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * * @return state - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "open", value = "Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). ") @@ -316,14 +352,12 @@ public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public NewCustomerSessionV2 cartItems(List cartItems) { - + this.cartItems = cartItems; return this; } @@ -336,10 +370,13 @@ public NewCustomerSessionV2 addCartItemsItem(CartItem cartItemsItem) { return this; } - /** - * The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. + /** + * The items to add to this session. **Do not exceed 1000 items** and ensure the + * sum of all cart item's `quantity` **does not exceed 10.000** + * per request. + * * @return cartItems - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. ") @@ -347,14 +384,12 @@ public List getCartItems() { return cartItems; } - public void setCartItems(List cartItems) { this.cartItems = cartItems; } - public NewCustomerSessionV2 additionalCosts(Map additionalCosts) { - + this.additionalCosts = additionalCosts; return this; } @@ -367,10 +402,14 @@ public NewCustomerSessionV2 putAdditionalCostsItem(String key, AdditionalCost ad return this; } - /** - * Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + /** + * Use this property to set a value for the additional costs of this session, + * such as a shipping cost. They must be created in the Campaign Manager before + * you set them with this property. See [Managing additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * * @return additionalCosts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"shipping\":{\"price\":9}}", value = "Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). ") @@ -378,14 +417,12 @@ public Map getAdditionalCosts() { return additionalCosts; } - public void setAdditionalCosts(Map additionalCosts) { this.additionalCosts = additionalCosts; } - public NewCustomerSessionV2 identifiers(List identifiers) { - + this.identifiers = identifiers; return this; } @@ -398,10 +435,20 @@ public NewCustomerSessionV2 addIdentifiersItem(String identifiersItem) { return this; } - /** - * Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). + /** + * Session custom identifiers that you can set limits on or use inside your + * rules. For example, you can use IP addresses as identifiers to potentially + * identify devices and limit discounts abuse in case of customers creating + * multiple accounts. See the + * [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). + * **Important**: Ensure the session contains an identifier by the time you + * close it if: - You [create a unique identifier + * budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) + * for your campaign. - Your campaign has + * [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). + * * @return identifiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[91.11.156.141]", value = "Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). ") @@ -409,22 +456,28 @@ public List getIdentifiers() { return identifiers; } - public void setIdentifiers(List identifiers) { this.identifiers = identifiers; } - public NewCustomerSessionV2 attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. + /** + * Use this property to set a value for the attributes of your choice. + * Attributes represent any information to attach to your session, like the + * shipping city. You can use [built-in + * attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) + * or [custom + * ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). + * Custom attributes must be created in the Campaign Manager before you set them + * with this property. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"ShippingCity\":\"Berlin\"}", value = "Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. ") @@ -432,12 +485,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -462,10 +513,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, couponCodes, referralCode, loyaltyCards, state, cartItems, additionalCosts, identifiers, attributes); + return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, couponCodes, referralCode, loyaltyCards, + state, cartItems, additionalCosts, identifiers, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -497,4 +548,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewGiveawaysPool.java b/src/main/java/one/talon/model/NewGiveawaysPool.java index 159bf138..a26afdaf 100644 --- a/src/main/java/one/talon/model/NewGiveawaysPool.java +++ b/src/main/java/one/talon/model/NewGiveawaysPool.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,45 +40,44 @@ public class NewGiveawaysPool { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; - public NewGiveawaysPool name(String name) { - + this.name = name; return this; } - /** + /** * The name of this giveaways pool. + * * @return name - **/ + **/ @ApiModelProperty(example = "My giveaway pool", required = true, value = "The name of this giveaways pool.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewGiveawaysPool description(String description) { - + this.description = description; return this; } - /** + /** * The description of this giveaways pool. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Generic pool", value = "The description of this giveaways pool.") @@ -87,65 +85,63 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewGiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { - public NewGiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewGiveawaysPool addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public NewGiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of the IDs of the applications that this giveaways pool is enabled for. + /** + * A list of the IDs of the applications that this giveaways pool is enabled + * for. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[2, 4]", value = "A list of the IDs of the applications that this giveaways pool is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public NewGiveawaysPool sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -166,7 +162,6 @@ public int hashCode() { return Objects.hash(name, description, subscribedApplicationsIds, sandbox); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -191,4 +186,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewInvitation.java b/src/main/java/one/talon/model/NewInvitation.java index 51bfe0ef..87cfcd68 100644 --- a/src/main/java/one/talon/model/NewInvitation.java +++ b/src/main/java/one/talon/model/NewInvitation.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,23 +45,23 @@ public class NewInvitation { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_ACL = "acl"; @SerializedName(SERIALIZED_NAME_ACL) private String acl; - public NewInvitation name(String name) { - + this.name = name; return this; } - /** + /** * Name of the user. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user.") @@ -70,44 +69,42 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewInvitation email(String email) { - + this.email = email; return this; } - /** + /** * Email address of the user. + * * @return email - **/ + **/ @ApiModelProperty(example = "john.doe@example.com", required = true, value = "Email address of the user.") public String getEmail() { return email; } - public void setEmail(String email) { this.email = email; } - public NewInvitation isAdmin(Boolean isAdmin) { - + this.isAdmin = isAdmin; return this; } - /** + /** * Indicates whether the user is an `admin`. + * * @return isAdmin - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") @@ -115,53 +112,51 @@ public Boolean getIsAdmin() { return isAdmin; } - public void setIsAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; } + public NewInvitation roles(List roles) { - public NewInvitation roles(List roles) { - this.roles = roles; return this; } - public NewInvitation addRolesItem(Integer rolesItem) { + public NewInvitation addRolesItem(Long rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; } - /** + /** * A list of the IDs of the roles assigned to the user. + * * @return roles - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of the IDs of the roles assigned to the user.") - public List getRoles() { + public List getRoles() { return roles; } - - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } - public NewInvitation acl(String acl) { - + this.acl = acl; return this; } - /** + /** * Indicates the access level of the user. + * * @return acl - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates the access level of the user.") @@ -169,12 +164,10 @@ public String getAcl() { return acl; } - public void setAcl(String acl) { this.acl = acl; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -196,7 +189,6 @@ public int hashCode() { return Objects.hash(name, email, isAdmin, roles, acl); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -222,4 +214,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewLoyaltyProgram.java b/src/main/java/one/talon/model/NewLoyaltyProgram.java index 6bf4384c..d3c20ae2 100644 --- a/src/main/java/one/talon/model/NewLoyaltyProgram.java +++ b/src/main/java/one/talon/model/NewLoyaltyProgram.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,7 +44,7 @@ public class NewLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -61,21 +60,27 @@ public class NewLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Integer usersPerCardLimit; + private Long usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. */ @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) public enum ProgramJoinPolicyEnum { NOT_JOIN("not_join"), - + POINTS_ACTIVATED("points_activated"), - + POINTS_EARNED("points_earned"); private String value; @@ -110,7 +115,7 @@ public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enume @Override public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ProgramJoinPolicyEnum.fromValue(value); } } @@ -121,16 +126,24 @@ public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOExceptio private ProgramJoinPolicyEnum programJoinPolicy; /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. */ @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) public enum TiersExpirationPolicyEnum { TIER_START_DATE("tier_start_date"), - + PROGRAM_JOIN_DATE("program_join_date"), - + CUSTOMER_ATTRIBUTE("customer_attribute"), - + ABSOLUTE_EXPIRATION("absolute_expiration"); private String value; @@ -165,7 +178,7 @@ public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum e @Override public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersExpirationPolicyEnum.fromValue(value); } } @@ -184,12 +197,16 @@ public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOExce private String tiersExpireIn; /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. */ @JsonAdapter(TiersDowngradePolicyEnum.Adapter.class) public enum TiersDowngradePolicyEnum { ONE_DOWN("one_down"), - + BALANCE_BASED("balance_based"); private String value; @@ -224,7 +241,7 @@ public void write(final JsonWriter jsonWriter, final TiersDowngradePolicyEnum en @Override public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersDowngradePolicyEnum.fromValue(value); } } @@ -239,14 +256,21 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep private CodeGeneratorSettings cardCodeSettings; /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. */ @JsonAdapter(ReturnPolicyEnum.Adapter.class) public enum ReturnPolicyEnum { ONLY_PENDING("only_pending"), - + WITHIN_BALANCE("within_balance"), - + UNLIMITED("unlimited"); private String value; @@ -281,7 +305,7 @@ public void write(final JsonWriter jsonWriter, final ReturnPolicyEnum enumeratio @Override public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReturnPolicyEnum.fromValue(value); } } @@ -307,39 +331,38 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CARD_BASED) private Boolean cardBased = false; - public NewLoyaltyProgram title(String title) { - + this.title = title; return this; } - /** + /** * The display title for the Loyalty Program. + * * @return title - **/ + **/ @ApiModelProperty(example = "Point collection", required = true, value = "The display title for the Loyalty Program.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewLoyaltyProgram description(String description) { - + this.description = description; return this; } - /** + /** * Description of our Loyalty Program. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Customers collect 10 points per 1$ spent", value = "Description of our Loyalty Program.") @@ -347,165 +370,184 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewLoyaltyProgram subscribedApplications(List subscribedApplications) { - public NewLoyaltyProgram subscribedApplications(List subscribedApplications) { - this.subscribedApplications = subscribedApplications; return this; } - public NewLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { + public NewLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; } - /** - * A list containing the IDs of all applications that are subscribed to this Loyalty Program. + /** + * A list containing the IDs of all applications that are subscribed to this + * Loyalty Program. + * * @return subscribedApplications - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } - public NewLoyaltyProgram defaultValidity(String defaultValidity) { - + this.defaultValidity = defaultValidity; return this; } - /** - * The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration after which new loyalty points should expire. Can be + * 'unlimited' or a specific time. The time format is a number followed + * by one letter indicating the time unit, like '30s', '40m', + * '1h', '5D', '7W', or 10M'. These rounding + * suffixes are also supported: - '_D' for rounding down. Can be used as + * a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultValidity - **/ + **/ @ApiModelProperty(example = "2W_U", required = true, value = "The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") public String getDefaultValidity() { return defaultValidity; } - public void setDefaultValidity(String defaultValidity) { this.defaultValidity = defaultValidity; } - public NewLoyaltyProgram defaultPending(String defaultPending) { - + this.defaultPending = defaultPending; return this; } - /** - * The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration of the pending time after which points should be valid. + * Can be 'immediate' or a specific time. The time format is a number + * followed by one letter indicating the time unit, like '30s', + * '40m', '1h', '5D', '7W', or 10M'. These + * rounding suffixes are also supported: - '_D' for rounding down. Can + * be used as a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultPending - **/ + **/ @ApiModelProperty(example = "immediate", required = true, value = "The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") public String getDefaultPending() { return defaultPending; } - public void setDefaultPending(String defaultPending) { this.defaultPending = defaultPending; } - public NewLoyaltyProgram allowSubledger(Boolean allowSubledger) { - + this.allowSubledger = allowSubledger; return this; } - /** + /** * Indicates if this program supports subledgers inside the program. + * * @return allowSubledger - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "Indicates if this program supports subledgers inside the program.") public Boolean getAllowSubledger() { return allowSubledger; } - public void setAllowSubledger(Boolean allowSubledger) { this.allowSubledger = allowSubledger; } + public NewLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { - public NewLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { - this.usersPerCardLimit = usersPerCardLimit; return this; } - /** - * The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. + /** + * The max amount of user profiles with whom a card can be shared. This can be + * set to 0 for no limit. This property is only used when `cardBased` + * is `true`. * minimum: 0 + * * @return usersPerCardLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Integer getUsersPerCardLimit() { + public Long getUsersPerCardLimit() { return usersPerCardLimit; } - - public void setUsersPerCardLimit(Integer usersPerCardLimit) { + public void setUsersPerCardLimit(Long usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } - public NewLoyaltyProgram sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public NewLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { - + this.programJoinPolicy = programJoinPolicy; return this; } - /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + /** + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. + * * @return programJoinPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. ") @@ -513,22 +555,29 @@ public ProgramJoinPolicyEnum getProgramJoinPolicy() { return programJoinPolicy; } - public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { this.programJoinPolicy = programJoinPolicy; } - public NewLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { - + this.tiersExpirationPolicy = tiersExpirationPolicy; return this; } - /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + /** + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. + * * @return tiersExpirationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. ") @@ -536,22 +585,23 @@ public TiersExpirationPolicyEnum getTiersExpirationPolicy() { return tiersExpirationPolicy; } - public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { this.tiersExpirationPolicy = tiersExpirationPolicy; } - public NewLoyaltyProgram tierCycleStartDate(OffsetDateTime tierCycleStartDate) { - + this.tierCycleStartDate = tierCycleStartDate; return this; } - /** - * Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. + /** + * Timestamp at which the tier cycle starts for all customers in the loyalty + * program. **Note**: This is only required when the tier expiration policy is + * set to `absolute_expiration`. + * * @return tierCycleStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. ") @@ -559,22 +609,30 @@ public OffsetDateTime getTierCycleStartDate() { return tierCycleStartDate; } - public void setTierCycleStartDate(OffsetDateTime tierCycleStartDate) { this.tierCycleStartDate = tierCycleStartDate; } - public NewLoyaltyProgram tiersExpireIn(String tiersExpireIn) { - + this.tiersExpireIn = tiersExpireIn; return this; } - /** - * The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + /** + * The amount of time after which the tier expires and is reevaluated. The time + * format is an **integer** followed by one letter indicating the time unit. + * Examples: `30s`, `40m`, `1h`, `5D`, + * `7W`, `10M`, `15Y`. Available units: - + * `s`: seconds - `m`: minutes - `h`: hours - + * `D`: days - `W`: weeks - `M`: months - + * `Y`: years You can round certain units up or down: - `_D` + * for rounding down days only. Signifies the start of the day. - `_U` + * for rounding up days, weeks, months and years. Signifies the end of the day, + * week, month or year. + * * @return tiersExpireIn - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "27W_U", value = "The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. ") @@ -582,22 +640,25 @@ public String getTiersExpireIn() { return tiersExpireIn; } - public void setTiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; } - public NewLoyaltyProgram tiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { - + this.tiersDowngradePolicy = tiersDowngradePolicy; return this; } - /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + /** + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. + * * @return tiersDowngradePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. ") @@ -605,22 +666,21 @@ public TiersDowngradePolicyEnum getTiersDowngradePolicy() { return tiersDowngradePolicy; } - public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { this.tiersDowngradePolicy = tiersDowngradePolicy; } - public NewLoyaltyProgram cardCodeSettings(CodeGeneratorSettings cardCodeSettings) { - + this.cardCodeSettings = cardCodeSettings; return this; } - /** + /** * Get cardCodeSettings + * * @return cardCodeSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -628,22 +688,28 @@ public CodeGeneratorSettings getCardCodeSettings() { return cardCodeSettings; } - public void setCardCodeSettings(CodeGeneratorSettings cardCodeSettings) { this.cardCodeSettings = cardCodeSettings; } - public NewLoyaltyProgram returnPolicy(ReturnPolicyEnum returnPolicy) { - + this.returnPolicy = returnPolicy; return this; } - /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + /** + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. + * * @return returnPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. ") @@ -651,36 +717,33 @@ public ReturnPolicyEnum getReturnPolicy() { return returnPolicy; } - public void setReturnPolicy(ReturnPolicyEnum returnPolicy) { this.returnPolicy = returnPolicy; } - public NewLoyaltyProgram name(String name) { - + this.name = name; return this; } - /** + /** * The internal name for the Loyalty Program. This is an immutable value. + * * @return name - **/ + **/ @ApiModelProperty(example = "GeneralPointCollection", required = true, value = "The internal name for the Loyalty Program. This is an immutable value.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewLoyaltyProgram tiers(List tiers) { - + this.tiers = tiers; return this; } @@ -693,10 +756,11 @@ public NewLoyaltyProgram addTiersItem(NewLoyaltyTier tiersItem) { return this; } - /** + /** * The tiers in this loyalty program. + * * @return tiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The tiers in this loyalty program.") @@ -704,56 +768,53 @@ public List getTiers() { return tiers; } - public void setTiers(List tiers) { this.tiers = tiers; } - public NewLoyaltyProgram timezone(String timezone) { - + this.timezone = timezone; return this; } - /** + /** * A string containing an IANA timezone descriptor. + * * @return timezone - **/ + **/ @ApiModelProperty(required = true, value = "A string containing an IANA timezone descriptor.") public String getTimezone() { return timezone; } - public void setTimezone(String timezone) { this.timezone = timezone; } - public NewLoyaltyProgram cardBased(Boolean cardBased) { - + this.cardBased = cardBased; return this; } - /** - * Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based. + /** + * Defines the type of loyalty program: - `true`: the program is a + * card-based. - `false`: the program is profile-based. + * * @return cardBased - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Defines the type of loyalty program: - `true`: the program is a card-based. - `false`: the program is profile-based. ") public Boolean getCardBased() { return cardBased; } - public void setCardBased(Boolean cardBased) { this.cardBased = cardBased; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -786,10 +847,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, tiersDowngradePolicy, cardCodeSettings, returnPolicy, name, tiers, timezone, cardBased); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, + usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, + tiersDowngradePolicy, cardCodeSettings, returnPolicy, name, tiers, timezone, cardBased); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -829,4 +891,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewManagementKey.java b/src/main/java/one/talon/model/NewManagementKey.java index 60c87ffa..61b2253c 100644 --- a/src/main/java/one/talon/model/NewManagementKey.java +++ b/src/main/java/one/talon/model/NewManagementKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -47,19 +46,19 @@ public class NewManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; + private List allowedApplicationIds = null; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Integer accountID; + private Long accountID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -73,53 +72,50 @@ public class NewManagementKey { @SerializedName(SERIALIZED_NAME_KEY) private String key; - public NewManagementKey name(String name) { - + this.name = name; return this; } - /** + /** * Name for management key. + * * @return name - **/ + **/ @ApiModelProperty(example = "My generated key", required = true, value = "Name for management key.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewManagementKey expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * The date the management key expires. + * * @return expiryDate - **/ + **/ @ApiModelProperty(example = "2023-08-24T14:00Z", required = true, value = "The date the management key expires.") public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public NewManagementKey endpoints(List endpoints) { - + this.endpoints = endpoints; return this; } @@ -129,151 +125,149 @@ public NewManagementKey addEndpointsItem(Endpoint endpointsItem) { return this; } - /** + /** * The list of endpoints that can be accessed with the key + * * @return endpoints - **/ + **/ @ApiModelProperty(required = true, value = "The list of endpoints that can be accessed with the key") public List getEndpoints() { return endpoints; } - public void setEndpoints(List endpoints) { this.endpoints = endpoints; } + public NewManagementKey allowedApplicationIds(List allowedApplicationIds) { - public NewManagementKey allowedApplicationIds(List allowedApplicationIds) { - this.allowedApplicationIds = allowedApplicationIds; return this; } - public NewManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { + public NewManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; } - /** - * A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. + /** + * A list of Application IDs that you can access with the management key. An + * empty or missing list means the management key can be used for all + * Applications in the account. + * * @return allowedApplicationIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } + public NewManagementKey id(Long id) { - public NewManagementKey id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the management key. + * * @return id - **/ + **/ @ApiModelProperty(example = "34", required = true, value = "ID of the management key.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public NewManagementKey createdBy(Long createdBy) { - public NewManagementKey createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created it. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "280", required = true, value = "ID of the user who created it.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public NewManagementKey accountID(Long accountID) { - public NewManagementKey accountID(Integer accountID) { - this.accountID = accountID; return this; } - /** + /** * ID of account the key is used for. + * * @return accountID - **/ + **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Integer getAccountID() { + public Long getAccountID() { return accountID; } - - public void setAccountID(Integer accountID) { + public void setAccountID(Long accountID) { this.accountID = accountID; } - public NewManagementKey created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The date the management key was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2022-03-02T16:46:17.758585Z", required = true, value = "The date the management key was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public NewManagementKey disabled(Boolean disabled) { - + this.disabled = disabled; return this; } - /** - * The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. + /** + * The management key is disabled (this property is set to `true`) + * when the user who created the key is disabled or deleted. + * * @return disabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted.") @@ -281,34 +275,31 @@ public Boolean getDisabled() { return disabled; } - public void setDisabled(Boolean disabled) { this.disabled = disabled; } - public NewManagementKey key(String key) { - + this.key = key; return this; } - /** + /** * The management key. + * * @return key - **/ + **/ @ApiModelProperty(example = "f45f90d21dcd9bac965c45e547e9754a3196891d09948e35adbcbedc4e9e4b01", required = true, value = "The management key.") public String getKey() { return key; } - public void setKey(String key) { this.key = key; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -332,10 +323,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, expiryDate, endpoints, allowedApplicationIds, id, createdBy, accountID, created, disabled, key); + return Objects.hash(name, expiryDate, endpoints, allowedApplicationIds, id, createdBy, accountID, created, disabled, + key); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -366,4 +357,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java b/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java index ff36a853..58115c81 100644 --- a/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java +++ b/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,41 +40,40 @@ public class NewOutgoingIntegrationWebhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); - + private List applicationIds = new ArrayList(); public NewOutgoingIntegrationWebhook title(String title) { - + this.title = title; return this; } - /** + /** * Webhook title. + * * @return title - **/ + **/ @ApiModelProperty(example = "Send email to customer via Braze", required = true, value = "Webhook title.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewOutgoingIntegrationWebhook description(String description) { - + this.description = description; return this; } - /** + /** * A description of the webhook. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A webhook to send a coupon to the user.", value = "A description of the webhook.") @@ -83,39 +81,36 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewOutgoingIntegrationWebhook applicationIds(List applicationIds) { - public NewOutgoingIntegrationWebhook applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public NewOutgoingIntegrationWebhook addApplicationIdsItem(Integer applicationIdsItem) { + public NewOutgoingIntegrationWebhook addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * IDs of the Applications to which a webhook must be linked. + * * @return applicationIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "IDs of the Applications to which a webhook must be linked.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -135,7 +130,6 @@ public int hashCode() { return Objects.hash(title, description, applicationIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -159,4 +153,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewReferral.java b/src/main/java/one/talon/model/NewReferral.java index 4309f840..33d220e7 100644 --- a/src/main/java/one/talon/model/NewReferral.java +++ b/src/main/java/one/talon/model/NewReferral.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -40,11 +39,11 @@ public class NewReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -58,17 +57,17 @@ public class NewReferral { @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; - public NewReferral startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -76,22 +75,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public NewReferral expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -99,91 +98,88 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public NewReferral usageLimit(Long usageLimit) { - public NewReferral usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. `0` means no limit + * but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } + public NewReferral campaignId(Long campaignId) { - public NewReferral campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign from which the referral received the referral code. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public NewReferral advocateProfileIntegrationId(String advocateProfileIntegrationId) { - + this.advocateProfileIntegrationId = advocateProfileIntegrationId; return this; } - /** + /** * The Integration ID of the Advocate's Profile. + * * @return advocateProfileIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The Integration ID of the Advocate's Profile.") public String getAdvocateProfileIntegrationId() { return advocateProfileIntegrationId; } - public void setAdvocateProfileIntegrationId(String advocateProfileIntegrationId) { this.advocateProfileIntegrationId = advocateProfileIntegrationId; } - public NewReferral friendProfileIntegrationId(String friendProfileIntegrationId) { - + this.friendProfileIntegrationId = friendProfileIntegrationId; return this; } - /** + /** * An optional Integration ID of the Friend's Profile. + * * @return friendProfileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "BZGGC2454PA", value = "An optional Integration ID of the Friend's Profile.") @@ -191,22 +187,21 @@ public String getFriendProfileIntegrationId() { return friendProfileIntegrationId; } - public void setFriendProfileIntegrationId(String friendProfileIntegrationId) { this.friendProfileIntegrationId = friendProfileIntegrationId; } - public NewReferral attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"channel\":\"web\"}", value = "Arbitrary properties associated with this item.") @@ -214,12 +209,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -240,10 +233,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, friendProfileIntegrationId, attributes); + return Objects.hash(startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, + friendProfileIntegrationId, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -271,4 +264,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewReferralsForMultipleAdvocates.java b/src/main/java/one/talon/model/NewReferralsForMultipleAdvocates.java index a18f92b2..3a2f5ad7 100644 --- a/src/main/java/one/talon/model/NewReferralsForMultipleAdvocates.java +++ b/src/main/java/one/talon/model/NewReferralsForMultipleAdvocates.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,11 +45,11 @@ public class NewReferralsForMultipleAdvocates { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_IDS = "advocateProfileIntegrationIds"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_IDS) @@ -58,8 +57,8 @@ public class NewReferralsForMultipleAdvocates { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - /*allow Serializing null for this field */ - @JsonNullable + /* allow Serializing null for this field */ + @JsonNullable private Object attributes; public static final String SERIALIZED_NAME_VALID_CHARACTERS = "validCharacters"; @@ -70,17 +69,17 @@ public class NewReferralsForMultipleAdvocates { @SerializedName(SERIALIZED_NAME_REFERRAL_PATTERN) private String referralPattern; - public NewReferralsForMultipleAdvocates startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -88,22 +87,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public NewReferralsForMultipleAdvocates expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -111,95 +110,93 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public NewReferralsForMultipleAdvocates usageLimit(Long usageLimit) { - public NewReferralsForMultipleAdvocates usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. `0` means no limit + * but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } + public NewReferralsForMultipleAdvocates campaignId(Long campaignId) { - public NewReferralsForMultipleAdvocates campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign from which the referral received the referral code. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "45", required = true, value = "The ID of the campaign from which the referral received the referral code.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public NewReferralsForMultipleAdvocates advocateProfileIntegrationIds(List advocateProfileIntegrationIds) { - + this.advocateProfileIntegrationIds = advocateProfileIntegrationIds; return this; } - public NewReferralsForMultipleAdvocates addAdvocateProfileIntegrationIdsItem(String advocateProfileIntegrationIdsItem) { + public NewReferralsForMultipleAdvocates addAdvocateProfileIntegrationIdsItem( + String advocateProfileIntegrationIdsItem) { this.advocateProfileIntegrationIds.add(advocateProfileIntegrationIdsItem); return this; } - /** + /** * An array containing all the respective advocate profiles. + * * @return advocateProfileIntegrationIds - **/ + **/ @ApiModelProperty(example = "[URNGV8294NV, DRPVV9476AF]", required = true, value = "An array containing all the respective advocate profiles.") public List getAdvocateProfileIntegrationIds() { return advocateProfileIntegrationIds; } - public void setAdvocateProfileIntegrationIds(List advocateProfileIntegrationIds) { this.advocateProfileIntegrationIds = advocateProfileIntegrationIds; } - public NewReferralsForMultipleAdvocates attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this referral code. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"channel\":\"web\"}", value = "Arbitrary properties associated with this referral code.") @@ -207,14 +204,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public NewReferralsForMultipleAdvocates validCharacters(List validCharacters) { - + this.validCharacters = validCharacters; return this; } @@ -227,10 +222,13 @@ public NewReferralsForMultipleAdvocates addValidCharactersItem(String validChara return this; } - /** - * List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. + /** + * List of characters used to generate the random parts of a code. By default, + * the list of characters is equivalent to the `[A-Z, 0-9]` regular + * expression. + * * @return validCharacters - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z]", value = "List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. ") @@ -238,22 +236,23 @@ public List getValidCharacters() { return validCharacters; } - public void setValidCharacters(List validCharacters) { this.validCharacters = validCharacters; } - public NewReferralsForMultipleAdvocates referralPattern(String referralPattern) { - + this.referralPattern = referralPattern; return this; } - /** - * The pattern used to generate referrals. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. + /** + * The pattern used to generate referrals. The character `#` is a + * placeholder and is replaced by a random character from the + * `validCharacters` set. + * * @return referralPattern - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "REF-###-###", value = "The pattern used to generate referrals. The character `#` is a placeholder and is replaced by a random character from the `validCharacters` set. ") @@ -261,12 +260,10 @@ public String getReferralPattern() { return referralPattern; } - public void setReferralPattern(String referralPattern) { this.referralPattern = referralPattern; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -280,7 +277,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.expiryDate, newReferralsForMultipleAdvocates.expiryDate) && Objects.equals(this.usageLimit, newReferralsForMultipleAdvocates.usageLimit) && Objects.equals(this.campaignId, newReferralsForMultipleAdvocates.campaignId) && - Objects.equals(this.advocateProfileIntegrationIds, newReferralsForMultipleAdvocates.advocateProfileIntegrationIds) && + Objects.equals(this.advocateProfileIntegrationIds, + newReferralsForMultipleAdvocates.advocateProfileIntegrationIds) + && Objects.equals(this.attributes, newReferralsForMultipleAdvocates.attributes) && Objects.equals(this.validCharacters, newReferralsForMultipleAdvocates.validCharacters) && Objects.equals(this.referralPattern, newReferralsForMultipleAdvocates.referralPattern); @@ -288,10 +287,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationIds, attributes, validCharacters, referralPattern); + return Objects.hash(startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationIds, attributes, + validCharacters, referralPattern); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -300,7 +299,8 @@ public String toString() { sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n"); sb.append(" usageLimit: ").append(toIndentedString(usageLimit)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); - sb.append(" advocateProfileIntegrationIds: ").append(toIndentedString(advocateProfileIntegrationIds)).append("\n"); + sb.append(" advocateProfileIntegrationIds: ").append(toIndentedString(advocateProfileIntegrationIds)) + .append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" validCharacters: ").append(toIndentedString(validCharacters)).append("\n"); sb.append(" referralPattern: ").append(toIndentedString(referralPattern)).append("\n"); @@ -320,4 +320,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewRevisionVersion.java b/src/main/java/one/talon/model/NewRevisionVersion.java index 79759828..0e7003f9 100644 --- a/src/main/java/one/talon/model/NewRevisionVersion.java +++ b/src/main/java/one/talon/model/NewRevisionVersion.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -56,7 +55,7 @@ public class NewRevisionVersion { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -80,15 +79,15 @@ public class NewRevisionVersion { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -123,7 +122,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -133,17 +132,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FEATURES) private List features = null; - public NewRevisionVersion name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Summer promotions", value = "A user-facing name for this campaign.") @@ -151,22 +150,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewRevisionVersion startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -174,22 +172,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public NewRevisionVersion endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -197,22 +194,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public NewRevisionVersion attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -220,22 +216,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public NewRevisionVersion description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -243,37 +238,34 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public NewRevisionVersion activeRulesetId(Long activeRulesetId) { - public NewRevisionVersion activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** + /** * The ID of the ruleset this campaign template will use. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public NewRevisionVersion tags(List tags) { - + this.tags = tags; return this; } @@ -286,10 +278,11 @@ public NewRevisionVersion addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign template. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of tags for the campaign template.") @@ -297,22 +290,21 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public NewRevisionVersion couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -320,22 +312,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public NewRevisionVersion referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -343,14 +334,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public NewRevisionVersion limits(List limits) { - + this.limits = limits; return this; } @@ -363,10 +352,11 @@ public NewRevisionVersion addLimitsItem(LimitConfig limitsItem) { return this; } - /** + /** * The set of limits that will operate for this campaign version. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The set of limits that will operate for this campaign version.") @@ -374,14 +364,12 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public NewRevisionVersion features(List features) { - + this.features = features; return this; } @@ -394,10 +382,11 @@ public NewRevisionVersion addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign template. + * * @return features - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of features for the campaign template.") @@ -405,12 +394,10 @@ public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -435,10 +422,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, startTime, endTime, attributes, description, activeRulesetId, tags, couponSettings, referralSettings, limits, features); + return Objects.hash(name, startTime, endTime, attributes, description, activeRulesetId, tags, couponSettings, + referralSettings, limits, features); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -470,4 +457,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewRole.java b/src/main/java/one/talon/model/NewRole.java index ea2e5a17..c0609ab3 100644 --- a/src/main/java/one/talon/model/NewRole.java +++ b/src/main/java/one/talon/model/NewRole.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,41 +44,40 @@ public class NewRole { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = new ArrayList(); - + private List members = new ArrayList(); public NewRole name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @ApiModelProperty(example = "Campaign Manager", required = true, value = "Name of the role.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewRole description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Manages the campaigns", value = "Description of the role.") @@ -87,61 +85,58 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewRole acl(String acl) { - + this.acl = acl; return this; } - /** - * The `Access Control List` json defining the role of the user. This represents the access control on the user level. + /** + * The `Access Control List` json defining the role of the user. This + * represents the access control on the user level. + * * @return acl - **/ + **/ @ApiModelProperty(example = "", required = true, value = "The `Access Control List` json defining the role of the user. This represents the access control on the user level.") public String getAcl() { return acl; } - public void setAcl(String acl) { this.acl = acl; } + public NewRole members(List members) { - public NewRole members(List members) { - this.members = members; return this; } - public NewRole addMembersItem(Integer membersItem) { + public NewRole addMembersItem(Long membersItem) { this.members.add(membersItem); return this; } - /** + /** * An array of user identifiers. + * * @return members - **/ + **/ @ApiModelProperty(example = "[48, 562, 475, 18]", required = true, value = "An array of user identifiers.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -162,7 +157,6 @@ public int hashCode() { return Objects.hash(name, description, acl, members); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -187,4 +181,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewRoleV2.java b/src/main/java/one/talon/model/NewRoleV2.java index d4ddd1c6..27859dc3 100644 --- a/src/main/java/one/talon/model/NewRoleV2.java +++ b/src/main/java/one/talon/model/NewRoleV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,63 +45,61 @@ public class NewRoleV2 { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; - + private List members = null; public NewRoleV2 name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @ApiModelProperty(example = "Campaign and campaign access group manager", required = true, value = "Name of the role.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewRoleV2 description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @ApiModelProperty(example = "Allows you to create and edit campaigns for specific Applications, delete specific campaign access groups, and view loyalty programs.", required = true, value = "Description of the role.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewRoleV2 permissions(RoleV2Permissions permissions) { - + this.permissions = permissions; return this; } - /** + /** * Get permissions + * * @return permissions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -110,43 +107,40 @@ public RoleV2Permissions getPermissions() { return permissions; } - public void setPermissions(RoleV2Permissions permissions) { this.permissions = permissions; } + public NewRoleV2 members(List members) { - public NewRoleV2 members(List members) { - this.members = members; return this; } - public NewRoleV2 addMembersItem(Integer membersItem) { + public NewRoleV2 addMembersItem(Long membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; } - /** + /** * A list of user IDs the role is assigned to. + * * @return members - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -167,7 +161,6 @@ public int hashCode() { return Objects.hash(name, description, permissions, members); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -192,4 +185,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewSamlConnection.java b/src/main/java/one/talon/model/NewSamlConnection.java index c950e0ba..619f4a73 100644 --- a/src/main/java/one/talon/model/NewSamlConnection.java +++ b/src/main/java/one/talon/model/NewSamlConnection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class NewSamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -66,149 +65,143 @@ public class NewSamlConnection { @SerializedName(SERIALIZED_NAME_AUDIENCE_U_R_I) private String audienceURI; - public NewSamlConnection x509certificate(String x509certificate) { - + this.x509certificate = x509certificate; return this; } - /** + /** * X.509 Certificate. + * * @return x509certificate - **/ + **/ @ApiModelProperty(required = true, value = "X.509 Certificate.") public String getX509certificate() { return x509certificate; } - public void setX509certificate(String x509certificate) { this.x509certificate = x509certificate; } + public NewSamlConnection accountId(Long accountId) { - public NewSamlConnection accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public NewSamlConnection name(String name) { - + this.name = name; return this; } - /** + /** * ID of the SAML service. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "ID of the SAML service.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public NewSamlConnection enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this SAML connection active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this SAML connection active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public NewSamlConnection issuer(String issuer) { - + this.issuer = issuer; return this; } - /** + /** * Identity Provider Entity ID. + * * @return issuer - **/ + **/ @ApiModelProperty(required = true, value = "Identity Provider Entity ID.") public String getIssuer() { return issuer; } - public void setIssuer(String issuer) { this.issuer = issuer; } - public NewSamlConnection signOnURL(String signOnURL) { - + this.signOnURL = signOnURL; return this; } - /** + /** * Single Sign-On URL. + * * @return signOnURL - **/ + **/ @ApiModelProperty(required = true, value = "Single Sign-On URL.") public String getSignOnURL() { return signOnURL; } - public void setSignOnURL(String signOnURL) { this.signOnURL = signOnURL; } - public NewSamlConnection signOutURL(String signOutURL) { - + this.signOutURL = signOutURL; return this; } - /** + /** * Single Sign-Out URL. + * * @return signOutURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Single Sign-Out URL.") @@ -216,22 +209,21 @@ public String getSignOutURL() { return signOutURL; } - public void setSignOutURL(String signOutURL) { this.signOutURL = signOutURL; } - public NewSamlConnection metadataURL(String metadataURL) { - + this.metadataURL = metadataURL; return this; } - /** + /** * Metadata URL. + * * @return metadataURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Metadata URL.") @@ -239,22 +231,23 @@ public String getMetadataURL() { return metadataURL; } - public void setMetadataURL(String metadataURL) { this.metadataURL = metadataURL; } - public NewSamlConnection audienceURI(String audienceURI) { - + this.audienceURI = audienceURI; return this; } - /** - * The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. + /** + * The application-defined unique identifier that is the intended audience of + * the SAML assertion. This is most often the SP Entity ID of your application. + * When not specified, the ACS URL will be used. + * * @return audienceURI - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. ") @@ -262,12 +255,10 @@ public String getAudienceURI() { return audienceURI; } - public void setAudienceURI(String audienceURI) { this.audienceURI = audienceURI; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -290,10 +281,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(x509certificate, accountId, name, enabled, issuer, signOnURL, signOutURL, metadataURL, audienceURI); + return Objects.hash(x509certificate, accountId, name, enabled, issuer, signOnURL, signOutURL, metadataURL, + audienceURI); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -323,4 +314,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NewWebhook.java b/src/main/java/one/talon/model/NewWebhook.java index 36545078..5be2fa02 100644 --- a/src/main/java/one/talon/model/NewWebhook.java +++ b/src/main/java/one/talon/model/NewWebhook.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class NewWebhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -50,13 +49,13 @@ public class NewWebhook { @JsonAdapter(VerbEnum.Adapter.class) public enum VerbEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -91,7 +90,7 @@ public void write(final JsonWriter jsonWriter, final VerbEnum enumeration) throw @Override public VerbEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return VerbEnum.fromValue(value); } } @@ -121,66 +120,65 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled; + public NewWebhook applicationIds(List applicationIds) { - public NewWebhook applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public NewWebhook addApplicationIdsItem(Integer applicationIdsItem) { + public NewWebhook addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** - * The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. + /** + * The IDs of the Applications in which this webhook is available. An empty + * array means the webhook is available in `All Applications`. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public NewWebhook title(String title) { - + this.title = title; return this; } - /** + /** * Name or title for this webhook. + * * @return title - **/ + **/ @ApiModelProperty(example = "Send message", required = true, value = "Name or title for this webhook.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public NewWebhook description(String description) { - + this.description = description; return this; } - /** + /** * A description of the webhook. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A webhook to send a coupon to the user.", value = "A description of the webhook.") @@ -188,58 +186,54 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public NewWebhook verb(VerbEnum verb) { - + this.verb = verb; return this; } - /** + /** * API method for this webhook. + * * @return verb - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public VerbEnum getVerb() { return verb; } - public void setVerb(VerbEnum verb) { this.verb = verb; } - public NewWebhook url(String url) { - + this.url = url; return this; } - /** + /** * API URL (supports templating using parameters) for this webhook. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "API URL (supports templating using parameters) for this webhook.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public NewWebhook headers(List headers) { - + this.headers = headers; return this; } @@ -249,32 +243,32 @@ public NewWebhook addHeadersItem(String headersItem) { return this; } - /** + /** * List of API HTTP headers for this webhook. + * * @return headers - **/ + **/ @ApiModelProperty(example = "[{\"Authorization\": \"Basic bmF2ZWVua3VtYXIU=\"}, {\"Content-Type\": \"application/json\"}]", required = true, value = "List of API HTTP headers for this webhook.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public NewWebhook payload(String payload) { - + this.payload = payload; return this; } - /** + /** * API payload (supports templating using parameters) for this webhook. + * * @return payload - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{ \"message\": \"${message}\" }", value = "API payload (supports templating using parameters) for this webhook.") @@ -282,14 +276,12 @@ public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public NewWebhook params(List params) { - + this.params = params; return this; } @@ -299,44 +291,42 @@ public NewWebhook addParamsItem(TemplateArgDef paramsItem) { return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @ApiModelProperty(example = "[]", required = true, value = "Array of template argument definitions.") public List getParams() { return params; } - public void setParams(List params) { this.params = params; } - public NewWebhook enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Enables or disables webhook from showing in the Rule Builder. + * * @return enabled - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Enables or disables webhook from showing in the Rule Builder.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -362,7 +352,6 @@ public int hashCode() { return Objects.hash(applicationIds, title, description, verb, url, headers, payload, params, enabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -392,4 +381,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Notification.java b/src/main/java/one/talon/model/Notification.java index 80345923..bdf026e3 100644 --- a/src/main/java/one/talon/model/Notification.java +++ b/src/main/java/one/talon/model/Notification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class Notification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -41,73 +40,69 @@ public class Notification { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public Notification id(Long id) { - public Notification id(Integer id) { - this.id = id; return this; } - /** + /** * id of the notification. + * * @return id - **/ + **/ @ApiModelProperty(required = true, value = "id of the notification.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Notification name(String name) { - + this.name = name; return this; } - /** + /** * name of the notification. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "name of the notification.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Notification description(String description) { - + this.description = description; return this; } - /** + /** * description of the notification. + * * @return description - **/ + **/ @ApiModelProperty(required = true, value = "description of the notification.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,7 +122,6 @@ public int hashCode() { return Objects.hash(id, name, description); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,4 +145,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NotificationListItem.java b/src/main/java/one/talon/model/NotificationListItem.java index 22381dae..460a8af1 100644 --- a/src/main/java/one/talon/model/NotificationListItem.java +++ b/src/main/java/one/talon/model/NotificationListItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class NotificationListItem { public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) - private Integer notificationId; + private Long notificationId; public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) @@ -39,101 +38,97 @@ public class NotificationListItem { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) - private Integer entityId; + private Long entityId; public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled; + public NotificationListItem notificationId(Long notificationId) { - public NotificationListItem notificationId(Integer notificationId) { - this.notificationId = notificationId; return this; } - /** + /** * The ID of the notification. + * * @return notificationId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the notification.") - public Integer getNotificationId() { + public Long getNotificationId() { return notificationId; } - - public void setNotificationId(Integer notificationId) { + public void setNotificationId(Long notificationId) { this.notificationId = notificationId; } - public NotificationListItem notificationName(String notificationName) { - + this.notificationName = notificationName; return this; } - /** + /** * The name of the notification. + * * @return notificationName - **/ + **/ @ApiModelProperty(example = "My campaign notification", required = true, value = "The name of the notification.") public String getNotificationName() { return notificationName; } - public void setNotificationName(String notificationName) { this.notificationName = notificationName; } + public NotificationListItem entityId(Long entityId) { - public NotificationListItem entityId(Integer entityId) { - this.entityId = entityId; return this; } - /** - * The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. + /** + * The ID of the entity to which this notification belongs. For example, in case + * of a loyalty notification, this value is the ID of the loyalty program. + * * @return entityId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. ") - public Integer getEntityId() { + public Long getEntityId() { return entityId; } - - public void setEntityId(Integer entityId) { + public void setEntityId(Long entityId) { this.entityId = entityId; } - public NotificationListItem enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Indicates whether the notification is activated. + * * @return enabled - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Indicates whether the notification is activated.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,7 +149,6 @@ public int hashCode() { return Objects.hash(notificationId, notificationName, entityId, enabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -179,4 +173,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NotificationTest.java b/src/main/java/one/talon/model/NotificationTest.java index cfd1dc25..72ad3163 100644 --- a/src/main/java/one/talon/model/NotificationTest.java +++ b/src/main/java/one/talon/model/NotificationTest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,53 +34,50 @@ public class NotificationTest { public static final String SERIALIZED_NAME_HTTP_STATUS = "httpStatus"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS) - private Integer httpStatus; - + private Long httpStatus; public NotificationTest httpResponse(String httpResponse) { - + this.httpResponse = httpResponse; return this; } - /** + /** * The returned http response. + * * @return httpResponse - **/ + **/ @ApiModelProperty(example = "HTTP/1.1 200 OK Content-Type: application/json Content-Length: 256 { \"message\": \"Hello, world!\", \"status\": \"success\" } ", required = true, value = "The returned http response.") public String getHttpResponse() { return httpResponse; } - public void setHttpResponse(String httpResponse) { this.httpResponse = httpResponse; } + public NotificationTest httpStatus(Long httpStatus) { - public NotificationTest httpStatus(Integer httpStatus) { - this.httpStatus = httpStatus; return this; } - /** + /** * The returned http status code. + * * @return httpStatus - **/ + **/ @ApiModelProperty(example = "200", required = true, value = "The returned http status code.") - public Integer getHttpStatus() { + public Long getHttpStatus() { return httpStatus; } - - public void setHttpStatus(Integer httpStatus) { + public void setHttpStatus(Long httpStatus) { this.httpStatus = httpStatus; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(httpResponse, httpStatus); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/NotificationWebhook.java b/src/main/java/one/talon/model/NotificationWebhook.java index 245810aa..da0b4ff6 100644 --- a/src/main/java/one/talon/model/NotificationWebhook.java +++ b/src/main/java/one/talon/model/NotificationWebhook.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class NotificationWebhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +46,7 @@ public class NotificationWebhook { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -61,119 +60,113 @@ public class NotificationWebhook { @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled = true; + public NotificationWebhook id(Long id) { - public NotificationWebhook id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public NotificationWebhook created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public NotificationWebhook modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public NotificationWebhook applicationId(Long applicationId) { - public NotificationWebhook applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public NotificationWebhook url(String url) { - + this.url = url; return this; } - /** + /** * API URL for the given webhook-based notification. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "API URL for the given webhook-based notification.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public NotificationWebhook headers(List headers) { - + this.headers = headers; return this; } @@ -183,32 +176,32 @@ public NotificationWebhook addHeadersItem(String headersItem) { return this; } - /** + /** * List of API HTTP headers for the given webhook-based notification. + * * @return headers - **/ + **/ @ApiModelProperty(example = "content-type: application/json", required = true, value = "List of API HTTP headers for the given webhook-based notification.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public NotificationWebhook enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Indicates whether sending the notification is enabled. + * * @return enabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether sending the notification is enabled.") @@ -216,12 +209,10 @@ public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -245,7 +236,6 @@ public int hashCode() { return Objects.hash(id, created, modified, applicationId, url, headers, enabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -273,4 +263,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OneTimeCode.java b/src/main/java/one/talon/model/OneTimeCode.java index 1f29844e..ea0b0664 100644 --- a/src/main/java/one/talon/model/OneTimeCode.java +++ b/src/main/java/one/talon/model/OneTimeCode.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,11 +30,11 @@ public class OneTimeCode { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -45,83 +44,82 @@ public class OneTimeCode { @SerializedName(SERIALIZED_NAME_CODE) private String code; + public OneTimeCode userId(Long userId) { - public OneTimeCode userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user. + * * @return userId - **/ + **/ @ApiModelProperty(example = "109", required = true, value = "The ID of the user.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } + public OneTimeCode accountId(Long accountId) { - public OneTimeCode accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the account.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public OneTimeCode token(String token) { - + this.token = token; return this; } - /** - * The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code. + /** + * The two-factor authentication token created during sign-in. This token is + * used to ensure that the correct user is trying to sign in with a given + * one-time security code. + * * @return token - **/ + **/ @ApiModelProperty(example = "dy_Fa_lQ4iDAnqldJFvV", required = true, value = "The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code.") public String getToken() { return token; } - public void setToken(String token) { this.token = token; } - public OneTimeCode code(String code) { - + this.code = code; return this; } - /** + /** * The one-time security code used for signing in. + * * @return code - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "552917", value = "The one-time security code used for signing in.") @@ -129,12 +127,10 @@ public String getCode() { return code; } - public void setCode(String code) { this.code = code; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,7 +151,6 @@ public int hashCode() { return Objects.hash(userId, accountId, token, code); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -180,4 +175,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java b/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java index 37b1bf80..63082426 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,109 +30,104 @@ public class OutgoingIntegrationConfiguration { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_TYPE_ID = "typeId"; @SerializedName(SERIALIZED_NAME_TYPE_ID) - private Integer typeId; + private Long typeId; public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) private Object policy; + public OutgoingIntegrationConfiguration id(Long id) { - public OutgoingIntegrationConfiguration id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public OutgoingIntegrationConfiguration accountId(Long accountId) { - public OutgoingIntegrationConfiguration accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account to which this configuration belongs. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account to which this configuration belongs.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public OutgoingIntegrationConfiguration typeId(Long typeId) { - public OutgoingIntegrationConfiguration typeId(Integer typeId) { - this.typeId = typeId; return this; } - /** + /** * The outgoing integration type ID. + * * @return typeId - **/ + **/ @ApiModelProperty(example = "12", required = true, value = "The outgoing integration type ID.") - public Integer getTypeId() { + public Long getTypeId() { return typeId; } - - public void setTypeId(Integer typeId) { + public void setTypeId(Long typeId) { this.typeId = typeId; } - public OutgoingIntegrationConfiguration policy(Object policy) { - + this.policy = policy; return this; } - /** + /** * The outgoing integration policy specific to each integration type. + * * @return policy - **/ + **/ @ApiModelProperty(required = true, value = "The outgoing integration policy specific to each integration type.") public Object getPolicy() { return policy; } - public void setPolicy(Object policy) { this.policy = policy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,7 +148,6 @@ public int hashCode() { return Objects.hash(id, accountId, typeId, policy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -179,4 +172,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java b/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java index 01c919fb..9e37d776 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,11 +32,11 @@ public class OutgoingIntegrationTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_INTEGRATION_TYPE = "integrationType"; @SerializedName(SERIALIZED_NAME_INTEGRATION_TYPE) - private Integer integrationType; + private Long integrationType; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -57,13 +56,13 @@ public class OutgoingIntegrationTemplate { @JsonAdapter(MethodEnum.Adapter.class) public enum MethodEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -98,7 +97,7 @@ public void write(final JsonWriter jsonWriter, final MethodEnum enumeration) thr @Override public MethodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return MethodEnum.fromValue(value); } } @@ -116,163 +115,156 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_HEADERS) private List headers = new ArrayList(); + public OutgoingIntegrationTemplate id(Long id) { - public OutgoingIntegrationTemplate id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public OutgoingIntegrationTemplate integrationType(Long integrationType) { - public OutgoingIntegrationTemplate integrationType(Integer integrationType) { - this.integrationType = integrationType; return this; } - /** + /** * Unique ID of outgoing integration type. + * * @return integrationType - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Unique ID of outgoing integration type.") - public Integer getIntegrationType() { + public Long getIntegrationType() { return integrationType; } - - public void setIntegrationType(Integer integrationType) { + public void setIntegrationType(Long integrationType) { this.integrationType = integrationType; } - public OutgoingIntegrationTemplate title(String title) { - + this.title = title; return this; } - /** + /** * The title of the integration template. + * * @return title - **/ + **/ @ApiModelProperty(example = "Email coupon codes", required = true, value = "The title of the integration template.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public OutgoingIntegrationTemplate description(String description) { - + this.description = description; return this; } - /** + /** * The description of the specific outgoing integration template. + * * @return description - **/ + **/ @ApiModelProperty(example = "This template sends a coupon code to the specified audience by email.", required = true, value = "The description of the specific outgoing integration template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public OutgoingIntegrationTemplate payload(String payload) { - + this.payload = payload; return this; } - /** - * The API payload (supports templating using parameters) for this integration template. + /** + * The API payload (supports templating using parameters) for this integration + * template. + * * @return payload - **/ + **/ @ApiModelProperty(example = "{ \"message\": \"${message}\" }", required = true, value = "The API payload (supports templating using parameters) for this integration template.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public OutgoingIntegrationTemplate method(MethodEnum method) { - + this.method = method; return this; } - /** + /** * API method for this webhook. + * * @return method - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public MethodEnum getMethod() { return method; } - public void setMethod(MethodEnum method) { this.method = method; } - public OutgoingIntegrationTemplate relativeUrl(String relativeUrl) { - + this.relativeUrl = relativeUrl; return this; } - /** + /** * The relative URL corresponding to each integration template. + * * @return relativeUrl - **/ + **/ @ApiModelProperty(example = "/campaigns/trigger/send", required = true, value = "The relative URL corresponding to each integration template.") public String getRelativeUrl() { return relativeUrl; } - public void setRelativeUrl(String relativeUrl) { this.relativeUrl = relativeUrl; } - public OutgoingIntegrationTemplate headers(List headers) { - + this.headers = headers; return this; } @@ -282,22 +274,21 @@ public OutgoingIntegrationTemplate addHeadersItem(String headersItem) { return this; } - /** + /** * The list of HTTP headers for this integration template. + * * @return headers - **/ + **/ @ApiModelProperty(example = "[{\"Content-Type\": \"application/json\"}]", required = true, value = "The list of HTTP headers for this integration template.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -322,7 +313,6 @@ public int hashCode() { return Objects.hash(id, integrationType, title, description, payload, method, relativeUrl, headers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -351,4 +341,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java b/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java index 900329a0..c6d535c5 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,11 +32,11 @@ public class OutgoingIntegrationTemplateWithConfigurationDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_INTEGRATION_TYPE = "integrationType"; @SerializedName(SERIALIZED_NAME_INTEGRATION_TYPE) - private Integer integrationType; + private Long integrationType; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -57,13 +56,13 @@ public class OutgoingIntegrationTemplateWithConfigurationDetails { @JsonAdapter(MethodEnum.Adapter.class) public enum MethodEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -98,7 +97,7 @@ public void write(final JsonWriter jsonWriter, final MethodEnum enumeration) thr @Override public MethodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return MethodEnum.fromValue(value); } } @@ -120,163 +119,156 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_POLICY) private Object policy; + public OutgoingIntegrationTemplateWithConfigurationDetails id(Long id) { - public OutgoingIntegrationTemplateWithConfigurationDetails id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public OutgoingIntegrationTemplateWithConfigurationDetails integrationType(Long integrationType) { - public OutgoingIntegrationTemplateWithConfigurationDetails integrationType(Integer integrationType) { - this.integrationType = integrationType; return this; } - /** + /** * Unique ID of outgoing integration type. + * * @return integrationType - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Unique ID of outgoing integration type.") - public Integer getIntegrationType() { + public Long getIntegrationType() { return integrationType; } - - public void setIntegrationType(Integer integrationType) { + public void setIntegrationType(Long integrationType) { this.integrationType = integrationType; } - public OutgoingIntegrationTemplateWithConfigurationDetails title(String title) { - + this.title = title; return this; } - /** + /** * The title of the integration template. + * * @return title - **/ + **/ @ApiModelProperty(example = "Email coupon codes", required = true, value = "The title of the integration template.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public OutgoingIntegrationTemplateWithConfigurationDetails description(String description) { - + this.description = description; return this; } - /** + /** * The description of the specific outgoing integration template. + * * @return description - **/ + **/ @ApiModelProperty(example = "This template sends a coupon code to the specified audience by email.", required = true, value = "The description of the specific outgoing integration template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public OutgoingIntegrationTemplateWithConfigurationDetails payload(String payload) { - + this.payload = payload; return this; } - /** - * The API payload (supports templating using parameters) for this integration template. + /** + * The API payload (supports templating using parameters) for this integration + * template. + * * @return payload - **/ + **/ @ApiModelProperty(example = "{ \"message\": \"${message}\" }", required = true, value = "The API payload (supports templating using parameters) for this integration template.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public OutgoingIntegrationTemplateWithConfigurationDetails method(MethodEnum method) { - + this.method = method; return this; } - /** + /** * API method for this webhook. + * * @return method - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public MethodEnum getMethod() { return method; } - public void setMethod(MethodEnum method) { this.method = method; } - public OutgoingIntegrationTemplateWithConfigurationDetails relativeUrl(String relativeUrl) { - + this.relativeUrl = relativeUrl; return this; } - /** + /** * The relative URL corresponding to each integration template. + * * @return relativeUrl - **/ + **/ @ApiModelProperty(example = "/campaigns/trigger/send", required = true, value = "The relative URL corresponding to each integration template.") public String getRelativeUrl() { return relativeUrl; } - public void setRelativeUrl(String relativeUrl) { this.relativeUrl = relativeUrl; } - public OutgoingIntegrationTemplateWithConfigurationDetails headers(List headers) { - + this.headers = headers; return this; } @@ -286,44 +278,42 @@ public OutgoingIntegrationTemplateWithConfigurationDetails addHeadersItem(String return this; } - /** + /** * The list of HTTP headers for this integration template. + * * @return headers - **/ + **/ @ApiModelProperty(example = "[{\"Content-Type\": \"application/json\"}]", required = true, value = "The list of HTTP headers for this integration template.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public OutgoingIntegrationTemplateWithConfigurationDetails policy(Object policy) { - + this.policy = policy; return this; } - /** + /** * The outgoing integration policy specific to each integration type. + * * @return policy - **/ + **/ @ApiModelProperty(required = true, value = "The outgoing integration policy specific to each integration type.") public Object getPolicy() { return policy; } - public void setPolicy(Object policy) { this.policy = policy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -349,7 +339,6 @@ public int hashCode() { return Objects.hash(id, integrationType, title, description, payload, method, relativeUrl, headers, policy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -379,4 +368,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OutgoingIntegrationType.java b/src/main/java/one/talon/model/OutgoingIntegrationType.java index 998e9f91..bb880fdc 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationType.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationType.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class OutgoingIntegrationType { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -49,61 +48,59 @@ public class OutgoingIntegrationType { @SerializedName(SERIALIZED_NAME_DOCUMENTATION_LINK) private String documentationLink; + public OutgoingIntegrationType id(Long id) { - public OutgoingIntegrationType id(Integer id) { - this.id = id; return this; } - /** + /** * Unique ID for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public OutgoingIntegrationType name(String name) { - + this.name = name; return this; } - /** + /** * Name of the outgoing integration. + * * @return name - **/ + **/ @ApiModelProperty(example = "Braze", required = true, value = "Name of the outgoing integration.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public OutgoingIntegrationType description(String description) { - + this.description = description; return this; } - /** + /** * Description of the outgoing integration. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Braze is a customer data platform", value = "Description of the outgoing integration.") @@ -111,22 +108,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public OutgoingIntegrationType category(String category) { - + this.category = category; return this; } - /** + /** * Category of the outgoing integration. + * * @return category - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "customer engagement platform", value = "Category of the outgoing integration.") @@ -134,22 +130,21 @@ public String getCategory() { return category; } - public void setCategory(String category) { this.category = category; } - public OutgoingIntegrationType documentationLink(String documentationLink) { - + this.documentationLink = documentationLink; return this; } - /** + /** * Http link to the outgoing integration's documentation. + * * @return documentationLink - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "https://docs.talon.one/docs/dev/technology-partners/braze", value = "Http link to the outgoing integration's documentation.") @@ -157,12 +152,10 @@ public String getDocumentationLink() { return documentationLink; } - public void setDocumentationLink(String documentationLink) { this.documentationLink = documentationLink; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,7 +177,6 @@ public int hashCode() { return Objects.hash(id, name, description, category, documentationLink); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -210,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/OutgoingIntegrationWebhookTemplate.java b/src/main/java/one/talon/model/OutgoingIntegrationWebhookTemplate.java index 5e79e487..e3fa9aa5 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationWebhookTemplate.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationWebhookTemplate.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,11 +30,11 @@ public class OutgoingIntegrationWebhookTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_INTEGRATION_TYPE = "integrationType"; @SerializedName(SERIALIZED_NAME_INTEGRATION_TYPE) - private Integer integrationType; + private Long integrationType; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -55,13 +54,13 @@ public class OutgoingIntegrationWebhookTemplate { @JsonAdapter(MethodEnum.Adapter.class) public enum MethodEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -96,7 +95,7 @@ public void write(final JsonWriter jsonWriter, final MethodEnum enumeration) thr @Override public MethodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return MethodEnum.fromValue(value); } } @@ -106,139 +105,132 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METHOD) private MethodEnum method; + public OutgoingIntegrationWebhookTemplate id(Long id) { - public OutgoingIntegrationWebhookTemplate id(Integer id) { - this.id = id; return this; } - /** + /** * Unique Id for this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique Id for this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public OutgoingIntegrationWebhookTemplate integrationType(Long integrationType) { - public OutgoingIntegrationWebhookTemplate integrationType(Integer integrationType) { - this.integrationType = integrationType; return this; } - /** + /** * Unique Id of outgoing integration type. + * * @return integrationType - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "Unique Id of outgoing integration type.") - public Integer getIntegrationType() { + public Long getIntegrationType() { return integrationType; } - - public void setIntegrationType(Integer integrationType) { + public void setIntegrationType(Long integrationType) { this.integrationType = integrationType; } - public OutgoingIntegrationWebhookTemplate title(String title) { - + this.title = title; return this; } - /** + /** * Title of the webhook template. + * * @return title - **/ + **/ @ApiModelProperty(example = "Send email via braze", required = true, value = "Title of the webhook template.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public OutgoingIntegrationWebhookTemplate description(String description) { - + this.description = description; return this; } - /** + /** * General description for the specific outgoing integration webhook template. + * * @return description - **/ + **/ @ApiModelProperty(example = "Waiting for docs team", required = true, value = "General description for the specific outgoing integration webhook template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public OutgoingIntegrationWebhookTemplate payload(String payload) { - + this.payload = payload; return this; } - /** + /** * API payload (supports templating using parameters) for this webhook template. + * * @return payload - **/ + **/ @ApiModelProperty(example = "{ \"message\": \"${message}\" }", required = true, value = "API payload (supports templating using parameters) for this webhook template.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public OutgoingIntegrationWebhookTemplate method(MethodEnum method) { - + this.method = method; return this; } - /** + /** * API method for this webhook. + * * @return method - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public MethodEnum getMethod() { return method; } - public void setMethod(MethodEnum method) { this.method = method; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -261,7 +253,6 @@ public int hashCode() { return Objects.hash(id, integrationType, title, description, payload, method); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -288,4 +279,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java index a8e1f1c0..3abc919b 100644 --- a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,41 +38,40 @@ public class PendingPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public PendingPointsNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public PendingPointsNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") @@ -81,35 +79,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public PendingPointsNotificationPolicy batchSize(Long batchSize) { - public PendingPointsNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +125,6 @@ public int hashCode() { return Objects.hash(name, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Picklist.java b/src/main/java/one/talon/model/Picklist.java index db65d63a..3492ff49 100644 --- a/src/main/java/one/talon/model/Picklist.java +++ b/src/main/java/one/talon/model/Picklist.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,23 +33,24 @@ public class Picklist { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; /** - * The type of allowed values in the picklist. If the type `time` is chosen, it must be an RFC3339 timestamp string. + * The type of allowed values in the picklist. If the type `time` is + * chosen, it must be an RFC3339 timestamp string. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { STRING("string"), - + BOOLEAN("boolean"), - + NUMBER("number"), - + TIME("time"); private String value; @@ -85,7 +85,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -101,89 +101,86 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_IMPORTED = "imported"; @SerializedName(SERIALIZED_NAME_IMPORTED) private Boolean imported; + public Picklist id(Long id) { - public Picklist id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Picklist created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Picklist type(TypeEnum type) { - + this.type = type; return this; } - /** - * The type of allowed values in the picklist. If the type `time` is chosen, it must be an RFC3339 timestamp string. + /** + * The type of allowed values in the picklist. If the type `time` is + * chosen, it must be an RFC3339 timestamp string. + * * @return type - **/ + **/ @ApiModelProperty(example = "string", required = true, value = "The type of allowed values in the picklist. If the type `time` is chosen, it must be an RFC3339 timestamp string.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public Picklist values(List values) { - + this.values = values; return this; } @@ -193,100 +190,97 @@ public Picklist addValuesItem(String valuesItem) { return this; } - /** + /** * The list of allowed values provided by this picklist. + * * @return values - **/ + **/ @ApiModelProperty(example = "[Jeans, Shirt, Coat]", required = true, value = "The list of allowed values provided by this picklist.") public List getValues() { return values; } - public void setValues(List values) { this.values = values; } + public Picklist modifiedBy(Long modifiedBy) { - public Picklist modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * ID of the user who last updated this effect if available. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "124", value = "ID of the user who last updated this effect if available.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } + public Picklist createdBy(Long createdBy) { - public Picklist createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * ID of the user who created this effect. + * * @return createdBy - **/ + **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public Picklist accountId(Long accountId) { - public Picklist accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3886", value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public Picklist imported(Boolean imported) { - + this.imported = imported; return this; } - /** + /** * Imported flag shows that a picklist is imported by a CSV file or not + * * @return imported - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Imported flag shows that a picklist is imported by a CSV file or not") @@ -294,12 +288,10 @@ public Boolean getImported() { return imported; } - public void setImported(Boolean imported) { this.imported = imported; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -324,7 +316,6 @@ public int hashCode() { return Objects.hash(id, created, type, values, modifiedBy, createdBy, accountId, imported); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -353,4 +344,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/PriorityPosition.java b/src/main/java/one/talon/model/PriorityPosition.java index 7fb109f2..7f0e8435 100644 --- a/src/main/java/one/talon/model/PriorityPosition.java +++ b/src/main/java/one/talon/model/PriorityPosition.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,9 +35,9 @@ public class PriorityPosition { @JsonAdapter(SetEnum.Adapter.class) public enum SetEnum { UNIVERSAL("universal"), - + STACKABLE("stackable"), - + EXCLUSIVE("exclusive"); private String value; @@ -73,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final SetEnum enumeration) throws @Override public SetEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return SetEnum.fromValue(value); } } @@ -85,53 +84,50 @@ public SetEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) - private Integer position; - + private Long position; public PriorityPosition set(SetEnum set) { - + this.set = set; return this; } - /** + /** * The name of the priority set where the campaign is located. + * * @return set - **/ + **/ @ApiModelProperty(example = "universal", required = true, value = "The name of the priority set where the campaign is located.") public SetEnum getSet() { return set; } - public void setSet(SetEnum set) { this.set = set; } + public PriorityPosition position(Long position) { - public PriorityPosition position(Integer position) { - this.position = position; return this; } - /** + /** * The position of the campaign in the priority order starting from 1. + * * @return position - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The position of the campaign in the priority order starting from 1.") - public Integer getPosition() { + public Long getPosition() { return position; } - - public void setPosition(Integer position) { + public void setPosition(Long position) { this.position = position; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -150,7 +146,6 @@ public int hashCode() { return Objects.hash(set, position); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -173,4 +168,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ProductSearchMatch.java b/src/main/java/one/talon/model/ProductSearchMatch.java index a39bff09..fcbbf9f4 100644 --- a/src/main/java/one/talon/model/ProductSearchMatch.java +++ b/src/main/java/one/talon/model/ProductSearchMatch.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class ProductSearchMatch { public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; @SerializedName(SERIALIZED_NAME_PRODUCT_ID) - private Integer productId; + private Long productId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -39,77 +38,73 @@ public class ProductSearchMatch { public static final String SERIALIZED_NAME_PRODUCT_SKU_ID = "productSkuId"; @SerializedName(SERIALIZED_NAME_PRODUCT_SKU_ID) - private Integer productSkuId; + private Long productSkuId; + public ProductSearchMatch productId(Long productId) { - public ProductSearchMatch productId(Integer productId) { - this.productId = productId; return this; } - /** + /** * The ID of the product. + * * @return productId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the product.") - public Integer getProductId() { + public Long getProductId() { return productId; } - - public void setProductId(Integer productId) { + public void setProductId(Long productId) { this.productId = productId; } - public ProductSearchMatch value(String value) { - + this.value = value; return this; } - /** + /** * The string matching the given value. Either a product name or SKU. + * * @return value - **/ + **/ @ApiModelProperty(example = "MyProduct", required = true, value = "The string matching the given value. Either a product name or SKU.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } + public ProductSearchMatch productSkuId(Long productSkuId) { - public ProductSearchMatch productSkuId(Integer productSkuId) { - this.productSkuId = productSkuId; return this; } - /** + /** * The ID of the SKU linked to a product. If empty, this is an product. + * * @return productSkuId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the SKU linked to a product. If empty, this is an product.") - public Integer getProductSkuId() { + public Long getProductSkuId() { return productSkuId; } - - public void setProductSkuId(Integer productSkuId) { + public void setProductSkuId(Long productSkuId) { this.productSkuId = productSkuId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +124,6 @@ public int hashCode() { return Objects.hash(productId, value, productSkuId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +147,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java b/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java index d8b7ec67..8fd687a7 100644 --- a/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java +++ b/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,123 +44,117 @@ public class ProductUnitAnalyticsDataPoint { public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; @SerializedName(SERIALIZED_NAME_PRODUCT_ID) - private Integer productId; + private Long productId; public static final String SERIALIZED_NAME_PRODUCT_NAME = "productName"; @SerializedName(SERIALIZED_NAME_PRODUCT_NAME) private String productName; - public ProductUnitAnalyticsDataPoint startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * The start of the aggregation time frame in UTC. + * * @return startTime - **/ + **/ @ApiModelProperty(example = "2024-02-01T00:00Z", required = true, value = "The start of the aggregation time frame in UTC.") public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public ProductUnitAnalyticsDataPoint endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * The end of the aggregation time frame in UTC. + * * @return endTime - **/ + **/ @ApiModelProperty(required = true, value = "The end of the aggregation time frame in UTC.") public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public ProductUnitAnalyticsDataPoint unitsSold(AnalyticsDataPointWithTrend unitsSold) { - + this.unitsSold = unitsSold; return this; } - /** + /** * Get unitsSold + * * @return unitsSold - **/ + **/ @ApiModelProperty(required = true, value = "") public AnalyticsDataPointWithTrend getUnitsSold() { return unitsSold; } - public void setUnitsSold(AnalyticsDataPointWithTrend unitsSold) { this.unitsSold = unitsSold; } + public ProductUnitAnalyticsDataPoint productId(Long productId) { - public ProductUnitAnalyticsDataPoint productId(Integer productId) { - this.productId = productId; return this; } - /** + /** * The ID of the product. + * * @return productId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the product.") - public Integer getProductId() { + public Long getProductId() { return productId; } - - public void setProductId(Integer productId) { + public void setProductId(Long productId) { this.productId = productId; } - public ProductUnitAnalyticsDataPoint productName(String productName) { - + this.productName = productName; return this; } - /** + /** * The name of the product. + * * @return productName - **/ + **/ @ApiModelProperty(example = "MyProduct", required = true, value = "The name of the product.") public String getProductName() { return productName; } - public void setProductName(String productName) { this.productName = productName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,7 +176,6 @@ public int hashCode() { return Objects.hash(startTime, endTime, unitsSold, productId, productName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,4 +201,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ProfileAudiencesChanges.java b/src/main/java/one/talon/model/ProfileAudiencesChanges.java index 732082fb..e042a2d4 100644 --- a/src/main/java/one/talon/model/ProfileAudiencesChanges.java +++ b/src/main/java/one/talon/model/ProfileAudiencesChanges.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,67 +32,64 @@ public class ProfileAudiencesChanges { public static final String SERIALIZED_NAME_ADDS = "adds"; @SerializedName(SERIALIZED_NAME_ADDS) - private List adds = new ArrayList(); + private List adds = new ArrayList(); public static final String SERIALIZED_NAME_DELETES = "deletes"; @SerializedName(SERIALIZED_NAME_DELETES) - private List deletes = new ArrayList(); + private List deletes = new ArrayList(); + public ProfileAudiencesChanges adds(List adds) { - public ProfileAudiencesChanges adds(List adds) { - this.adds = adds; return this; } - public ProfileAudiencesChanges addAddsItem(Integer addsItem) { + public ProfileAudiencesChanges addAddsItem(Long addsItem) { this.adds.add(addsItem); return this; } - /** + /** * The IDs of the audiences for the customer to join. + * * @return adds - **/ + **/ @ApiModelProperty(example = "[2, 4]", required = true, value = "The IDs of the audiences for the customer to join.") - public List getAdds() { + public List getAdds() { return adds; } - - public void setAdds(List adds) { + public void setAdds(List adds) { this.adds = adds; } + public ProfileAudiencesChanges deletes(List deletes) { - public ProfileAudiencesChanges deletes(List deletes) { - this.deletes = deletes; return this; } - public ProfileAudiencesChanges addDeletesItem(Integer deletesItem) { + public ProfileAudiencesChanges addDeletesItem(Long deletesItem) { this.deletes.add(deletesItem); return this; } - /** + /** * The IDs of the audiences for the customer to leave. + * * @return deletes - **/ + **/ @ApiModelProperty(example = "[7]", required = true, value = "The IDs of the audiences for the customer to leave.") - public List getDeletes() { + public List getDeletes() { return deletes; } - - public void setDeletes(List deletes) { + public void setDeletes(List deletes) { this.deletes = deletes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,7 +108,6 @@ public int hashCode() { return Objects.hash(adds, deletes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -135,4 +130,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RedeemReferralEffectProps.java b/src/main/java/one/talon/model/RedeemReferralEffectProps.java index 420c3848..27b42769 100644 --- a/src/main/java/one/talon/model/RedeemReferralEffectProps.java +++ b/src/main/java/one/talon/model/RedeemReferralEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,64 +24,64 @@ import java.io.IOException; /** - * This effect is **deprecated**. The properties specific to the \"redeemReferral\" effect. This gets triggered whenever the referral code is valid, and a rule was triggered that contains a \"redeem referral\" effect. + * This effect is **deprecated**. The properties specific to the + * \"redeemReferral\" effect. This gets triggered whenever the + * referral code is valid, and a rule was triggered that contains a + * \"redeem referral\" effect. */ @ApiModel(description = "This effect is **deprecated**. The properties specific to the \"redeemReferral\" effect. This gets triggered whenever the referral code is valid, and a rule was triggered that contains a \"redeem referral\" effect. ") public class RedeemReferralEffectProps { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private String value; + public RedeemReferralEffectProps id(Long id) { - public RedeemReferralEffectProps id(Integer id) { - this.id = id; return this; } - /** + /** * The id of the referral code that was redeemed. + * * @return id - **/ + **/ @ApiModelProperty(required = true, value = "The id of the referral code that was redeemed.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public RedeemReferralEffectProps value(String value) { - + this.value = value; return this; } - /** + /** * The referral code that was redeemed. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The referral code that was redeemed.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,7 +100,6 @@ public int hashCode() { return Objects.hash(id, value); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,4 +122,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Referral.java b/src/main/java/one/talon/model/Referral.java index 7a721d80..2d3b791c 100644 --- a/src/main/java/one/talon/model/Referral.java +++ b/src/main/java/one/talon/model/Referral.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Referral { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -48,11 +47,11 @@ public class Referral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -68,7 +67,7 @@ public class Referral { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Integer importId; + private Long importId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -76,67 +75,65 @@ public class Referral { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Integer usageCounter; + private Long usageCounter; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) private String batchId; + public Referral id(Long id) { - public Referral id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Referral created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Referral startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -144,22 +141,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public Referral expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -167,90 +164,87 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public Referral usageLimit(Long usageLimit) { - public Referral usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. `0` means no limit + * but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } + public Referral campaignId(Long campaignId) { - public Referral campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign from which the referral received the referral code. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public Referral advocateProfileIntegrationId(String advocateProfileIntegrationId) { - + this.advocateProfileIntegrationId = advocateProfileIntegrationId; return this; } - /** + /** * The Integration ID of the Advocate's Profile. + * * @return advocateProfileIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The Integration ID of the Advocate's Profile.") public String getAdvocateProfileIntegrationId() { return advocateProfileIntegrationId; } - public void setAdvocateProfileIntegrationId(String advocateProfileIntegrationId) { this.advocateProfileIntegrationId = advocateProfileIntegrationId; } - public Referral friendProfileIntegrationId(String friendProfileIntegrationId) { - + this.friendProfileIntegrationId = friendProfileIntegrationId; return this; } - /** + /** * An optional Integration ID of the Friend's Profile. + * * @return friendProfileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "BZGGC2454PA", value = "An optional Integration ID of the Friend's Profile.") @@ -258,22 +252,21 @@ public String getFriendProfileIntegrationId() { return friendProfileIntegrationId; } - public void setFriendProfileIntegrationId(String friendProfileIntegrationId) { this.friendProfileIntegrationId = friendProfileIntegrationId; } - public Referral attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"channel\":\"web\"}", value = "Arbitrary properties associated with this item.") @@ -281,89 +274,85 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } + public Referral importId(Long importId) { - public Referral importId(Integer importId) { - this.importId = importId; return this; } - /** + /** * The ID of the Import which created this referral. + * * @return importId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Integer getImportId() { + public Long getImportId() { return importId; } - - public void setImportId(Integer importId) { + public void setImportId(Long importId) { this.importId = importId; } - public Referral code(String code) { - + this.code = code; return this; } - /** + /** * The referral code. + * * @return code - **/ + **/ @ApiModelProperty(example = "27G47Y54VH9L", required = true, value = "The referral code.") public String getCode() { return code; } - public void setCode(String code) { this.code = code; } + public Referral usageCounter(Long usageCounter) { - public Referral usageCounter(Integer usageCounter) { - this.usageCounter = usageCounter; return this; } - /** + /** * The number of times this referral code has been successfully used. + * * @return usageCounter - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The number of times this referral code has been successfully used.") - public Integer getUsageCounter() { + public Long getUsageCounter() { return usageCounter; } - - public void setUsageCounter(Integer usageCounter) { + public void setUsageCounter(Long usageCounter) { this.usageCounter = usageCounter; } - public Referral batchId(String batchId) { - + this.batchId = batchId; return this; } - /** + /** * The ID of the batch the referrals belong to. + * * @return batchId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "tqyrgahe", value = "The ID of the batch the referrals belong to.") @@ -371,12 +360,10 @@ public String getBatchId() { return batchId; } - public void setBatchId(String batchId) { this.batchId = batchId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -403,10 +390,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, friendProfileIntegrationId, attributes, importId, code, usageCounter, batchId); + return Objects.hash(id, created, startDate, expiryDate, usageLimit, campaignId, advocateProfileIntegrationId, + friendProfileIntegrationId, attributes, importId, code, usageCounter, batchId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -440,4 +427,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ReferralConstraints.java b/src/main/java/one/talon/model/ReferralConstraints.java index 7a97d365..e6565748 100644 --- a/src/main/java/one/talon/model/ReferralConstraints.java +++ b/src/main/java/one/talon/model/ReferralConstraints.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -40,19 +39,19 @@ public class ReferralConstraints { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; - + private Long usageLimit; public ReferralConstraints startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -60,22 +59,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public ReferralConstraints expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -83,37 +82,35 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public ReferralConstraints usageLimit(Long usageLimit) { - public ReferralConstraints usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. `0` means no limit + * but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -133,7 +130,6 @@ public int hashCode() { return Objects.hash(startDate, expiryDate, usageLimit); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,4 +153,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ReferralRejectionReason.java b/src/main/java/one/talon/model/ReferralRejectionReason.java index 54929999..78c6eec4 100644 --- a/src/main/java/one/talon/model/ReferralRejectionReason.java +++ b/src/main/java/one/talon/model/ReferralRejectionReason.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,18 +24,20 @@ import java.io.IOException; /** - * Holds a reference to the campaign, the referral and the reason for which that referral was rejected. Should only be present when there is a 'rejectReferral' effect. + * Holds a reference to the campaign, the referral and the reason for which that + * referral was rejected. Should only be present when there is a + * 'rejectReferral' effect. */ @ApiModel(description = "Holds a reference to the campaign, the referral and the reason for which that referral was rejected. Should only be present when there is a 'rejectReferral' effect.") public class ReferralRejectionReason { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Integer referralId; + private Long referralId; /** * Gets or Sets reason @@ -44,27 +45,27 @@ public class ReferralRejectionReason { @JsonAdapter(ReasonEnum.Adapter.class) public enum ReasonEnum { REFERRALNOTFOUND("ReferralNotFound"), - + REFERRALRECIPIENTIDSAMEASADVOCATE("ReferralRecipientIdSameAsAdvocate"), - + REFERRALPARTOFNOTRUNNINGCAMPAIGN("ReferralPartOfNotRunningCampaign"), - + REFERRALLIMITREACHED("ReferralLimitReached"), - + CAMPAIGNLIMITREACHED("CampaignLimitReached"), - + PROFILELIMITREACHED("ProfileLimitReached"), - + REFERRALRECIPIENTDOESNOTMATCH("ReferralRecipientDoesNotMatch"), - + REFERRALEXPIRED("ReferralExpired"), - + REFERRALSTARTDATEINFUTURE("ReferralStartDateInFuture"), - + REFERRALREJECTEDBYCONDITION("ReferralRejectedByCondition"), - + EFFECTCOULDNOTBEAPPLIED("EffectCouldNotBeApplied"), - + REFERRALPARTOFNOTTRIGGEREDCAMPAIGN("ReferralPartOfNotTriggeredCampaign"); private String value; @@ -99,7 +100,7 @@ public void write(final JsonWriter jsonWriter, final ReasonEnum enumeration) thr @Override public ReasonEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReasonEnum.fromValue(value); } } @@ -109,73 +110,69 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_REASON) private ReasonEnum reason; + public ReferralRejectionReason campaignId(Long campaignId) { - public ReferralRejectionReason campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Get campaignId + * * @return campaignId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public ReferralRejectionReason referralId(Long referralId) { - public ReferralRejectionReason referralId(Integer referralId) { - this.referralId = referralId; return this; } - /** + /** * Get referralId + * * @return referralId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getReferralId() { + public Long getReferralId() { return referralId; } - - public void setReferralId(Integer referralId) { + public void setReferralId(Long referralId) { this.referralId = referralId; } - public ReferralRejectionReason reason(ReasonEnum reason) { - + this.reason = reason; return this; } - /** + /** * Get reason + * * @return reason - **/ + **/ @ApiModelProperty(example = "ReferralNotFound", required = true, value = "") public ReasonEnum getReason() { return reason; } - public void setReason(ReasonEnum reason) { this.reason = reason; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,7 +192,6 @@ public int hashCode() { return Objects.hash(campaignId, referralId, reason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -219,4 +215,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RejectCouponEffectProps.java b/src/main/java/one/talon/model/RejectCouponEffectProps.java index 119cc084..2b442d5b 100644 --- a/src/main/java/one/talon/model/RejectCouponEffectProps.java +++ b/src/main/java/one/talon/model/RejectCouponEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,7 +24,9 @@ import java.io.IOException; /** - * The properties specific to the \"rejectCoupon\" effect. This gets triggered whenever the coupon was rejected. See rejectionReason for more info on why. + * The properties specific to the \"rejectCoupon\" effect. This gets + * triggered whenever the coupon was rejected. See rejectionReason for more info + * on why. */ @ApiModel(description = "The properties specific to the \"rejectCoupon\" effect. This gets triggered whenever the coupon was rejected. See rejectionReason for more info on why.") @@ -40,11 +41,11 @@ public class RejectCouponEffectProps { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Integer conditionIndex; + private Long conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Integer effectIndex; + private Long effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -54,107 +55,103 @@ public class RejectCouponEffectProps { @SerializedName(SERIALIZED_NAME_CAMPAIGN_EXCLUSION_REASON) private String campaignExclusionReason; - public RejectCouponEffectProps value(String value) { - + this.value = value; return this; } - /** + /** * The coupon code that was rejected. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The coupon code that was rejected.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } - public RejectCouponEffectProps rejectionReason(String rejectionReason) { - + this.rejectionReason = rejectionReason; return this; } - /** + /** * The reason why this coupon was rejected. + * * @return rejectionReason - **/ + **/ @ApiModelProperty(required = true, value = "The reason why this coupon was rejected.") public String getRejectionReason() { return rejectionReason; } - public void setRejectionReason(String rejectionReason) { this.rejectionReason = rejectionReason; } + public RejectCouponEffectProps conditionIndex(Long conditionIndex) { - public RejectCouponEffectProps conditionIndex(Integer conditionIndex) { - this.conditionIndex = conditionIndex; return this; } - /** + /** * The index of the condition that caused the rejection of the coupon. + * * @return conditionIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that caused the rejection of the coupon.") - public Integer getConditionIndex() { + public Long getConditionIndex() { return conditionIndex; } - - public void setConditionIndex(Integer conditionIndex) { + public void setConditionIndex(Long conditionIndex) { this.conditionIndex = conditionIndex; } + public RejectCouponEffectProps effectIndex(Long effectIndex) { - public RejectCouponEffectProps effectIndex(Integer effectIndex) { - this.effectIndex = effectIndex; return this; } - /** + /** * The index of the effect that caused the rejection of the coupon. + * * @return effectIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that caused the rejection of the coupon.") - public Integer getEffectIndex() { + public Long getEffectIndex() { return effectIndex; } - - public void setEffectIndex(Integer effectIndex) { + public void setEffectIndex(Long effectIndex) { this.effectIndex = effectIndex; } - public RejectCouponEffectProps details(String details) { - + this.details = details; return this; } - /** + /** * More details about the failure. + * * @return details - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "More details about the failure.") @@ -162,22 +159,21 @@ public String getDetails() { return details; } - public void setDetails(String details) { this.details = details; } - public RejectCouponEffectProps campaignExclusionReason(String campaignExclusionReason) { - + this.campaignExclusionReason = campaignExclusionReason; return this; } - /** + /** * The reason why the campaign was not applied. + * * @return campaignExclusionReason - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "CampaignGaveLowerDiscount", value = "The reason why the campaign was not applied.") @@ -185,12 +181,10 @@ public String getCampaignExclusionReason() { return campaignExclusionReason; } - public void setCampaignExclusionReason(String campaignExclusionReason) { this.campaignExclusionReason = campaignExclusionReason; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -213,7 +207,6 @@ public int hashCode() { return Objects.hash(value, rejectionReason, conditionIndex, effectIndex, details, campaignExclusionReason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -240,4 +233,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RejectReferralEffectProps.java b/src/main/java/one/talon/model/RejectReferralEffectProps.java index 0f9fd821..fcfb148f 100644 --- a/src/main/java/one/talon/model/RejectReferralEffectProps.java +++ b/src/main/java/one/talon/model/RejectReferralEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,7 +24,9 @@ import java.io.IOException; /** - * The properties specific to the \"rejectReferral\" effect. This gets triggered whenever the referral code was rejected. See rejectionReason for more info on why. + * The properties specific to the \"rejectReferral\" effect. This gets + * triggered whenever the referral code was rejected. See rejectionReason for + * more info on why. */ @ApiModel(description = "The properties specific to the \"rejectReferral\" effect. This gets triggered whenever the referral code was rejected. See rejectionReason for more info on why.") @@ -40,11 +41,11 @@ public class RejectReferralEffectProps { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Integer conditionIndex; + private Long conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Integer effectIndex; + private Long effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -54,107 +55,103 @@ public class RejectReferralEffectProps { @SerializedName(SERIALIZED_NAME_CAMPAIGN_EXCLUSION_REASON) private String campaignExclusionReason; - public RejectReferralEffectProps value(String value) { - + this.value = value; return this; } - /** + /** * The referral code that was rejected. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The referral code that was rejected.") public String getValue() { return value; } - public void setValue(String value) { this.value = value; } - public RejectReferralEffectProps rejectionReason(String rejectionReason) { - + this.rejectionReason = rejectionReason; return this; } - /** + /** * The reason why this referral code was rejected. + * * @return rejectionReason - **/ + **/ @ApiModelProperty(required = true, value = "The reason why this referral code was rejected.") public String getRejectionReason() { return rejectionReason; } - public void setRejectionReason(String rejectionReason) { this.rejectionReason = rejectionReason; } + public RejectReferralEffectProps conditionIndex(Long conditionIndex) { - public RejectReferralEffectProps conditionIndex(Integer conditionIndex) { - this.conditionIndex = conditionIndex; return this; } - /** + /** * The index of the condition that caused the rejection of the referral. + * * @return conditionIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that caused the rejection of the referral.") - public Integer getConditionIndex() { + public Long getConditionIndex() { return conditionIndex; } - - public void setConditionIndex(Integer conditionIndex) { + public void setConditionIndex(Long conditionIndex) { this.conditionIndex = conditionIndex; } + public RejectReferralEffectProps effectIndex(Long effectIndex) { - public RejectReferralEffectProps effectIndex(Integer effectIndex) { - this.effectIndex = effectIndex; return this; } - /** + /** * The index of the effect that caused the rejection of the referral. + * * @return effectIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that caused the rejection of the referral.") - public Integer getEffectIndex() { + public Long getEffectIndex() { return effectIndex; } - - public void setEffectIndex(Integer effectIndex) { + public void setEffectIndex(Long effectIndex) { this.effectIndex = effectIndex; } - public RejectReferralEffectProps details(String details) { - + this.details = details; return this; } - /** + /** * More details about the failure. + * * @return details - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "More details about the failure.") @@ -162,22 +159,21 @@ public String getDetails() { return details; } - public void setDetails(String details) { this.details = details; } - public RejectReferralEffectProps campaignExclusionReason(String campaignExclusionReason) { - + this.campaignExclusionReason = campaignExclusionReason; return this; } - /** + /** * The reason why the campaign was not applied. + * * @return campaignExclusionReason - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "CampaignGaveLowerDiscount", value = "The reason why the campaign was not applied.") @@ -185,12 +181,10 @@ public String getCampaignExclusionReason() { return campaignExclusionReason; } - public void setCampaignExclusionReason(String campaignExclusionReason) { this.campaignExclusionReason = campaignExclusionReason; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -213,7 +207,6 @@ public int hashCode() { return Objects.hash(value, rejectionReason, conditionIndex, effectIndex, details, campaignExclusionReason); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -240,4 +233,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java b/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java index 8db1d5d9..6622dd35 100644 --- a/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java +++ b/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,14 +24,16 @@ import java.io.IOException; /** - * The properties specific to the \"removeFromAudience\" effect. This gets triggered whenever a validated rule contains a \"removeFromAudience\" effect. + * The properties specific to the \"removeFromAudience\" effect. This + * gets triggered whenever a validated rule contains a + * \"removeFromAudience\" effect. */ @ApiModel(description = "The properties specific to the \"removeFromAudience\" effect. This gets triggered whenever a validated rule contains a \"removeFromAudience\" effect.") public class RemoveFromAudienceEffectProps { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Integer audienceId; + private Long audienceId; public static final String SERIALIZED_NAME_AUDIENCE_NAME = "audienceName"; @SerializedName(SERIALIZED_NAME_AUDIENCE_NAME) @@ -44,42 +45,41 @@ public class RemoveFromAudienceEffectProps { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Integer profileId; + private Long profileId; + public RemoveFromAudienceEffectProps audienceId(Long audienceId) { - public RemoveFromAudienceEffectProps audienceId(Integer audienceId) { - this.audienceId = audienceId; return this; } - /** + /** * The internal ID of the audience. + * * @return audienceId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "10", value = "The internal ID of the audience.") - public Integer getAudienceId() { + public Long getAudienceId() { return audienceId; } - - public void setAudienceId(Integer audienceId) { + public void setAudienceId(Long audienceId) { this.audienceId = audienceId; } - public RemoveFromAudienceEffectProps audienceName(String audienceName) { - + this.audienceName = audienceName; return this; } - /** + /** * The name of the audience. + * * @return audienceName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My audience", value = "The name of the audience.") @@ -87,22 +87,21 @@ public String getAudienceName() { return audienceName; } - public void setAudienceName(String audienceName) { this.audienceName = audienceName; } - public RemoveFromAudienceEffectProps profileIntegrationId(String profileIntegrationId) { - + this.profileIntegrationId = profileIntegrationId; return this; } - /** + /** * The ID of the customer profile in the third-party integration platform. + * * @return profileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The ID of the customer profile in the third-party integration platform.") @@ -110,35 +109,32 @@ public String getProfileIntegrationId() { return profileIntegrationId; } - public void setProfileIntegrationId(String profileIntegrationId) { this.profileIntegrationId = profileIntegrationId; } + public RemoveFromAudienceEffectProps profileId(Long profileId) { - public RemoveFromAudienceEffectProps profileId(Integer profileId) { - this.profileId = profileId; return this; } - /** + /** * The internal ID of the customer profile. + * * @return profileId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "150", value = "The internal ID of the customer profile.") - public Integer getProfileId() { + public Long getProfileId() { return profileId; } - - public void setProfileId(Integer profileId) { + public void setProfileId(Long profileId) { this.profileId = profileId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,7 +155,6 @@ public int hashCode() { return Objects.hash(audienceId, audienceName, profileIntegrationId, profileId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -184,4 +179,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ReturnedCartItem.java b/src/main/java/one/talon/model/ReturnedCartItem.java index d20485f8..b99826c7 100644 --- a/src/main/java/one/talon/model/ReturnedCartItem.java +++ b/src/main/java/one/talon/model/ReturnedCartItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,58 +30,56 @@ public class ReturnedCartItem { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) - private Integer position; + private Long position; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - private Integer quantity; + private Long quantity; + public ReturnedCartItem position(Long position) { - public ReturnedCartItem position(Integer position) { - this.position = position; return this; } - /** - * The index of the cart item in the provided customer session's `cartItems` property. + /** + * The index of the cart item in the provided customer session's + * `cartItems` property. + * * @return position - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The index of the cart item in the provided customer session's `cartItems` property.") - public Integer getPosition() { + public Long getPosition() { return position; } - - public void setPosition(Integer position) { + public void setPosition(Long position) { this.position = position; } + public ReturnedCartItem quantity(Long quantity) { - public ReturnedCartItem quantity(Integer quantity) { - this.quantity = quantity; return this; } - /** - * Number of cart items to return. + /** + * Number of cart items to return. + * * @return quantity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Number of cart items to return. ") - public Integer getQuantity() { + public Long getQuantity() { return quantity; } - - public void setQuantity(Integer quantity) { + public void setQuantity(Long quantity) { this.quantity = quantity; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,7 +98,6 @@ public int hashCode() { return Objects.hash(position, quantity); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -124,4 +120,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Revision.java b/src/main/java/one/talon/model/Revision.java index 6bd243b2..6a066d8e 100644 --- a/src/main/java/one/talon/model/Revision.java +++ b/src/main/java/one/talon/model/Revision.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class Revision { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) @@ -41,15 +40,15 @@ public class Revision { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -57,7 +56,7 @@ public class Revision { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_ACTIVATED_AT = "activatedAt"; @SerializedName(SERIALIZED_NAME_ACTIVATED_AT) @@ -65,45 +64,45 @@ public class Revision { public static final String SERIALIZED_NAME_ACTIVATED_BY = "activatedBy"; @SerializedName(SERIALIZED_NAME_ACTIVATED_BY) - private Integer activatedBy; + private Long activatedBy; public static final String SERIALIZED_NAME_CURRENT_VERSION = "currentVersion"; @SerializedName(SERIALIZED_NAME_CURRENT_VERSION) private RevisionVersion currentVersion; + public Revision id(Long id) { - public Revision id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Revision activateAt(OffsetDateTime activateAt) { - + this.activateAt = activateAt; return this; } - /** + /** * Get activateAt + * * @return activateAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -111,132 +110,126 @@ public OffsetDateTime getActivateAt() { return activateAt; } - public void setActivateAt(OffsetDateTime activateAt) { this.activateAt = activateAt; } + public Revision accountId(Long accountId) { - public Revision accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * Get accountId + * * @return accountId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public Revision applicationId(Long applicationId) { - public Revision applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId + * * @return applicationId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public Revision campaignId(Long campaignId) { - public Revision campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Get campaignId + * * @return campaignId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public Revision created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Get created + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Revision createdBy(Long createdBy) { - public Revision createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * Get createdBy + * * @return createdBy - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } - public Revision activatedAt(OffsetDateTime activatedAt) { - + this.activatedAt = activatedAt; return this; } - /** + /** * Get activatedAt + * * @return activatedAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -244,45 +237,43 @@ public OffsetDateTime getActivatedAt() { return activatedAt; } - public void setActivatedAt(OffsetDateTime activatedAt) { this.activatedAt = activatedAt; } + public Revision activatedBy(Long activatedBy) { - public Revision activatedBy(Integer activatedBy) { - this.activatedBy = activatedBy; return this; } - /** + /** * Get activatedBy + * * @return activatedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getActivatedBy() { + public Long getActivatedBy() { return activatedBy; } - - public void setActivatedBy(Integer activatedBy) { + public void setActivatedBy(Long activatedBy) { this.activatedBy = activatedBy; } - public Revision currentVersion(RevisionVersion currentVersion) { - + this.currentVersion = currentVersion; return this; } - /** + /** * Get currentVersion + * * @return currentVersion - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -290,12 +281,10 @@ public RevisionVersion getCurrentVersion() { return currentVersion; } - public void setCurrentVersion(RevisionVersion currentVersion) { this.currentVersion = currentVersion; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -319,10 +308,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, activateAt, accountId, applicationId, campaignId, created, createdBy, activatedAt, activatedBy, currentVersion); + return Objects.hash(id, activateAt, accountId, applicationId, campaignId, created, createdBy, activatedAt, + activatedBy, currentVersion); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -353,4 +342,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RevisionActivationRequest.java b/src/main/java/one/talon/model/RevisionActivationRequest.java index 32759783..e25a072c 100644 --- a/src/main/java/one/talon/model/RevisionActivationRequest.java +++ b/src/main/java/one/talon/model/RevisionActivationRequest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,50 +33,51 @@ public class RevisionActivationRequest { public static final String SERIALIZED_NAME_USER_IDS = "userIds"; @SerializedName(SERIALIZED_NAME_USER_IDS) - private List userIds = new ArrayList(); + private List userIds = new ArrayList(); public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) private OffsetDateTime activateAt; + public RevisionActivationRequest userIds(List userIds) { - public RevisionActivationRequest userIds(List userIds) { - this.userIds = userIds; return this; } - public RevisionActivationRequest addUserIdsItem(Integer userIdsItem) { + public RevisionActivationRequest addUserIdsItem(Long userIdsItem) { this.userIds.add(userIdsItem); return this; } - /** + /** * The list of IDs of the users who will receive the activation request. + * * @return userIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of IDs of the users who will receive the activation request.") - public List getUserIds() { + public List getUserIds() { return userIds; } - - public void setUserIds(List userIds) { + public void setUserIds(List userIds) { this.userIds = userIds; } - public RevisionActivationRequest activateAt(OffsetDateTime activateAt) { - + this.activateAt = activateAt; return this; } - /** - * Time when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. + /** + * Time when the revisions are finalized after the `activate_revision` + * operation. The current time is used when left blank. **Note:** It must be an + * RFC3339 timestamp string. + * * @return activateAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Time when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. ") @@ -85,12 +85,10 @@ public OffsetDateTime getActivateAt() { return activateAt; } - public void setActivateAt(OffsetDateTime activateAt) { this.activateAt = activateAt; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -109,7 +107,6 @@ public int hashCode() { return Objects.hash(userIds, activateAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -132,4 +129,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RevisionVersion.java b/src/main/java/one/talon/model/RevisionVersion.java index 9bfb4a12..d7ae9f40 100644 --- a/src/main/java/one/talon/model/RevisionVersion.java +++ b/src/main/java/one/talon/model/RevisionVersion.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,19 +35,19 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -56,15 +55,15 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_REVISION_ID = "revisionId"; @SerializedName(SERIALIZED_NAME_REVISION_ID) - private Integer revisionId; + private Long revisionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -88,7 +87,7 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -112,15 +111,15 @@ public class RevisionVersion { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -155,7 +154,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -165,193 +164,186 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_FEATURES) private List features = null; + public RevisionVersion id(Long id) { - public RevisionVersion id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public RevisionVersion accountId(Long accountId) { - public RevisionVersion accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * Get accountId + * * @return accountId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public RevisionVersion applicationId(Long applicationId) { - public RevisionVersion applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId + * * @return applicationId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public RevisionVersion campaignId(Long campaignId) { - public RevisionVersion campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Get campaignId + * * @return campaignId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public RevisionVersion created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Get created + * * @return created - **/ + **/ @ApiModelProperty(required = true, value = "") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public RevisionVersion createdBy(Long createdBy) { - public RevisionVersion createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * Get createdBy + * * @return createdBy - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public RevisionVersion revisionId(Long revisionId) { - public RevisionVersion revisionId(Integer revisionId) { - this.revisionId = revisionId; return this; } - /** + /** * Get revisionId + * * @return revisionId - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getRevisionId() { + public Long getRevisionId() { return revisionId; } - - public void setRevisionId(Integer revisionId) { + public void setRevisionId(Long revisionId) { this.revisionId = revisionId; } + public RevisionVersion version(Long version) { - public RevisionVersion version(Integer version) { - this.version = version; return this; } - /** + /** * Get version + * * @return version - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public RevisionVersion name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Summer promotions", value = "A user-facing name for this campaign.") @@ -359,22 +351,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public RevisionVersion startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -382,22 +373,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public RevisionVersion endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-22T22:00Z", value = "Timestamp when the campaign will become inactive.") @@ -405,22 +395,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public RevisionVersion attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -428,22 +417,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public RevisionVersion description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -451,37 +439,34 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public RevisionVersion activeRulesetId(Long activeRulesetId) { - public RevisionVersion activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** + /** * The ID of the ruleset this campaign template will use. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public RevisionVersion tags(List tags) { - + this.tags = tags; return this; } @@ -494,10 +479,11 @@ public RevisionVersion addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign template. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of tags for the campaign template.") @@ -505,22 +491,21 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public RevisionVersion couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -528,22 +513,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public RevisionVersion referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -551,14 +535,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public RevisionVersion limits(List limits) { - + this.limits = limits; return this; } @@ -571,10 +553,11 @@ public RevisionVersion addLimitsItem(LimitConfig limitsItem) { return this; } - /** + /** * The set of limits that will operate for this campaign version. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The set of limits that will operate for this campaign version.") @@ -582,14 +565,12 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public RevisionVersion features(List features) { - + this.features = features; return this; } @@ -602,10 +583,11 @@ public RevisionVersion addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign template. + * * @return features - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of features for the campaign template.") @@ -613,12 +595,10 @@ public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -651,10 +631,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, accountId, applicationId, campaignId, created, createdBy, revisionId, version, name, startTime, endTime, attributes, description, activeRulesetId, tags, couponSettings, referralSettings, limits, features); + return Objects.hash(id, accountId, applicationId, campaignId, created, createdBy, revisionId, version, name, + startTime, endTime, attributes, description, activeRulesetId, tags, couponSettings, referralSettings, limits, + features); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -694,4 +675,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Role.java b/src/main/java/one/talon/model/Role.java index 56c53eea..e37a21e4 100644 --- a/src/main/java/one/talon/model/Role.java +++ b/src/main/java/one/talon/model/Role.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Role { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,11 +45,11 @@ public class Role { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_CAMPAIGN_GROUP_I_D = "campaignGroupID"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUP_I_D) - private Integer campaignGroupID; + private Long campaignGroupID; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,156 +61,152 @@ public class Role { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; public static final String SERIALIZED_NAME_ACL = "acl"; @SerializedName(SERIALIZED_NAME_ACL) private Object acl; + public Role id(Long id) { - public Role id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Role created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Role modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public Role accountId(Long accountId) { - public Role accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } + public Role campaignGroupID(Long campaignGroupID) { - public Role campaignGroupID(Integer campaignGroupID) { - this.campaignGroupID = campaignGroupID; return this; } - /** - * The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. + /** + * The ID of the [Campaign + * Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) + * this role was created for. + * * @return campaignGroupID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. ") - public Integer getCampaignGroupID() { + public Long getCampaignGroupID() { return campaignGroupID; } - - public void setCampaignGroupID(Integer campaignGroupID) { + public void setCampaignGroupID(Long campaignGroupID) { this.campaignGroupID = campaignGroupID; } - public Role name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @ApiModelProperty(example = "Campaign Reviewer", required = true, value = "Name of the role.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Role description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Reviews the campaigns", value = "Description of the role.") @@ -219,65 +214,62 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public Role members(List members) { - public Role members(List members) { - this.members = members; return this; } - public Role addMembersItem(Integer membersItem) { + public Role addMembersItem(Long membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; } - /** + /** * A list of user identifiers assigned to this role. + * * @return members - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[48, 562, 475, 18]", value = "A list of user identifiers assigned to this role.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - public Role acl(Object acl) { - + this.acl = acl; return this; } - /** - * The `Access Control List` json defining the role of the user. This represents the access control on the user level. + /** + * The `Access Control List` json defining the role of the user. This + * represents the access control on the user level. + * * @return acl - **/ + **/ @ApiModelProperty(example = "{\"Role\":127}", required = true, value = "The `Access Control List` json defining the role of the user. This represents the access control on the user level.") public Object getAcl() { return acl; } - public void setAcl(Object acl) { this.acl = acl; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -303,7 +295,6 @@ public int hashCode() { return Objects.hash(id, created, modified, accountId, campaignGroupID, name, description, members, acl); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -333,4 +324,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RoleAssign.java b/src/main/java/one/talon/model/RoleAssign.java index ea565cef..467198f8 100644 --- a/src/main/java/one/talon/model/RoleAssign.java +++ b/src/main/java/one/talon/model/RoleAssign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,67 +32,64 @@ public class RoleAssign { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private List users = new ArrayList(); + private List users = new ArrayList(); public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = new ArrayList(); + private List roles = new ArrayList(); + public RoleAssign users(List users) { - public RoleAssign users(List users) { - this.users = users; return this; } - public RoleAssign addUsersItem(Integer usersItem) { + public RoleAssign addUsersItem(Long usersItem) { this.users.add(usersItem); return this; } - /** + /** * An array of user IDs. + * * @return users - **/ + **/ @ApiModelProperty(example = "[48, 562, 475, 18]", required = true, value = "An array of user IDs.") - public List getUsers() { + public List getUsers() { return users; } - - public void setUsers(List users) { + public void setUsers(List users) { this.users = users; } + public RoleAssign roles(List roles) { - public RoleAssign roles(List roles) { - this.roles = roles; return this; } - public RoleAssign addRolesItem(Integer rolesItem) { + public RoleAssign addRolesItem(Long rolesItem) { this.roles.add(rolesItem); return this; } - /** + /** * An array of role IDs. + * * @return roles - **/ + **/ @ApiModelProperty(example = "[128, 147]", required = true, value = "An array of role IDs.") - public List getRoles() { + public List getRoles() { return roles; } - - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,7 +108,6 @@ public int hashCode() { return Objects.hash(users, roles); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -135,4 +130,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RoleMembership.java b/src/main/java/one/talon/model/RoleMembership.java index 6a593436..fbdbf38c 100644 --- a/src/main/java/one/talon/model/RoleMembership.java +++ b/src/main/java/one/talon/model/RoleMembership.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,57 +30,54 @@ public class RoleMembership { public static final String SERIALIZED_NAME_ROLE_I_D = "RoleID"; @SerializedName(SERIALIZED_NAME_ROLE_I_D) - private Integer roleID; + private Long roleID; public static final String SERIALIZED_NAME_USER_I_D = "UserID"; @SerializedName(SERIALIZED_NAME_USER_I_D) - private Integer userID; + private Long userID; + public RoleMembership roleID(Long roleID) { - public RoleMembership roleID(Integer roleID) { - this.roleID = roleID; return this; } - /** + /** * ID of role. + * * @return roleID - **/ + **/ @ApiModelProperty(required = true, value = "ID of role.") - public Integer getRoleID() { + public Long getRoleID() { return roleID; } - - public void setRoleID(Integer roleID) { + public void setRoleID(Long roleID) { this.roleID = roleID; } + public RoleMembership userID(Long userID) { - public RoleMembership userID(Integer userID) { - this.userID = userID; return this; } - /** + /** * ID of User. + * * @return userID - **/ + **/ @ApiModelProperty(required = true, value = "ID of User.") - public Integer getUserID() { + public Long getUserID() { return userID; } - - public void setUserID(Integer userID) { + public void setUserID(Long userID) { this.userID = userID; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,7 +96,6 @@ public int hashCode() { return Objects.hash(roleID, userID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -123,4 +118,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RoleV2.java b/src/main/java/one/talon/model/RoleV2.java index 195962ef..acd0f636 100644 --- a/src/main/java/one/talon/model/RoleV2.java +++ b/src/main/java/one/talon/model/RoleV2.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class RoleV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +46,7 @@ public class RoleV2 { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,107 +62,103 @@ public class RoleV2 { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; + public RoleV2 id(Long id) { - public RoleV2 id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public RoleV2 created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public RoleV2 modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public RoleV2 accountId(Long accountId) { - public RoleV2 accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public RoleV2 name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign and campaign access group manager", value = "Name of the role.") @@ -171,22 +166,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public RoleV2 description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Allows you to create and edit campaigns for specific Applications, delete specific campaign access groups, and view loyalty programs.", value = "Description of the role.") @@ -194,22 +188,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public RoleV2 permissions(RoleV2Permissions permissions) { - + this.permissions = permissions; return this; } - /** + /** * Get permissions + * * @return permissions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -217,43 +210,40 @@ public RoleV2Permissions getPermissions() { return permissions; } - public void setPermissions(RoleV2Permissions permissions) { this.permissions = permissions; } + public RoleV2 members(List members) { - public RoleV2 members(List members) { - this.members = members; return this; } - public RoleV2 addMembersItem(Integer membersItem) { + public RoleV2 addMembersItem(Long membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; } - /** + /** * A list of user IDs the role is assigned to. + * * @return members - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -278,7 +268,6 @@ public int hashCode() { return Objects.hash(id, created, modified, accountId, name, description, permissions, members); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -307,4 +296,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RoleV2Base.java b/src/main/java/one/talon/model/RoleV2Base.java index bc573fed..c7417dc3 100644 --- a/src/main/java/one/talon/model/RoleV2Base.java +++ b/src/main/java/one/talon/model/RoleV2Base.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -46,19 +45,19 @@ public class RoleV2Base { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; - + private List members = null; public RoleV2Base name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign and campaign access group manager", value = "Name of the role.") @@ -66,22 +65,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public RoleV2Base description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Allows you to create and edit campaigns for specific Applications, delete specific campaign access groups, and view loyalty programs.", value = "Description of the role.") @@ -89,22 +87,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public RoleV2Base permissions(RoleV2Permissions permissions) { - + this.permissions = permissions; return this; } - /** + /** * Get permissions + * * @return permissions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -112,43 +109,40 @@ public RoleV2Permissions getPermissions() { return permissions; } - public void setPermissions(RoleV2Permissions permissions) { this.permissions = permissions; } + public RoleV2Base members(List members) { - public RoleV2Base members(List members) { - this.members = members; return this; } - public RoleV2Base addMembersItem(Integer membersItem) { + public RoleV2Base addMembersItem(Long membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; } - /** + /** * A list of user IDs the role is assigned to. + * * @return members - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -169,7 +163,6 @@ public int hashCode() { return Objects.hash(name, description, permissions, members); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -194,4 +187,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java index 37434eea..3563f342 100644 --- a/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,14 +25,16 @@ import java.math.BigDecimal; /** - * The properties specific to the \"rollbackAddedLoyaltyPoints\" effect. This gets triggered whenever previously a closed session with an addLoyaltyPoints effect is cancelled. + * The properties specific to the \"rollbackAddedLoyaltyPoints\" + * effect. This gets triggered whenever previously a closed session with an + * addLoyaltyPoints effect is cancelled. */ @ApiModel(description = "The properties specific to the \"rollbackAddedLoyaltyPoints\" effect. This gets triggered whenever previously a closed session with an addLoyaltyPoints effect is cancelled.") public class RollbackAddedLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -63,127 +64,125 @@ public class RollbackAddedLoyaltyPointsEffectProps { @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) private String cardIdentifier; + public RollbackAddedLoyaltyPointsEffectProps programId(Long programId) { - public RollbackAddedLoyaltyPointsEffectProps programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * The ID of the loyalty program where the points were originally added. + * * @return programId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where the points were originally added.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public RollbackAddedLoyaltyPointsEffectProps subLedgerId(String subLedgerId) { - + this.subLedgerId = subLedgerId; return this; } - /** - * The ID of the subledger within the loyalty program where these points were originally added. + /** + * The ID of the subledger within the loyalty program where these points were + * originally added. + * * @return subLedgerId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the subledger within the loyalty program where these points were originally added.") public String getSubLedgerId() { return subLedgerId; } - public void setSubLedgerId(String subLedgerId) { this.subLedgerId = subLedgerId; } - public RollbackAddedLoyaltyPointsEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The amount of points that were rolled back. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The amount of points that were rolled back.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public RollbackAddedLoyaltyPointsEffectProps recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The user for whom these points were originally added. + * * @return recipientIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The user for whom these points were originally added.") public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public RollbackAddedLoyaltyPointsEffectProps transactionUUID(String transactionUUID) { - + this.transactionUUID = transactionUUID; return this; } - /** - * The identifier of 'deduction' entry added to the ledger as the `addLoyaltyPoints` effect is rolled back. + /** + * The identifier of 'deduction' entry added to the ledger as the + * `addLoyaltyPoints` effect is rolled back. + * * @return transactionUUID - **/ + **/ @ApiModelProperty(required = true, value = "The identifier of 'deduction' entry added to the ledger as the `addLoyaltyPoints` effect is rolled back.") public String getTransactionUUID() { return transactionUUID; } - public void setTransactionUUID(String transactionUUID) { this.transactionUUID = transactionUUID; } - public RollbackAddedLoyaltyPointsEffectProps cartItemPosition(BigDecimal cartItemPosition) { - + this.cartItemPosition = cartItemPosition; return this; } - /** - * The index of the item in the cart items for which the loyalty points were rolled back. + /** + * The index of the item in the cart items for which the loyalty points were + * rolled back. + * * @return cartItemPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the item in the cart items for which the loyalty points were rolled back.") @@ -191,22 +190,22 @@ public BigDecimal getCartItemPosition() { return cartItemPosition; } - public void setCartItemPosition(BigDecimal cartItemPosition) { this.cartItemPosition = cartItemPosition; } - public RollbackAddedLoyaltyPointsEffectProps cartItemSubPosition(BigDecimal cartItemSubPosition) { - + this.cartItemSubPosition = cartItemSubPosition; return this; } - /** - * For cart items with `quantity` > 1, the sub-position indicates to which item the loyalty points were rolled back. + /** + * For cart items with `quantity` > 1, the sub-position indicates + * to which item the loyalty points were rolled back. + * * @return cartItemSubPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "For cart items with `quantity` > 1, the sub-position indicates to which item the loyalty points were rolled back. ") @@ -214,22 +213,21 @@ public BigDecimal getCartItemSubPosition() { return cartItemSubPosition; } - public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { this.cartItemSubPosition = cartItemSubPosition; } - public RollbackAddedLoyaltyPointsEffectProps cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -237,12 +235,10 @@ public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -264,10 +260,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(programId, subLedgerId, value, recipientIntegrationId, transactionUUID, cartItemPosition, cartItemSubPosition, cardIdentifier); + return Objects.hash(programId, subLedgerId, value, recipientIntegrationId, transactionUUID, cartItemPosition, + cartItemSubPosition, cardIdentifier); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -296,4 +292,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java index ebc69efc..10a7bbc2 100644 --- a/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -27,14 +26,16 @@ import org.threeten.bp.OffsetDateTime; /** - * The properties specific to the \"rollbackDeductedLoyaltyPoints\" effect. This effect is triggered whenever a previously closed session is cancelled and a deductLoyaltyPoints effect was revoked. + * The properties specific to the \"rollbackDeductedLoyaltyPoints\" + * effect. This effect is triggered whenever a previously closed session is + * cancelled and a deductLoyaltyPoints effect was revoked. */ @ApiModel(description = "The properties specific to the \"rollbackDeductedLoyaltyPoints\" effect. This effect is triggered whenever a previously closed session is cancelled and a deductLoyaltyPoints effect was revoked.") public class RollbackDeductedLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Integer programId; + private Long programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -64,105 +65,102 @@ public class RollbackDeductedLoyaltyPointsEffectProps { @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) private String cardIdentifier; + public RollbackDeductedLoyaltyPointsEffectProps programId(Long programId) { - public RollbackDeductedLoyaltyPointsEffectProps programId(Integer programId) { - this.programId = programId; return this; } - /** + /** * The ID of the loyalty program where these points were reimbursed. + * * @return programId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were reimbursed.") - public Integer getProgramId() { + public Long getProgramId() { return programId; } - - public void setProgramId(Integer programId) { + public void setProgramId(Long programId) { this.programId = programId; } - public RollbackDeductedLoyaltyPointsEffectProps subLedgerId(String subLedgerId) { - + this.subLedgerId = subLedgerId; return this; } - /** - * The ID of the subledger within the loyalty program where these points were reimbursed. + /** + * The ID of the subledger within the loyalty program where these points were + * reimbursed. + * * @return subLedgerId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the subledger within the loyalty program where these points were reimbursed.") public String getSubLedgerId() { return subLedgerId; } - public void setSubLedgerId(String subLedgerId) { this.subLedgerId = subLedgerId; } - public RollbackDeductedLoyaltyPointsEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The amount of reimbursed points that were added. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The amount of reimbursed points that were added.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public RollbackDeductedLoyaltyPointsEffectProps recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The user for whom these points were reimbursed. + * * @return recipientIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The user for whom these points were reimbursed.") public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public RollbackDeductedLoyaltyPointsEffectProps startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Date after which the reimbursed points will be valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date after which the reimbursed points will be valid.") @@ -170,22 +168,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public RollbackDeductedLoyaltyPointsEffectProps expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Date after which the reimbursed points will expire. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date after which the reimbursed points will expire.") @@ -193,44 +190,43 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public RollbackDeductedLoyaltyPointsEffectProps transactionUUID(String transactionUUID) { - + this.transactionUUID = transactionUUID; return this; } - /** - * The identifier of 'addition' entries added to the ledger as the `deductLoyaltyPoints` effect is rolled back. + /** + * The identifier of 'addition' entries added to the ledger as the + * `deductLoyaltyPoints` effect is rolled back. + * * @return transactionUUID - **/ + **/ @ApiModelProperty(required = true, value = "The identifier of 'addition' entries added to the ledger as the `deductLoyaltyPoints` effect is rolled back.") public String getTransactionUUID() { return transactionUUID; } - public void setTransactionUUID(String transactionUUID) { this.transactionUUID = transactionUUID; } - public RollbackDeductedLoyaltyPointsEffectProps cardIdentifier(String cardIdentifier) { - + this.cardIdentifier = cardIdentifier; return this; } - /** - * The alphanumeric identifier of the loyalty card. + /** + * The alphanumeric identifier of the loyalty card. + * * @return cardIdentifier - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "summer-loyalty-card-0543", value = "The alphanumeric identifier of the loyalty card. ") @@ -238,12 +234,10 @@ public String getCardIdentifier() { return cardIdentifier; } - public void setCardIdentifier(String cardIdentifier) { this.cardIdentifier = cardIdentifier; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -265,10 +259,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(programId, subLedgerId, value, recipientIntegrationId, startDate, expiryDate, transactionUUID, cardIdentifier); + return Objects.hash(programId, subLedgerId, value, recipientIntegrationId, startDate, expiryDate, transactionUUID, + cardIdentifier); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -297,4 +291,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RollbackDiscountEffectProps.java b/src/main/java/one/talon/model/RollbackDiscountEffectProps.java index da8d213b..f231a5f1 100644 --- a/src/main/java/one/talon/model/RollbackDiscountEffectProps.java +++ b/src/main/java/one/talon/model/RollbackDiscountEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,10 @@ import java.math.BigDecimal; /** - * The properties specific to the \"rollbackDiscount\" effect. This gets triggered whenever previously closed session is now cancelled or partially returned and a setDiscount effect was cancelled on our internal discount limit counters. + * The properties specific to the \"rollbackDiscount\" effect. This + * gets triggered whenever previously closed session is now cancelled or + * partially returned and a setDiscount effect was cancelled on our internal + * discount limit counters. */ @ApiModel(description = "The properties specific to the \"rollbackDiscount\" effect. This gets triggered whenever previously closed session is now cancelled or partially returned and a setDiscount effect was cancelled on our internal discount limit counters.") @@ -49,7 +51,7 @@ public class RollbackDiscountEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Integer additionalCostId; + private Long additionalCostId; public static final String SERIALIZED_NAME_ADDITIONAL_COST = "additionalCost"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST) @@ -59,61 +61,60 @@ public class RollbackDiscountEffectProps { @SerializedName(SERIALIZED_NAME_SCOPE) private String scope; - public RollbackDiscountEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The name of the \"setDiscount\" effect that was rolled back. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of the \"setDiscount\" effect that was rolled back.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public RollbackDiscountEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The value of the discount that was rolled back. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The value of the discount that was rolled back.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public RollbackDiscountEffectProps cartItemPosition(BigDecimal cartItemPosition) { - + this.cartItemPosition = cartItemPosition; return this; } - /** - * The index of the item in the cart items for which the discount was rolled back. + /** + * The index of the item in the cart items for which the discount was rolled + * back. + * * @return cartItemPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the item in the cart items for which the discount was rolled back.") @@ -121,22 +122,22 @@ public BigDecimal getCartItemPosition() { return cartItemPosition; } - public void setCartItemPosition(BigDecimal cartItemPosition) { this.cartItemPosition = cartItemPosition; } - public RollbackDiscountEffectProps cartItemSubPosition(BigDecimal cartItemSubPosition) { - + this.cartItemSubPosition = cartItemSubPosition; return this; } - /** - * For cart items with `quantity` > 1, the subposition returns the index of the item unit in its line item. + /** + * For cart items with `quantity` > 1, the subposition returns the + * index of the item unit in its line item. + * * @return cartItemSubPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "For cart items with `quantity` > 1, the subposition returns the index of the item unit in its line item. ") @@ -144,45 +145,43 @@ public BigDecimal getCartItemSubPosition() { return cartItemSubPosition; } - public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { this.cartItemSubPosition = cartItemSubPosition; } + public RollbackDiscountEffectProps additionalCostId(Long additionalCostId) { - public RollbackDiscountEffectProps additionalCostId(Integer additionalCostId) { - this.additionalCostId = additionalCostId; return this; } - /** + /** * The ID of the additional cost that was rolled back. + * * @return additionalCostId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the additional cost that was rolled back.") - public Integer getAdditionalCostId() { + public Long getAdditionalCostId() { return additionalCostId; } - - public void setAdditionalCostId(Integer additionalCostId) { + public void setAdditionalCostId(Long additionalCostId) { this.additionalCostId = additionalCostId; } - public RollbackDiscountEffectProps additionalCost(String additionalCost) { - + this.additionalCost = additionalCost; return this; } - /** + /** * The name of the additional cost that was rolled back. + * * @return additionalCost - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the additional cost that was rolled back.") @@ -190,22 +189,24 @@ public String getAdditionalCost() { return additionalCost; } - public void setAdditionalCost(String additionalCost) { this.additionalCost = additionalCost; } - public RollbackDiscountEffectProps scope(String scope) { - + this.scope = scope; return this; } - /** - * The scope of the rolled back discount - For a discount per session, it can be one of `cartItems`, `additionalCosts` or `sessionTotal` - For a discount per item, it can be one of `price`, `additionalCosts` or `itemTotal` + /** + * The scope of the rolled back discount - For a discount per session, it can be + * one of `cartItems`, `additionalCosts` or + * `sessionTotal` - For a discount per item, it can be one of + * `price`, `additionalCosts` or `itemTotal` + * * @return scope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The scope of the rolled back discount - For a discount per session, it can be one of `cartItems`, `additionalCosts` or `sessionTotal` - For a discount per item, it can be one of `price`, `additionalCosts` or `itemTotal` ") @@ -213,12 +214,10 @@ public String getScope() { return scope; } - public void setScope(String scope) { this.scope = scope; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -242,7 +241,6 @@ public int hashCode() { return Objects.hash(name, value, cartItemPosition, cartItemSubPosition, additionalCostId, additionalCost, scope); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -270,4 +268,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java b/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java index 638f2919..7e75e157 100644 --- a/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java +++ b/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,14 +25,18 @@ import java.math.BigDecimal; /** - * The properties specific to the \"rollbackIncreasedAchievementProgress\" effect. This gets triggered whenever a closed session where the `increaseAchievementProgress` effect was triggered is cancelled. This is applicable only when the customer has not completed the achievement. + * The properties specific to the + * \"rollbackIncreasedAchievementProgress\" effect. This gets + * triggered whenever a closed session where the + * `increaseAchievementProgress` effect was triggered is cancelled. + * This is applicable only when the customer has not completed the achievement. */ @ApiModel(description = "The properties specific to the \"rollbackIncreasedAchievementProgress\" effect. This gets triggered whenever a closed session where the `increaseAchievementProgress` effect was triggered is cancelled. This is applicable only when the customer has not completed the achievement.") public class RollbackIncreasedAchievementProgressEffectProps { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Integer achievementId; + private Long achievementId; public static final String SERIALIZED_NAME_ACHIEVEMENT_NAME = "achievementName"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_NAME) @@ -41,7 +44,7 @@ public class RollbackIncreasedAchievementProgressEffectProps { public static final String SERIALIZED_NAME_PROGRESS_TRACKER_ID = "progressTrackerId"; @SerializedName(SERIALIZED_NAME_PROGRESS_TRACKER_ID) - private Integer progressTrackerId; + private Long progressTrackerId; public static final String SERIALIZED_NAME_DECREASE_PROGRESS_BY = "decreaseProgressBy"; @SerializedName(SERIALIZED_NAME_DECREASE_PROGRESS_BY) @@ -55,139 +58,133 @@ public class RollbackIncreasedAchievementProgressEffectProps { @SerializedName(SERIALIZED_NAME_TARGET) private BigDecimal target; + public RollbackIncreasedAchievementProgressEffectProps achievementId(Long achievementId) { - public RollbackIncreasedAchievementProgressEffectProps achievementId(Integer achievementId) { - this.achievementId = achievementId; return this; } - /** + /** * The internal ID of the achievement. + * * @return achievementId - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The internal ID of the achievement.") - public Integer getAchievementId() { + public Long getAchievementId() { return achievementId; } - - public void setAchievementId(Integer achievementId) { + public void setAchievementId(Long achievementId) { this.achievementId = achievementId; } - public RollbackIncreasedAchievementProgressEffectProps achievementName(String achievementName) { - + this.achievementName = achievementName; return this; } - /** + /** * The name of the achievement. + * * @return achievementName - **/ + **/ @ApiModelProperty(example = "FreeCoffee10Orders", required = true, value = "The name of the achievement.") public String getAchievementName() { return achievementName; } - public void setAchievementName(String achievementName) { this.achievementName = achievementName; } + public RollbackIncreasedAchievementProgressEffectProps progressTrackerId(Long progressTrackerId) { - public RollbackIncreasedAchievementProgressEffectProps progressTrackerId(Integer progressTrackerId) { - this.progressTrackerId = progressTrackerId; return this; } - /** + /** * The internal ID of the achievement progress tracker. + * * @return progressTrackerId - **/ + **/ @ApiModelProperty(required = true, value = "The internal ID of the achievement progress tracker.") - public Integer getProgressTrackerId() { + public Long getProgressTrackerId() { return progressTrackerId; } - - public void setProgressTrackerId(Integer progressTrackerId) { + public void setProgressTrackerId(Long progressTrackerId) { this.progressTrackerId = progressTrackerId; } - public RollbackIncreasedAchievementProgressEffectProps decreaseProgressBy(BigDecimal decreaseProgressBy) { - + this.decreaseProgressBy = decreaseProgressBy; return this; } - /** - * The value by which the customer's current progress in the achievement is decreased. + /** + * The value by which the customer's current progress in the achievement is + * decreased. + * * @return decreaseProgressBy - **/ + **/ @ApiModelProperty(required = true, value = "The value by which the customer's current progress in the achievement is decreased.") public BigDecimal getDecreaseProgressBy() { return decreaseProgressBy; } - public void setDecreaseProgressBy(BigDecimal decreaseProgressBy) { this.decreaseProgressBy = decreaseProgressBy; } - public RollbackIncreasedAchievementProgressEffectProps currentProgress(BigDecimal currentProgress) { - + this.currentProgress = currentProgress; return this; } - /** + /** * The current progress of the customer in the achievement. + * * @return currentProgress - **/ + **/ @ApiModelProperty(required = true, value = "The current progress of the customer in the achievement.") public BigDecimal getCurrentProgress() { return currentProgress; } - public void setCurrentProgress(BigDecimal currentProgress) { this.currentProgress = currentProgress; } - public RollbackIncreasedAchievementProgressEffectProps target(BigDecimal target) { - + this.target = target; return this; } - /** + /** * The target value to complete the achievement. + * * @return target - **/ + **/ @ApiModelProperty(required = true, value = "The target value to complete the achievement.") public BigDecimal getTarget() { return target; } - public void setTarget(BigDecimal target) { this.target = target; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,7 +207,6 @@ public int hashCode() { return Objects.hash(achievementId, achievementName, progressTrackerId, decreaseProgressBy, currentProgress, target); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -237,4 +233,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/RuleFailureReason.java b/src/main/java/one/talon/model/RuleFailureReason.java index f721e77b..34f1baea 100644 --- a/src/main/java/one/talon/model/RuleFailureReason.java +++ b/src/main/java/one/talon/model/RuleFailureReason.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_CAMPAIGN_I_D = "campaignID"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_I_D) - private Integer campaignID; + private Long campaignID; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) @@ -40,11 +39,11 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Integer rulesetID; + private Long rulesetID; public static final String SERIALIZED_NAME_COUPON_I_D = "couponID"; @SerializedName(SERIALIZED_NAME_COUPON_I_D) - private Integer couponID; + private Long couponID; public static final String SERIALIZED_NAME_COUPON_VALUE = "couponValue"; @SerializedName(SERIALIZED_NAME_COUPON_VALUE) @@ -52,7 +51,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_REFERRAL_I_D = "referralID"; @SerializedName(SERIALIZED_NAME_REFERRAL_I_D) - private Integer referralID; + private Long referralID; public static final String SERIALIZED_NAME_REFERRAL_VALUE = "referralValue"; @SerializedName(SERIALIZED_NAME_REFERRAL_VALUE) @@ -60,7 +59,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Integer ruleIndex; + private Long ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -68,11 +67,11 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Integer conditionIndex; + private Long conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Integer effectIndex; + private Long effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -80,112 +79,110 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Integer evaluationGroupID; + private Long evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) private String evaluationGroupMode; + public RuleFailureReason campaignID(Long campaignID) { - public RuleFailureReason campaignID(Integer campaignID) { - this.campaignID = campaignID; return this; } - /** + /** * The ID of the campaign that contains the rule that failed. + * * @return campaignID - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the campaign that contains the rule that failed.") - public Integer getCampaignID() { + public Long getCampaignID() { return campaignID; } - - public void setCampaignID(Integer campaignID) { + public void setCampaignID(Long campaignID) { this.campaignID = campaignID; } - public RuleFailureReason campaignName(String campaignName) { - + this.campaignName = campaignName; return this; } - /** + /** * The name of the campaign that contains the rule that failed. + * * @return campaignName - **/ + **/ @ApiModelProperty(required = true, value = "The name of the campaign that contains the rule that failed.") public String getCampaignName() { return campaignName; } - public void setCampaignName(String campaignName) { this.campaignName = campaignName; } + public RuleFailureReason rulesetID(Long rulesetID) { - public RuleFailureReason rulesetID(Integer rulesetID) { - this.rulesetID = rulesetID; return this; } - /** + /** * The ID of the ruleset that contains the rule that failed. + * * @return rulesetID - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the ruleset that contains the rule that failed.") - public Integer getRulesetID() { + public Long getRulesetID() { return rulesetID; } - - public void setRulesetID(Integer rulesetID) { + public void setRulesetID(Long rulesetID) { this.rulesetID = rulesetID; } + public RuleFailureReason couponID(Long couponID) { - public RuleFailureReason couponID(Integer couponID) { - this.couponID = couponID; return this; } - /** - * The ID of the coupon that was being evaluated at the time of the rule failure. + /** + * The ID of the coupon that was being evaluated at the time of the rule + * failure. + * * @return couponID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated at the time of the rule failure.") - public Integer getCouponID() { + public Long getCouponID() { return couponID; } - - public void setCouponID(Integer couponID) { + public void setCouponID(Long couponID) { this.couponID = couponID; } - public RuleFailureReason couponValue(String couponValue) { - + this.couponValue = couponValue; return this; } - /** - * The code of the coupon that was being evaluated at the time of the rule failure. + /** + * The code of the coupon that was being evaluated at the time of the rule + * failure. + * * @return couponValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The code of the coupon that was being evaluated at the time of the rule failure.") @@ -193,45 +190,45 @@ public String getCouponValue() { return couponValue; } - public void setCouponValue(String couponValue) { this.couponValue = couponValue; } + public RuleFailureReason referralID(Long referralID) { - public RuleFailureReason referralID(Integer referralID) { - this.referralID = referralID; return this; } - /** - * The ID of the referral that was being evaluated at the time of the rule failure. + /** + * The ID of the referral that was being evaluated at the time of the rule + * failure. + * * @return referralID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the referral that was being evaluated at the time of the rule failure.") - public Integer getReferralID() { + public Long getReferralID() { return referralID; } - - public void setReferralID(Integer referralID) { + public void setReferralID(Long referralID) { this.referralID = referralID; } - public RuleFailureReason referralValue(String referralValue) { - + this.referralValue = referralValue; return this; } - /** - * The code of the referral that was being evaluated at the time of the rule failure. + /** + * The code of the referral that was being evaluated at the time of the rule + * failure. + * * @return referralValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The code of the referral that was being evaluated at the time of the rule failure.") @@ -239,112 +236,107 @@ public String getReferralValue() { return referralValue; } - public void setReferralValue(String referralValue) { this.referralValue = referralValue; } + public RuleFailureReason ruleIndex(Long ruleIndex) { - public RuleFailureReason ruleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; return this; } - /** + /** * The index of the rule that failed within the ruleset. + * * @return ruleIndex - **/ + **/ @ApiModelProperty(required = true, value = "The index of the rule that failed within the ruleset.") - public Integer getRuleIndex() { + public Long getRuleIndex() { return ruleIndex; } - - public void setRuleIndex(Integer ruleIndex) { + public void setRuleIndex(Long ruleIndex) { this.ruleIndex = ruleIndex; } - public RuleFailureReason ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that failed within the ruleset. + * * @return ruleName - **/ + **/ @ApiModelProperty(required = true, value = "The name of the rule that failed within the ruleset.") public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } + public RuleFailureReason conditionIndex(Long conditionIndex) { - public RuleFailureReason conditionIndex(Integer conditionIndex) { - this.conditionIndex = conditionIndex; return this; } - /** + /** * The index of the condition that failed. + * * @return conditionIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that failed.") - public Integer getConditionIndex() { + public Long getConditionIndex() { return conditionIndex; } - - public void setConditionIndex(Integer conditionIndex) { + public void setConditionIndex(Long conditionIndex) { this.conditionIndex = conditionIndex; } + public RuleFailureReason effectIndex(Long effectIndex) { - public RuleFailureReason effectIndex(Integer effectIndex) { - this.effectIndex = effectIndex; return this; } - /** + /** * The index of the effect that failed. + * * @return effectIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that failed.") - public Integer getEffectIndex() { + public Long getEffectIndex() { return effectIndex; } - - public void setEffectIndex(Integer effectIndex) { + public void setEffectIndex(Long effectIndex) { this.effectIndex = effectIndex; } - public RuleFailureReason details(String details) { - + this.details = details; return this; } - /** + /** * More details about the failure. + * * @return details - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "More details about the failure.") @@ -352,45 +344,46 @@ public String getDetails() { return details; } - public void setDetails(String details) { this.details = details; } + public RuleFailureReason evaluationGroupID(Long evaluationGroupID) { - public RuleFailureReason evaluationGroupID(Integer evaluationGroupID) { - this.evaluationGroupID = evaluationGroupID; return this; } - /** - * The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + /** + * The ID of the evaluation group. For more information, see [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). + * * @return evaluationGroupID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Integer getEvaluationGroupID() { + public Long getEvaluationGroupID() { return evaluationGroupID; } - - public void setEvaluationGroupID(Integer evaluationGroupID) { + public void setEvaluationGroupID(Long evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } - public RuleFailureReason evaluationGroupMode(String evaluationGroupMode) { - + this.evaluationGroupMode = evaluationGroupMode; return this; } - /** - * The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- + /** + * The evaluation mode of the evaluation group. For more information, see + * [Managing campaign + * evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- + * * @return evaluationGroupMode - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "stackable", value = "The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-") @@ -398,12 +391,10 @@ public String getEvaluationGroupMode() { return evaluationGroupMode; } - public void setEvaluationGroupMode(String evaluationGroupMode) { this.evaluationGroupMode = evaluationGroupMode; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -431,10 +422,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(campaignID, campaignName, rulesetID, couponID, couponValue, referralID, referralValue, ruleIndex, ruleName, conditionIndex, effectIndex, details, evaluationGroupID, evaluationGroupMode); + return Objects.hash(campaignID, campaignName, rulesetID, couponID, couponValue, referralID, referralValue, + ruleIndex, ruleName, conditionIndex, effectIndex, details, evaluationGroupID, evaluationGroupMode); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -469,4 +460,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Ruleset.java b/src/main/java/one/talon/model/Ruleset.java index cec45907..c495d118 100644 --- a/src/main/java/one/talon/model/Ruleset.java +++ b/src/main/java/one/talon/model/Ruleset.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class Ruleset { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +43,7 @@ public class Ruleset { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -68,85 +67,81 @@ public class Ruleset { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Integer templateId; + private Long templateId; public static final String SERIALIZED_NAME_ACTIVATED_AT = "activatedAt"; @SerializedName(SERIALIZED_NAME_ACTIVATED_AT) private OffsetDateTime activatedAt; + public Ruleset id(Long id) { - public Ruleset id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Ruleset created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public Ruleset userId(Long userId) { - public Ruleset userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public Ruleset rules(List rules) { - + this.rules = rules; return this; } @@ -156,24 +151,23 @@ public Ruleset addRulesItem(Rule rulesItem) { return this; } - /** + /** * Set of rules to apply. + * * @return rules - **/ + **/ @ApiModelProperty(required = true, value = "Set of rules to apply.") public List getRules() { return rules; } - public void setRules(List rules) { this.rules = rules; } - public Ruleset strikethroughRules(List strikethroughRules) { - + this.strikethroughRules = strikethroughRules; return this; } @@ -186,10 +180,11 @@ public Ruleset addStrikethroughRulesItem(Rule strikethroughRulesItem) { return this; } - /** + /** * Set of rules to apply for strikethrough. + * * @return strikethroughRules - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Set of rules to apply for strikethrough.") @@ -197,14 +192,12 @@ public List getStrikethroughRules() { return strikethroughRules; } - public void setStrikethroughRules(List strikethroughRules) { this.strikethroughRules = strikethroughRules; } - public Ruleset bindings(List bindings) { - + this.bindings = bindings; return this; } @@ -214,32 +207,35 @@ public Ruleset addBindingsItem(Binding bindingsItem) { return this; } - /** - * An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. + /** + * An array that provides objects with variable names (name) and talang + * expressions to whose result they are bound (expression) during rule + * evaluation. The order of the evaluation is decided by the position in the + * array. + * * @return bindings - **/ + **/ @ApiModelProperty(example = "[]", required = true, value = "An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array.") public List getBindings() { return bindings; } - public void setBindings(List bindings) { this.bindings = bindings; } - public Ruleset rbVersion(String rbVersion) { - + this.rbVersion = rbVersion; return this; } - /** + /** * The version of the rulebuilder used to create this ruleset. + * * @return rbVersion - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "v2", value = "The version of the rulebuilder used to create this ruleset.") @@ -247,22 +243,22 @@ public String getRbVersion() { return rbVersion; } - public void setRbVersion(String rbVersion) { this.rbVersion = rbVersion; } - public Ruleset activate(Boolean activate) { - + this.activate = activate; return this; } - /** - * Indicates whether this created ruleset should be activated for the campaign that owns it. + /** + * Indicates whether this created ruleset should be activated for the campaign + * that owns it. + * * @return activate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates whether this created ruleset should be activated for the campaign that owns it.") @@ -270,68 +266,65 @@ public Boolean getActivate() { return activate; } - public void setActivate(Boolean activate) { this.activate = activate; } + public Ruleset campaignId(Long campaignId) { - public Ruleset campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that owns this entity. + * * @return campaignId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "320", value = "The ID of the campaign that owns this entity.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public Ruleset templateId(Long templateId) { - public Ruleset templateId(Integer templateId) { - this.templateId = templateId; return this; } - /** + /** * The ID of the campaign template that owns this entity. + * * @return templateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the campaign template that owns this entity.") - public Integer getTemplateId() { + public Long getTemplateId() { return templateId; } - - public void setTemplateId(Integer templateId) { + public void setTemplateId(Long templateId) { this.templateId = templateId; } - public Ruleset activatedAt(OffsetDateTime activatedAt) { - + this.activatedAt = activatedAt; return this; } - /** + /** * Timestamp indicating when this Ruleset was activated. + * * @return activatedAt - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp indicating when this Ruleset was activated.") @@ -339,12 +332,10 @@ public OffsetDateTime getActivatedAt() { return activatedAt; } - public void setActivatedAt(OffsetDateTime activatedAt) { this.activatedAt = activatedAt; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -369,10 +360,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, userId, rules, strikethroughRules, bindings, rbVersion, activate, campaignId, templateId, activatedAt); + return Objects.hash(id, created, userId, rules, strikethroughRules, bindings, rbVersion, activate, campaignId, + templateId, activatedAt); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -404,4 +395,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SamlConnection.java b/src/main/java/one/talon/model/SamlConnection.java index 8e70609c..cbd220e6 100644 --- a/src/main/java/one/talon/model/SamlConnection.java +++ b/src/main/java/one/talon/model/SamlConnection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,7 +36,7 @@ public class SamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -69,155 +68,149 @@ public class SamlConnection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; - public SamlConnection assertionConsumerServiceURL(String assertionConsumerServiceURL) { - + this.assertionConsumerServiceURL = assertionConsumerServiceURL; return this; } - /** + /** * The location where the SAML assertion is sent with a HTTP POST. + * * @return assertionConsumerServiceURL - **/ + **/ @ApiModelProperty(required = true, value = "The location where the SAML assertion is sent with a HTTP POST.") public String getAssertionConsumerServiceURL() { return assertionConsumerServiceURL; } - public void setAssertionConsumerServiceURL(String assertionConsumerServiceURL) { this.assertionConsumerServiceURL = assertionConsumerServiceURL; } + public SamlConnection accountId(Long accountId) { - public SamlConnection accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public SamlConnection name(String name) { - + this.name = name; return this; } - /** + /** * ID of the SAML service. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "ID of the SAML service.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public SamlConnection enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this SAML connection active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this SAML connection active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public SamlConnection issuer(String issuer) { - + this.issuer = issuer; return this; } - /** + /** * Identity Provider Entity ID. + * * @return issuer - **/ + **/ @ApiModelProperty(required = true, value = "Identity Provider Entity ID.") public String getIssuer() { return issuer; } - public void setIssuer(String issuer) { this.issuer = issuer; } - public SamlConnection signOnURL(String signOnURL) { - + this.signOnURL = signOnURL; return this; } - /** + /** * Single Sign-On URL. + * * @return signOnURL - **/ + **/ @ApiModelProperty(required = true, value = "Single Sign-On URL.") public String getSignOnURL() { return signOnURL; } - public void setSignOnURL(String signOnURL) { this.signOnURL = signOnURL; } - public SamlConnection signOutURL(String signOutURL) { - + this.signOutURL = signOutURL; return this; } - /** + /** * Single Sign-Out URL. + * * @return signOutURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Single Sign-Out URL.") @@ -225,22 +218,21 @@ public String getSignOutURL() { return signOutURL; } - public void setSignOutURL(String signOutURL) { this.signOutURL = signOutURL; } - public SamlConnection metadataURL(String metadataURL) { - + this.metadataURL = metadataURL; return this; } - /** + /** * Metadata URL. + * * @return metadataURL - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Metadata URL.") @@ -248,78 +240,75 @@ public String getMetadataURL() { return metadataURL; } - public void setMetadataURL(String metadataURL) { this.metadataURL = metadataURL; } - public SamlConnection audienceURI(String audienceURI) { - + this.audienceURI = audienceURI; return this; } - /** - * The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. + /** + * The application-defined unique identifier that is the intended audience of + * the SAML assertion. This is most often the SP Entity ID of your application. + * When not specified, the ACS URL will be used. + * * @return audienceURI - **/ + **/ @ApiModelProperty(required = true, value = "The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. ") public String getAudienceURI() { return audienceURI; } - public void setAudienceURI(String audienceURI) { this.audienceURI = audienceURI; } + public SamlConnection id(Long id) { - public SamlConnection id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public SamlConnection created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -344,10 +333,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(assertionConsumerServiceURL, accountId, name, enabled, issuer, signOnURL, signOutURL, metadataURL, audienceURI, id, created); + return Objects.hash(assertionConsumerServiceURL, accountId, name, enabled, issuer, signOnURL, signOutURL, + metadataURL, audienceURI, id, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -379,4 +368,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SamlLoginEndpoint.java b/src/main/java/one/talon/model/SamlLoginEndpoint.java index 1d28ae0b..bd2a2d23 100644 --- a/src/main/java/one/talon/model/SamlLoginEndpoint.java +++ b/src/main/java/one/talon/model/SamlLoginEndpoint.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,7 +30,7 @@ public class SamlLoginEndpoint { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -41,73 +40,69 @@ public class SamlLoginEndpoint { @SerializedName(SERIALIZED_NAME_LOGIN_U_R_L) private String loginURL; + public SamlLoginEndpoint id(Long id) { - public SamlLoginEndpoint id(Integer id) { - this.id = id; return this; } - /** + /** * ID of the SAML login endpoint. + * * @return id - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "ID of the SAML login endpoint.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public SamlLoginEndpoint name(String name) { - + this.name = name; return this; } - /** + /** * ID of the SAML service. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "ID of the SAML service.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public SamlLoginEndpoint loginURL(String loginURL) { - + this.loginURL = loginURL; return this; } - /** + /** * The single sign-on URL. + * * @return loginURL - **/ + **/ @ApiModelProperty(required = true, value = "The single sign-on URL.") public String getLoginURL() { return loginURL; } - public void setLoginURL(String loginURL) { this.loginURL = loginURL; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,7 +122,6 @@ public int hashCode() { return Objects.hash(id, name, loginURL); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -151,4 +145,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ScimSchemasListResponse.java b/src/main/java/one/talon/model/ScimSchemasListResponse.java index 90c3bfc9..87b0d6e8 100644 --- a/src/main/java/one/talon/model/ScimSchemasListResponse.java +++ b/src/main/java/one/talon/model/ScimSchemasListResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -43,11 +42,10 @@ public class ScimSchemasListResponse { public static final String SERIALIZED_NAME_TOTAL_RESULTS = "totalResults"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) - private Integer totalResults; - + private Long totalResults; public ScimSchemasListResponse resources(List resources) { - + this.resources = resources; return this; } @@ -57,24 +55,23 @@ public ScimSchemasListResponse addResourcesItem(ScimSchemaResource resourcesItem return this; } - /** + /** * Get resources + * * @return resources - **/ + **/ @ApiModelProperty(required = true, value = "") public List getResources() { return resources; } - public void setResources(List resources) { this.resources = resources; } - public ScimSchemasListResponse schemas(List schemas) { - + this.schemas = schemas; return this; } @@ -87,10 +84,11 @@ public ScimSchemasListResponse addSchemasItem(String schemasItem) { return this; } - /** + /** * SCIM schema for the given resource. + * * @return schemas - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "SCIM schema for the given resource.") @@ -98,35 +96,32 @@ public List getSchemas() { return schemas; } - public void setSchemas(List schemas) { this.schemas = schemas; } + public ScimSchemasListResponse totalResults(Long totalResults) { - public ScimSchemasListResponse totalResults(Integer totalResults) { - this.totalResults = totalResults; return this; } - /** + /** * Number of total results in the response. + * * @return totalResults - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Number of total results in the response.") - public Integer getTotalResults() { + public Long getTotalResults() { return totalResults; } - - public void setTotalResults(Integer totalResults) { + public void setTotalResults(Long totalResults) { this.totalResults = totalResults; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -146,7 +141,6 @@ public int hashCode() { return Objects.hash(resources, schemas, totalResults); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -170,4 +164,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java index e0f8acdd..cfd1fdb1 100644 --- a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java +++ b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,80 +24,81 @@ import java.io.IOException; /** - * Configuration related to bulk operations, which allow multiple SCIM requests to be processed in a single HTTP request. + * Configuration related to bulk operations, which allow multiple SCIM requests + * to be processed in a single HTTP request. */ @ApiModel(description = "Configuration related to bulk operations, which allow multiple SCIM requests to be processed in a single HTTP request.") public class ScimServiceProviderConfigResponseBulk { public static final String SERIALIZED_NAME_MAX_OPERATIONS = "maxOperations"; @SerializedName(SERIALIZED_NAME_MAX_OPERATIONS) - private Integer maxOperations; + private Long maxOperations; public static final String SERIALIZED_NAME_MAX_PAYLOAD_SIZE = "maxPayloadSize"; @SerializedName(SERIALIZED_NAME_MAX_PAYLOAD_SIZE) - private Integer maxPayloadSize; + private Long maxPayloadSize; public static final String SERIALIZED_NAME_SUPPORTED = "supported"; @SerializedName(SERIALIZED_NAME_SUPPORTED) private Boolean supported; + public ScimServiceProviderConfigResponseBulk maxOperations(Long maxOperations) { - public ScimServiceProviderConfigResponseBulk maxOperations(Integer maxOperations) { - this.maxOperations = maxOperations; return this; } - /** - * The maximum number of individual operations that can be included in a single bulk request. + /** + * The maximum number of individual operations that can be included in a single + * bulk request. + * * @return maxOperations - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of individual operations that can be included in a single bulk request.") - public Integer getMaxOperations() { + public Long getMaxOperations() { return maxOperations; } - - public void setMaxOperations(Integer maxOperations) { + public void setMaxOperations(Long maxOperations) { this.maxOperations = maxOperations; } + public ScimServiceProviderConfigResponseBulk maxPayloadSize(Long maxPayloadSize) { - public ScimServiceProviderConfigResponseBulk maxPayloadSize(Integer maxPayloadSize) { - this.maxPayloadSize = maxPayloadSize; return this; } - /** - * The maximum size, in bytes, of the entire payload for a bulk operation request. + /** + * The maximum size, in bytes, of the entire payload for a bulk operation + * request. + * * @return maxPayloadSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum size, in bytes, of the entire payload for a bulk operation request.") - public Integer getMaxPayloadSize() { + public Long getMaxPayloadSize() { return maxPayloadSize; } - - public void setMaxPayloadSize(Integer maxPayloadSize) { + public void setMaxPayloadSize(Long maxPayloadSize) { this.maxPayloadSize = maxPayloadSize; } - public ScimServiceProviderConfigResponseBulk supported(Boolean supported) { - + this.supported = supported; return this; } - /** + /** * Indicates whether the SCIM service provider supports bulk operations. + * * @return supported - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates whether the SCIM service provider supports bulk operations.") @@ -106,12 +106,10 @@ public Boolean getSupported() { return supported; } - public void setSupported(Boolean supported) { this.supported = supported; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -131,7 +129,6 @@ public int hashCode() { return Objects.hash(maxOperations, maxPayloadSize, supported); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -155,4 +152,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java index 8834ed1c..a6d4a235 100644 --- a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java +++ b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,53 +24,54 @@ import java.io.IOException; /** - * Configuration settings related to filtering SCIM resources based on specific criteria. + * Configuration settings related to filtering SCIM resources based on specific + * criteria. */ @ApiModel(description = "Configuration settings related to filtering SCIM resources based on specific criteria.") public class ScimServiceProviderConfigResponseFilter { public static final String SERIALIZED_NAME_MAX_RESULTS = "maxResults"; @SerializedName(SERIALIZED_NAME_MAX_RESULTS) - private Integer maxResults; + private Long maxResults; public static final String SERIALIZED_NAME_SUPPORTED = "supported"; @SerializedName(SERIALIZED_NAME_SUPPORTED) private Boolean supported; + public ScimServiceProviderConfigResponseFilter maxResults(Long maxResults) { - public ScimServiceProviderConfigResponseFilter maxResults(Integer maxResults) { - this.maxResults = maxResults; return this; } - /** - * The maximum number of resources that can be returned in a single filtered query response. + /** + * The maximum number of resources that can be returned in a single filtered + * query response. + * * @return maxResults - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of resources that can be returned in a single filtered query response.") - public Integer getMaxResults() { + public Long getMaxResults() { return maxResults; } - - public void setMaxResults(Integer maxResults) { + public void setMaxResults(Long maxResults) { this.maxResults = maxResults; } - public ScimServiceProviderConfigResponseFilter supported(Boolean supported) { - + this.supported = supported; return this; } - /** + /** * Indicates whether the SCIM service provider supports filtering operations. + * * @return supported - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates whether the SCIM service provider supports filtering operations.") @@ -79,12 +79,10 @@ public Boolean getSupported() { return supported; } - public void setSupported(Boolean supported) { this.supported = supported; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,7 +101,6 @@ public int hashCode() { return Objects.hash(maxResults, supported); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -126,4 +123,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ScimUsersListResponse.java b/src/main/java/one/talon/model/ScimUsersListResponse.java index d88c5819..fd47ae69 100644 --- a/src/main/java/one/talon/model/ScimUsersListResponse.java +++ b/src/main/java/one/talon/model/ScimUsersListResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -28,7 +27,8 @@ import one.talon.model.ScimUser; /** - * List of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * List of users that have been provisioned using the SCIM protocol with an + * identity provider, for example, Microsoft Entra ID. */ @ApiModel(description = "List of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID.") @@ -43,11 +43,10 @@ public class ScimUsersListResponse { public static final String SERIALIZED_NAME_TOTAL_RESULTS = "totalResults"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) - private Integer totalResults; - + private Long totalResults; public ScimUsersListResponse resources(List resources) { - + this.resources = resources; return this; } @@ -57,24 +56,23 @@ public ScimUsersListResponse addResourcesItem(ScimUser resourcesItem) { return this; } - /** + /** * Get resources + * * @return resources - **/ + **/ @ApiModelProperty(required = true, value = "") public List getResources() { return resources; } - public void setResources(List resources) { this.resources = resources; } - public ScimUsersListResponse schemas(List schemas) { - + this.schemas = schemas; return this; } @@ -87,10 +85,11 @@ public ScimUsersListResponse addSchemasItem(String schemasItem) { return this; } - /** + /** * SCIM schema for the given resource. + * * @return schemas - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "SCIM schema for the given resource.") @@ -98,35 +97,32 @@ public List getSchemas() { return schemas; } - public void setSchemas(List schemas) { this.schemas = schemas; } + public ScimUsersListResponse totalResults(Long totalResults) { - public ScimUsersListResponse totalResults(Integer totalResults) { - this.totalResults = totalResults; return this; } - /** + /** * Number of total results in the response. + * * @return totalResults - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Number of total results in the response.") - public Integer getTotalResults() { + public Long getTotalResults() { return totalResults; } - - public void setTotalResults(Integer totalResults) { + public void setTotalResults(Long totalResults) { this.totalResults = totalResults; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -146,7 +142,6 @@ public int hashCode() { return Objects.hash(resources, schemas, totalResults); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -170,4 +165,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Session.java b/src/main/java/one/talon/model/Session.java index cd7f9c89..59d934c8 100644 --- a/src/main/java/one/talon/model/Session.java +++ b/src/main/java/one/talon/model/Session.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Session { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -42,73 +41,69 @@ public class Session { @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; + public Session userId(Long userId) { - public Session userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user of this session. + * * @return userId - **/ + **/ @ApiModelProperty(example = "109", required = true, value = "The ID of the user of this session.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - public Session token(String token) { - + this.token = token; return this; } - /** + /** * The token to use as a bearer token to query Management API endpoints. + * * @return token - **/ + **/ @ApiModelProperty(example = "dy_Fa_lQ4iDAnqldJFvVEmnsN8xDTxej19l0LZDBJhQ", required = true, value = "The token to use as a bearer token to query Management API endpoints.") public String getToken() { return token; } - public void setToken(String token) { this.token = token; } - public Session created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Unix timestamp indicating when the session was first created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2021-07-20T22:00Z", required = true, value = "Unix timestamp indicating when the session was first created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,7 +123,6 @@ public int hashCode() { return Objects.hash(userId, token, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -152,4 +146,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java index 00992707..3078c441 100644 --- a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,10 @@ import java.math.BigDecimal; /** - * The properties specific to the \"setDiscountPerAdditionalCost\" effect. This gets triggered whenever a validated rule contained a \"set per additional cost discount\" effect. This is a discount that should be applied on a specific additional cost. + * The properties specific to the \"setDiscountPerAdditionalCost\" + * effect. This gets triggered whenever a validated rule contained a \"set + * per additional cost discount\" effect. This is a discount that should be + * applied on a specific additional cost. */ @ApiModel(description = "The properties specific to the \"setDiscountPerAdditionalCost\" effect. This gets triggered whenever a validated rule contained a \"set per additional cost discount\" effect. This is a discount that should be applied on a specific additional cost.") @@ -37,7 +39,7 @@ public class SetDiscountPerAdditionalCostEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Integer additionalCostId; + private Long additionalCostId; public static final String SERIALIZED_NAME_ADDITIONAL_COST = "additionalCost"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST) @@ -51,105 +53,101 @@ public class SetDiscountPerAdditionalCostEffectProps { @SerializedName(SERIALIZED_NAME_DESIRED_VALUE) private BigDecimal desiredValue; - public SetDiscountPerAdditionalCostEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The name / description of this discount + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name / description of this discount") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public SetDiscountPerAdditionalCostEffectProps additionalCostId(Long additionalCostId) { - public SetDiscountPerAdditionalCostEffectProps additionalCostId(Integer additionalCostId) { - this.additionalCostId = additionalCostId; return this; } - /** + /** * The ID of the additional cost. + * * @return additionalCostId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the additional cost.") - public Integer getAdditionalCostId() { + public Long getAdditionalCostId() { return additionalCostId; } - - public void setAdditionalCostId(Integer additionalCostId) { + public void setAdditionalCostId(Long additionalCostId) { this.additionalCostId = additionalCostId; } - public SetDiscountPerAdditionalCostEffectProps additionalCost(String additionalCost) { - + this.additionalCost = additionalCost; return this; } - /** + /** * The name of the additional cost. + * * @return additionalCost - **/ + **/ @ApiModelProperty(required = true, value = "The name of the additional cost.") public String getAdditionalCost() { return additionalCost; } - public void setAdditionalCost(String additionalCost) { this.additionalCost = additionalCost; } - public SetDiscountPerAdditionalCostEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The total monetary value of the discount. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The total monetary value of the discount.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public SetDiscountPerAdditionalCostEffectProps desiredValue(BigDecimal desiredValue) { - + this.desiredValue = desiredValue; return this; } - /** + /** * The original value of the discount. + * * @return desiredValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The original value of the discount.") @@ -157,12 +155,10 @@ public BigDecimal getDesiredValue() { return desiredValue; } - public void setDesiredValue(BigDecimal desiredValue) { this.desiredValue = desiredValue; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,7 +180,6 @@ public int hashCode() { return Objects.hash(name, additionalCostId, additionalCost, value, desiredValue); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -210,4 +205,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java index f8895d68..55d453e7 100644 --- a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,11 @@ import java.math.BigDecimal; /** - * The properties specific to the \"setDiscountPerAdditionalCostPerItem\" effect. This gets triggered whenever a validated rule contained a \"set discount per additional cost per item\" effect. This is a discount that should be applied on a specific additional cost in a specific item. + * The properties specific to the + * \"setDiscountPerAdditionalCostPerItem\" effect. This gets triggered + * whenever a validated rule contained a \"set discount per additional cost + * per item\" effect. This is a discount that should be applied on a + * specific additional cost in a specific item. */ @ApiModel(description = "The properties specific to the \"setDiscountPerAdditionalCostPerItem\" effect. This gets triggered whenever a validated rule contained a \"set discount per additional cost per item\" effect. This is a discount that should be applied on a specific additional cost in a specific item.") @@ -37,7 +40,7 @@ public class SetDiscountPerAdditionalCostPerItemEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Integer additionalCostId; + private Long additionalCostId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -59,105 +62,103 @@ public class SetDiscountPerAdditionalCostPerItemEffectProps { @SerializedName(SERIALIZED_NAME_DESIRED_VALUE) private BigDecimal desiredValue; - public SetDiscountPerAdditionalCostPerItemEffectProps name(String name) { - + this.name = name; return this; } - /** + /** * The name / description of this discount + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name / description of this discount") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public SetDiscountPerAdditionalCostPerItemEffectProps additionalCostId(Long additionalCostId) { - public SetDiscountPerAdditionalCostPerItemEffectProps additionalCostId(Integer additionalCostId) { - this.additionalCostId = additionalCostId; return this; } - /** + /** * The ID of the additional cost. + * * @return additionalCostId - **/ + **/ @ApiModelProperty(required = true, value = "The ID of the additional cost.") - public Integer getAdditionalCostId() { + public Long getAdditionalCostId() { return additionalCostId; } - - public void setAdditionalCostId(Integer additionalCostId) { + public void setAdditionalCostId(Long additionalCostId) { this.additionalCostId = additionalCostId; } - public SetDiscountPerAdditionalCostPerItemEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The total monetary value of the discount. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The total monetary value of the discount.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public SetDiscountPerAdditionalCostPerItemEffectProps position(BigDecimal position) { - + this.position = position; return this; } - /** - * The index of the item in the cart item list containing the additional cost to be discounted. + /** + * The index of the item in the cart item list containing the additional cost to + * be discounted. + * * @return position - **/ + **/ @ApiModelProperty(required = true, value = "The index of the item in the cart item list containing the additional cost to be discounted.") public BigDecimal getPosition() { return position; } - public void setPosition(BigDecimal position) { this.position = position; } - public SetDiscountPerAdditionalCostPerItemEffectProps subPosition(BigDecimal subPosition) { - + this.subPosition = subPosition; return this; } - /** - * For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. + /** + * For cart items with `quantity` > 1, the sub position indicates + * which item the discount applies to. + * * @return subPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. ") @@ -165,44 +166,45 @@ public BigDecimal getSubPosition() { return subPosition; } - public void setSubPosition(BigDecimal subPosition) { this.subPosition = subPosition; } - public SetDiscountPerAdditionalCostPerItemEffectProps additionalCost(String additionalCost) { - + this.additionalCost = additionalCost; return this; } - /** + /** * The name of the additional cost. + * * @return additionalCost - **/ + **/ @ApiModelProperty(required = true, value = "The name of the additional cost.") public String getAdditionalCost() { return additionalCost; } - public void setAdditionalCost(String additionalCost) { this.additionalCost = additionalCost; } - public SetDiscountPerAdditionalCostPerItemEffectProps desiredValue(BigDecimal desiredValue) { - + this.desiredValue = desiredValue; return this; } - /** - * Only with [partial discounts enabled](https://docs.talon.one/docs/product/campaigns/campaign-evaluation/#partial-discounts). Represents the monetary value of the discount to be applied to additional discount without considering budget limitations. + /** + * Only with [partial discounts + * enabled](https://docs.talon.one/docs/product/campaigns/campaign-evaluation/#partial-discounts). + * Represents the monetary value of the discount to be applied to additional + * discount without considering budget limitations. + * * @return desiredValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Only with [partial discounts enabled](https://docs.talon.one/docs/product/campaigns/campaign-evaluation/#partial-discounts). Represents the monetary value of the discount to be applied to additional discount without considering budget limitations. ") @@ -210,12 +212,10 @@ public BigDecimal getDesiredValue() { return desiredValue; } - public void setDesiredValue(BigDecimal desiredValue) { this.desiredValue = desiredValue; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -239,7 +239,6 @@ public int hashCode() { return Objects.hash(name, additionalCostId, value, position, subPosition, additionalCost, desiredValue); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -267,4 +266,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java index 98d64694..771ef56b 100644 --- a/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -26,7 +25,11 @@ import java.math.BigDecimal; /** - * The properties specific to the `setDiscountPerItem` effect, triggered whenever a validated rule contained a \"set per item discount\" effect. This is a discount that will be applied either on a specific item, on a specific item + additional cost or on all additional costs per item. This depends on the chosen scope. + * The properties specific to the `setDiscountPerItem` effect, + * triggered whenever a validated rule contained a \"set per item + * discount\" effect. This is a discount that will be applied either on a + * specific item, on a specific item + additional cost or on all additional + * costs per item. This depends on the chosen scope. */ @ApiModel(description = "The properties specific to the `setDiscountPerItem` effect, triggered whenever a validated rule contained a \"set per item discount\" effect. This is a discount that will be applied either on a specific item, on a specific item + additional cost or on all additional costs per item. This depends on the chosen scope. ") @@ -65,7 +68,7 @@ public class SetDiscountPerItemEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Integer bundleIndex; + private Long bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) @@ -79,83 +82,84 @@ public class SetDiscountPerItemEffectProps { @SerializedName(SERIALIZED_NAME_TARGETED_ITEM_SUB_POSITION) private BigDecimal targetedItemSubPosition; - public SetDiscountPerItemEffectProps name(String name) { - + this.name = name; return this; } - /** - * The name of the discount. Contains a hashtag character indicating the index of the position of the item the discount applies to. It is identical to the value of the `position` property. + /** + * The name of the discount. Contains a hashtag character indicating the index + * of the position of the item the discount applies to. It is identical to the + * value of the `position` property. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of the discount. Contains a hashtag character indicating the index of the position of the item the discount applies to. It is identical to the value of the `position` property. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public SetDiscountPerItemEffectProps value(BigDecimal value) { - + this.value = value; return this; } - /** + /** * The total monetary value of the discount. + * * @return value - **/ + **/ @ApiModelProperty(required = true, value = "The total monetary value of the discount.") public BigDecimal getValue() { return value; } - public void setValue(BigDecimal value) { this.value = value; } - public SetDiscountPerItemEffectProps position(BigDecimal position) { - + this.position = position; return this; } - /** - * The index of the item in the cart items list on which this discount should be applied. + /** + * The index of the item in the cart items list on which this discount should be + * applied. + * * @return position - **/ + **/ @ApiModelProperty(required = true, value = "The index of the item in the cart items list on which this discount should be applied.") public BigDecimal getPosition() { return position; } - public void setPosition(BigDecimal position) { this.position = position; } - public SetDiscountPerItemEffectProps subPosition(BigDecimal subPosition) { - + this.subPosition = subPosition; return this; } - /** - * For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. + /** + * For cart items with `quantity` > 1, the sub position indicates + * which item the discount applies to. + * * @return subPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. ") @@ -163,22 +167,21 @@ public BigDecimal getSubPosition() { return subPosition; } - public void setSubPosition(BigDecimal subPosition) { this.subPosition = subPosition; } - public SetDiscountPerItemEffectProps desiredValue(BigDecimal desiredValue) { - + this.desiredValue = desiredValue; return this; } - /** + /** * The original value of the discount. + * * @return desiredValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The original value of the discount.") @@ -186,22 +189,24 @@ public BigDecimal getDesiredValue() { return desiredValue; } - public void setDesiredValue(BigDecimal desiredValue) { this.desiredValue = desiredValue; } - public SetDiscountPerItemEffectProps scope(String scope) { - + this.scope = scope; return this; } - /** - * The scope of the discount: - `additionalCosts`: The discount applies to all the additional costs of the item. - `itemTotal`: The discount applies to the price of the item + the additional costs of the item. - `price`: The discount applies to the price of the item. + /** + * The scope of the discount: - `additionalCosts`: The discount + * applies to all the additional costs of the item. - `itemTotal`: The + * discount applies to the price of the item + the additional costs of the item. + * - `price`: The discount applies to the price of the item. + * * @return scope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The scope of the discount: - `additionalCosts`: The discount applies to all the additional costs of the item. - `itemTotal`: The discount applies to the price of the item + the additional costs of the item. - `price`: The discount applies to the price of the item. ") @@ -209,22 +214,21 @@ public String getScope() { return scope; } - public void setScope(String scope) { this.scope = scope; } - public SetDiscountPerItemEffectProps totalDiscount(BigDecimal totalDiscount) { - + this.totalDiscount = totalDiscount; return this; } - /** + /** * The total discount given if this effect is a result of a prorated discount. + * * @return totalDiscount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The total discount given if this effect is a result of a prorated discount.") @@ -232,22 +236,22 @@ public BigDecimal getTotalDiscount() { return totalDiscount; } - public void setTotalDiscount(BigDecimal totalDiscount) { this.totalDiscount = totalDiscount; } - public SetDiscountPerItemEffectProps desiredTotalDiscount(BigDecimal desiredTotalDiscount) { - + this.desiredTotalDiscount = desiredTotalDiscount; return this; } - /** - * The original total discount to give if this effect is a result of a prorated discount. + /** + * The original total discount to give if this effect is a result of a prorated + * discount. + * * @return desiredTotalDiscount - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The original total discount to give if this effect is a result of a prorated discount.") @@ -255,45 +259,44 @@ public BigDecimal getDesiredTotalDiscount() { return desiredTotalDiscount; } - public void setDesiredTotalDiscount(BigDecimal desiredTotalDiscount) { this.desiredTotalDiscount = desiredTotalDiscount; } + public SetDiscountPerItemEffectProps bundleIndex(Long bundleIndex) { - public SetDiscountPerItemEffectProps bundleIndex(Integer bundleIndex) { - this.bundleIndex = bundleIndex; return this; } - /** - * The position of the bundle in a list of item bundles created from the same bundle definition. + /** + * The position of the bundle in a list of item bundles created from the same + * bundle definition. + * * @return bundleIndex - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Integer getBundleIndex() { + public Long getBundleIndex() { return bundleIndex; } - - public void setBundleIndex(Integer bundleIndex) { + public void setBundleIndex(Long bundleIndex) { this.bundleIndex = bundleIndex; } - public SetDiscountPerItemEffectProps bundleName(String bundleName) { - + this.bundleName = bundleName; return this; } - /** + /** * The name of the bundle definition. + * * @return bundleName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the bundle definition.") @@ -301,22 +304,21 @@ public String getBundleName() { return bundleName; } - public void setBundleName(String bundleName) { this.bundleName = bundleName; } - public SetDiscountPerItemEffectProps targetedItemPosition(BigDecimal targetedItemPosition) { - + this.targetedItemPosition = targetedItemPosition; return this; } - /** + /** * The index of the targeted bundle item on which the applied discount is based. + * * @return targetedItemPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the targeted bundle item on which the applied discount is based.") @@ -324,22 +326,22 @@ public BigDecimal getTargetedItemPosition() { return targetedItemPosition; } - public void setTargetedItemPosition(BigDecimal targetedItemPosition) { this.targetedItemPosition = targetedItemPosition; } - public SetDiscountPerItemEffectProps targetedItemSubPosition(BigDecimal targetedItemSubPosition) { - + this.targetedItemSubPosition = targetedItemSubPosition; return this; } - /** - * The sub-position of the targeted bundle item on which the applied discount is based. + /** + * The sub-position of the targeted bundle item on which the applied discount is + * based. + * * @return targetedItemSubPosition - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The sub-position of the targeted bundle item on which the applied discount is based. ") @@ -347,12 +349,10 @@ public BigDecimal getTargetedItemSubPosition() { return targetedItemSubPosition; } - public void setTargetedItemSubPosition(BigDecimal targetedItemSubPosition) { this.targetedItemSubPosition = targetedItemSubPosition; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -378,10 +378,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, value, position, subPosition, desiredValue, scope, totalDiscount, desiredTotalDiscount, bundleIndex, bundleName, targetedItemPosition, targetedItemSubPosition); + return Objects.hash(name, value, position, subPosition, desiredValue, scope, totalDiscount, desiredTotalDiscount, + bundleIndex, bundleName, targetedItemPosition, targetedItemSubPosition); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -414,4 +414,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Store.java b/src/main/java/one/talon/model/Store.java index 2553b2bd..dc3eb02d 100644 --- a/src/main/java/one/talon/model/Store.java +++ b/src/main/java/one/talon/model/Store.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class Store { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -58,7 +57,7 @@ public class Store { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_UPDATED = "updated"; @SerializedName(SERIALIZED_NAME_UPDATED) @@ -66,107 +65,103 @@ public class Store { public static final String SERIALIZED_NAME_LINKED_CAMPAIGN_IDS = "linkedCampaignIds"; @SerializedName(SERIALIZED_NAME_LINKED_CAMPAIGN_IDS) - private List linkedCampaignIds = null; + private List linkedCampaignIds = null; + public Store id(Long id) { - public Store id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Store created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-02-07T08:15:22Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Store name(String name) { - + this.name = name; return this; } - /** + /** * The name of the store. + * * @return name - **/ + **/ @ApiModelProperty(example = "South US store", required = true, value = "The name of the store.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Store description(String description) { - + this.description = description; return this; } - /** + /** * The description of the store. + * * @return description - **/ + **/ @ApiModelProperty(example = "This is the description of the store in south US.", required = true, value = "The description of the store.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Store attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * The attributes of the store. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"country\":\"USA\",\"code\":1234}", value = "The attributes of the store.") @@ -174,109 +169,105 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public Store integrationId(String integrationId) { - + this.integrationId = integrationId; return this; } - /** - * The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. + /** + * The integration ID of the store. You choose this ID when you create a store. + * **Note**: You cannot edit the `integrationId` after the store has + * been created. + * * @return integrationId - **/ + **/ @ApiModelProperty(example = "STORE-001", required = true, value = "The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. ") public String getIntegrationId() { return integrationId; } - public void setIntegrationId(String integrationId) { this.integrationId = integrationId; } + public Store applicationId(Long applicationId) { - public Store applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public Store updated(OffsetDateTime updated) { - + this.updated = updated; return this; } - /** + /** * Timestamp of the most recent update on this entity. + * * @return updated - **/ + **/ @ApiModelProperty(example = "2021-09-23T10:12:42Z", required = true, value = "Timestamp of the most recent update on this entity.") public OffsetDateTime getUpdated() { return updated; } - public void setUpdated(OffsetDateTime updated) { this.updated = updated; } + public Store linkedCampaignIds(List linkedCampaignIds) { - public Store linkedCampaignIds(List linkedCampaignIds) { - this.linkedCampaignIds = linkedCampaignIds; return this; } - public Store addLinkedCampaignIdsItem(Integer linkedCampaignIdsItem) { + public Store addLinkedCampaignIdsItem(Long linkedCampaignIdsItem) { if (this.linkedCampaignIds == null) { - this.linkedCampaignIds = new ArrayList(); + this.linkedCampaignIds = new ArrayList(); } this.linkedCampaignIds.add(linkedCampaignIdsItem); return this; } - /** + /** * A list of IDs of the campaigns that are linked with current store. + * * @return linkedCampaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are linked with current store.") - public List getLinkedCampaignIds() { + public List getLinkedCampaignIds() { return linkedCampaignIds; } - - public void setLinkedCampaignIds(List linkedCampaignIds) { + public void setLinkedCampaignIds(List linkedCampaignIds) { this.linkedCampaignIds = linkedCampaignIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -299,10 +290,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, name, description, attributes, integrationId, applicationId, updated, linkedCampaignIds); + return Objects.hash(id, created, name, description, attributes, integrationId, applicationId, updated, + linkedCampaignIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -332,4 +323,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughChangedItem.java b/src/main/java/one/talon/model/StrikethroughChangedItem.java index 25ec1c4b..662810be 100644 --- a/src/main/java/one/talon/model/StrikethroughChangedItem.java +++ b/src/main/java/one/talon/model/StrikethroughChangedItem.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,11 +36,11 @@ public class StrikethroughChangedItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CATALOG_ID = "catalogId"; @SerializedName(SERIALIZED_NAME_CATALOG_ID) - private Integer catalogId; + private Long catalogId; public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) @@ -49,7 +48,7 @@ public class StrikethroughChangedItem { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; + private Long version; public static final String SERIALIZED_NAME_PRICE = "price"; @SerializedName(SERIALIZED_NAME_PRICE) @@ -63,142 +62,135 @@ public class StrikethroughChangedItem { @SerializedName(SERIALIZED_NAME_EFFECTS) private List effects = null; + public StrikethroughChangedItem id(Long id) { - public StrikethroughChangedItem id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the event that triggered the strikethrough labeling. + * * @return id - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the event that triggered the strikethrough labeling.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } + public StrikethroughChangedItem catalogId(Long catalogId) { - public StrikethroughChangedItem catalogId(Integer catalogId) { - this.catalogId = catalogId; return this; } - /** + /** * The ID of the catalog that the changed item belongs to. + * * @return catalogId - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The ID of the catalog that the changed item belongs to.") - public Integer getCatalogId() { + public Long getCatalogId() { return catalogId; } - - public void setCatalogId(Integer catalogId) { + public void setCatalogId(Long catalogId) { this.catalogId = catalogId; } - public StrikethroughChangedItem sku(String sku) { - + this.sku = sku; return this; } - /** + /** * The unique SKU of the changed item. + * * @return sku - **/ + **/ @ApiModelProperty(example = "SKU1241028", required = true, value = "The unique SKU of the changed item.") public String getSku() { return sku; } - public void setSku(String sku) { this.sku = sku; } + public StrikethroughChangedItem version(Long version) { - public StrikethroughChangedItem version(Integer version) { - this.version = version; return this; } - /** + /** * The version of the changed item. * minimum: 1 + * * @return version - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The version of the changed item.") - public Integer getVersion() { + public Long getVersion() { return version; } - - public void setVersion(Integer version) { + public void setVersion(Long version) { this.version = version; } - public StrikethroughChangedItem price(BigDecimal price) { - + this.price = price; return this; } - /** + /** * The price of the changed item. + * * @return price - **/ + **/ @ApiModelProperty(example = "99.99", required = true, value = "The price of the changed item.") public BigDecimal getPrice() { return price; } - public void setPrice(BigDecimal price) { this.price = price; } - public StrikethroughChangedItem evaluatedAt(OffsetDateTime evaluatedAt) { - + this.evaluatedAt = evaluatedAt; return this; } - /** + /** * The evaluation time of the changed item. + * * @return evaluatedAt - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The evaluation time of the changed item.") public OffsetDateTime getEvaluatedAt() { return evaluatedAt; } - public void setEvaluatedAt(OffsetDateTime evaluatedAt) { this.evaluatedAt = evaluatedAt; } - public StrikethroughChangedItem effects(List effects) { - + this.effects = effects; return this; } @@ -211,10 +203,11 @@ public StrikethroughChangedItem addEffectsItem(StrikethroughEffect effectsItem) return this; } - /** + /** * Get effects + * * @return effects - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -222,12 +215,10 @@ public List getEffects() { return effects; } - public void setEffects(List effects) { this.effects = effects; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -251,7 +242,6 @@ public int hashCode() { return Objects.hash(id, catalogId, sku, version, price, evaluatedAt, effects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -279,4 +269,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java b/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java index 07b26055..88f30206 100644 --- a/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java +++ b/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class StrikethroughCustomEffectPerItemProps { public static final String SERIALIZED_NAME_EFFECT_ID = "effectId"; @SerializedName(SERIALIZED_NAME_EFFECT_ID) - private Integer effectId; + private Long effectId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -42,73 +41,69 @@ public class StrikethroughCustomEffectPerItemProps { @SerializedName(SERIALIZED_NAME_PAYLOAD) private Object payload; + public StrikethroughCustomEffectPerItemProps effectId(Long effectId) { - public StrikethroughCustomEffectPerItemProps effectId(Integer effectId) { - this.effectId = effectId; return this; } - /** + /** * ID of the effect. + * * @return effectId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "ID of the effect.") - public Integer getEffectId() { + public Long getEffectId() { return effectId; } - - public void setEffectId(Integer effectId) { + public void setEffectId(Long effectId) { this.effectId = effectId; } - public StrikethroughCustomEffectPerItemProps name(String name) { - + this.name = name; return this; } - /** + /** * The type of the custom effect. + * * @return name - **/ + **/ @ApiModelProperty(example = "my_custom_effect", required = true, value = "The type of the custom effect.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public StrikethroughCustomEffectPerItemProps payload(Object payload) { - + this.payload = payload; return this; } - /** + /** * The JSON payload of the custom effect. + * * @return payload - **/ + **/ @ApiModelProperty(required = true, value = "The JSON payload of the custom effect.") public Object getPayload() { return payload; } - public void setPayload(Object payload) { this.payload = payload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,7 +123,6 @@ public int hashCode() { return Objects.hash(effectId, name, payload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -152,4 +146,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughDebugResponse.java b/src/main/java/one/talon/model/StrikethroughDebugResponse.java index c3addaa2..841375f8 100644 --- a/src/main/java/one/talon/model/StrikethroughDebugResponse.java +++ b/src/main/java/one/talon/model/StrikethroughDebugResponse.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,46 +33,44 @@ public class StrikethroughDebugResponse { public static final String SERIALIZED_NAME_CAMPAIGNS_I_DS = "campaignsIDs"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_I_DS) - private List campaignsIDs = null; + private List campaignsIDs = null; public static final String SERIALIZED_NAME_EFFECTS = "effects"; @SerializedName(SERIALIZED_NAME_EFFECTS) private List effects = null; + public StrikethroughDebugResponse campaignsIDs(List campaignsIDs) { - public StrikethroughDebugResponse campaignsIDs(List campaignsIDs) { - this.campaignsIDs = campaignsIDs; return this; } - public StrikethroughDebugResponse addCampaignsIDsItem(Integer campaignsIDsItem) { + public StrikethroughDebugResponse addCampaignsIDsItem(Long campaignsIDsItem) { if (this.campaignsIDs == null) { - this.campaignsIDs = new ArrayList(); + this.campaignsIDs = new ArrayList(); } this.campaignsIDs.add(campaignsIDsItem); return this; } - /** + /** * The campaign IDs that got fetched for the evaluation process. + * * @return campaignsIDs - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign IDs that got fetched for the evaluation process.") - public List getCampaignsIDs() { + public List getCampaignsIDs() { return campaignsIDs; } - - public void setCampaignsIDs(List campaignsIDs) { + public void setCampaignsIDs(List campaignsIDs) { this.campaignsIDs = campaignsIDs; } - public StrikethroughDebugResponse effects(List effects) { - + this.effects = effects; return this; } @@ -86,10 +83,11 @@ public StrikethroughDebugResponse addEffectsItem(StrikethroughEffect effectsItem return this; } - /** + /** * The strikethrough effects that are returned from the evaluation process. + * * @return effects - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The strikethrough effects that are returned from the evaluation process.") @@ -97,12 +95,10 @@ public List getEffects() { return effects; } - public void setEffects(List effects) { this.effects = effects; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,7 +117,6 @@ public int hashCode() { return Objects.hash(campaignsIDs, effects); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -144,4 +139,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughEffect.java b/src/main/java/one/talon/model/StrikethroughEffect.java index 67d3e502..12799f8c 100644 --- a/src/main/java/one/talon/model/StrikethroughEffect.java +++ b/src/main/java/one/talon/model/StrikethroughEffect.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,15 +32,15 @@ public class StrikethroughEffect { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Integer rulesetId; + private Long rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Integer ruleIndex; + private Long ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -63,149 +62,143 @@ public class StrikethroughEffect { @SerializedName(SERIALIZED_NAME_END_TIME) private OffsetDateTime endTime; + public StrikethroughEffect campaignId(Long campaignId) { - public StrikethroughEffect campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The ID of the campaign that effect belongs to. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "3", required = true, value = "The ID of the campaign that effect belongs to.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } + public StrikethroughEffect rulesetId(Long rulesetId) { - public StrikethroughEffect rulesetId(Integer rulesetId) { - this.rulesetId = rulesetId; return this; } - /** + /** * The ID of the ruleset containing the rule that triggered this effect. + * * @return rulesetId - **/ + **/ @ApiModelProperty(example = "11", required = true, value = "The ID of the ruleset containing the rule that triggered this effect.") - public Integer getRulesetId() { + public Long getRulesetId() { return rulesetId; } - - public void setRulesetId(Integer rulesetId) { + public void setRulesetId(Long rulesetId) { this.rulesetId = rulesetId; } + public StrikethroughEffect ruleIndex(Long ruleIndex) { - public StrikethroughEffect ruleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; return this; } - /** + /** * The position of the rule that triggered this effect within the ruleset. + * * @return ruleIndex - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Integer getRuleIndex() { + public Long getRuleIndex() { return ruleIndex; } - - public void setRuleIndex(Integer ruleIndex) { + public void setRuleIndex(Long ruleIndex) { this.ruleIndex = ruleIndex; } - public StrikethroughEffect ruleName(String ruleName) { - + this.ruleName = ruleName; return this; } - /** + /** * The name of the rule that triggered this effect. + * * @return ruleName - **/ + **/ @ApiModelProperty(example = "Add 2 points", required = true, value = "The name of the rule that triggered this effect.") public String getRuleName() { return ruleName; } - public void setRuleName(String ruleName) { this.ruleName = ruleName; } - public StrikethroughEffect type(String type) { - + this.type = type; return this; } - /** + /** * The type of this effect. + * * @return type - **/ + **/ @ApiModelProperty(example = "setDiscountPerItem", required = true, value = "The type of this effect.") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public StrikethroughEffect props(Object props) { - + this.props = props; return this; } - /** + /** * Get props + * * @return props - **/ + **/ @ApiModelProperty(required = true, value = "") public Object getProps() { return props; } - public void setProps(Object props) { this.props = props; } - public StrikethroughEffect startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * The start of the time frame where the effect is active in UTC. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "The start of the time frame where the effect is active in UTC.") @@ -213,22 +206,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public StrikethroughEffect endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * The end of the time frame where the effect is active in UTC. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-10-01T02:00Z", value = "The end of the time frame where the effect is active in UTC.") @@ -236,12 +228,10 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -266,7 +256,6 @@ public int hashCode() { return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, type, props, startTime, endTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -295,4 +284,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughLabelingNotification.java b/src/main/java/one/talon/model/StrikethroughLabelingNotification.java index c78f3905..47bb3e46 100644 --- a/src/main/java/one/talon/model/StrikethroughLabelingNotification.java +++ b/src/main/java/one/talon/model/StrikethroughLabelingNotification.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -74,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final VersionEnum enumeration) th @Override public VersionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return VersionEnum.fromValue(value); } } @@ -90,15 +89,15 @@ public VersionEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CURRENT_BATCH = "currentBatch"; @SerializedName(SERIALIZED_NAME_CURRENT_BATCH) - private Integer currentBatch; + private Long currentBatch; public static final String SERIALIZED_NAME_TOTAL_BATCHES = "totalBatches"; @SerializedName(SERIALIZED_NAME_TOTAL_BATCHES) - private Integer totalBatches; + private Long totalBatches; public static final String SERIALIZED_NAME_TRIGGER = "trigger"; @SerializedName(SERIALIZED_NAME_TRIGGER) @@ -108,17 +107,17 @@ public VersionEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CHANGED_ITEMS) private List changedItems = new ArrayList(); - public StrikethroughLabelingNotification version(VersionEnum version) { - + this.version = version; return this; } - /** + /** * The version of the strikethrough pricing notification. + * * @return version - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The version of the strikethrough pricing notification.") @@ -126,22 +125,22 @@ public VersionEnum getVersion() { return version; } - public void setVersion(VersionEnum version) { this.version = version; } - public StrikethroughLabelingNotification validFrom(OffsetDateTime validFrom) { - + this.validFrom = validFrom; return this; } - /** - * Timestamp at which the strikethrough pricing update becomes valid. Set for **scheduled** strikethrough pricing updates (version: v2) only. + /** + * Timestamp at which the strikethrough pricing update becomes valid. Set for + * **scheduled** strikethrough pricing updates (version: v2) only. + * * @return validFrom - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp at which the strikethrough pricing update becomes valid. Set for **scheduled** strikethrough pricing updates (version: v2) only. ") @@ -149,102 +148,97 @@ public OffsetDateTime getValidFrom() { return validFrom; } - public void setValidFrom(OffsetDateTime validFrom) { this.validFrom = validFrom; } + public StrikethroughLabelingNotification applicationId(Long applicationId) { - public StrikethroughLabelingNotification applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application to which the catalog items labels belongs. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application to which the catalog items labels belongs.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public StrikethroughLabelingNotification currentBatch(Long currentBatch) { - public StrikethroughLabelingNotification currentBatch(Integer currentBatch) { - this.currentBatch = currentBatch; return this; } - /** - * The batch number of the notification. Notifications might be sent in different batches. + /** + * The batch number of the notification. Notifications might be sent in + * different batches. + * * @return currentBatch - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The batch number of the notification. Notifications might be sent in different batches.") - public Integer getCurrentBatch() { + public Long getCurrentBatch() { return currentBatch; } - - public void setCurrentBatch(Integer currentBatch) { + public void setCurrentBatch(Long currentBatch) { this.currentBatch = currentBatch; } + public StrikethroughLabelingNotification totalBatches(Long totalBatches) { - public StrikethroughLabelingNotification totalBatches(Integer totalBatches) { - this.totalBatches = totalBatches; return this; } - /** + /** * The total number of batches for the notification. + * * @return totalBatches - **/ + **/ @ApiModelProperty(example = "10", required = true, value = "The total number of batches for the notification.") - public Integer getTotalBatches() { + public Long getTotalBatches() { return totalBatches; } - - public void setTotalBatches(Integer totalBatches) { + public void setTotalBatches(Long totalBatches) { this.totalBatches = totalBatches; } - public StrikethroughLabelingNotification trigger(StrikethroughTrigger trigger) { - + this.trigger = trigger; return this; } - /** + /** * Get trigger + * * @return trigger - **/ + **/ @ApiModelProperty(required = true, value = "") public StrikethroughTrigger getTrigger() { return trigger; } - public void setTrigger(StrikethroughTrigger trigger) { this.trigger = trigger; } - public StrikethroughLabelingNotification changedItems(List changedItems) { - + this.changedItems = changedItems; return this; } @@ -254,22 +248,21 @@ public StrikethroughLabelingNotification addChangedItemsItem(StrikethroughChange return this; } - /** + /** * Get changedItems + * * @return changedItems - **/ + **/ @ApiModelProperty(required = true, value = "") public List getChangedItems() { return changedItems; } - public void setChangedItems(List changedItems) { this.changedItems = changedItems; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -293,7 +286,6 @@ public int hashCode() { return Objects.hash(version, validFrom, applicationId, currentBatch, totalBatches, trigger, changedItems); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -321,4 +313,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/StrikethroughTrigger.java b/src/main/java/one/talon/model/StrikethroughTrigger.java index d877a66c..5e5b4796 100644 --- a/src/main/java/one/talon/model/StrikethroughTrigger.java +++ b/src/main/java/one/talon/model/StrikethroughTrigger.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class StrikethroughTrigger { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -45,123 +44,118 @@ public class StrikethroughTrigger { public static final String SERIALIZED_NAME_TOTAL_AFFECTED_ITEMS = "totalAffectedItems"; @SerializedName(SERIALIZED_NAME_TOTAL_AFFECTED_ITEMS) - private Integer totalAffectedItems; + private Long totalAffectedItems; public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) private Object payload; + public StrikethroughTrigger id(Long id) { - public StrikethroughTrigger id(Integer id) { - this.id = id; return this; } - /** + /** * The ID of the event that triggered the strikethrough labeling. + * * @return id - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the event that triggered the strikethrough labeling.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public StrikethroughTrigger type(String type) { - + this.type = type; return this; } - /** + /** * The type of event that triggered the strikethrough labeling. + * * @return type - **/ + **/ @ApiModelProperty(example = "CATALOG_SYNC", required = true, value = "The type of event that triggered the strikethrough labeling.") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public StrikethroughTrigger triggeredAt(OffsetDateTime triggeredAt) { - + this.triggeredAt = triggeredAt; return this; } - /** + /** * The creation time of the event that triggered the strikethrough labeling. + * * @return triggeredAt - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The creation time of the event that triggered the strikethrough labeling.") public OffsetDateTime getTriggeredAt() { return triggeredAt; } - public void setTriggeredAt(OffsetDateTime triggeredAt) { this.triggeredAt = triggeredAt; } + public StrikethroughTrigger totalAffectedItems(Long totalAffectedItems) { - public StrikethroughTrigger totalAffectedItems(Integer totalAffectedItems) { - this.totalAffectedItems = totalAffectedItems; return this; } - /** - * The total number of items affected by the event that triggered the strikethrough labeling. + /** + * The total number of items affected by the event that triggered the + * strikethrough labeling. + * * @return totalAffectedItems - **/ + **/ @ApiModelProperty(example = "1500", required = true, value = "The total number of items affected by the event that triggered the strikethrough labeling.") - public Integer getTotalAffectedItems() { + public Long getTotalAffectedItems() { return totalAffectedItems; } - - public void setTotalAffectedItems(Integer totalAffectedItems) { + public void setTotalAffectedItems(Long totalAffectedItems) { this.totalAffectedItems = totalAffectedItems; } - public StrikethroughTrigger payload(Object payload) { - + this.payload = payload; return this; } - /** + /** * The arbitrary properties associated with this trigger type. + * * @return payload - **/ + **/ @ApiModelProperty(example = "{\"catalogId\":2,\"catalogVersion\":100}", required = true, value = "The arbitrary properties associated with this trigger type.") public Object getPayload() { return payload; } - public void setPayload(Object payload) { this.payload = payload; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,7 +177,6 @@ public int hashCode() { return Objects.hash(id, type, triggeredAt, totalAffectedItems, payload); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java b/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java index 52190fec..73312345 100644 --- a/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java +++ b/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,33 +34,33 @@ public class SummaryCampaignStoreBudget { @JsonAdapter(ActionEnum.Adapter.class) public enum ActionEnum { REDEEMCOUPON("redeemCoupon"), - + REDEEMREFERRAL("redeemReferral"), - + SETDISCOUNT("setDiscount"), - + SETDISCOUNTEFFECT("setDiscountEffect"), - + CREATECOUPON("createCoupon"), - + CREATEREFERRAL("createReferral"), - + CREATELOYALTYPOINTS("createLoyaltyPoints"), - + REDEEMLOYALTYPOINTS("redeemLoyaltyPoints"), - + CUSTOMEFFECT("customEffect"), - + CREATELOYALTYPOINTSEFFECT("createLoyaltyPointsEffect"), - + REDEEMLOYALTYPOINTSEFFECT("redeemLoyaltyPointsEffect"), - + CALLAPI("callApi"), - + AWARDGIVEAWAY("awardGiveaway"), - + ADDFREEITEMEFFECT("addFreeItemEffect"), - + RESERVECOUPON("reserveCoupon"); private String value; @@ -96,7 +95,7 @@ public void write(final JsonWriter jsonWriter, final ActionEnum enumeration) thr @Override public ActionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ActionEnum.fromValue(value); } } @@ -112,13 +111,13 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(PeriodEnum.Adapter.class) public enum PeriodEnum { OVERALL("overall"), - + DAILY("daily"), - + WEEKLY("weekly"), - + MONTHLY("monthly"), - + YEARLY("yearly"); private String value; @@ -153,7 +152,7 @@ public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) thr @Override public PeriodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PeriodEnum.fromValue(value); } } @@ -165,45 +164,44 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STORE_COUNT = "storeCount"; @SerializedName(SERIALIZED_NAME_STORE_COUNT) - private Integer storeCount; + private Long storeCount; public static final String SERIALIZED_NAME_IMPORTED = "imported"; @SerializedName(SERIALIZED_NAME_IMPORTED) private Boolean imported; - public SummaryCampaignStoreBudget action(ActionEnum action) { - + this.action = action; return this; } - /** + /** * Get action + * * @return action - **/ + **/ @ApiModelProperty(required = true, value = "") public ActionEnum getAction() { return action; } - public void setAction(ActionEnum action) { this.action = action; } - public SummaryCampaignStoreBudget period(PeriodEnum period) { - + this.period = period; return this; } - /** + /** * Get period + * * @return period - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -211,56 +209,52 @@ public PeriodEnum getPeriod() { return period; } - public void setPeriod(PeriodEnum period) { this.period = period; } + public SummaryCampaignStoreBudget storeCount(Long storeCount) { - public SummaryCampaignStoreBudget storeCount(Integer storeCount) { - this.storeCount = storeCount; return this; } - /** + /** * Get storeCount + * * @return storeCount - **/ + **/ @ApiModelProperty(required = true, value = "") - public Integer getStoreCount() { + public Long getStoreCount() { return storeCount; } - - public void setStoreCount(Integer storeCount) { + public void setStoreCount(Long storeCount) { this.storeCount = storeCount; } - public SummaryCampaignStoreBudget imported(Boolean imported) { - + this.imported = imported; return this; } - /** + /** * Get imported + * * @return imported - **/ + **/ @ApiModelProperty(required = true, value = "") public Boolean getImported() { return imported; } - public void setImported(Boolean imported) { this.imported = imported; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -281,7 +275,6 @@ public int hashCode() { return Objects.hash(action, period, storeCount, imported); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -306,4 +299,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TalangAttribute.java b/src/main/java/one/talon/model/TalangAttribute.java index d67bdd37..fb488ca3 100644 --- a/src/main/java/one/talon/model/TalangAttribute.java +++ b/src/main/java/one/talon/model/TalangAttribute.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,41 +36,41 @@ public class TalangAttribute { @JsonAdapter(EntityEnum.Adapter.class) public enum EntityEnum { ADVOCATEPROFILE("AdvocateProfile"), - + ACCOUNT("Account"), - + APPLICATION("Application"), - + AWARDEDGIVEAWAY("AwardedGiveaway"), - + BUNDLE("Bundle"), - + CAMPAIGN("Campaign"), - + CARTITEM("CartItem"), - + COUPON("Coupon"), - + CUSTOMERPROFILE("CustomerProfile"), - + CUSTOMERSESSION("CustomerSession"), - + EVENT("Event"), - + ITEM("Item"), - + LOYALTY("Loyalty"), - + PROFILE("Profile"), - + GIVEAWAY("Giveaway"), - + REFERRAL("Referral"), - + SESSION("Session"), - + STORE("Store"), - + ACHIEVEMENTS("Achievements"); private String value; @@ -106,7 +105,7 @@ public void write(final JsonWriter jsonWriter, final EntityEnum enumeration) thr @Override public EntityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EntityEnum.fromValue(value); } } @@ -142,7 +141,7 @@ public EntityEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(KindEnum.Adapter.class) public enum KindEnum { BUILT_IN("built-in"), - + CUSTOM("custom"); private String value; @@ -177,7 +176,7 @@ public void write(final JsonWriter jsonWriter, final KindEnum enumeration) throw @Override public KindEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return KindEnum.fromValue(value); } } @@ -189,23 +188,23 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGNS_COUNT = "campaignsCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_COUNT) - private Integer campaignsCount; + private Long campaignsCount; public static final String SERIALIZED_NAME_EXAMPLE_VALUE = "exampleValue"; @SerializedName(SERIALIZED_NAME_EXAMPLE_VALUE) private List exampleValue = null; - public TalangAttribute entity(EntityEnum entity) { - + this.entity = entity; return this; } - /** + /** * The name of the entity of the attribute. + * * @return entity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the entity of the attribute.") @@ -213,44 +212,46 @@ public EntityEnum getEntity() { return entity; } - public void setEntity(EntityEnum entity) { this.entity = entity; } - public TalangAttribute name(String name) { - + this.name = name; return this; } - /** - * The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. + /** + * The attribute name that will be used in API requests and Talang. E.g. if + * `name == \"region\"` then you would set the + * region attribute by including an `attributes.region` property in + * your request payload. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. ") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public TalangAttribute title(String title) { - + this.title = title; return this; } - /** - * The name of the attribute that is displayed to the user in the Campaign Manager. + /** + * The name of the attribute that is displayed to the user in the Campaign + * Manager. + * * @return title - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The name of the attribute that is displayed to the user in the Campaign Manager.") @@ -258,44 +259,42 @@ public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public TalangAttribute type(String type) { - + this.type = type; return this; } - /** + /** * The talang type of the attribute. + * * @return type - **/ + **/ @ApiModelProperty(required = true, value = "The talang type of the attribute.") public String getType() { return type; } - public void setType(String type) { this.type = type; } - public TalangAttribute description(String description) { - + this.description = description; return this; } - /** + /** * A description of the attribute. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A description of the attribute.") @@ -303,80 +302,75 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public TalangAttribute visible(Boolean visible) { - + this.visible = visible; return this; } - /** + /** * Indicates whether the attribute is visible in the UI or not. + * * @return visible - **/ + **/ @ApiModelProperty(required = true, value = "Indicates whether the attribute is visible in the UI or not.") public Boolean getVisible() { return visible; } - public void setVisible(Boolean visible) { this.visible = visible; } - public TalangAttribute kind(KindEnum kind) { - + this.kind = kind; return this; } - /** + /** * Indicate the kind of the attribute. + * * @return kind - **/ + **/ @ApiModelProperty(required = true, value = "Indicate the kind of the attribute.") public KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { this.kind = kind; } + public TalangAttribute campaignsCount(Long campaignsCount) { - public TalangAttribute campaignsCount(Integer campaignsCount) { - this.campaignsCount = campaignsCount; return this; } - /** + /** * The number of campaigns that refer to the attribute. + * * @return campaignsCount - **/ + **/ @ApiModelProperty(required = true, value = "The number of campaigns that refer to the attribute.") - public Integer getCampaignsCount() { + public Long getCampaignsCount() { return campaignsCount; } - - public void setCampaignsCount(Integer campaignsCount) { + public void setCampaignsCount(Long campaignsCount) { this.campaignsCount = campaignsCount; } - public TalangAttribute exampleValue(List exampleValue) { - + this.exampleValue = exampleValue; return this; } @@ -389,10 +383,11 @@ public TalangAttribute addExampleValueItem(String exampleValueItem) { return this; } - /** + /** * Examples of values that can be assigned to the attribute. + * * @return exampleValue - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Examples of values that can be assigned to the attribute.") @@ -400,12 +395,10 @@ public List getExampleValue() { return exampleValue; } - public void setExampleValue(List exampleValue) { this.exampleValue = exampleValue; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -431,7 +424,6 @@ public int hashCode() { return Objects.hash(entity, name, title, type, description, visible, kind, campaignsCount, exampleValue); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -461,4 +453,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TemplateArgDef.java b/src/main/java/one/talon/model/TemplateArgDef.java index 982f8566..614adce6 100644 --- a/src/main/java/one/talon/model/TemplateArgDef.java +++ b/src/main/java/one/talon/model/TemplateArgDef.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,13 +34,13 @@ public class TemplateArgDef { @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { STRING("string"), - + BOOLEAN("boolean"), - + NUMBER("number"), - + TIME("time"), - + _LIST_STRING_("(list string)"); private String value; @@ -76,7 +75,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -104,45 +103,45 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_PICKLIST_I_D = "picklistID"; @SerializedName(SERIALIZED_NAME_PICKLIST_I_D) - private Integer picklistID; + private Long picklistID; public static final String SERIALIZED_NAME_RESTRICTED_BY_PICKLIST = "restrictedByPicklist"; @SerializedName(SERIALIZED_NAME_RESTRICTED_BY_PICKLIST) private Boolean restrictedByPicklist; - public TemplateArgDef type(TypeEnum type) { - + this.type = type; return this; } - /** + /** * The type of value this argument expects. + * * @return type - **/ + **/ @ApiModelProperty(required = true, value = "The type of value this argument expects.") public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } - public TemplateArgDef description(String description) { - + this.description = description; return this; } - /** - * A campaigner-friendly description of the argument, this will also be shown in the rule editor. + /** + * A campaigner-friendly description of the argument, this will also be shown in + * the rule editor. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A campaigner-friendly description of the argument, this will also be shown in the rule editor.") @@ -150,66 +149,64 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public TemplateArgDef title(String title) { - + this.title = title; return this; } - /** - * A campaigner friendly name for the argument, this will be shown in the rule editor. + /** + * A campaigner friendly name for the argument, this will be shown in the rule + * editor. + * * @return title - **/ + **/ @ApiModelProperty(required = true, value = "A campaigner friendly name for the argument, this will be shown in the rule editor.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public TemplateArgDef ui(Object ui) { - + this.ui = ui; return this; } - /** + /** * Arbitrary metadata that may be used to render an input for this argument. + * * @return ui - **/ + **/ @ApiModelProperty(required = true, value = "Arbitrary metadata that may be used to render an input for this argument.") public Object getUi() { return ui; } - public void setUi(Object ui) { this.ui = ui; } - public TemplateArgDef key(String key) { - + this.key = key; return this; } - /** + /** * The identifier for the associated value within the JSON object. + * * @return key - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The identifier for the associated value within the JSON object.") @@ -217,45 +214,44 @@ public String getKey() { return key; } - public void setKey(String key) { this.key = key; } + public TemplateArgDef picklistID(Long picklistID) { - public TemplateArgDef picklistID(Integer picklistID) { - this.picklistID = picklistID; return this; } - /** + /** * ID of the picklist linked to a template. + * * @return picklistID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "ID of the picklist linked to a template.") - public Integer getPicklistID() { + public Long getPicklistID() { return picklistID; } - - public void setPicklistID(Integer picklistID) { + public void setPicklistID(Long picklistID) { this.picklistID = picklistID; } - public TemplateArgDef restrictedByPicklist(Boolean restrictedByPicklist) { - + this.restrictedByPicklist = restrictedByPicklist; return this; } - /** - * Whether or not this attribute's value is restricted by picklist (`picklist` property) + /** + * Whether or not this attribute's value is restricted by picklist + * (`picklist` property) + * * @return restrictedByPicklist - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether or not this attribute's value is restricted by picklist (`picklist` property)") @@ -263,12 +259,10 @@ public Boolean getRestrictedByPicklist() { return restrictedByPicklist; } - public void setRestrictedByPicklist(Boolean restrictedByPicklist) { this.restrictedByPicklist = restrictedByPicklist; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -292,7 +286,6 @@ public int hashCode() { return Objects.hash(type, description, title, ui, key, picklistID, restrictedByPicklist); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -320,4 +313,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TemplateDef.java b/src/main/java/one/talon/model/TemplateDef.java index 0781766e..f4e759b5 100644 --- a/src/main/java/one/talon/model/TemplateDef.java +++ b/src/main/java/one/talon/model/TemplateDef.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class TemplateDef { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +42,7 @@ public class TemplateDef { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -77,163 +76,156 @@ public class TemplateDef { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public TemplateDef id(Long id) { - public TemplateDef id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public TemplateDef created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public TemplateDef applicationId(Long applicationId) { - public TemplateDef applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The ID of the Application that owns this entity. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public TemplateDef title(String title) { - + this.title = title; return this; } - /** - * Campaigner-friendly name for the template that will be shown in the rule editor. + /** + * Campaigner-friendly name for the template that will be shown in the rule + * editor. + * * @return title - **/ + **/ @ApiModelProperty(required = true, value = "Campaigner-friendly name for the template that will be shown in the rule editor.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public TemplateDef description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the template that will be shown in the rule editor. + * * @return description - **/ + **/ @ApiModelProperty(required = true, value = "A short description of the template that will be shown in the rule editor.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public TemplateDef help(String help) { - + this.help = help; return this; } - /** + /** * Extended help text for the template. + * * @return help - **/ + **/ @ApiModelProperty(required = true, value = "Extended help text for the template.") public String getHelp() { return help; } - public void setHelp(String help) { this.help = help; } - public TemplateDef category(String category) { - + this.category = category; return this; } - /** + /** * Used for grouping templates in the rule editor sidebar. + * * @return category - **/ + **/ @ApiModelProperty(required = true, value = "Used for grouping templates in the rule editor sidebar.") public String getCategory() { return category; } - public void setCategory(String category) { this.category = category; } - public TemplateDef expr(List expr) { - + this.expr = expr; return this; } @@ -243,24 +235,23 @@ public TemplateDef addExprItem(Object exprItem) { return this; } - /** + /** * A Talang expression that contains variable bindings referring to args. + * * @return expr - **/ + **/ @ApiModelProperty(required = true, value = "A Talang expression that contains variable bindings referring to args.") public List getExpr() { return expr; } - public void setExpr(List expr) { this.expr = expr; } - public TemplateDef args(List args) { - + this.args = args; return this; } @@ -270,32 +261,32 @@ public TemplateDef addArgsItem(TemplateArgDef argsItem) { return this; } - /** + /** * An array of argument definitions. + * * @return args - **/ + **/ @ApiModelProperty(required = true, value = "An array of argument definitions.") public List getArgs() { return args; } - public void setArgs(List args) { this.args = args; } - public TemplateDef expose(Boolean expose) { - + this.expose = expose; return this; } - /** + /** * A flag to control exposure in Rule Builder. + * * @return expose - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A flag to control exposure in Rule Builder.") @@ -303,34 +294,31 @@ public Boolean getExpose() { return expose; } - public void setExpose(Boolean expose) { this.expose = expose; } - public TemplateDef name(String name) { - + this.name = name; return this; } - /** + /** * The template name used in Talang. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The template name used in Talang.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -358,7 +346,6 @@ public int hashCode() { return Objects.hash(id, created, applicationId, title, description, help, category, expr, args, expose, name); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -390,4 +377,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Tier.java b/src/main/java/one/talon/model/Tier.java index 0d00ab48..afd2f3dc 100644 --- a/src/main/java/one/talon/model/Tier.java +++ b/src/main/java/one/talon/model/Tier.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class Tier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -47,12 +46,16 @@ public class Tier { private OffsetDateTime expiryDate; /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. */ @JsonAdapter(DowngradePolicyEnum.Adapter.class) public enum DowngradePolicyEnum { ONE_DOWN("one_down"), - + BALANCE_BASED("balance_based"); private String value; @@ -87,7 +90,7 @@ public void write(final JsonWriter jsonWriter, final DowngradePolicyEnum enumera @Override public DowngradePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DowngradePolicyEnum.fromValue(value); } } @@ -97,61 +100,60 @@ public DowngradePolicyEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_DOWNGRADE_POLICY) private DowngradePolicyEnum downgradePolicy; + public Tier id(Long id) { - public Tier id(Integer id) { - this.id = id; return this; } - /** + /** * The internal ID of the tier. + * * @return id - **/ + **/ @ApiModelProperty(example = "11", required = true, value = "The internal ID of the tier.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Tier name(String name) { - + this.name = name; return this; } - /** + /** * The name of the tier. + * * @return name - **/ + **/ @ApiModelProperty(example = "bronze", required = true, value = "The name of the tier.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public Tier startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** - * Date and time when the customer moved to this tier. This value uses the loyalty program's time zone setting. + /** + * Date and time when the customer moved to this tier. This value uses the + * loyalty program's time zone setting. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date and time when the customer moved to this tier. This value uses the loyalty program's time zone setting.") @@ -159,22 +161,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public Tier expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Date when tier level expires in the RFC3339 format (in the Loyalty Program's timezone). + /** + * Date when tier level expires in the RFC3339 format (in the Loyalty + * Program's timezone). + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Date when tier level expires in the RFC3339 format (in the Loyalty Program's timezone).") @@ -182,22 +184,25 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public Tier downgradePolicy(DowngradePolicyEnum downgradePolicy) { - + this.downgradePolicy = downgradePolicy; return this; } - /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + /** + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. + * * @return downgradePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. ") @@ -205,12 +210,10 @@ public DowngradePolicyEnum getDowngradePolicy() { return downgradePolicy; } - public void setDowngradePolicy(DowngradePolicyEnum downgradePolicy) { this.downgradePolicy = downgradePolicy; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -232,7 +235,6 @@ public int hashCode() { return Objects.hash(id, name, startDate, expiryDate, downgradePolicy); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -258,4 +260,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java index 9dbb867a..18641728 100644 --- a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,41 +38,40 @@ public class TierDowngradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public TierDowngradeNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * The name of the notification. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "The name of the notification.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public TierDowngradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") @@ -81,35 +79,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public TierDowngradeNotificationPolicy batchSize(Long batchSize) { - public TierDowngradeNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +125,6 @@ public int hashCode() { return Objects.hash(name, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java index 02abbc87..de94b519 100644 --- a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -39,41 +38,40 @@ public class TierUpgradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; - + private Long batchSize; public TierUpgradeNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * Notification name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public TierUpgradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") @@ -81,35 +79,33 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public TierUpgradeNotificationPolicy batchSize(Long batchSize) { - public TierUpgradeNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,7 +125,6 @@ public int hashCode() { return Objects.hash(name, batchingEnabled, batchSize); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -153,4 +148,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java index b77f07a4..6fca04fb 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -42,45 +41,44 @@ public class TierWillDowngradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Integer batchSize; + private Long batchSize; public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; @SerializedName(SERIALIZED_NAME_TRIGGERS) private List triggers = new ArrayList(); - public TierWillDowngradeNotificationPolicy name(String name) { - + this.name = name; return this; } - /** + /** * The name of the notification. + * * @return name - **/ + **/ @ApiModelProperty(example = "Notification to Google", required = true, value = "The name of the notification.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public TierWillDowngradeNotificationPolicy batchingEnabled(Boolean batchingEnabled) { - + this.batchingEnabled = batchingEnabled; return this; } - /** + /** * Indicates whether batching is activated. + * * @return batchingEnabled - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether batching is activated.") @@ -88,37 +86,35 @@ public Boolean getBatchingEnabled() { return batchingEnabled; } - public void setBatchingEnabled(Boolean batchingEnabled) { this.batchingEnabled = batchingEnabled; } + public TierWillDowngradeNotificationPolicy batchSize(Long batchSize) { - public TierWillDowngradeNotificationPolicy batchSize(Integer batchSize) { - this.batchSize = batchSize; return this; } - /** - * The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. + /** + * The required size of each batch of data. This value applies only when + * `batchingEnabled` is `true`. + * * @return batchSize - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Integer getBatchSize() { + public Long getBatchSize() { return batchSize; } - - public void setBatchSize(Integer batchSize) { + public void setBatchSize(Long batchSize) { this.batchSize = batchSize; } - public TierWillDowngradeNotificationPolicy triggers(List triggers) { - + this.triggers = triggers; return this; } @@ -128,22 +124,21 @@ public TierWillDowngradeNotificationPolicy addTriggersItem(TierWillDowngradeNoti return this; } - /** + /** * Get triggers + * * @return triggers - **/ + **/ @ApiModelProperty(required = true, value = "") public List getTriggers() { return triggers; } - public void setTriggers(List triggers) { this.triggers = triggers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,7 +159,6 @@ public int hashCode() { return Objects.hash(name, batchingEnabled, batchSize, triggers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -189,4 +183,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java b/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java index 672e0694..dfea5848 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,15 +30,16 @@ public class TierWillDowngradeNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Integer amount; + private Long amount; /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. */ @JsonAdapter(PeriodEnum.Adapter.class) public enum PeriodEnum { W("w"), - + D("d"); private String value; @@ -74,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final PeriodEnum enumeration) thr @Override public PeriodEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PeriodEnum.fromValue(value); } } @@ -84,51 +84,49 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PERIOD) private PeriodEnum period; + public TierWillDowngradeNotificationTrigger amount(Long amount) { - public TierWillDowngradeNotificationTrigger amount(Integer amount) { - this.amount = amount; return this; } - /** + /** * The amount of period. + * * @return amount - **/ + **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Integer getAmount() { + public Long getAmount() { return amount; } - - public void setAmount(Integer amount) { + public void setAmount(Long amount) { this.amount = amount; } - public TierWillDowngradeNotificationTrigger period(PeriodEnum period) { - + this.period = period; return this; } - /** - * Notification period indicated by a letter; \"w\" means week, \"d\" means day. + /** + * Notification period indicated by a letter; \"w\" means week, + * \"d\" means day. + * * @return period - **/ + **/ @ApiModelProperty(required = true, value = "Notification period indicated by a letter; \"w\" means week, \"d\" means day.") public PeriodEnum getPeriod() { return period; } - public void setPeriod(PeriodEnum period) { this.period = period; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,7 +145,6 @@ public int hashCode() { return Objects.hash(amount, period); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -170,4 +167,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/TimePoint.java b/src/main/java/one/talon/model/TimePoint.java index 8507c325..16aec81f 100644 --- a/src/main/java/one/talon/model/TimePoint.java +++ b/src/main/java/one/talon/model/TimePoint.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,177 +24,177 @@ import java.io.IOException; /** - * The absolute duration after which the achievement ends and resets for a particular customer profile. **Note**: The duration follows the time zone of the Application this achievement belongs to. + * The absolute duration after which the achievement ends and resets for a + * particular customer profile. **Note**: The duration follows the time zone of + * the Application this achievement belongs to. */ @ApiModel(description = "The absolute duration after which the achievement ends and resets for a particular customer profile. **Note**: The duration follows the time zone of the Application this achievement belongs to. ") public class TimePoint { public static final String SERIALIZED_NAME_MONTH = "month"; @SerializedName(SERIALIZED_NAME_MONTH) - private Integer month; + private Long month; public static final String SERIALIZED_NAME_DAY_OF_MONTH = "dayOfMonth"; @SerializedName(SERIALIZED_NAME_DAY_OF_MONTH) - private Integer dayOfMonth; + private Long dayOfMonth; public static final String SERIALIZED_NAME_DAY_OF_WEEK = "dayOfWeek"; @SerializedName(SERIALIZED_NAME_DAY_OF_WEEK) - private Integer dayOfWeek; + private Long dayOfWeek; public static final String SERIALIZED_NAME_HOUR = "hour"; @SerializedName(SERIALIZED_NAME_HOUR) - private Integer hour; + private Long hour; public static final String SERIALIZED_NAME_MINUTE = "minute"; @SerializedName(SERIALIZED_NAME_MINUTE) - private Integer minute; + private Long minute; public static final String SERIALIZED_NAME_SECOND = "second"; @SerializedName(SERIALIZED_NAME_SECOND) - private Integer second; + private Long second; + public TimePoint month(Long month) { - public TimePoint month(Integer month) { - this.month = month; return this; } - /** - * The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. + /** + * The achievement ends and resets in this month. **Note**: Only applicable if + * the period is set to `Y`. * minimum: 1 * maximum: 12 + * * @return month - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. ") - public Integer getMonth() { + public Long getMonth() { return month; } - - public void setMonth(Integer month) { + public void setMonth(Long month) { this.month = month; } + public TimePoint dayOfMonth(Long dayOfMonth) { - public TimePoint dayOfMonth(Integer dayOfMonth) { - this.dayOfMonth = dayOfMonth; return this; } - /** - * The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. + /** + * The achievement ends and resets on this day of the month. **Note**: Only + * applicable if the period is set to `Y` or `M`. * minimum: 1 * maximum: 31 + * * @return dayOfMonth - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "23", value = "The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. ") - public Integer getDayOfMonth() { + public Long getDayOfMonth() { return dayOfMonth; } - - public void setDayOfMonth(Integer dayOfMonth) { + public void setDayOfMonth(Long dayOfMonth) { this.dayOfMonth = dayOfMonth; } + public TimePoint dayOfWeek(Long dayOfWeek) { - public TimePoint dayOfWeek(Integer dayOfWeek) { - this.dayOfWeek = dayOfWeek; return this; } - /** - * The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. + /** + * The achievement ends and resets on this day of the week. `1` + * represents `Monday` and `7` represents + * `Sunday`. **Note**: Only applicable if the period is set to + * `W`. * minimum: 1 * maximum: 7 + * * @return dayOfWeek - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. ") - public Integer getDayOfWeek() { + public Long getDayOfWeek() { return dayOfWeek; } - - public void setDayOfWeek(Integer dayOfWeek) { + public void setDayOfWeek(Long dayOfWeek) { this.dayOfWeek = dayOfWeek; } + public TimePoint hour(Long hour) { - public TimePoint hour(Integer hour) { - this.hour = hour; return this; } - /** + /** * The achievement ends and resets at this hour. + * * @return hour - **/ + **/ @ApiModelProperty(example = "23", required = true, value = "The achievement ends and resets at this hour.") - public Integer getHour() { + public Long getHour() { return hour; } - - public void setHour(Integer hour) { + public void setHour(Long hour) { this.hour = hour; } + public TimePoint minute(Long minute) { - public TimePoint minute(Integer minute) { - this.minute = minute; return this; } - /** + /** * The achievement ends and resets at this minute. + * * @return minute - **/ + **/ @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this minute.") - public Integer getMinute() { + public Long getMinute() { return minute; } - - public void setMinute(Integer minute) { + public void setMinute(Long minute) { this.minute = minute; } + public TimePoint second(Long second) { - public TimePoint second(Integer second) { - this.second = second; return this; } - /** + /** * The achievement ends and resets at this second. + * * @return second - **/ + **/ @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this second.") - public Integer getSecond() { + public Long getSecond() { return second; } - - public void setSecond(Integer second) { + public void setSecond(Long second) { this.second = second; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,7 +217,6 @@ public int hashCode() { return Objects.hash(month, dayOfMonth, dayOfWeek, hour, minute, second); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -245,4 +243,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateApplication.java b/src/main/java/one/talon/model/UpdateApplication.java index b45ac5f5..8c19b5d2 100644 --- a/src/main/java/one/talon/model/UpdateApplication.java +++ b/src/main/java/one/talon/model/UpdateApplication.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -50,14 +49,15 @@ public class UpdateApplication { private String currency; /** - * The case sensitivity behavior to check coupon codes in the campaigns of this Application. + * The case sensitivity behavior to check coupon codes in the campaigns of this + * Application. */ @JsonAdapter(CaseSensitivityEnum.Adapter.class) public enum CaseSensitivityEnum { SENSITIVE("sensitive"), - + INSENSITIVE_UPPERCASE("insensitive-uppercase"), - + INSENSITIVE_LOWERCASE("insensitive-lowercase"); private String value; @@ -92,7 +92,7 @@ public void write(final JsonWriter jsonWriter, final CaseSensitivityEnum enumera @Override public CaseSensitivityEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CaseSensitivityEnum.fromValue(value); } } @@ -111,14 +111,15 @@ public CaseSensitivityEnum read(final JsonReader jsonReader) throws IOException private List limits = null; /** - * The default scope to apply `setDiscount` effects on if no scope was provided with the effect. + * The default scope to apply `setDiscount` effects on if no scope was + * provided with the effect. */ @JsonAdapter(DefaultDiscountScopeEnum.Adapter.class) public enum DefaultDiscountScopeEnum { SESSIONTOTAL("sessionTotal"), - + CARTITEMS("cartItems"), - + ADDITIONALCOSTS("additionalCosts"); private String value; @@ -153,7 +154,7 @@ public void write(final JsonWriter jsonWriter, final DefaultDiscountScopeEnum en @Override public DefaultDiscountScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DefaultDiscountScopeEnum.fromValue(value); } } @@ -184,14 +185,15 @@ public DefaultDiscountScopeEnum read(final JsonReader jsonReader) throws IOExcep private Boolean enablePartialDiscounts; /** - * The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. + * The default scope to apply `setDiscountPerItem` effects on if no + * scope was provided with the effect. */ @JsonAdapter(DefaultDiscountAdditionalCostPerItemScopeEnum.Adapter.class) public enum DefaultDiscountAdditionalCostPerItemScopeEnum { PRICE("price"), - + ITEMTOTAL("itemTotal"), - + ADDITIONALCOSTS("additionalCosts"); private String value; @@ -220,13 +222,14 @@ public static DefaultDiscountAdditionalCostPerItemScopeEnum fromValue(String val public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DefaultDiscountAdditionalCostPerItemScopeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DefaultDiscountAdditionalCostPerItemScopeEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DefaultDiscountAdditionalCostPerItemScopeEnum.fromValue(value); } } @@ -238,49 +241,48 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR public static final String SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID = "defaultEvaluationGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID) - private Integer defaultEvaluationGroupId; + private Long defaultEvaluationGroupId; public static final String SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID = "defaultCartItemFilterId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID) - private Integer defaultCartItemFilterId; + private Long defaultCartItemFilterId; public static final String SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT = "enableCampaignStateManagement"; @SerializedName(SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT) private Boolean enableCampaignStateManagement; - public UpdateApplication name(String name) { - + this.name = name; return this; } - /** + /** * The name of this application. + * * @return name - **/ + **/ @ApiModelProperty(example = "My Application", required = true, value = "The name of this application.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateApplication description(String description) { - + this.description = description; return this; } - /** + /** * A longer description of the application. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A test Application", value = "A longer description of the application.") @@ -288,66 +290,64 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateApplication timezone(String timezone) { - + this.timezone = timezone; return this; } - /** + /** * A string containing an IANA timezone descriptor. + * * @return timezone - **/ + **/ @ApiModelProperty(example = "Europe/Berlin", required = true, value = "A string containing an IANA timezone descriptor.") public String getTimezone() { return timezone; } - public void setTimezone(String timezone) { this.timezone = timezone; } - public UpdateApplication currency(String currency) { - + this.currency = currency; return this; } - /** + /** * The default currency for new customer sessions. + * * @return currency - **/ + **/ @ApiModelProperty(example = "EUR", required = true, value = "The default currency for new customer sessions.") public String getCurrency() { return currency; } - public void setCurrency(String currency) { this.currency = currency; } - public UpdateApplication caseSensitivity(CaseSensitivityEnum caseSensitivity) { - + this.caseSensitivity = caseSensitivity; return this; } - /** - * The case sensitivity behavior to check coupon codes in the campaigns of this Application. + /** + * The case sensitivity behavior to check coupon codes in the campaigns of this + * Application. + * * @return caseSensitivity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sensitive", value = "The case sensitivity behavior to check coupon codes in the campaigns of this Application.") @@ -355,22 +355,21 @@ public CaseSensitivityEnum getCaseSensitivity() { return caseSensitivity; } - public void setCaseSensitivity(CaseSensitivityEnum caseSensitivity) { this.caseSensitivity = caseSensitivity; } - public UpdateApplication attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this campaign.") @@ -378,14 +377,12 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public UpdateApplication limits(List limits) { - + this.limits = limits; return this; } @@ -398,10 +395,11 @@ public UpdateApplication addLimitsItem(LimitConfig limitsItem) { return this; } - /** + /** * Default limits for campaigns created in this application. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Default limits for campaigns created in this application.") @@ -409,22 +407,22 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public UpdateApplication defaultDiscountScope(DefaultDiscountScopeEnum defaultDiscountScope) { - + this.defaultDiscountScope = defaultDiscountScope; return this; } - /** - * The default scope to apply `setDiscount` effects on if no scope was provided with the effect. + /** + * The default scope to apply `setDiscount` effects on if no scope was + * provided with the effect. + * * @return defaultDiscountScope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "sessionTotal", value = "The default scope to apply `setDiscount` effects on if no scope was provided with the effect. ") @@ -432,22 +430,21 @@ public DefaultDiscountScopeEnum getDefaultDiscountScope() { return defaultDiscountScope; } - public void setDefaultDiscountScope(DefaultDiscountScopeEnum defaultDiscountScope) { this.defaultDiscountScope = defaultDiscountScope; } - public UpdateApplication enableCascadingDiscounts(Boolean enableCascadingDiscounts) { - + this.enableCascadingDiscounts = enableCascadingDiscounts; return this; } - /** + /** * Indicates if discounts should cascade for this Application. + * * @return enableCascadingDiscounts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if discounts should cascade for this Application.") @@ -455,22 +452,22 @@ public Boolean getEnableCascadingDiscounts() { return enableCascadingDiscounts; } - public void setEnableCascadingDiscounts(Boolean enableCascadingDiscounts) { this.enableCascadingDiscounts = enableCascadingDiscounts; } - public UpdateApplication enableFlattenedCartItems(Boolean enableFlattenedCartItems) { - + this.enableFlattenedCartItems = enableFlattenedCartItems; return this; } - /** - * Indicates if cart items of quantity larger than one should be separated into different items of quantity one. + /** + * Indicates if cart items of quantity larger than one should be separated into + * different items of quantity one. + * * @return enableFlattenedCartItems - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if cart items of quantity larger than one should be separated into different items of quantity one. ") @@ -478,22 +475,21 @@ public Boolean getEnableFlattenedCartItems() { return enableFlattenedCartItems; } - public void setEnableFlattenedCartItems(Boolean enableFlattenedCartItems) { this.enableFlattenedCartItems = enableFlattenedCartItems; } - public UpdateApplication attributesSettings(AttributesSettings attributesSettings) { - + this.attributesSettings = attributesSettings; return this; } - /** + /** * Get attributesSettings + * * @return attributesSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -501,22 +497,21 @@ public AttributesSettings getAttributesSettings() { return attributesSettings; } - public void setAttributesSettings(AttributesSettings attributesSettings) { this.attributesSettings = attributesSettings; } - public UpdateApplication sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** + /** * Indicates if this is a live or sandbox Application. + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if this is a live or sandbox Application.") @@ -524,22 +519,21 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public UpdateApplication enablePartialDiscounts(Boolean enablePartialDiscounts) { - + this.enablePartialDiscounts = enablePartialDiscounts; return this; } - /** + /** * Indicates if this Application supports partial discounts. + * * @return enablePartialDiscounts - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates if this Application supports partial discounts.") @@ -547,22 +541,23 @@ public Boolean getEnablePartialDiscounts() { return enablePartialDiscounts; } - public void setEnablePartialDiscounts(Boolean enablePartialDiscounts) { this.enablePartialDiscounts = enablePartialDiscounts; } + public UpdateApplication defaultDiscountAdditionalCostPerItemScope( + DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { - public UpdateApplication defaultDiscountAdditionalCostPerItemScope(DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { - this.defaultDiscountAdditionalCostPerItemScope = defaultDiscountAdditionalCostPerItemScope; return this; } - /** - * The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. + /** + * The default scope to apply `setDiscountPerItem` effects on if no + * scope was provided with the effect. + * * @return defaultDiscountAdditionalCostPerItemScope - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "price", value = "The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. ") @@ -570,68 +565,69 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum getDefaultDiscountAdditiona return defaultDiscountAdditionalCostPerItemScope; } - - public void setDefaultDiscountAdditionalCostPerItemScope(DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { + public void setDefaultDiscountAdditionalCostPerItemScope( + DefaultDiscountAdditionalCostPerItemScopeEnum defaultDiscountAdditionalCostPerItemScope) { this.defaultDiscountAdditionalCostPerItemScope = defaultDiscountAdditionalCostPerItemScope; } + public UpdateApplication defaultEvaluationGroupId(Long defaultEvaluationGroupId) { - public UpdateApplication defaultEvaluationGroupId(Integer defaultEvaluationGroupId) { - this.defaultEvaluationGroupId = defaultEvaluationGroupId; return this; } - /** - * The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. + /** + * The ID of the default campaign evaluation group to which new campaigns will + * be added unless a different group is selected when creating the campaign. + * * @return defaultEvaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.") - public Integer getDefaultEvaluationGroupId() { + public Long getDefaultEvaluationGroupId() { return defaultEvaluationGroupId; } - - public void setDefaultEvaluationGroupId(Integer defaultEvaluationGroupId) { + public void setDefaultEvaluationGroupId(Long defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; } + public UpdateApplication defaultCartItemFilterId(Long defaultCartItemFilterId) { - public UpdateApplication defaultCartItemFilterId(Integer defaultCartItemFilterId) { - this.defaultCartItemFilterId = defaultCartItemFilterId; return this; } - /** + /** * The ID of the default Cart-Item-Filter for this application. + * * @return defaultCartItemFilterId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default Cart-Item-Filter for this application.") - public Integer getDefaultCartItemFilterId() { + public Long getDefaultCartItemFilterId() { return defaultCartItemFilterId; } - - public void setDefaultCartItemFilterId(Integer defaultCartItemFilterId) { + public void setDefaultCartItemFilterId(Long defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; } - public UpdateApplication enableCampaignStateManagement(Boolean enableCampaignStateManagement) { - + this.enableCampaignStateManagement = enableCampaignStateManagement; return this; } - /** - * Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. + /** + * Indicates whether the campaign staging and revisions feature is enabled for + * the Application. **Important:** After this feature is enabled, it cannot be + * disabled. + * * @return enableCampaignStateManagement - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. ") @@ -639,12 +635,10 @@ public Boolean getEnableCampaignStateManagement() { return enableCampaignStateManagement; } - public void setEnableCampaignStateManagement(Boolean enableCampaignStateManagement) { this.enableCampaignStateManagement = enableCampaignStateManagement; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -667,7 +661,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.attributesSettings, updateApplication.attributesSettings) && Objects.equals(this.sandbox, updateApplication.sandbox) && Objects.equals(this.enablePartialDiscounts, updateApplication.enablePartialDiscounts) && - Objects.equals(this.defaultDiscountAdditionalCostPerItemScope, updateApplication.defaultDiscountAdditionalCostPerItemScope) && + Objects.equals(this.defaultDiscountAdditionalCostPerItemScope, + updateApplication.defaultDiscountAdditionalCostPerItemScope) + && Objects.equals(this.defaultEvaluationGroupId, updateApplication.defaultEvaluationGroupId) && Objects.equals(this.defaultCartItemFilterId, updateApplication.defaultCartItemFilterId) && Objects.equals(this.enableCampaignStateManagement, updateApplication.enableCampaignStateManagement); @@ -675,10 +671,12 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, timezone, currency, caseSensitivity, attributes, limits, defaultDiscountScope, enableCascadingDiscounts, enableFlattenedCartItems, attributesSettings, sandbox, enablePartialDiscounts, defaultDiscountAdditionalCostPerItemScope, defaultEvaluationGroupId, defaultCartItemFilterId, enableCampaignStateManagement); + return Objects.hash(name, description, timezone, currency, caseSensitivity, attributes, limits, + defaultDiscountScope, enableCascadingDiscounts, enableFlattenedCartItems, attributesSettings, sandbox, + enablePartialDiscounts, defaultDiscountAdditionalCostPerItemScope, defaultEvaluationGroupId, + defaultCartItemFilterId, enableCampaignStateManagement); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -696,10 +694,12 @@ public String toString() { sb.append(" attributesSettings: ").append(toIndentedString(attributesSettings)).append("\n"); sb.append(" sandbox: ").append(toIndentedString(sandbox)).append("\n"); sb.append(" enablePartialDiscounts: ").append(toIndentedString(enablePartialDiscounts)).append("\n"); - sb.append(" defaultDiscountAdditionalCostPerItemScope: ").append(toIndentedString(defaultDiscountAdditionalCostPerItemScope)).append("\n"); + sb.append(" defaultDiscountAdditionalCostPerItemScope: ") + .append(toIndentedString(defaultDiscountAdditionalCostPerItemScope)).append("\n"); sb.append(" defaultEvaluationGroupId: ").append(toIndentedString(defaultEvaluationGroupId)).append("\n"); sb.append(" defaultCartItemFilterId: ").append(toIndentedString(defaultCartItemFilterId)).append("\n"); - sb.append(" enableCampaignStateManagement: ").append(toIndentedString(enableCampaignStateManagement)).append("\n"); + sb.append(" enableCampaignStateManagement: ").append(toIndentedString(enableCampaignStateManagement)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -716,4 +716,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateApplicationAPIKey.java b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java index 2e95e699..042ad89e 100644 --- a/src/main/java/one/talon/model/UpdateApplicationAPIKey.java +++ b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,31 @@ public class UpdateApplicationAPIKey { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Integer timeOffset; + private Long timeOffset; + public UpdateApplicationAPIKey timeOffset(Long timeOffset) { - public UpdateApplicationAPIKey timeOffset(Integer timeOffset) { - this.timeOffset = timeOffset; return this; } - /** - * A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. + /** + * A time offset in nanoseconds associated with the API key. When making a + * request using the API key, rule evaluation is based on a date that is + * calculated by adding the offset to the current date. + * * @return timeOffset - **/ + **/ @ApiModelProperty(example = "100000", required = true, value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Integer getTimeOffset() { + public Long getTimeOffset() { return timeOffset; } - - public void setTimeOffset(Integer timeOffset) { + public void setTimeOffset(Long timeOffset) { this.timeOffset = timeOffset; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +72,6 @@ public int hashCode() { return Objects.hash(timeOffset); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +93,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateApplicationCIF.java b/src/main/java/one/talon/model/UpdateApplicationCIF.java index 9e53815e..b1ad9607 100644 --- a/src/main/java/one/talon/model/UpdateApplicationCIF.java +++ b/src/main/java/one/talon/model/UpdateApplicationCIF.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,27 +35,27 @@ public class UpdateApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Integer activeExpressionId; + private Long activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Integer modifiedBy; + private Long modifiedBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) private OffsetDateTime modified; - public UpdateApplicationCIF description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the Application cart item filter. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This filter allows filtering by shoes", value = "A short description of the Application cart item filter.") @@ -64,68 +63,65 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public UpdateApplicationCIF activeExpressionId(Long activeExpressionId) { - public UpdateApplicationCIF activeExpressionId(Integer activeExpressionId) { - this.activeExpressionId = activeExpressionId; return this; } - /** + /** * The ID of the expression that the Application cart item filter uses. + * * @return activeExpressionId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Integer getActiveExpressionId() { + public Long getActiveExpressionId() { return activeExpressionId; } - - public void setActiveExpressionId(Integer activeExpressionId) { + public void setActiveExpressionId(Long activeExpressionId) { this.activeExpressionId = activeExpressionId; } + public UpdateApplicationCIF modifiedBy(Long modifiedBy) { - public UpdateApplicationCIF modifiedBy(Integer modifiedBy) { - this.modifiedBy = modifiedBy; return this; } - /** + /** * The ID of the user who last updated the Application cart item filter. + * * @return modifiedBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Integer getModifiedBy() { + public Long getModifiedBy() { return modifiedBy; } - - public void setModifiedBy(Integer modifiedBy) { + public void setModifiedBy(Long modifiedBy) { this.modifiedBy = modifiedBy; } - public UpdateApplicationCIF modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * Timestamp of the most recent update to the Application cart item filter. + * * @return modified - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Timestamp of the most recent update to the Application cart item filter.") @@ -133,12 +129,10 @@ public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,7 +153,6 @@ public int hashCode() { return Objects.hash(description, activeExpressionId, modifiedBy, modified); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -184,4 +177,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCampaign.java b/src/main/java/one/talon/model/UpdateCampaign.java index 626f588a..7a5c47b1 100644 --- a/src/main/java/one/talon/model/UpdateCampaign.java +++ b/src/main/java/one/talon/model/UpdateCampaign.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -55,14 +54,14 @@ public class UpdateCampaign { private Object attributes; /** - * A disabled or archived campaign is not evaluated for rules or coupons. + * A disabled or archived campaign is not evaluated for rules or coupons. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { ENABLED("enabled"), - + DISABLED("disabled"), - + ARCHIVED("archived"); private String value; @@ -97,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -109,7 +108,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -121,15 +120,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -164,7 +163,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -188,19 +187,21 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Integer evaluationGroupId; + private Long evaluationGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -235,7 +236,7 @@ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throw @Override public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -247,41 +248,40 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; - + private List linkedStoreIds = null; public UpdateCampaign name(String name) { - + this.name = name; return this; } - /** + /** * A user-facing name for this campaign. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer promotions", required = true, value = "A user-facing name for this campaign.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateCampaign description(String description) { - + this.description = description; return this; } - /** + /** * A detailed description of the campaign. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign for all summer 2021 promotions", value = "A detailed description of the campaign.") @@ -289,22 +289,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateCampaign startTime(OffsetDateTime startTime) { - + this.startTime = startTime; return this; } - /** + /** * Timestamp when the campaign will become active. + * * @return startTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "Timestamp when the campaign will become active.") @@ -312,22 +311,21 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } - public UpdateCampaign endTime(OffsetDateTime endTime) { - + this.endTime = endTime; return this; } - /** + /** * Timestamp when the campaign will become inactive. + * * @return endTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-10-01T02:00Z", value = "Timestamp when the campaign will become inactive.") @@ -335,22 +333,21 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } - public UpdateCampaign attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this campaign. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{\"myattribute\":20}", value = "Arbitrary properties associated with this campaign.") @@ -358,22 +355,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public UpdateCampaign state(StateEnum state) { - + this.state = state; return this; } - /** - * A disabled or archived campaign is not evaluated for rules or coupons. + /** + * A disabled or archived campaign is not evaluated for rules or coupons. + * * @return state - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "disabled", value = "A disabled or archived campaign is not evaluated for rules or coupons. ") @@ -381,37 +377,35 @@ public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public UpdateCampaign activeRulesetId(Long activeRulesetId) { - public UpdateCampaign activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** - * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. + /** + * [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) + * this campaign applies on customer session evaluation. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public UpdateCampaign tags(List tags) { - + this.tags = tags; return this; } @@ -421,24 +415,23 @@ public UpdateCampaign addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign. + * * @return tags - **/ + **/ @ApiModelProperty(example = "[Summer, Shoes]", required = true, value = "A list of tags for the campaign.") public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public UpdateCampaign features(List features) { - + this.features = features; return this; } @@ -448,32 +441,32 @@ public UpdateCampaign addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign. + * * @return features - **/ + **/ @ApiModelProperty(example = "[coupons, loyalty]", required = true, value = "A list of features for the campaign.") public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public UpdateCampaign couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -481,22 +474,21 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } - public UpdateCampaign referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -504,14 +496,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public UpdateCampaign limits(List limits) { - + this.limits = limits; return this; } @@ -521,86 +511,88 @@ public UpdateCampaign addLimitsItem(LimitConfig limitsItem) { return this; } - /** + /** * The set of limits that will operate for this campaign. + * * @return limits - **/ + **/ @ApiModelProperty(required = true, value = "The set of limits that will operate for this campaign.") public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } + public UpdateCampaign campaignGroups(List campaignGroups) { - public UpdateCampaign campaignGroups(List campaignGroups) { - this.campaignGroups = campaignGroups; return this; } - public UpdateCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { + public UpdateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; } - /** - * The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. + /** + * The IDs of the [campaign + * groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) + * this campaign belongs to. + * * @return campaignGroups - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } + public UpdateCampaign evaluationGroupId(Long evaluationGroupId) { - public UpdateCampaign evaluationGroupId(Integer evaluationGroupId) { - this.evaluationGroupId = evaluationGroupId; return this; } - /** + /** * The ID of the campaign evaluation group the campaign belongs to. + * * @return evaluationGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Integer getEvaluationGroupId() { + public Long getEvaluationGroupId() { return evaluationGroupId; } - - public void setEvaluationGroupId(Integer evaluationGroupId) { + public void setEvaluationGroupId(Long evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - public UpdateCampaign type(TypeEnum type) { - + this.type = type; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return type - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "advanced", value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") @@ -608,43 +600,47 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { this.type = type; } + public UpdateCampaign linkedStoreIds(List linkedStoreIds) { - public UpdateCampaign linkedStoreIds(List linkedStoreIds) { - this.linkedStoreIds = linkedStoreIds; return this; } - public UpdateCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { + public UpdateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; } - /** - * A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. + /** + * A list of store IDs that you want to link to the campaign. **Note:** - + * Campaigns with linked store IDs will only be evaluated when there is a + * [customer session + * update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * that references a linked store. - If you linked stores to the campaign by + * uploading a CSV file, you cannot use this property and it should be empty. - + * Use of this property is limited to 50 stores. To link more than 50 stores, + * upload them via a CSV file. + * * @return linkedStoreIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -674,10 +670,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); + return Objects.hash(name, description, startTime, endTime, attributes, state, activeRulesetId, tags, features, + couponSettings, referralSettings, limits, campaignGroups, evaluationGroupId, type, linkedStoreIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -714,4 +710,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java b/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java index f31e308d..f88fbce6 100644 --- a/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class UpdateCampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Integer parentId; + private Long parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -47,11 +46,11 @@ public class UpdateCampaignEvaluationGroup { @JsonAdapter(EvaluationModeEnum.Adapter.class) public enum EvaluationModeEnum { STACKABLE("stackable"), - + LISTORDER("listOrder"), - + LOWESTDISCOUNT("lowestDiscount"), - + HIGHESTDISCOUNT("highestDiscount"); private String value; @@ -86,7 +85,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationModeEnum enumerat @Override public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationModeEnum.fromValue(value); } } @@ -102,7 +101,7 @@ public EvaluationModeEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(EvaluationScopeEnum.Adapter.class) public enum EvaluationScopeEnum { CARTITEM("cartItem"), - + SESSION("session"); private String value; @@ -137,7 +136,7 @@ public void write(final JsonWriter jsonWriter, final EvaluationScopeEnum enumera @Override public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EvaluationScopeEnum.fromValue(value); } } @@ -151,62 +150,60 @@ public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_LOCKED) private Boolean locked; - public UpdateCampaignEvaluationGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign evaluation group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Summer campaigns", required = true, value = "The name of the campaign evaluation group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } + public UpdateCampaignEvaluationGroup parentId(Long parentId) { - public UpdateCampaignEvaluationGroup parentId(Integer parentId) { - this.parentId = parentId; return this; } - /** + /** * The ID of the parent group that contains the campaign evaluation group. * minimum: 1 + * * @return parentId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Integer getParentId() { + public Long getParentId() { return parentId; } - - public void setParentId(Integer parentId) { + public void setParentId(Long parentId) { this.parentId = parentId; } - public UpdateCampaignEvaluationGroup description(String description) { - + this.description = description; return this; } - /** + /** * A description of the campaign evaluation group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "This campaign evaluation group contains all campaigns that are running in the summer.", value = "A description of the campaign evaluation group.") @@ -214,78 +211,74 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateCampaignEvaluationGroup evaluationMode(EvaluationModeEnum evaluationMode) { - + this.evaluationMode = evaluationMode; return this; } - /** + /** * The mode by which campaigns in the campaign evaluation group are evaluated. + * * @return evaluationMode - **/ + **/ @ApiModelProperty(required = true, value = "The mode by which campaigns in the campaign evaluation group are evaluated.") public EvaluationModeEnum getEvaluationMode() { return evaluationMode; } - public void setEvaluationMode(EvaluationModeEnum evaluationMode) { this.evaluationMode = evaluationMode; } - public UpdateCampaignEvaluationGroup evaluationScope(EvaluationScopeEnum evaluationScope) { - + this.evaluationScope = evaluationScope; return this; } - /** + /** * The evaluation scope of the campaign evaluation group. + * * @return evaluationScope - **/ + **/ @ApiModelProperty(required = true, value = "The evaluation scope of the campaign evaluation group.") public EvaluationScopeEnum getEvaluationScope() { return evaluationScope; } - public void setEvaluationScope(EvaluationScopeEnum evaluationScope) { this.evaluationScope = evaluationScope; } - public UpdateCampaignEvaluationGroup locked(Boolean locked) { - + this.locked = locked; return this; } - /** - * An indicator of whether the campaign evaluation group is locked for modification. + /** + * An indicator of whether the campaign evaluation group is locked for + * modification. + * * @return locked - **/ + **/ @ApiModelProperty(example = "false", required = true, value = "An indicator of whether the campaign evaluation group is locked for modification.") public Boolean getLocked() { return locked; } - public void setLocked(Boolean locked) { this.locked = locked; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -308,7 +301,6 @@ public int hashCode() { return Objects.hash(name, parentId, description, evaluationMode, evaluationScope, locked); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -335,4 +327,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCampaignGroup.java b/src/main/java/one/talon/model/UpdateCampaignGroup.java index 19c3e545..8fa3d152 100644 --- a/src/main/java/one/talon/model/UpdateCampaignGroup.java +++ b/src/main/java/one/talon/model/UpdateCampaignGroup.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,45 +40,44 @@ public class UpdateCampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; - + private List campaignIds = null; public UpdateCampaignGroup name(String name) { - + this.name = name; return this; } - /** + /** * The name of the campaign access group. + * * @return name - **/ + **/ @ApiModelProperty(example = "Europe access group", required = true, value = "The name of the campaign access group.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateCampaignGroup description(String description) { - + this.description = description; return this; } - /** + /** * A longer description of the campaign access group. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A group that gives access to all the campaigns for the Europe market.", value = "A longer description of the campaign access group.") @@ -87,74 +85,71 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public UpdateCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - public UpdateCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public UpdateCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** - * A list of IDs of the Applications that this campaign access group is enabled for. + /** + * A list of IDs of the Applications that this campaign access group is enabled + * for. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } + public UpdateCampaignGroup campaignIds(List campaignIds) { - public UpdateCampaignGroup campaignIds(List campaignIds) { - this.campaignIds = campaignIds; return this; } - public UpdateCampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { + public UpdateCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; } - /** + /** * A list of IDs of the campaigns that are part of the campaign access group. + * * @return campaignIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,7 +170,6 @@ public int hashCode() { return Objects.hash(name, description, subscribedApplicationsIds, campaignIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -200,4 +194,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCampaignTemplate.java b/src/main/java/one/talon/model/UpdateCampaignTemplate.java index a65f7d62..420ee38b 100644 --- a/src/main/java/one/talon/model/UpdateCampaignTemplate.java +++ b/src/main/java/one/talon/model/UpdateCampaignTemplate.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -57,14 +56,15 @@ public class UpdateCampaignTemplate { private Object couponAttributes; /** - * Only campaign templates in 'available' state may be used to create campaigns. + * Only campaign templates in 'available' state may be used to create + * campaigns. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { DRAFT("draft"), - + ENABLED("enabled"), - + DISABLED("disabled"); private String value; @@ -99,7 +99,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -111,7 +111,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Integer activeRulesetId; + private Long activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -123,15 +123,15 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @JsonAdapter(FeaturesEnum.Adapter.class) public enum FeaturesEnum { COUPONS("coupons"), - + REFERRALS("referrals"), - + LOYALTY("loyalty"), - + GIVEAWAYS("giveaways"), - + STRIKETHROUGH("strikethrough"), - + ACHIEVEMENTS("achievements"); private String value; @@ -166,7 +166,7 @@ public void write(final JsonWriter jsonWriter, final FeaturesEnum enumeration) t @Override public FeaturesEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return FeaturesEnum.fromValue(value); } } @@ -198,7 +198,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATIONS_IDS = "applicationsIds"; @SerializedName(SERIALIZED_NAME_APPLICATIONS_IDS) - private List applicationsIds = new ArrayList(); + private List applicationsIds = new ArrayList(); public static final String SERIALIZED_NAME_CAMPAIGN_COLLECTIONS = "campaignCollections"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_COLLECTIONS) @@ -206,15 +206,17 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Integer defaultCampaignGroupId; + private Long defaultCampaignGroupId; /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. */ @JsonAdapter(CampaignTypeEnum.Adapter.class) public enum CampaignTypeEnum { CARTITEM("cartItem"), - + ADVANCED("advanced"); private String value; @@ -249,7 +251,7 @@ public void write(final JsonWriter jsonWriter, final CampaignTypeEnum enumeratio @Override public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return CampaignTypeEnum.fromValue(value); } } @@ -259,83 +261,84 @@ public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CAMPAIGN_TYPE) private CampaignTypeEnum campaignType = CampaignTypeEnum.ADVANCED; - public UpdateCampaignTemplate name(String name) { - + this.name = name; return this; } - /** + /** * The campaign template name. + * * @return name - **/ + **/ @ApiModelProperty(example = "Discount campaign", required = true, value = "The campaign template name.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateCampaignTemplate description(String description) { - + this.description = description; return this; } - /** + /** * Customer-facing text that explains the objective of the template. + * * @return description - **/ + **/ @ApiModelProperty(example = "This is a template for a discount campaign.", required = true, value = "Customer-facing text that explains the objective of the template.") public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateCampaignTemplate instructions(String instructions) { - + this.instructions = instructions; return this; } - /** - * Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign. + /** + * Customer-facing text that explains how to use the template. For example, you + * can use this property to explain the available attributes of this template, + * and how they can be modified when a user uses this template to create a new + * campaign. + * * @return instructions - **/ + **/ @ApiModelProperty(example = "Use this template for discount campaigns. Set the campaign properties according to the campaign goals, and don't forget to set an end date.", required = true, value = "Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign.") public String getInstructions() { return instructions; } - public void setInstructions(String instructions) { this.instructions = instructions; } - public UpdateCampaignTemplate campaignAttributes(Object campaignAttributes) { - + this.campaignAttributes = campaignAttributes; return this; } - /** - * The campaign attributes that campaigns created from this template will have by default. + /** + * The campaign attributes that campaigns created from this template will have + * by default. + * * @return campaignAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that campaigns created from this template will have by default.") @@ -343,22 +346,22 @@ public Object getCampaignAttributes() { return campaignAttributes; } - public void setCampaignAttributes(Object campaignAttributes) { this.campaignAttributes = campaignAttributes; } - public UpdateCampaignTemplate couponAttributes(Object couponAttributes) { - + this.couponAttributes = couponAttributes; return this; } - /** - * The campaign attributes that coupons created from this template will have by default. + /** + * The campaign attributes that coupons created from this template will have by + * default. + * * @return couponAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign attributes that coupons created from this template will have by default.") @@ -366,59 +369,56 @@ public Object getCouponAttributes() { return couponAttributes; } - public void setCouponAttributes(Object couponAttributes) { this.couponAttributes = couponAttributes; } - public UpdateCampaignTemplate state(StateEnum state) { - + this.state = state; return this; } - /** - * Only campaign templates in 'available' state may be used to create campaigns. + /** + * Only campaign templates in 'available' state may be used to create + * campaigns. + * * @return state - **/ + **/ @ApiModelProperty(required = true, value = "Only campaign templates in 'available' state may be used to create campaigns.") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } + public UpdateCampaignTemplate activeRulesetId(Long activeRulesetId) { - public UpdateCampaignTemplate activeRulesetId(Integer activeRulesetId) { - this.activeRulesetId = activeRulesetId; return this; } - /** + /** * The ID of the ruleset this campaign template will use. + * * @return activeRulesetId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Integer getActiveRulesetId() { + public Long getActiveRulesetId() { return activeRulesetId; } - - public void setActiveRulesetId(Integer activeRulesetId) { + public void setActiveRulesetId(Long activeRulesetId) { this.activeRulesetId = activeRulesetId; } - public UpdateCampaignTemplate tags(List tags) { - + this.tags = tags; return this; } @@ -431,10 +431,11 @@ public UpdateCampaignTemplate addTagsItem(String tagsItem) { return this; } - /** + /** * A list of tags for the campaign template. + * * @return tags - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[discount]", value = "A list of tags for the campaign template.") @@ -442,14 +443,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } - public UpdateCampaignTemplate features(List features) { - + this.features = features; return this; } @@ -462,10 +461,11 @@ public UpdateCampaignTemplate addFeaturesItem(FeaturesEnum featuresItem) { return this; } - /** + /** * A list of features for the campaign template. + * * @return features - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "A list of features for the campaign template.") @@ -473,22 +473,21 @@ public List getFeatures() { return features; } - public void setFeatures(List features) { this.features = features; } - public UpdateCampaignTemplate couponSettings(CodeGeneratorSettings couponSettings) { - + this.couponSettings = couponSettings; return this; } - /** + /** * Get couponSettings + * * @return couponSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -496,22 +495,22 @@ public CodeGeneratorSettings getCouponSettings() { return couponSettings; } - public void setCouponSettings(CodeGeneratorSettings couponSettings) { this.couponSettings = couponSettings; } + public UpdateCampaignTemplate couponReservationSettings( + CampaignTemplateCouponReservationSettings couponReservationSettings) { - public UpdateCampaignTemplate couponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { - this.couponReservationSettings = couponReservationSettings; return this; } - /** + /** * Get couponReservationSettings + * * @return couponReservationSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -519,22 +518,21 @@ public CampaignTemplateCouponReservationSettings getCouponReservationSettings() return couponReservationSettings; } - public void setCouponReservationSettings(CampaignTemplateCouponReservationSettings couponReservationSettings) { this.couponReservationSettings = couponReservationSettings; } - public UpdateCampaignTemplate referralSettings(CodeGeneratorSettings referralSettings) { - + this.referralSettings = referralSettings; return this; } - /** + /** * Get referralSettings + * * @return referralSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -542,14 +540,12 @@ public CodeGeneratorSettings getReferralSettings() { return referralSettings; } - public void setReferralSettings(CodeGeneratorSettings referralSettings) { this.referralSettings = referralSettings; } - public UpdateCampaignTemplate limits(List limits) { - + this.limits = limits; return this; } @@ -562,10 +558,11 @@ public UpdateCampaignTemplate addLimitsItem(TemplateLimitConfig limitsItem) { return this; } - /** + /** * The set of limits that operate for this campaign template. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The set of limits that operate for this campaign template.") @@ -573,14 +570,12 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public UpdateCampaignTemplate templateParams(List templateParams) { - + this.templateParams = templateParams; return this; } @@ -593,10 +588,11 @@ public UpdateCampaignTemplate addTemplateParamsItem(CampaignTemplateParams templ return this; } - /** + /** * Fields which can be used to replace values in a rule. + * * @return templateParams - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Fields which can be used to replace values in a rule.") @@ -604,41 +600,39 @@ public List getTemplateParams() { return templateParams; } - public void setTemplateParams(List templateParams) { this.templateParams = templateParams; } + public UpdateCampaignTemplate applicationsIds(List applicationsIds) { - public UpdateCampaignTemplate applicationsIds(List applicationsIds) { - this.applicationsIds = applicationsIds; return this; } - public UpdateCampaignTemplate addApplicationsIdsItem(Integer applicationsIdsItem) { + public UpdateCampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { this.applicationsIds.add(applicationsIdsItem); return this; } - /** - * A list of IDs of the Applications that are subscribed to this campaign template. + /** + * A list of IDs of the Applications that are subscribed to this campaign + * template. + * * @return applicationsIds - **/ + **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of IDs of the Applications that are subscribed to this campaign template.") - public List getApplicationsIds() { + public List getApplicationsIds() { return applicationsIds; } - - public void setApplicationsIds(List applicationsIds) { + public void setApplicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; } - public UpdateCampaignTemplate campaignCollections(List campaignCollections) { - + this.campaignCollections = campaignCollections; return this; } @@ -651,10 +645,11 @@ public UpdateCampaignTemplate addCampaignCollectionsItem(CampaignTemplateCollect return this; } - /** + /** * The campaign collections from the blueprint campaign for the template. + * * @return campaignCollections - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The campaign collections from the blueprint campaign for the template.") @@ -662,45 +657,45 @@ public List getCampaignCollections() { return campaignCollections; } - public void setCampaignCollections(List campaignCollections) { this.campaignCollections = campaignCollections; } + public UpdateCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { - public UpdateCampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { - this.defaultCampaignGroupId = defaultCampaignGroupId; return this; } - /** + /** * The default campaign group ID. + * * @return defaultCampaignGroupId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Integer getDefaultCampaignGroupId() { + public Long getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - - public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } - public UpdateCampaignTemplate campaignType(CampaignTypeEnum campaignType) { - + this.campaignType = campaignType; return this; } - /** - * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. + /** + * The campaign type. Possible type values: - `cartItem`: Type of + * campaign that can apply effects only to cart items. - `advanced`: + * Type of campaign that can apply effects to customer sessions and cart items. + * * @return campaignType - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "advanced", value = "The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. ") @@ -708,12 +703,10 @@ public CampaignTypeEnum getCampaignType() { return campaignType; } - public void setCampaignType(CampaignTypeEnum campaignType) { this.campaignType = campaignType; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -745,10 +738,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, description, instructions, campaignAttributes, couponAttributes, state, activeRulesetId, tags, features, couponSettings, couponReservationSettings, referralSettings, limits, templateParams, applicationsIds, campaignCollections, defaultCampaignGroupId, campaignType); + return Objects.hash(name, description, instructions, campaignAttributes, couponAttributes, state, activeRulesetId, + tags, features, couponSettings, couponReservationSettings, referralSettings, limits, templateParams, + applicationsIds, campaignCollections, defaultCampaignGroupId, campaignType); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -787,4 +781,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCatalog.java b/src/main/java/one/talon/model/UpdateCatalog.java index bd9d8006..d105ea29 100644 --- a/src/main/java/one/talon/model/UpdateCatalog.java +++ b/src/main/java/one/talon/model/UpdateCatalog.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,19 +40,19 @@ public class UpdateCatalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; - + private List subscribedApplicationsIds = null; public UpdateCatalog description(String description) { - + this.description = description; return this; } - /** + /** * A description of this cart item catalog. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "seafood catalog", value = "A description of this cart item catalog.") @@ -61,22 +60,21 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateCatalog name(String name) { - + this.name = name; return this; } - /** + /** * Name of this cart item catalog. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "seafood", value = "Name of this cart item catalog.") @@ -84,43 +82,40 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } + public UpdateCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { - public UpdateCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCatalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public UpdateCatalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the applications that are subscribed to this catalog. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,7 +135,6 @@ public int hashCode() { return Objects.hash(description, name, subscribedApplicationsIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -164,4 +158,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCollection.java b/src/main/java/one/talon/model/UpdateCollection.java index 9da3a086..0a987863 100644 --- a/src/main/java/one/talon/model/UpdateCollection.java +++ b/src/main/java/one/talon/model/UpdateCollection.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,19 +36,19 @@ public class UpdateCollection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; - + private List subscribedApplicationsIds = null; public UpdateCollection description(String description) { - + this.description = description; return this; } - /** + /** * A short description of the purpose of this collection. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "My collection of SKUs", value = "A short description of the purpose of this collection.") @@ -57,43 +56,40 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public UpdateCollection subscribedApplicationsIds(List subscribedApplicationsIds) { - public UpdateCollection subscribedApplicationsIds(List subscribedApplicationsIds) { - this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCollection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { + public UpdateCollection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; } - /** + /** * A list of the IDs of the Applications where this collection is enabled. + * * @return subscribedApplicationsIds - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,7 +108,6 @@ public int hashCode() { return Objects.hash(description, subscribedApplicationsIds); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -135,4 +130,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCoupon.java b/src/main/java/one/talon/model/UpdateCoupon.java index d98a2a23..6627281e 100644 --- a/src/main/java/one/talon/model/UpdateCoupon.java +++ b/src/main/java/one/talon/model/UpdateCoupon.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,7 +35,7 @@ public class UpdateCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -44,7 +43,7 @@ public class UpdateCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -74,44 +73,45 @@ public class UpdateCoupon { @SerializedName(SERIALIZED_NAME_IMPLICITLY_RESERVED) private Boolean implicitlyReserved; + public UpdateCoupon usageLimit(Long usageLimit) { - public UpdateCoupon usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public UpdateCoupon discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -119,47 +119,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public UpdateCoupon reservationLimit(Long reservationLimit) { - public UpdateCoupon reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public UpdateCoupon startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -167,22 +165,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public UpdateCoupon expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -190,14 +187,12 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public UpdateCoupon limits(List limits) { - + this.limits = limits; return this; } @@ -210,10 +205,14 @@ public UpdateCoupon addLimitsItem(LimitConfig limitsItem) { return this; } - /** - * Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. + /** + * Limits configuration for a coupon. These limits will override the limits set + * from the campaign. **Note:** Only usable when creating a single coupon which + * is not tied to a specific recipient. Only per-profile limits are allowed to + * be configured. + * * @return limits - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. ") @@ -221,22 +220,21 @@ public List getLimits() { return limits; } - public void setLimits(List limits) { this.limits = limits; } - public UpdateCoupon recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The integration ID for this coupon's beneficiary's profile. + * * @return recipientIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "URNGV8294NV", value = "The integration ID for this coupon's beneficiary's profile.") @@ -244,22 +242,21 @@ public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - public UpdateCoupon attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this item.") @@ -267,22 +264,22 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public UpdateCoupon isReservationMandatory(Boolean isReservationMandatory) { - + this.isReservationMandatory = isReservationMandatory; return this; } - /** - * An indication of whether the code can be redeemed only if it has been reserved first. + /** + * An indication of whether the code can be redeemed only if it has been + * reserved first. + * * @return isReservationMandatory - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the code can be redeemed only if it has been reserved first.") @@ -290,22 +287,21 @@ public Boolean getIsReservationMandatory() { return isReservationMandatory; } - public void setIsReservationMandatory(Boolean isReservationMandatory) { this.isReservationMandatory = isReservationMandatory; } - public UpdateCoupon implicitlyReserved(Boolean implicitlyReserved) { - + this.implicitlyReserved = implicitlyReserved; return this; } - /** + /** * An indication of whether the coupon is implicitly reserved for all customers. + * * @return implicitlyReserved - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "An indication of whether the coupon is implicitly reserved for all customers.") @@ -313,12 +309,10 @@ public Boolean getImplicitlyReserved() { return implicitlyReserved; } - public void setImplicitlyReserved(Boolean implicitlyReserved) { this.implicitlyReserved = implicitlyReserved; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -342,10 +336,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, recipientIntegrationId, attributes, isReservationMandatory, implicitlyReserved); + return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, limits, + recipientIntegrationId, attributes, isReservationMandatory, implicitlyReserved); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -376,4 +370,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCouponBatch.java b/src/main/java/one/talon/model/UpdateCouponBatch.java index 80224607..c3898bd7 100644 --- a/src/main/java/one/talon/model/UpdateCouponBatch.java +++ b/src/main/java/one/talon/model/UpdateCouponBatch.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class UpdateCouponBatch { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -41,7 +40,7 @@ public class UpdateCouponBatch { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Integer reservationLimit; + private Long reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -59,44 +58,45 @@ public class UpdateCouponBatch { @SerializedName(SERIALIZED_NAME_BATCH_I_D) private String batchID; + public UpdateCouponBatch usageLimit(Long usageLimit) { - public UpdateCouponBatch usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. + /** + * The number of times the coupon code can be redeemed. `0` means + * unlimited redemptions but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public UpdateCouponBatch discountLimit(BigDecimal discountLimit) { - + this.discountLimit = discountLimit; return this; } - /** - * The total discount value that the code can give. Typically used to represent a gift card value. + /** + * The total discount value that the code can give. Typically used to represent + * a gift card value. * minimum: 0 * maximum: 999999 + * * @return discountLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "30.0", value = "The total discount value that the code can give. Typically used to represent a gift card value. ") @@ -104,47 +104,45 @@ public BigDecimal getDiscountLimit() { return discountLimit; } - public void setDiscountLimit(BigDecimal discountLimit) { this.discountLimit = discountLimit; } + public UpdateCouponBatch reservationLimit(Long reservationLimit) { - public UpdateCouponBatch reservationLimit(Integer reservationLimit) { - this.reservationLimit = reservationLimit; return this; } - /** - * The number of reservations that can be made with this coupon code. + /** + * The number of reservations that can be made with this coupon code. * minimum: 0 * maximum: 999999 + * * @return reservationLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Integer getReservationLimit() { + public Long getReservationLimit() { return reservationLimit; } - - public void setReservationLimit(Integer reservationLimit) { + public void setReservationLimit(Long reservationLimit) { this.reservationLimit = reservationLimit; } - public UpdateCouponBatch startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the coupon becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-24T14:15:22Z", value = "Timestamp at which point the coupon becomes valid.") @@ -152,22 +150,21 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public UpdateCouponBatch expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** + /** * Expiration date of the coupon. Coupon never expires if this is omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2023-08-24T14:15:22Z", value = "Expiration date of the coupon. Coupon never expires if this is omitted.") @@ -175,22 +172,27 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } - public UpdateCouponBatch attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** - * Optional property to set the value of custom coupon attributes. They are defined in the Campaign Manager, see [Managing attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes). Coupon attributes can also be set to _mandatory_ in your Application [settings](https://docs.talon.one/docs/product/applications/using-attributes#making-attributes-mandatory). If your Application uses mandatory attributes, you must use this property to set their value. + /** + * Optional property to set the value of custom coupon attributes. They are + * defined in the Campaign Manager, see [Managing + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes). + * Coupon attributes can also be set to _mandatory_ in your Application + * [settings](https://docs.talon.one/docs/product/applications/using-attributes#making-attributes-mandatory). + * If your Application uses mandatory attributes, you must use this property to + * set their value. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Optional property to set the value of custom coupon attributes. They are defined in the Campaign Manager, see [Managing attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes). Coupon attributes can also be set to _mandatory_ in your Application [settings](https://docs.talon.one/docs/product/applications/using-attributes#making-attributes-mandatory). If your Application uses mandatory attributes, you must use this property to set their value. ") @@ -198,22 +200,21 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public UpdateCouponBatch batchID(String batchID) { - + this.batchID = batchID; return this; } - /** + /** * The ID of the batch the coupon(s) belong to. + * * @return batchID - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the batch the coupon(s) belong to.") @@ -221,12 +222,10 @@ public String getBatchID() { return batchID; } - public void setBatchID(String batchID) { this.batchID = batchID; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -250,7 +249,6 @@ public int hashCode() { return Objects.hash(usageLimit, discountLimit, reservationLimit, startDate, expiryDate, attributes, batchID); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -278,4 +276,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateCustomEffect.java b/src/main/java/one/talon/model/UpdateCustomEffect.java index 124ec68d..8b605975 100644 --- a/src/main/java/one/talon/model/UpdateCustomEffect.java +++ b/src/main/java/one/talon/model/UpdateCustomEffect.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class UpdateCustomEffect { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_PER_ITEM = "isPerItem"; @SerializedName(SERIALIZED_NAME_IS_PER_ITEM) @@ -65,44 +64,43 @@ public class UpdateCustomEffect { @SerializedName(SERIALIZED_NAME_PARAMS) private List params = null; + public UpdateCustomEffect applicationIds(List applicationIds) { - public UpdateCustomEffect applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public UpdateCustomEffect addApplicationIdsItem(Integer applicationIdsItem) { + public UpdateCustomEffect addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** + /** * The IDs of the Applications that are related to this entity. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public UpdateCustomEffect isPerItem(Boolean isPerItem) { - + this.isPerItem = isPerItem; return this; } - /** + /** * Indicates if this effect is per item or not. + * * @return isPerItem - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Indicates if this effect is per item or not.") @@ -110,88 +108,84 @@ public Boolean getIsPerItem() { return isPerItem; } - public void setIsPerItem(Boolean isPerItem) { this.isPerItem = isPerItem; } - public UpdateCustomEffect name(String name) { - + this.name = name; return this; } - /** + /** * The name of this effect. + * * @return name - **/ + **/ @ApiModelProperty(required = true, value = "The name of this effect.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateCustomEffect title(String title) { - + this.title = title; return this; } - /** + /** * The title of this effect. + * * @return title - **/ + **/ @ApiModelProperty(required = true, value = "The title of this effect.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public UpdateCustomEffect payload(String payload) { - + this.payload = payload; return this; } - /** + /** * The JSON payload of this effect. + * * @return payload - **/ + **/ @ApiModelProperty(required = true, value = "The JSON payload of this effect.") public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public UpdateCustomEffect description(String description) { - + this.description = description; return this; } - /** + /** * The description of this effect. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The description of this effect.") @@ -199,36 +193,33 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateCustomEffect enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Determines if this effect is active. + * * @return enabled - **/ + **/ @ApiModelProperty(required = true, value = "Determines if this effect is active.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public UpdateCustomEffect params(List params) { - + this.params = params; return this; } @@ -241,10 +232,11 @@ public UpdateCustomEffect addParamsItem(TemplateArgDef paramsItem) { return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Array of template argument definitions.") @@ -252,12 +244,10 @@ public List getParams() { return params; } - public void setParams(List params) { this.params = params; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -282,7 +272,6 @@ public int hashCode() { return Objects.hash(applicationIds, isPerItem, name, title, payload, description, enabled, params); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -311,4 +300,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java index 90eb2a9a..e345d6ec 100644 --- a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java +++ b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,7 +44,7 @@ public class UpdateLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -61,21 +60,27 @@ public class UpdateLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Integer usersPerCardLimit; + private Long usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) private Boolean sandbox; /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. */ @JsonAdapter(ProgramJoinPolicyEnum.Adapter.class) public enum ProgramJoinPolicyEnum { NOT_JOIN("not_join"), - + POINTS_ACTIVATED("points_activated"), - + POINTS_EARNED("points_earned"); private String value; @@ -110,7 +115,7 @@ public void write(final JsonWriter jsonWriter, final ProgramJoinPolicyEnum enume @Override public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ProgramJoinPolicyEnum.fromValue(value); } } @@ -121,16 +126,24 @@ public ProgramJoinPolicyEnum read(final JsonReader jsonReader) throws IOExceptio private ProgramJoinPolicyEnum programJoinPolicy; /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. */ @JsonAdapter(TiersExpirationPolicyEnum.Adapter.class) public enum TiersExpirationPolicyEnum { TIER_START_DATE("tier_start_date"), - + PROGRAM_JOIN_DATE("program_join_date"), - + CUSTOMER_ATTRIBUTE("customer_attribute"), - + ABSOLUTE_EXPIRATION("absolute_expiration"); private String value; @@ -165,7 +178,7 @@ public void write(final JsonWriter jsonWriter, final TiersExpirationPolicyEnum e @Override public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersExpirationPolicyEnum.fromValue(value); } } @@ -184,12 +197,16 @@ public TiersExpirationPolicyEnum read(final JsonReader jsonReader) throws IOExce private String tiersExpireIn; /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. */ @JsonAdapter(TiersDowngradePolicyEnum.Adapter.class) public enum TiersDowngradePolicyEnum { ONE_DOWN("one_down"), - + BALANCE_BASED("balance_based"); private String value; @@ -224,7 +241,7 @@ public void write(final JsonWriter jsonWriter, final TiersDowngradePolicyEnum en @Override public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return TiersDowngradePolicyEnum.fromValue(value); } } @@ -239,14 +256,21 @@ public TiersDowngradePolicyEnum read(final JsonReader jsonReader) throws IOExcep private CodeGeneratorSettings cardCodeSettings; /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. */ @JsonAdapter(ReturnPolicyEnum.Adapter.class) public enum ReturnPolicyEnum { ONLY_PENDING("only_pending"), - + WITHIN_BALANCE("within_balance"), - + UNLIMITED("unlimited"); private String value; @@ -281,7 +305,7 @@ public void write(final JsonWriter jsonWriter, final ReturnPolicyEnum enumeratio @Override public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return ReturnPolicyEnum.fromValue(value); } } @@ -295,17 +319,17 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TIERS) private List tiers = null; - public UpdateLoyaltyProgram title(String title) { - + this.title = title; return this; } - /** + /** * The display title for the Loyalty Program. + * * @return title - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Point collection", value = "The display title for the Loyalty Program.") @@ -313,22 +337,21 @@ public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public UpdateLoyaltyProgram description(String description) { - + this.description = description; return this; } - /** + /** * Description of our Loyalty Program. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Customers collect 10 points per 1$ spent", value = "Description of our Loyalty Program.") @@ -336,53 +359,60 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } + public UpdateLoyaltyProgram subscribedApplications(List subscribedApplications) { - public UpdateLoyaltyProgram subscribedApplications(List subscribedApplications) { - this.subscribedApplications = subscribedApplications; return this; } - public UpdateLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { + public UpdateLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; } - /** - * A list containing the IDs of all applications that are subscribed to this Loyalty Program. + /** + * A list containing the IDs of all applications that are subscribed to this + * Loyalty Program. + * * @return subscribedApplications - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } - public UpdateLoyaltyProgram defaultValidity(String defaultValidity) { - + this.defaultValidity = defaultValidity; return this; } - /** - * The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration after which new loyalty points should expire. Can be + * 'unlimited' or a specific time. The time format is a number followed + * by one letter indicating the time unit, like '30s', '40m', + * '1h', '5D', '7W', or 10M'. These rounding + * suffixes are also supported: - '_D' for rounding down. Can be used as + * a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultValidity - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2W_U", value = "The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") @@ -390,22 +420,29 @@ public String getDefaultValidity() { return defaultValidity; } - public void setDefaultValidity(String defaultValidity) { this.defaultValidity = defaultValidity; } - public UpdateLoyaltyProgram defaultPending(String defaultPending) { - + this.defaultPending = defaultPending; return this; } - /** - * The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. + /** + * The default duration of the pending time after which points should be valid. + * Can be 'immediate' or a specific time. The time format is a number + * followed by one letter indicating the time unit, like '30s', + * '40m', '1h', '5D', '7W', or 10M'. These + * rounding suffixes are also supported: - '_D' for rounding down. Can + * be used as a suffix after 'D', and signifies the start of the day. - + * '_U' for rounding up. Can be used as a suffix after 'D', + * 'W', and 'M', and signifies the end of the day, week, and + * month. + * * @return defaultPending - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "immediate", value = "The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. ") @@ -413,22 +450,21 @@ public String getDefaultPending() { return defaultPending; } - public void setDefaultPending(String defaultPending) { this.defaultPending = defaultPending; } - public UpdateLoyaltyProgram allowSubledger(Boolean allowSubledger) { - + this.allowSubledger = allowSubledger; return this; } - /** + /** * Indicates if this program supports subledgers inside the program. + * * @return allowSubledger - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates if this program supports subledgers inside the program.") @@ -436,46 +472,47 @@ public Boolean getAllowSubledger() { return allowSubledger; } - public void setAllowSubledger(Boolean allowSubledger) { this.allowSubledger = allowSubledger; } + public UpdateLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { - public UpdateLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { - this.usersPerCardLimit = usersPerCardLimit; return this; } - /** - * The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. + /** + * The max amount of user profiles with whom a card can be shared. This can be + * set to 0 for no limit. This property is only used when `cardBased` + * is `true`. * minimum: 0 + * * @return usersPerCardLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Integer getUsersPerCardLimit() { + public Long getUsersPerCardLimit() { return usersPerCardLimit; } - - public void setUsersPerCardLimit(Integer usersPerCardLimit) { + public void setUsersPerCardLimit(Long usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } - public UpdateLoyaltyProgram sandbox(Boolean sandbox) { - + this.sandbox = sandbox; return this; } - /** - * Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. + /** + * Indicates if this program is a live or sandbox program. Programs of a given + * type can only be connected to Applications of the same type. + * * @return sandbox - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.") @@ -483,22 +520,27 @@ public Boolean getSandbox() { return sandbox; } - public void setSandbox(Boolean sandbox) { this.sandbox = sandbox; } - public UpdateLoyaltyProgram programJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { - + this.programJoinPolicy = programJoinPolicy; return this; } - /** - * The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. + /** + * The policy that defines when the customer joins the loyalty program. - + * `not_join`: The customer does not join the loyalty program but can + * still earn and spend loyalty points. **Note**: The customer does not have a + * program join date. - `points_activated`: The customer joins the + * loyalty program only when their earned loyalty points become active for the + * first time. - `points_earned`: The customer joins the loyalty + * program when they earn loyalty points for the first time. + * * @return programJoinPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. ") @@ -506,22 +548,29 @@ public ProgramJoinPolicyEnum getProgramJoinPolicy() { return programJoinPolicy; } - public void setProgramJoinPolicy(ProgramJoinPolicyEnum programJoinPolicy) { this.programJoinPolicy = programJoinPolicy; } - public UpdateLoyaltyProgram tiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { - + this.tiersExpirationPolicy = tiersExpirationPolicy; return this; } - /** - * The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. + /** + * The policy that defines how tier expiration, used to reevaluate the + * customer's current tier, is determined. - `tier_start_date`: + * The tier expiration is relative to when the customer joined the current tier. + * - `program_join_date`: The tier expiration is relative to when the + * customer joined the loyalty program. - `customer_attribute`: The + * tier expiration is determined by a custom customer attribute. - + * `absolute_expiration`: The tier is reevaluated at the start of each + * tier cycle. For this policy, it is required to provide a + * `tierCycleStartDate`. + * * @return tiersExpirationPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. ") @@ -529,22 +578,23 @@ public TiersExpirationPolicyEnum getTiersExpirationPolicy() { return tiersExpirationPolicy; } - public void setTiersExpirationPolicy(TiersExpirationPolicyEnum tiersExpirationPolicy) { this.tiersExpirationPolicy = tiersExpirationPolicy; } - public UpdateLoyaltyProgram tierCycleStartDate(OffsetDateTime tierCycleStartDate) { - + this.tierCycleStartDate = tierCycleStartDate; return this; } - /** - * Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. + /** + * Timestamp at which the tier cycle starts for all customers in the loyalty + * program. **Note**: This is only required when the tier expiration policy is + * set to `absolute_expiration`. + * * @return tierCycleStartDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp at which the tier cycle starts for all customers in the loyalty program. **Note**: This is only required when the tier expiration policy is set to `absolute_expiration`. ") @@ -552,22 +602,30 @@ public OffsetDateTime getTierCycleStartDate() { return tierCycleStartDate; } - public void setTierCycleStartDate(OffsetDateTime tierCycleStartDate) { this.tierCycleStartDate = tierCycleStartDate; } - public UpdateLoyaltyProgram tiersExpireIn(String tiersExpireIn) { - + this.tiersExpireIn = tiersExpireIn; return this; } - /** - * The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + /** + * The amount of time after which the tier expires and is reevaluated. The time + * format is an **integer** followed by one letter indicating the time unit. + * Examples: `30s`, `40m`, `1h`, `5D`, + * `7W`, `10M`, `15Y`. Available units: - + * `s`: seconds - `m`: minutes - `h`: hours - + * `D`: days - `W`: weeks - `M`: months - + * `Y`: years You can round certain units up or down: - `_D` + * for rounding down days only. Signifies the start of the day. - `_U` + * for rounding up days, weeks, months and years. Signifies the end of the day, + * week, month or year. + * * @return tiersExpireIn - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "27W_U", value = "The amount of time after which the tier expires and is reevaluated. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. ") @@ -575,22 +633,25 @@ public String getTiersExpireIn() { return tiersExpireIn; } - public void setTiersExpireIn(String tiersExpireIn) { this.tiersExpireIn = tiersExpireIn; } - public UpdateLoyaltyProgram tiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { - + this.tiersDowngradePolicy = tiersDowngradePolicy; return this; } - /** - * The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. + /** + * The policy that defines how customer tiers are downgraded in the loyalty + * program after tier reevaluation. - `one_down`: If the customer + * doesn't have enough points to stay in the current tier, they are + * downgraded by one tier. - `balance_based`: The customer's tier + * is reevaluated based on the amount of active points they have at the moment. + * * @return tiersDowngradePolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. ") @@ -598,22 +659,21 @@ public TiersDowngradePolicyEnum getTiersDowngradePolicy() { return tiersDowngradePolicy; } - public void setTiersDowngradePolicy(TiersDowngradePolicyEnum tiersDowngradePolicy) { this.tiersDowngradePolicy = tiersDowngradePolicy; } - public UpdateLoyaltyProgram cardCodeSettings(CodeGeneratorSettings cardCodeSettings) { - + this.cardCodeSettings = cardCodeSettings; return this; } - /** + /** * Get cardCodeSettings + * * @return cardCodeSettings - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @@ -621,22 +681,28 @@ public CodeGeneratorSettings getCardCodeSettings() { return cardCodeSettings; } - public void setCardCodeSettings(CodeGeneratorSettings cardCodeSettings) { this.cardCodeSettings = cardCodeSettings; } - public UpdateLoyaltyProgram returnPolicy(ReturnPolicyEnum returnPolicy) { - + this.returnPolicy = returnPolicy; return this; } - /** - * The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. + /** + * The policy that defines the rollback of points in case of a partially + * returned, cancelled, or reopened [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * - `only_pending`: Only pending points can be rolled back. - + * `within_balance`: Available active points can be rolled back if + * there aren't enough pending points. The active balance of the customer + * cannot be negative. - `unlimited`: Allows negative balance without + * any limit. + * * @return returnPolicy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. ") @@ -644,14 +710,12 @@ public ReturnPolicyEnum getReturnPolicy() { return returnPolicy; } - public void setReturnPolicy(ReturnPolicyEnum returnPolicy) { this.returnPolicy = returnPolicy; } - public UpdateLoyaltyProgram tiers(List tiers) { - + this.tiers = tiers; return this; } @@ -664,10 +728,11 @@ public UpdateLoyaltyProgram addTiersItem(NewLoyaltyTier tiersItem) { return this; } - /** + /** * The tiers in this loyalty program. + * * @return tiers - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "The tiers in this loyalty program.") @@ -675,12 +740,10 @@ public List getTiers() { return tiers; } - public void setTiers(List tiers) { this.tiers = tiers; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -710,10 +773,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, tiersDowngradePolicy, cardCodeSettings, returnPolicy, tiers); + return Objects.hash(title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger, + usersPerCardLimit, sandbox, programJoinPolicy, tiersExpirationPolicy, tierCycleStartDate, tiersExpireIn, + tiersDowngradePolicy, cardCodeSettings, returnPolicy, tiers); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -750,4 +814,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java b/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java index a342f16d..fba6854a 100644 --- a/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java +++ b/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -33,7 +32,7 @@ public class UpdateLoyaltyProgramTier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -43,39 +42,38 @@ public class UpdateLoyaltyProgramTier { @SerializedName(SERIALIZED_NAME_MIN_POINTS) private BigDecimal minPoints; + public UpdateLoyaltyProgramTier id(Long id) { - public UpdateLoyaltyProgramTier id(Integer id) { - this.id = id; return this; } - /** + /** * The internal ID of the tier. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "The internal ID of the tier.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public UpdateLoyaltyProgramTier name(String name) { - + this.name = name; return this; } - /** + /** * The name of the tier. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Gold", value = "The name of the tier.") @@ -83,24 +81,23 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateLoyaltyProgramTier minPoints(BigDecimal minPoints) { - + this.minPoints = minPoints; return this; } - /** + /** * The minimum amount of points required to enter the tier. * minimum: 0 * maximum: 999999999999.99 + * * @return minPoints - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "300.0", value = "The minimum amount of points required to enter the tier.") @@ -108,12 +105,10 @@ public BigDecimal getMinPoints() { return minPoints; } - public void setMinPoints(BigDecimal minPoints) { this.minPoints = minPoints; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -133,7 +128,6 @@ public int hashCode() { return Objects.hash(id, name, minPoints); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -157,4 +151,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateReferral.java b/src/main/java/one/talon/model/UpdateReferral.java index 4122eced..1bebed0b 100644 --- a/src/main/java/one/talon/model/UpdateReferral.java +++ b/src/main/java/one/talon/model/UpdateReferral.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -44,23 +43,23 @@ public class UpdateReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; + private Long usageLimit; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; - public UpdateReferral friendProfileIntegrationId(String friendProfileIntegrationId) { - + this.friendProfileIntegrationId = friendProfileIntegrationId; return this; } - /** + /** * An optional Integration ID of the Friend's Profile. + * * @return friendProfileIntegrationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "BZGGC2454PA", value = "An optional Integration ID of the Friend's Profile.") @@ -68,22 +67,21 @@ public String getFriendProfileIntegrationId() { return friendProfileIntegrationId; } - public void setFriendProfileIntegrationId(String friendProfileIntegrationId) { this.friendProfileIntegrationId = friendProfileIntegrationId; } - public UpdateReferral startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -91,22 +89,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public UpdateReferral expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -114,47 +112,46 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public UpdateReferral usageLimit(Long usageLimit) { - public UpdateReferral usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. This can be set to 0 for no + * limit, but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - public UpdateReferral attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this item.") @@ -162,12 +159,10 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -189,7 +184,6 @@ public int hashCode() { return Objects.hash(friendProfileIntegrationId, startDate, expiryDate, usageLimit, attributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -215,4 +209,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateReferralBatch.java b/src/main/java/one/talon/model/UpdateReferralBatch.java index 49ec3757..0e9e87c8 100644 --- a/src/main/java/one/talon/model/UpdateReferralBatch.java +++ b/src/main/java/one/talon/model/UpdateReferralBatch.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -48,19 +47,19 @@ public class UpdateReferralBatch { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Integer usageLimit; - + private Long usageLimit; public UpdateReferralBatch attributes(Object attributes) { - + this.attributes = attributes; return this; } - /** + /** * Arbitrary properties associated with this item. + * * @return attributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Arbitrary properties associated with this item.") @@ -68,44 +67,42 @@ public Object getAttributes() { return attributes; } - public void setAttributes(Object attributes) { this.attributes = attributes; } - public UpdateReferralBatch batchID(String batchID) { - + this.batchID = batchID; return this; } - /** + /** * The id of the batch the referral belongs to. + * * @return batchID - **/ + **/ @ApiModelProperty(example = "32535-43255", required = true, value = "The id of the batch the referral belongs to.") public String getBatchID() { return batchID; } - public void setBatchID(String batchID) { this.batchID = batchID; } - public UpdateReferralBatch startDate(OffsetDateTime startDate) { - + this.startDate = startDate; return this; } - /** + /** * Timestamp at which point the referral code becomes valid. + * * @return startDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-11-10T23:00Z", value = "Timestamp at which point the referral code becomes valid.") @@ -113,22 +110,22 @@ public OffsetDateTime getStartDate() { return startDate; } - public void setStartDate(OffsetDateTime startDate) { this.startDate = startDate; } - public UpdateReferralBatch expiryDate(OffsetDateTime expiryDate) { - + this.expiryDate = expiryDate; return this; } - /** - * Expiration date of the referral code. Referral never expires if this is omitted. + /** + * Expiration date of the referral code. Referral never expires if this is + * omitted. + * * @return expiryDate - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-11-10T23:00Z", value = "Expiration date of the referral code. Referral never expires if this is omitted.") @@ -136,37 +133,35 @@ public OffsetDateTime getExpiryDate() { return expiryDate; } - public void setExpiryDate(OffsetDateTime expiryDate) { this.expiryDate = expiryDate; } + public UpdateReferralBatch usageLimit(Long usageLimit) { - public UpdateReferralBatch usageLimit(Integer usageLimit) { - this.usageLimit = usageLimit; return this; } - /** - * The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. + /** + * The number of times a referral code can be used. This can be set to 0 for no + * limit, but any campaign usage limits will still apply. * minimum: 0 * maximum: 999999 + * * @return usageLimit - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. ") - public Integer getUsageLimit() { + public Long getUsageLimit() { return usageLimit; } - - public void setUsageLimit(Integer usageLimit) { + public void setUsageLimit(Long usageLimit) { this.usageLimit = usageLimit; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -188,7 +183,6 @@ public int hashCode() { return Objects.hash(attributes, batchID, startDate, expiryDate, usageLimit); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -214,4 +208,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateRole.java b/src/main/java/one/talon/model/UpdateRole.java index 37752bf0..787cf2c4 100644 --- a/src/main/java/one/talon/model/UpdateRole.java +++ b/src/main/java/one/talon/model/UpdateRole.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -45,19 +44,19 @@ public class UpdateRole { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; - + private List members = null; public UpdateRole name(String name) { - + this.name = name; return this; } - /** + /** * Name of the role. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Campaign Manager", value = "Name of the role.") @@ -65,22 +64,21 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateRole description(String description) { - + this.description = description; return this; } - /** + /** * Description of the role. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Manages the campaigns", value = "Description of the role.") @@ -88,22 +86,22 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public UpdateRole acl(String acl) { - + this.acl = acl; return this; } - /** - * The `Access Control List` json defining the role of the user. This represents the access control on the user level. + /** + * The `Access Control List` json defining the role of the user. This + * represents the access control on the user level. + * * @return acl - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "", value = "The `Access Control List` json defining the role of the user. This represents the access control on the user level.") @@ -111,43 +109,40 @@ public String getAcl() { return acl; } - public void setAcl(String acl) { this.acl = acl; } + public UpdateRole members(List members) { - public UpdateRole members(List members) { - this.members = members; return this; } - public UpdateRole addMembersItem(Integer membersItem) { + public UpdateRole addMembersItem(Long membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; } - /** + /** * An array of user identifiers. + * * @return members - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[48, 562, 475, 18]", value = "An array of user identifiers.") - public List getMembers() { + public List getMembers() { return members; } - - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,7 +163,6 @@ public int hashCode() { return Objects.hash(name, description, acl, members); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -193,4 +187,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UpdateUser.java b/src/main/java/one/talon/model/UpdateUser.java index bc677a63..9dca0876 100644 --- a/src/main/java/one/talon/model/UpdateUser.java +++ b/src/main/java/one/talon/model/UpdateUser.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -36,12 +35,14 @@ public class UpdateUser { private String name; /** - * The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. + * The state of the user. - `deactivated`: The user has been + * deactivated. - `active`: The user is active. **Note**: Only + * `admin` users can update the state of another user. */ @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { DEACTIVATED("deactivated"), - + ACTIVE("active"); private String value; @@ -76,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -96,23 +97,23 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS = "applicationNotificationSubscriptions"; @SerializedName(SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS) private Object applicationNotificationSubscriptions; - public UpdateUser name(String name) { - + this.name = name; return this; } - /** + /** * Name of the user. + * * @return name - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "John Doe", value = "Name of the user.") @@ -120,22 +121,23 @@ public String getName() { return name; } - public void setName(String name) { this.name = name; } - public UpdateUser state(StateEnum state) { - + this.state = state; return this; } - /** - * The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. + /** + * The state of the user. - `deactivated`: The user has been + * deactivated. - `active`: The user is active. **Note**: Only + * `admin` users can update the state of another user. + * * @return state - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "deactivated", value = "The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. ") @@ -143,22 +145,21 @@ public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public UpdateUser isAdmin(Boolean isAdmin) { - + this.isAdmin = isAdmin; return this; } - /** + /** * Indicates whether the user is an `admin`. + * * @return isAdmin - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") @@ -166,22 +167,21 @@ public Boolean getIsAdmin() { return isAdmin; } - public void setIsAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; } - public UpdateUser policy(String policy) { - + this.policy = policy; return this; } - /** + /** * Indicates the access level of the user. + * * @return policy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "", value = "Indicates the access level of the user.") @@ -189,53 +189,53 @@ public String getPolicy() { return policy; } - public void setPolicy(String policy) { this.policy = policy; } + public UpdateUser roles(List roles) { - public UpdateUser roles(List roles) { - this.roles = roles; return this; } - public UpdateUser addRolesItem(Integer rolesItem) { + public UpdateUser addRolesItem(Long rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; } - /** - * A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + /** + * A list of the IDs of the roles assigned to the user. **Note**: To find the ID + * of a role, use the [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + * * @return roles - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. ") - public List getRoles() { + public List getRoles() { return roles; } - - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } - public UpdateUser applicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { - + this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; return this; } - /** + /** * Application notifications that the user is subscribed to. + * * @return applicationNotificationSubscriptions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(value = "Application notifications that the user is subscribed to.") @@ -243,12 +243,10 @@ public Object getApplicationNotificationSubscriptions() { return applicationNotificationSubscriptions; } - public void setApplicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -271,7 +269,6 @@ public int hashCode() { return Objects.hash(name, state, isAdmin, policy, roles, applicationNotificationSubscriptions); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -281,7 +278,8 @@ public String toString() { sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); - sb.append(" applicationNotificationSubscriptions: ").append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); + sb.append(" applicationNotificationSubscriptions: ") + .append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); sb.append("}"); return sb.toString(); } @@ -298,4 +296,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/User.java b/src/main/java/one/talon/model/User.java index 962bce0e..12a314e0 100644 --- a/src/main/java/one/talon/model/User.java +++ b/src/main/java/one/talon/model/User.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -34,7 +33,7 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -50,7 +49,7 @@ public class User { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Integer accountId; + private Long accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,9 +61,9 @@ public class User { @JsonAdapter(StateEnum.Adapter.class) public enum StateEnum { INVITED("invited"), - + ACTIVE("active"), - + DEACTIVATED("deactivated"); private String value; @@ -99,7 +98,7 @@ public void write(final JsonWriter jsonWriter, final StateEnum enumeration) thro @Override public StateEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return StateEnum.fromValue(value); } } @@ -123,7 +122,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_AUTH_METHOD = "authMethod"; @SerializedName(SERIALIZED_NAME_AUTH_METHOD) @@ -149,193 +148,186 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ADDITIONAL_ATTRIBUTES) private Object additionalAttributes; + public User id(Long id) { - public User id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public User created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public User modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } - public User email(String email) { - + this.email = email; return this; } - /** + /** * The email address associated with the user profile. + * * @return email - **/ + **/ @ApiModelProperty(example = "john.doe@example.com", required = true, value = "The email address associated with the user profile.") public String getEmail() { return email; } - public void setEmail(String email) { this.email = email; } + public User accountId(Long accountId) { - public User accountId(Integer accountId) { - this.accountId = accountId; return this; } - /** + /** * The ID of the account that owns this entity. + * * @return accountId - **/ + **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Integer getAccountId() { + public Long getAccountId() { return accountId; } - - public void setAccountId(Integer accountId) { + public void setAccountId(Long accountId) { this.accountId = accountId; } - public User name(String name) { - + this.name = name; return this; } - /** + /** * Name of the user. + * * @return name - **/ + **/ @ApiModelProperty(example = "John Doe", required = true, value = "Name of the user.") public String getName() { return name; } - public void setName(String name) { this.name = name; } - public User state(StateEnum state) { - + this.state = state; return this; } - /** + /** * State of the user. + * * @return state - **/ + **/ @ApiModelProperty(example = "invited", required = true, value = "State of the user.") public StateEnum getState() { return state; } - public void setState(StateEnum state) { this.state = state; } - public User inviteToken(String inviteToken) { - + this.inviteToken = inviteToken; return this; } - /** - * Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. + /** + * Invitation token of the user. **Note**: If the user has already accepted + * their invitation, this is `null`. + * * @return inviteToken - **/ + **/ @ApiModelProperty(example = "Gy9b8w1irmQtEPo5RmbMmSPheL5h4", required = true, value = "Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. ") public String getInviteToken() { return inviteToken; } - public void setInviteToken(String inviteToken) { this.inviteToken = inviteToken; } - public User isAdmin(Boolean isAdmin) { - + this.isAdmin = isAdmin; return this; } - /** + /** * Indicates whether the user is an `admin`. + * * @return isAdmin - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "false", value = "Indicates whether the user is an `admin`.") @@ -343,75 +335,72 @@ public Boolean getIsAdmin() { return isAdmin; } - public void setIsAdmin(Boolean isAdmin) { this.isAdmin = isAdmin; } - public User policy(Object policy) { - + this.policy = policy; return this; } - /** + /** * Access level of the user. + * * @return policy - **/ + **/ @ApiModelProperty(example = "{\"Role\":127}", required = true, value = "Access level of the user.") public Object getPolicy() { return policy; } - public void setPolicy(Object policy) { this.policy = policy; } + public User roles(List roles) { - public User roles(List roles) { - this.roles = roles; return this; } - public User addRolesItem(Integer rolesItem) { + public User addRolesItem(Long rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; } - /** + /** * A list of the IDs of the roles assigned to the user. + * * @return roles - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "[71]", value = "A list of the IDs of the roles assigned to the user.") - public List getRoles() { + public List getRoles() { return roles; } - - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } - public User authMethod(String authMethod) { - + this.authMethod = authMethod; return this; } - /** + /** * Authentication method for this user. + * * @return authMethod - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "basic_auth", value = "Authentication method for this user.") @@ -419,22 +408,21 @@ public String getAuthMethod() { return authMethod; } - public void setAuthMethod(String authMethod) { this.authMethod = authMethod; } - public User applicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { - + this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; return this; } - /** + /** * Application notifications that the user is subscribed to. + * * @return applicationNotificationSubscriptions - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{}", value = "Application notifications that the user is subscribed to.") @@ -442,22 +430,21 @@ public Object getApplicationNotificationSubscriptions() { return applicationNotificationSubscriptions; } - public void setApplicationNotificationSubscriptions(Object applicationNotificationSubscriptions) { this.applicationNotificationSubscriptions = applicationNotificationSubscriptions; } - public User lastSignedIn(OffsetDateTime lastSignedIn) { - + this.lastSignedIn = lastSignedIn; return this; } - /** + /** * Timestamp when the user last signed in to Talon.One. + * * @return lastSignedIn - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "Timestamp when the user last signed in to Talon.One.") @@ -465,22 +452,21 @@ public OffsetDateTime getLastSignedIn() { return lastSignedIn; } - public void setLastSignedIn(OffsetDateTime lastSignedIn) { this.lastSignedIn = lastSignedIn; } - public User lastAccessed(OffsetDateTime lastAccessed) { - + this.lastAccessed = lastAccessed; return this; } - /** + /** * Timestamp of the user's last activity after signing in to Talon.One. + * * @return lastAccessed - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-09-12T10:14:42Z", value = "Timestamp of the user's last activity after signing in to Talon.One.") @@ -488,22 +474,21 @@ public OffsetDateTime getLastAccessed() { return lastAccessed; } - public void setLastAccessed(OffsetDateTime lastAccessed) { this.lastAccessed = lastAccessed; } - public User latestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { - + this.latestFeedTimestamp = latestFeedTimestamp; return this; } - /** + /** * Timestamp when the user was notified for feed. + * * @return latestFeedTimestamp - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2020-06-01T00:00Z", value = "Timestamp when the user was notified for feed.") @@ -511,22 +496,21 @@ public OffsetDateTime getLatestFeedTimestamp() { return latestFeedTimestamp; } - public void setLatestFeedTimestamp(OffsetDateTime latestFeedTimestamp) { this.latestFeedTimestamp = latestFeedTimestamp; } - public User additionalAttributes(Object additionalAttributes) { - + this.additionalAttributes = additionalAttributes; return this; } - /** + /** * Additional user attributes, created and used by external identity providers. + * * @return additionalAttributes - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{}", value = "Additional user attributes, created and used by external identity providers.") @@ -534,12 +518,10 @@ public Object getAdditionalAttributes() { return additionalAttributes; } - public void setAdditionalAttributes(Object additionalAttributes) { this.additionalAttributes = additionalAttributes; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -570,10 +552,11 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, email, accountId, name, state, inviteToken, isAdmin, policy, roles, authMethod, applicationNotificationSubscriptions, lastSignedIn, lastAccessed, latestFeedTimestamp, additionalAttributes); + return Objects.hash(id, created, modified, email, accountId, name, state, inviteToken, isAdmin, policy, roles, + authMethod, applicationNotificationSubscriptions, lastSignedIn, lastAccessed, latestFeedTimestamp, + additionalAttributes); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -590,7 +573,8 @@ public String toString() { sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); - sb.append(" applicationNotificationSubscriptions: ").append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); + sb.append(" applicationNotificationSubscriptions: ") + .append(toIndentedString(applicationNotificationSubscriptions)).append("\n"); sb.append(" lastSignedIn: ").append(toIndentedString(lastSignedIn)).append("\n"); sb.append(" lastAccessed: ").append(toIndentedString(lastAccessed)).append("\n"); sb.append(" latestFeedTimestamp: ").append(toIndentedString(latestFeedTimestamp)).append("\n"); @@ -611,4 +595,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/UserEntity.java b/src/main/java/one/talon/model/UserEntity.java index 227e35c4..38b898fb 100644 --- a/src/main/java/one/talon/model/UserEntity.java +++ b/src/main/java/one/talon/model/UserEntity.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -31,31 +30,29 @@ public class UserEntity { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Integer userId; + private Long userId; + public UserEntity userId(Long userId) { - public UserEntity userId(Integer userId) { - this.userId = userId; return this; } - /** + /** * The ID of the user associated with this entity. + * * @return userId - **/ + **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Integer getUserId() { + public Long getUserId() { return userId; } - - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,7 +70,6 @@ public int hashCode() { return Objects.hash(userId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -95,4 +91,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/ValueMap.java b/src/main/java/one/talon/model/ValueMap.java index 6e6cd0b9..57fb4180 100644 --- a/src/main/java/one/talon/model/ValueMap.java +++ b/src/main/java/one/talon/model/ValueMap.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -32,7 +31,7 @@ public class ValueMap { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,45 +39,45 @@ public class ValueMap { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Integer createdBy; + private Long createdBy; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; + public ValueMap id(Long id) { - public ValueMap id(Integer id) { - this.id = id; return this; } - /** - * Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. + /** + * Unique ID for this entity. Not to be confused with the Integration ID, which + * is set by your integration layer and used in most endpoints. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public ValueMap created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Get created + * * @return created - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00Z", value = "") @@ -86,57 +85,53 @@ public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } + public ValueMap createdBy(Long createdBy) { - public ValueMap createdBy(Integer createdBy) { - this.createdBy = createdBy; return this; } - /** + /** * The ID of the user who created the value map. + * * @return createdBy - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the value map.") - public Integer getCreatedBy() { + public Long getCreatedBy() { return createdBy; } - - public void setCreatedBy(Integer createdBy) { + public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; } + public ValueMap campaignId(Long campaignId) { - public ValueMap campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * Get campaignId + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "244", required = true, value = "") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -157,7 +152,6 @@ public int hashCode() { return Objects.hash(id, created, createdBy, campaignId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -182,4 +176,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/Webhook.java b/src/main/java/one/talon/model/Webhook.java index ceed365b..ce754fcf 100644 --- a/src/main/java/one/talon/model/Webhook.java +++ b/src/main/java/one/talon/model/Webhook.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class Webhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +46,7 @@ public class Webhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -63,13 +62,13 @@ public class Webhook { @JsonAdapter(VerbEnum.Adapter.class) public enum VerbEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -104,7 +103,7 @@ public void write(final JsonWriter jsonWriter, final VerbEnum enumeration) throw @Override public VerbEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return VerbEnum.fromValue(value); } } @@ -134,132 +133,128 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled; + public Webhook id(Long id) { - public Webhook id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public Webhook created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public Webhook modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public Webhook applicationIds(List applicationIds) { - public Webhook applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public Webhook addApplicationIdsItem(Integer applicationIdsItem) { + public Webhook addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** - * The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. + /** + * The IDs of the Applications in which this webhook is available. An empty + * array means the webhook is available in `All Applications`. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public Webhook title(String title) { - + this.title = title; return this; } - /** + /** * Name or title for this webhook. + * * @return title - **/ + **/ @ApiModelProperty(example = "Send message", required = true, value = "Name or title for this webhook.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public Webhook description(String description) { - + this.description = description; return this; } - /** + /** * A description of the webhook. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A webhook to send a coupon to the user.", value = "A description of the webhook.") @@ -267,58 +262,54 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public Webhook verb(VerbEnum verb) { - + this.verb = verb; return this; } - /** + /** * API method for this webhook. + * * @return verb - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public VerbEnum getVerb() { return verb; } - public void setVerb(VerbEnum verb) { this.verb = verb; } - public Webhook url(String url) { - + this.url = url; return this; } - /** + /** * API URL (supports templating using parameters) for this webhook. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "API URL (supports templating using parameters) for this webhook.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public Webhook headers(List headers) { - + this.headers = headers; return this; } @@ -328,32 +319,32 @@ public Webhook addHeadersItem(String headersItem) { return this; } - /** + /** * List of API HTTP headers for this webhook. + * * @return headers - **/ + **/ @ApiModelProperty(example = "[{\"Authorization\": \"Basic bmF2ZWVua3VtYXIU=\"}, {\"Content-Type\": \"application/json\"}]", required = true, value = "List of API HTTP headers for this webhook.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public Webhook payload(String payload) { - + this.payload = payload; return this; } - /** + /** * API payload (supports templating using parameters) for this webhook. + * * @return payload - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{ \"message\": \"${message}\" }", value = "API payload (supports templating using parameters) for this webhook.") @@ -361,14 +352,12 @@ public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public Webhook params(List params) { - + this.params = params; return this; } @@ -378,44 +367,42 @@ public Webhook addParamsItem(TemplateArgDef paramsItem) { return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @ApiModelProperty(example = "[]", required = true, value = "Array of template argument definitions.") public List getParams() { return params; } - public void setParams(List params) { this.params = params; } - public Webhook enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Enables or disables webhook from showing in the Rule Builder. + * * @return enabled - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Enables or disables webhook from showing in the Rule Builder.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -441,10 +428,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, enabled); + return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, + enabled); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -477,4 +464,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/WebhookActivationLogEntry.java b/src/main/java/one/talon/model/WebhookActivationLogEntry.java index 45625dc7..d2f9deb2 100644 --- a/src/main/java/one/talon/model/WebhookActivationLogEntry.java +++ b/src/main/java/one/talon/model/WebhookActivationLogEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -37,131 +36,126 @@ public class WebhookActivationLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Integer webhookId; + private Long webhookId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Integer campaignId; + private Long campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; - public WebhookActivationLogEntry integrationRequestUuid(String integrationRequestUuid) { - + this.integrationRequestUuid = integrationRequestUuid; return this; } - /** - * UUID reference of the integration request that triggered the effect with the webhook. + /** + * UUID reference of the integration request that triggered the effect with the + * webhook. + * * @return integrationRequestUuid - **/ + **/ @ApiModelProperty(example = "6d3699cf-95bd-444a-b62f-80d6e8391dc9", required = true, value = "UUID reference of the integration request that triggered the effect with the webhook.") public String getIntegrationRequestUuid() { return integrationRequestUuid; } - public void setIntegrationRequestUuid(String integrationRequestUuid) { this.integrationRequestUuid = integrationRequestUuid; } + public WebhookActivationLogEntry webhookId(Long webhookId) { - public WebhookActivationLogEntry webhookId(Integer webhookId) { - this.webhookId = webhookId; return this; } - /** + /** * ID of the webhook that triggered the request. + * * @return webhookId - **/ + **/ @ApiModelProperty(example = "1", required = true, value = "ID of the webhook that triggered the request.") - public Integer getWebhookId() { + public Long getWebhookId() { return webhookId; } - - public void setWebhookId(Integer webhookId) { + public void setWebhookId(Long webhookId) { this.webhookId = webhookId; } + public WebhookActivationLogEntry applicationId(Long applicationId) { - public WebhookActivationLogEntry applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * ID of the application that triggered the webhook. + * * @return applicationId - **/ + **/ @ApiModelProperty(example = "13", required = true, value = "ID of the application that triggered the webhook.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } + public WebhookActivationLogEntry campaignId(Long campaignId) { - public WebhookActivationLogEntry campaignId(Integer campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * ID of the campaign that triggered the webhook. + * * @return campaignId - **/ + **/ @ApiModelProperty(example = "86", required = true, value = "ID of the campaign that triggered the webhook.") - public Integer getCampaignId() { + public Long getCampaignId() { return campaignId; } - - public void setCampaignId(Integer campaignId) { + public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } - public WebhookActivationLogEntry created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * Timestamp of request + * * @return created - **/ + **/ @ApiModelProperty(example = "2023-03-21T13:55:08.571144Z", required = true, value = "Timestamp of request") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,7 +177,6 @@ public int hashCode() { return Objects.hash(integrationRequestUuid, webhookId, applicationId, campaignId, created); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -209,4 +202,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/WebhookLogEntry.java b/src/main/java/one/talon/model/WebhookLogEntry.java index 7afccda3..cb2bb810 100644 --- a/src/main/java/one/talon/model/WebhookLogEntry.java +++ b/src/main/java/one/talon/model/WebhookLogEntry.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -41,11 +40,11 @@ public class WebhookLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Integer webhookId; + private Long webhookId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Integer applicationId; + private Long applicationId; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -61,7 +60,7 @@ public class WebhookLogEntry { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; + private Long status; public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; @SerializedName(SERIALIZED_NAME_REQUEST_TIME) @@ -71,150 +70,144 @@ public class WebhookLogEntry { @SerializedName(SERIALIZED_NAME_RESPONSE_TIME) private OffsetDateTime responseTime; - public WebhookLogEntry id(String id) { - + this.id = id; return this; } - /** + /** * UUID reference of the webhook request. + * * @return id - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "UUID reference of the webhook request.") public String getId() { return id; } - public void setId(String id) { this.id = id; } - public WebhookLogEntry integrationRequestUuid(String integrationRequestUuid) { - + this.integrationRequestUuid = integrationRequestUuid; return this; } - /** + /** * UUID reference of the integration request linked to this webhook request. + * * @return integrationRequestUuid - **/ + **/ @ApiModelProperty(example = "472075793", required = true, value = "UUID reference of the integration request linked to this webhook request.") public String getIntegrationRequestUuid() { return integrationRequestUuid; } - public void setIntegrationRequestUuid(String integrationRequestUuid) { this.integrationRequestUuid = integrationRequestUuid; } + public WebhookLogEntry webhookId(Long webhookId) { - public WebhookLogEntry webhookId(Integer webhookId) { - this.webhookId = webhookId; return this; } - /** + /** * ID of the webhook that triggered the request. + * * @return webhookId - **/ + **/ @ApiModelProperty(example = "5", required = true, value = "ID of the webhook that triggered the request.") - public Integer getWebhookId() { + public Long getWebhookId() { return webhookId; } - - public void setWebhookId(Integer webhookId) { + public void setWebhookId(Long webhookId) { this.webhookId = webhookId; } + public WebhookLogEntry applicationId(Long applicationId) { - public WebhookLogEntry applicationId(Integer applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * ID of the application that triggered the webhook. + * * @return applicationId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "12", value = "ID of the application that triggered the webhook.") - public Integer getApplicationId() { + public Long getApplicationId() { return applicationId; } - - public void setApplicationId(Integer applicationId) { + public void setApplicationId(Long applicationId) { this.applicationId = applicationId; } - public WebhookLogEntry url(String url) { - + this.url = url; return this; } - /** + /** * The target URL of the request. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "The target URL of the request.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public WebhookLogEntry request(String request) { - + this.request = request; return this; } - /** + /** * Request message + * * @return request - **/ + **/ @ApiModelProperty(example = "{ mydata: \"somevalue\" } ", required = true, value = "Request message") public String getRequest() { return request; } - public void setRequest(String request) { this.request = request; } - public WebhookLogEntry response(String response) { - + this.response = response; return this; } - /** + /** * Response message + * * @return response - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "", value = "Response message") @@ -222,67 +215,64 @@ public String getResponse() { return response; } - public void setResponse(String response) { this.response = response; } + public WebhookLogEntry status(Long status) { - public WebhookLogEntry status(Integer status) { - this.status = status; return this; } - /** + /** * HTTP status code of response. + * * @return status - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "204", value = "HTTP status code of response.") - public Integer getStatus() { + public Long getStatus() { return status; } - - public void setStatus(Integer status) { + public void setStatus(Long status) { this.status = status; } - public WebhookLogEntry requestTime(OffsetDateTime requestTime) { - + this.requestTime = requestTime; return this; } - /** + /** * Timestamp of request + * * @return requestTime - **/ + **/ @ApiModelProperty(example = "2021-07-20T22:00Z", required = true, value = "Timestamp of request") public OffsetDateTime getRequestTime() { return requestTime; } - public void setRequestTime(OffsetDateTime requestTime) { this.requestTime = requestTime; } - public WebhookLogEntry responseTime(OffsetDateTime responseTime) { - + this.responseTime = responseTime; return this; } - /** + /** * Timestamp of response + * * @return responseTime - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "2021-07-20T22:00:50Z", value = "Timestamp of response") @@ -290,12 +280,10 @@ public OffsetDateTime getResponseTime() { return responseTime; } - public void setResponseTime(OffsetDateTime responseTime) { this.responseTime = responseTime; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -319,10 +307,10 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, integrationRequestUuid, webhookId, applicationId, url, request, response, status, requestTime, responseTime); + return Objects.hash(id, integrationRequestUuid, webhookId, applicationId, url, request, response, status, + requestTime, responseTime); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -353,4 +341,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java b/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java index 5bde72b4..f53f0a0d 100644 --- a/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java +++ b/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -35,7 +34,7 @@ public class WebhookWithOutgoingIntegrationDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Integer id; + private Long id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +46,7 @@ public class WebhookWithOutgoingIntegrationDetails { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -63,13 +62,13 @@ public class WebhookWithOutgoingIntegrationDetails { @JsonAdapter(VerbEnum.Adapter.class) public enum VerbEnum { POST("POST"), - + PUT("PUT"), - + GET("GET"), - + DELETE("DELETE"), - + PATCH("PATCH"); private String value; @@ -104,7 +103,7 @@ public void write(final JsonWriter jsonWriter, final VerbEnum enumeration) throw @Override public VerbEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return VerbEnum.fromValue(value); } } @@ -136,142 +135,138 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TEMPLATE_ID = "outgoingIntegrationTemplateId"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TEMPLATE_ID) - private Integer outgoingIntegrationTemplateId; + private Long outgoingIntegrationTemplateId; public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_ID = "outgoingIntegrationTypeId"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_ID) - private Integer outgoingIntegrationTypeId; + private Long outgoingIntegrationTypeId; public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_NAME = "outgoingIntegrationTypeName"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_NAME) private String outgoingIntegrationTypeName; + public WebhookWithOutgoingIntegrationDetails id(Long id) { - public WebhookWithOutgoingIntegrationDetails id(Integer id) { - this.id = id; return this; } - /** + /** * Internal ID of this entity. + * * @return id - **/ + **/ @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") - public Integer getId() { + public Long getId() { return id; } - - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public WebhookWithOutgoingIntegrationDetails created(OffsetDateTime created) { - + this.created = created; return this; } - /** + /** * The time this entity was created. + * * @return created - **/ + **/ @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") public OffsetDateTime getCreated() { return created; } - public void setCreated(OffsetDateTime created) { this.created = created; } - public WebhookWithOutgoingIntegrationDetails modified(OffsetDateTime modified) { - + this.modified = modified; return this; } - /** + /** * The time this entity was last modified. + * * @return modified - **/ + **/ @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") public OffsetDateTime getModified() { return modified; } - public void setModified(OffsetDateTime modified) { this.modified = modified; } + public WebhookWithOutgoingIntegrationDetails applicationIds(List applicationIds) { - public WebhookWithOutgoingIntegrationDetails applicationIds(List applicationIds) { - this.applicationIds = applicationIds; return this; } - public WebhookWithOutgoingIntegrationDetails addApplicationIdsItem(Integer applicationIdsItem) { + public WebhookWithOutgoingIntegrationDetails addApplicationIdsItem(Long applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } - /** - * The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. + /** + * The IDs of the Applications in which this webhook is available. An empty + * array means the webhook is available in `All Applications`. + * * @return applicationIds - **/ + **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } - public WebhookWithOutgoingIntegrationDetails title(String title) { - + this.title = title; return this; } - /** + /** * Name or title for this webhook. + * * @return title - **/ + **/ @ApiModelProperty(example = "Send message", required = true, value = "Name or title for this webhook.") public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - public WebhookWithOutgoingIntegrationDetails description(String description) { - + this.description = description; return this; } - /** + /** * A description of the webhook. + * * @return description - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "A webhook to send a coupon to the user.", value = "A description of the webhook.") @@ -279,58 +274,54 @@ public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - public WebhookWithOutgoingIntegrationDetails verb(VerbEnum verb) { - + this.verb = verb; return this; } - /** + /** * API method for this webhook. + * * @return verb - **/ + **/ @ApiModelProperty(example = "POST", required = true, value = "API method for this webhook.") public VerbEnum getVerb() { return verb; } - public void setVerb(VerbEnum verb) { this.verb = verb; } - public WebhookWithOutgoingIntegrationDetails url(String url) { - + this.url = url; return this; } - /** + /** * API URL (supports templating using parameters) for this webhook. + * * @return url - **/ + **/ @ApiModelProperty(example = "www.my-company.com/my-endpoint-name", required = true, value = "API URL (supports templating using parameters) for this webhook.") public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } - public WebhookWithOutgoingIntegrationDetails headers(List headers) { - + this.headers = headers; return this; } @@ -340,32 +331,32 @@ public WebhookWithOutgoingIntegrationDetails addHeadersItem(String headersItem) return this; } - /** + /** * List of API HTTP headers for this webhook. + * * @return headers - **/ + **/ @ApiModelProperty(example = "[{\"Authorization\": \"Basic bmF2ZWVua3VtYXIU=\"}, {\"Content-Type\": \"application/json\"}]", required = true, value = "List of API HTTP headers for this webhook.") public List getHeaders() { return headers; } - public void setHeaders(List headers) { this.headers = headers; } - public WebhookWithOutgoingIntegrationDetails payload(String payload) { - + this.payload = payload; return this; } - /** + /** * API payload (supports templating using parameters) for this webhook. + * * @return payload - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "{ \"message\": \"${message}\" }", value = "API payload (supports templating using parameters) for this webhook.") @@ -373,14 +364,12 @@ public String getPayload() { return payload; } - public void setPayload(String payload) { this.payload = payload; } - public WebhookWithOutgoingIntegrationDetails params(List params) { - + this.params = params; return this; } @@ -390,100 +379,97 @@ public WebhookWithOutgoingIntegrationDetails addParamsItem(TemplateArgDef params return this; } - /** + /** * Array of template argument definitions. + * * @return params - **/ + **/ @ApiModelProperty(example = "[]", required = true, value = "Array of template argument definitions.") public List getParams() { return params; } - public void setParams(List params) { this.params = params; } - public WebhookWithOutgoingIntegrationDetails enabled(Boolean enabled) { - + this.enabled = enabled; return this; } - /** + /** * Enables or disables webhook from showing in the Rule Builder. + * * @return enabled - **/ + **/ @ApiModelProperty(example = "true", required = true, value = "Enables or disables webhook from showing in the Rule Builder.") public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { this.enabled = enabled; } + public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTemplateId(Long outgoingIntegrationTemplateId) { - public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTemplateId(Integer outgoingIntegrationTemplateId) { - this.outgoingIntegrationTemplateId = outgoingIntegrationTemplateId; return this; } - /** + /** * Identifier of the outgoing integration template. + * * @return outgoingIntegrationTemplateId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Identifier of the outgoing integration template.") - public Integer getOutgoingIntegrationTemplateId() { + public Long getOutgoingIntegrationTemplateId() { return outgoingIntegrationTemplateId; } - - public void setOutgoingIntegrationTemplateId(Integer outgoingIntegrationTemplateId) { + public void setOutgoingIntegrationTemplateId(Long outgoingIntegrationTemplateId) { this.outgoingIntegrationTemplateId = outgoingIntegrationTemplateId; } + public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeId(Long outgoingIntegrationTypeId) { - public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeId(Integer outgoingIntegrationTypeId) { - this.outgoingIntegrationTypeId = outgoingIntegrationTypeId; return this; } - /** + /** * Identifier of the outgoing integration type. + * * @return outgoingIntegrationTypeId - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Identifier of the outgoing integration type.") - public Integer getOutgoingIntegrationTypeId() { + public Long getOutgoingIntegrationTypeId() { return outgoingIntegrationTypeId; } - - public void setOutgoingIntegrationTypeId(Integer outgoingIntegrationTypeId) { + public void setOutgoingIntegrationTypeId(Long outgoingIntegrationTypeId) { this.outgoingIntegrationTypeId = outgoingIntegrationTypeId; } - public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeName(String outgoingIntegrationTypeName) { - + this.outgoingIntegrationTypeName = outgoingIntegrationTypeName; return this; } - /** + /** * Name of the outgoing integration. + * * @return outgoingIntegrationTypeName - **/ + **/ @javax.annotation.Nullable @ApiModelProperty(example = "Braze", value = "Name of the outgoing integration.") @@ -491,12 +477,10 @@ public String getOutgoingIntegrationTypeName() { return outgoingIntegrationTypeName; } - public void setOutgoingIntegrationTypeName(String outgoingIntegrationTypeName) { this.outgoingIntegrationTypeName = outgoingIntegrationTypeName; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -518,17 +502,21 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.payload, webhookWithOutgoingIntegrationDetails.payload) && Objects.equals(this.params, webhookWithOutgoingIntegrationDetails.params) && Objects.equals(this.enabled, webhookWithOutgoingIntegrationDetails.enabled) && - Objects.equals(this.outgoingIntegrationTemplateId, webhookWithOutgoingIntegrationDetails.outgoingIntegrationTemplateId) && - Objects.equals(this.outgoingIntegrationTypeId, webhookWithOutgoingIntegrationDetails.outgoingIntegrationTypeId) && - Objects.equals(this.outgoingIntegrationTypeName, webhookWithOutgoingIntegrationDetails.outgoingIntegrationTypeName); + Objects.equals(this.outgoingIntegrationTemplateId, + webhookWithOutgoingIntegrationDetails.outgoingIntegrationTemplateId) + && + Objects.equals(this.outgoingIntegrationTypeId, webhookWithOutgoingIntegrationDetails.outgoingIntegrationTypeId) + && + Objects.equals(this.outgoingIntegrationTypeName, + webhookWithOutgoingIntegrationDetails.outgoingIntegrationTypeName); } @Override public int hashCode() { - return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, enabled, outgoingIntegrationTemplateId, outgoingIntegrationTypeId, outgoingIntegrationTypeName); + return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, + enabled, outgoingIntegrationTemplateId, outgoingIntegrationTypeId, outgoingIntegrationTypeName); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -545,7 +533,8 @@ public String toString() { sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append(" outgoingIntegrationTemplateId: ").append(toIndentedString(outgoingIntegrationTemplateId)).append("\n"); + sb.append(" outgoingIntegrationTemplateId: ").append(toIndentedString(outgoingIntegrationTemplateId)) + .append("\n"); sb.append(" outgoingIntegrationTypeId: ").append(toIndentedString(outgoingIntegrationTypeId)).append("\n"); sb.append(" outgoingIntegrationTypeName: ").append(toIndentedString(outgoingIntegrationTypeName)).append("\n"); sb.append("}"); @@ -564,4 +553,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java b/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java index e26bf78d..209feee5 100644 --- a/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java +++ b/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.model; import java.util.Objects; @@ -25,14 +24,18 @@ import java.io.IOException; /** - * The properties specific to the \"awardGiveaway\" effect when the session is not closed yet. This effect replaces \"awardGiveaway\" only when updating a session with any state other than \"closed\". This is to ensure no giveaway codes are leaked when they are still not guaranteed to be awarded. + * The properties specific to the \"awardGiveaway\" effect when the + * session is not closed yet. This effect replaces \"awardGiveaway\" + * only when updating a session with any state other than \"closed\". + * This is to ensure no giveaway codes are leaked when they are still not + * guaranteed to be awarded. */ @ApiModel(description = "The properties specific to the \"awardGiveaway\" effect when the session is not closed yet. This effect replaces \"awardGiveaway\" only when updating a session with any state other than \"closed\". This is to ensure no giveaway codes are leaked when they are still not guaranteed to be awarded.") public class WillAwardGiveawayEffectProps { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Integer poolId; + private Long poolId; public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; @SerializedName(SERIALIZED_NAME_POOL_NAME) @@ -42,73 +45,69 @@ public class WillAwardGiveawayEffectProps { @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) private String recipientIntegrationId; + public WillAwardGiveawayEffectProps poolId(Long poolId) { - public WillAwardGiveawayEffectProps poolId(Integer poolId) { - this.poolId = poolId; return this; } - /** + /** * The ID of the giveaways pool the code will be taken from. + * * @return poolId - **/ + **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the giveaways pool the code will be taken from.") - public Integer getPoolId() { + public Long getPoolId() { return poolId; } - - public void setPoolId(Integer poolId) { + public void setPoolId(Long poolId) { this.poolId = poolId; } - public WillAwardGiveawayEffectProps poolName(String poolName) { - + this.poolName = poolName; return this; } - /** + /** * The name of the giveaways pool the code will be taken from. + * * @return poolName - **/ + **/ @ApiModelProperty(example = "My pool", required = true, value = "The name of the giveaways pool the code will be taken from.") public String getPoolName() { return poolName; } - public void setPoolName(String poolName) { this.poolName = poolName; } - public WillAwardGiveawayEffectProps recipientIntegrationId(String recipientIntegrationId) { - + this.recipientIntegrationId = recipientIntegrationId; return this; } - /** + /** * The integration ID of the profile that will be awarded the giveaway. + * * @return recipientIntegrationId - **/ + **/ @ApiModelProperty(example = "URNGV8294NV", required = true, value = "The integration ID of the profile that will be awarded the giveaway.") public String getRecipientIntegrationId() { return recipientIntegrationId; } - public void setRecipientIntegrationId(String recipientIntegrationId) { this.recipientIntegrationId = recipientIntegrationId; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,7 +127,6 @@ public int hashCode() { return Objects.hash(poolId, poolName, recipientIntegrationId); } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -152,4 +150,3 @@ private String toIndentedString(java.lang.Object o) { } } - diff --git a/src/test/java/one/talon/api/IntegrationApiTest.java b/src/test/java/one/talon/api/IntegrationApiTest.java index 31aa2f5b..bd391f08 100644 --- a/src/test/java/one/talon/api/IntegrationApiTest.java +++ b/src/test/java/one/talon/api/IntegrationApiTest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.api; import one.talon.ApiException; @@ -69,14 +68,27 @@ public class IntegrationApiTest { private final IntegrationApi api = new IntegrationApi(); - /** * Create audience * - * Create an audience. The audience can be created directly from scratch or can come from third party platforms. **Note:** Audiences can also be created from scratch via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To create an audience from an existing audience from a [technology partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. Set the `integration` property to `mparticle`, `segment` etc., depending on a third-party platform. 1. Set `integrationId` to the ID of this audience in a third-party platform. To create an audience from an existing audience in another platform: 1. Do not use the `integration` property. 1. Set `integrationId` to the ID of this audience in the 3rd-party platform. To create an audience from scratch: 1. Only set the `name` property. Once you create your first audience, audience-specific rule conditions are enabled in the Rule Builder. + * Create an audience. The audience can be created directly from scratch or can + * come from third party platforms. **Note:** Audiences can also be created from + * scratch via the Campaign Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To + * create an audience from an existing audience from a [technology + * partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. + * Set the `integration` property to `mparticle`, + * `segment` etc., depending on a third-party platform. 1. Set + * `integrationId` to the ID of this audience in a third-party + * platform. To create an audience from an existing audience in another + * platform: 1. Do not use the `integration` property. 1. Set + * `integrationId` to the ID of this audience in the 3rd-party + * platform. To create an audience from scratch: 1. Only set the + * `name` property. Once you create your first audience, + * audience-specific rule conditions are enabled in the Rule Builder. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createAudienceV2Test() throws ApiException { @@ -85,14 +97,41 @@ public void createAudienceV2Test() throws ApiException { // TODO: test validations } - + /** * Create coupon reservation * - * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint. + * Create a coupon reservation for the specified customer profiles on the + * specified coupon. You can also create a reservation via the Campaign Manager + * using the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect. **Note:** - If the **Reservation mandatory** option was selected when + * creating the specified coupon, the endpoint creates a **hard** reservation, + * meaning only users who have this coupon code reserved can redeem it. + * Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is + * associated with the specified customer profiles (they show up when using the + * [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint), but any user can redeem it. This can be useful, for example, to + * display a _coupon wallet_ for customers when they visit your store. - If the + * **Coupon visibility** option was selected when creating the specified coupon, + * the coupon code is implicitly soft-reserved for all customers, and the code + * will be returned for all customer profiles in the [List customer + * data](https://docs.talon.one/integration-api#operation/getCustomerInventory) + * endpoint. - This endpoint overrides the coupon reservation limit set when + * [the coupon is + * created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). + * To ensure that coupons cannot be reserved after the reservation limit is + * reached, use the [Create coupon code + * reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) + * effect in the Rule Builder and the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint. To delete a reservation, use the [Delete + * reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCouponReservationTest() throws ApiException { @@ -102,14 +141,20 @@ public void createCouponReservationTest() throws ApiException { // TODO: test validations } - + /** * Create referral code for an advocate * - * Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. + * Creates a referral code for an advocate. The code will be valid for the + * referral campaign for which is created, indicated in the + * `campaignId` parameter, and will be associated with the profile + * specified in the `advocateProfileIntegrationId` parameter as the + * advocate's profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createReferralTest() throws ApiException { @@ -118,14 +163,21 @@ public void createReferralTest() throws ApiException { // TODO: test validations } - + /** * Create referral codes for multiple advocates * - * Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the `campaignId` parameter, and one referral code will be associated with one advocate using the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile. **Note:** Any [referral limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) set are ignored when you use this endpoint. + * Creates unique referral codes for multiple advocates. The code will be valid + * for the referral campaign for which it is created, indicated in the + * `campaignId` parameter, and one referral code will be associated + * with one advocate using the profile specified in the + * `advocateProfileIntegrationId` parameter as the advocate's + * profile. **Note:** Any [referral + * limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets#referral-limits) + * set are ignored when you use this endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createReferralsForMultipleAdvocatesTest() throws ApiException { @@ -135,46 +187,51 @@ public void createReferralsForMultipleAdvocatesTest() throws ApiException { // TODO: test validations } - + /** * Delete audience memberships * - * Remove all members from this audience. + * Remove all members from this audience. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteAudienceMembershipsV2Test() throws ApiException { - Integer audienceId = null; + Long audienceId = null; api.deleteAudienceMembershipsV2(audienceId); // TODO: test validations } - + /** * Delete audience * - * Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). + * Delete an audience created by a third-party integration. **Warning:** This + * endpoint also removes any associations recorded between a customer profile + * and this audience. **Note:** Audiences can also be deleted via the Campaign + * Manager. See the + * [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteAudienceV2Test() throws ApiException { - Integer audienceId = null; + Long audienceId = null; api.deleteAudienceV2(audienceId); // TODO: test validations } - + /** * Delete coupon reservations * - * Remove all the coupon reservations from the provided customer profile integration IDs and the provided coupon code. + * Remove all the coupon reservations from the provided customer profile + * integration IDs and the provided coupon code. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCouponReservationTest() throws ApiException { @@ -184,14 +241,22 @@ public void deleteCouponReservationTest() throws ApiException { // TODO: test validations } - + /** * Delete customer's personal data * - * Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** - Customer data is deleted from all Applications in the [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) that the API key belongs to. For example, if you use this endpoint with an API key that belongs to a sandbox Application, customer data will be deleted from all sandbox Applications. This is because customer data is shared between Applications from the same environment. - To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours. + * Delete all attributes on the customer profile and on entities that reference + * this customer profile. **Important:** - Customer data is deleted from all + * Applications in the + * [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) + * that the API key belongs to. For example, if you use this endpoint with an + * API key that belongs to a sandbox Application, customer data will be deleted + * from all sandbox Applications. This is because customer data is shared + * between Applications from the same environment. - To preserve performance, we + * recommend avoiding deleting customer data during peak-traffic hours. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCustomerDataTest() throws ApiException { @@ -200,53 +265,64 @@ public void deleteCustomerDataTest() throws ApiException { // TODO: test validations } - + /** * Generate loyalty card * - * Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier. + * Generate a loyalty card in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). + * To link the card to one or more customer profiles, use the + * `customerProfileIds` parameter in the request body. **Note:** - The + * number of customer profiles linked to the loyalty card cannot exceed the + * loyalty program's `usersPerCardLimit`. To find the + * program's limit, use the [Get loyalty + * program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) + * endpoint. - If the loyalty program has a defined code format, it will be used + * for the loyalty card identifier. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void generateLoyaltyCardTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; GenerateLoyaltyCard body = null; LoyaltyCard response = api.generateLoyaltyCard(loyaltyProgramId, body); // TODO: test validations } - + /** * List customer's achievement history * - * Retrieve all progress history of a given customer in the given achievement. + * Retrieve all progress history of a given customer in the given achievement. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerAchievementHistoryTest() throws ApiException { String integrationId = null; - Integer achievementId = null; + Long achievementId = null; List progressStatus = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2002 response = api.getCustomerAchievementHistory(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2002 response = api.getCustomerAchievementHistory(integrationId, achievementId, progressStatus, + startDate, endDate, pageSize, skip); // TODO: test validations } - + /** * List customer's available achievements * - * Retrieve all the achievements available to a given customer and their progress in them. + * Retrieve all the achievements available to a given customer and their + * progress in them. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerAchievementsTest() throws ApiException { @@ -255,20 +331,24 @@ public void getCustomerAchievementsTest() throws ApiException { List achievementIds = null; List achievementStatus = null; List currentProgressStatus = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2001 response = api.getCustomerAchievements(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2001 response = api.getCustomerAchievements(integrationId, campaignIds, achievementIds, + achievementStatus, currentProgressStatus, pageSize, skip); // TODO: test validations } - + /** * List customer data * - * Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons. + * Return the customer inventory regarding entities referencing this customer + * profile's `integrationId`. Typical entities returned are: + * customer profile information, referral codes, loyalty points, loyalty cards + * and reserved coupons. Reserved coupons also include redeemed coupons. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerInventoryTest() throws ApiException { @@ -279,18 +359,23 @@ public void getCustomerInventoryTest() throws ApiException { Boolean loyalty = null; Boolean giveaways = null; Boolean achievements = null; - CustomerInventory response = api.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements); + CustomerInventory response = api.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, + giveaways, achievements); // TODO: test validations } - + /** * Get customer session * - * Get the details of the given customer session. You can get the same data via other endpoints that also apply changes, which can help you save requests and increase performance. See: - [Update customer session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) + * Get the details of the given customer session. You can get the same data via + * other endpoints that also apply changes, which can help you save requests and + * increase performance. See: - [Update customer + * session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update + * customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerSessionTest() throws ApiException { @@ -299,142 +384,180 @@ public void getCustomerSessionTest() throws ApiException { // TODO: test validations } - + /** * Get customer's loyalty balances * - * Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID, and include tier-related information in the response. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) + * Retrieve loyalty ledger balances for the given Integration ID in the + * specified loyalty program. You can filter balances by date and subledger ID, + * and include tier-related information in the response. **Note**: If no + * filtering options are applied, you retrieve all loyalty balances on the + * current date for the given integration ID. Loyalty balances are calculated + * when Talon.One receives your request using the points stored in our database, + * so retrieving a large number of balances at once can impact performance. For + * more information, see: - [Managing card-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) + * - [Managing profile-based loyalty program + * data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data) * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyBalancesTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String integrationId = null; OffsetDateTime endDate = null; String subledgerId = null; Boolean includeTiers = null; Boolean includeProjectedTier = null; - LoyaltyBalancesWithTiers response = api.getLoyaltyBalances(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier); + LoyaltyBalancesWithTiers response = api.getLoyaltyBalances(loyaltyProgramId, integrationId, endDate, + subledgerId, includeTiers, includeProjectedTier); // TODO: test validations } - + /** * Get card's point balances * - * Retrieve loyalty balances for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, all loyalty balances for the given loyalty card are returned. + * Retrieve loyalty balances for the given loyalty card in the specified loyalty + * program with filtering options applied. If no filtering options are applied, + * all loyalty balances for the given loyalty card are returned. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardBalancesTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime endDate = null; List subledgerId = null; - LoyaltyCardBalances response = api.getLoyaltyCardBalances(loyaltyProgramId, loyaltyCardId, endDate, subledgerId); + LoyaltyCardBalances response = api.getLoyaltyCardBalances(loyaltyProgramId, loyaltyCardId, endDate, + subledgerId); // TODO: test validations } - + /** * List card's unused loyalty points * - * Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. + * Get paginated results of loyalty points for a given loyalty card identifier + * in a card-based loyalty program. This endpoint returns only the balances of + * unused points on a loyalty card. You can filter points by status: - + * `active`: Points ready to be redeemed. - `pending`: + * Points with a start date in the future. - `expired`: Points with an + * expiration date in the past. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardPointsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; String status = null; List subledgerId = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2005 response = api.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2005 response = api.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, + pageSize, skip); // TODO: test validations } - + /** * List card's transactions * - * Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. + * Retrieve loyalty transaction logs for the given loyalty card in the specified + * loyalty program with filtering options applied. If no filtering options are + * applied, the last 50 loyalty transactions for the given loyalty card are + * returned. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardTransactionsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; List subledgerId = null; String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2003 response = api.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2003 response = api.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, + loyaltyTransactionType, startDate, endDate, pageSize, skip); // TODO: test validations } - + /** * List customer's unused loyalty points * - * Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past. + * Get paginated results of loyalty points for a given Integration ID in the + * specified profile-based loyalty program. This endpoint returns only the + * balances of unused points linked to a customer profile. You can filter points + * by status: - `active`: Points ready to be redeemed. - + * `pending`: Points with a start date in the future. - + * `expired`: Points with an expiration date in the past. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyProgramProfilePointsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String integrationId = null; String status = null; String subledgerId = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2006 response = api.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2006 response = api.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, + subledgerId, pageSize, skip); // TODO: test validations } - + /** * List customer's loyalty transactions * - * 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. + * 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. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyProgramProfileTransactionsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String integrationId = null; String subledgerId = null; String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse2004 response = api.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse2004 response = api.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, + subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); // TODO: test validations } - + /** * List customers that have this coupon reserved * - * Return all customers that have this coupon marked as reserved. This includes hard and soft reservations. + * Return all customers that have this coupon marked as reserved. This includes + * hard and soft reservations. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getReservedCustomersTest() throws ApiException { @@ -443,32 +566,70 @@ public void getReservedCustomersTest() throws ApiException { // TODO: test validations } - + /** * Link customer profile to card * - * [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows. + * [Loyalty + * cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * allow customers to collect and spend loyalty points within a [card-based + * loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * They are useful to gamify loyalty programs and can be used with or without + * customer profiles linked to them. Link a customer profile to a given loyalty + * card for the card to be set as **Registered**. This affects how it can be + * used. See the + * [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). + * **Note:** You can link as many customer profiles to a given loyalty card as + * the [**card user + * limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) + * allows. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void linkLoyaltyCardToProfileTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; LoyaltyCardRegistration body = null; LoyaltyCard response = api.linkLoyaltyCardToProfile(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations } - + /** * Reopen customer session * - * Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The `talon_session_reopened` event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to `open`. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. <details> <summary><strong>Effects and budgets unimpacted by a session reopening</strong></summary> <div> <p>The following effects and budgets are left the way they were once the session was originally closed:</p> <ul> <li>Add free item effect</li> <li>Any <strong>non-pending</strong> loyalty points</li> <li>Award giveaway</li> <li>Coupon and referral creation</li> <li>Coupon reservation</li> <li>Custom effect</li> <li>Update attribute value</li> <li>Update cart item attribute value</li> </ul> </div> <p>To see an example of roll back, see the <a href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling a session with campaign budgets tutorial</a>.</p> </details> **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one. + * Reopen a closed [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * For example, if a session has been completed but still needs to be edited, + * you can reopen it with this endpoint. A reopen session is treated like a + * standard open session. When reopening a session: - The + * `talon_session_reopened` event is triggered. You can see it in the + * **Events** view in the Campaign Manager. - The session state is updated to + * `open`. - Modified budgets and triggered effects when the session + * was closed are rolled back except for the list below. <details> + * <summary><strong>Effects and budgets unimpacted by a session + * reopening</strong></summary> <div> <p>The following + * effects and budgets are left the way they were once the session was + * originally closed:</p> <ul> <li>Add free item + * effect</li> <li>Any <strong>non-pending</strong> + * loyalty points</li> <li>Award giveaway</li> + * <li>Coupon and referral creation</li> <li>Coupon + * reservation</li> <li>Custom effect</li> <li>Update + * attribute value</li> <li>Update cart item attribute + * value</li> </ul> </div> <p>To see an example of roll + * back, see the <a + * href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling + * a session with campaign budgets tutorial</a>.</p> + * </details> **Note:** If your order workflow requires you to create a + * new session instead of reopening a session, use the [Update customer + * session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) + * endpoint to cancel a closed session and create a new one. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void reopenCustomerSessionTest() throws ApiException { @@ -477,14 +638,21 @@ public void reopenCustomerSessionTest() throws ApiException { // TODO: test validations } - + /** * Return cart items * - * Create a new return request for the specified cart items. This endpoint automatically changes the session state from `closed` to `partially_returned`. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). + * Create a new return request for the specified cart items. This endpoint + * automatically changes the session state from `closed` to + * `partially_returned`. **Note:** This will roll back any effects + * associated with these cart items. For more information, see [our + * documentation on session + * states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * and [this + * tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void returnCartItemsTest() throws ApiException { @@ -495,31 +663,141 @@ public void returnCartItemsTest() throws ApiException { // TODO: test validations } - + /** * Sync cart item catalog * - * Perform the following actions for a given cart item catalog: - Add an item to the catalog. - Add multiple items to the catalog. - Update the attributes of an item in the catalog. - Update the attributes of multiple items in the catalog. - Remove an item from the catalog. - Remove multiple items from the catalog. You can either add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: You can perform only one type of action in a single sync request. Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding multiple items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of multiple items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing multiple items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> + * Perform the following actions for a given cart item catalog: - Add an item to + * the catalog. - Add multiple items to the catalog. - Update the attributes of + * an item in the catalog. - Update the attributes of multiple items in the + * catalog. - Remove an item from the catalog. - Remove multiple items from the + * catalog. You can either add, update, or delete up to 1000 cart items in a + * single request. Each item synced to a catalog must have a unique + * `SKU`. **Important**: You can perform only one type of action in a + * single sync request. Syncing items with duplicate `SKU` values in a + * single request returns an error message with a `400` status code. + * For more information, read [managing cart item + * catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). + * ### Filtering cart items Use [cart item + * attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * to filter items and select the ones you want to edit or delete when editing + * or deleting more than one item at a time. The `filters` array + * contains an object with the following properties: - `attr`: A [cart + * item + * attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) + * connected to the catalog. It is applied to all items in the catalog. - + * `op`: The filtering operator indicating the relationship between + * the value of each cart item in the catalog and the value of the + * `value` property for the attribute selected in `attr`. + * The value of `op` can be one of the following: - `EQ`: + * Equal to `value` - `LT`: Less than `value` - + * `LE`: Less than or equal to `value` - `GT`: + * Greater than `value` - `GE`: Greater than or equal to + * `value` - `IN`: One of the comma-separated values that + * `value` is set to. **Note:** `GE`, `LE`, + * `GT`, `LT` are for numeric values only. - + * `value`: The value of the attribute selected in `attr`. + * ### Payload examples Synchronization actions are sent as `PUT` + * requests. See the structure for each action: <details> + * <summary><strong>Adding an item to the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"Navy blue\", \"type\": + * \"shoes\" }, \"replaceIfExists\": true, + * \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Adding multiple + * items to the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241027\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" }, { \"payload\": { + * \"attributes\": { \"color\": \"Navy blue\", + * \"type\": \"shoes\" }, \"replaceIfExists\": + * true, \"sku\": \"SKU1241028\", \"price\": 100, + * \"product\": { \"name\": \"sneakers\" } }, + * \"type\": \"ADD\" } ] } ``` </div> + * </details> <details> <summary><strong>Updating the + * attributes of an item in the catalog</strong></summary> + * <div> ```json { \"actions\": [ { + * \"payload\": { \"attributes\": { \"age\": 11, + * \"origin\": \"germany\" }, + * \"createIfNotExists\": false, \"sku\": + * \"SKU1241028\", \"product\": { \"name\": + * \"sneakers\" } }, \"type\": \"PATCH\" } ] } + * ``` </div> </details> <details> + * <summary><strong>Updating the attributes of multiple items in the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"attributes\": + * { \"color\": \"red\" }, \"filters\": [ { + * \"attr\": \"color\", \"op\": \"EQ\", + * \"value\": \"blue\" } ] }, \"type\": + * \"PATCH_MANY\" } ] } ``` </div> + * </details> <details> <summary><strong>Removing an + * item from the catalog</strong></summary> <div> + * ```json { \"actions\": [ { \"payload\": { + * \"sku\": \"SKU1241028\" }, \"type\": + * \"REMOVE\" } ] } ``` </div> </details> + * <details> <summary><strong>Removing multiple items from the + * catalog</strong></summary> <div> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"color\", \"op\": + * \"EQ\", \"value\": \"blue\" } ] }, + * \"type\": \"REMOVE_MANY\" } ] } ``` + * </div> </details> <details> + * <summary><strong>Removing shoes of sizes above 45 from the + * catalog</strong></summary> <div> <p> Let's + * imagine that we have a shoe store and we have decided to stop selling shoes + * larger than size 45. We can remove from the catalog all the shoes of sizes + * above 45 with a single action:</p> ```json { + * \"actions\": [ { \"payload\": { \"filters\": [ + * { \"attr\": \"size\", \"op\": \"GT\", + * \"value\": \"45\" } ] }, \"type\": + * \"REMOVE_MANY\" } ] } ``` </div> + * </details> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void syncCatalogTest() throws ApiException { - Integer catalogId = null; + Long catalogId = null; CatalogSyncRequest body = null; Catalog response = api.syncCatalog(catalogId, body); // TODO: test validations } - + /** * Track event * - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Triggers a custom event. To use this endpoint: 1. Define a [custom + * event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) + * in the Campaign Manager. 1. Update or create a rule to check for this event. + * 1. Trigger the event with this endpoint. After you have successfully sent an + * event to Talon.One, you can list the received events in the **Events** view + * in the Campaign Manager. Talon.One also offers a set of [built-in + * events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you + * do not create a custom event when you can use a built-in event. For example, + * use this endpoint to trigger an event when a customer shares a link to a + * product. See the + * [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). + * <div class=\"redoc-section\"> <p + * class=\"title\">Important</p> 1. + * `profileId` is required even though the schema does not say it. 1. + * If the customer profile ID is new, a new profile is automatically created but + * the `customer_profile_created` [built-in event + * ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** + * triggered. 1. We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void trackEventV2Test() throws ApiException { @@ -531,48 +809,56 @@ public void trackEventV2Test() throws ApiException { // TODO: test validations } - + /** * Update profile attributes for all customers in audience * - * Update the specified profile attributes to the provided values for all customers in the specified audience. + * Update the specified profile attributes to the provided values for all + * customers in the specified audience. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAudienceCustomersAttributesTest() throws ApiException { - Integer audienceId = null; + Long audienceId = null; Object body = null; api.updateAudienceCustomersAttributes(audienceId, body); // TODO: test validations } - + /** * Update audience name * - * Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * Update the name of the given audience created by a third-party integration. + * Sending a request to this endpoint does **not** trigger the Rule Engine. To + * update the audience's members, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAudienceV2Test() throws ApiException { - Integer audienceId = null; + Long audienceId = null; UpdateAudience body = null; Audience response = api.updateAudienceV2(audienceId, body); // TODO: test validations } - + /** * Update multiple customer profiles' audiences * - * Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect. + * Add customer profiles to or remove them from an audience. The endpoint + * supports 1000 audience actions (`add` or `remove`) per + * request. **Note:** You can also do this using the [Update + * audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) + * effect. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCustomerProfileAudiencesTest() throws ApiException { @@ -581,14 +867,27 @@ public void updateCustomerProfileAudiencesTest() throws ApiException { // TODO: test validations } - + /** * Update customer profile * - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Update or create a [Customer + * Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). + * This endpoint triggers the Rule Builder. You can use this endpoint to: - Set + * attributes on the given customer profile. Ensure you create the attributes in + * the Campaign Manager, first. - Modify the audience the customer profile is a + * member of. <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer profile returns a response with the requested integration state. - + * You can use the `responseContent` property to save yourself extra + * API calls. For example, you can get the customer profile details directly + * without extra requests. - We recommend sending requests sequentially. See + * [Managing parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCustomerProfileV2Test() throws ApiException { @@ -596,18 +895,28 @@ public void updateCustomerProfileV2Test() throws ApiException { CustomerProfileIntegrationRequestV2 body = null; Boolean runRuleEngine = null; Boolean dry = null; - CustomerProfileIntegrationResponseV2 response = api.updateCustomerProfileV2(integrationId, body, runRuleEngine, dry); + CustomerProfileIntegrationResponseV2 response = api.updateCustomerProfileV2(integrationId, body, runRuleEngine, + dry); // TODO: test validations } - + /** * Update multiple customer profiles * - * Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. + * Update (or create) up to 1000 [customer + * profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * in 1 request. The `integrationId` must be any identifier that + * remains stable for the customer. Do not use an ID that the customer can + * update themselves. For example, you can use a database ID. A customer profile + * [can be linked to one or more + * sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). + * **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule + * Engine for customer profile updates, use the [Update customer + * profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCustomerProfilesV2Test() throws ApiException { @@ -617,14 +926,47 @@ public void updateCustomerProfilesV2Test() throws ApiException { // TODO: test validations } - + /** * Update customer session * - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * Update or create a [customer + * session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). + * The endpoint responds with the potential promotion rule + * [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that + * match the current cart. For example, use this endpoint to share the contents + * of a customer's cart with Talon.One. **Note:** The currency for the + * session and the cart items in the session is the currency set for the + * Application that owns this session. ### Session management To use this + * endpoint, start by learning about [customer + * sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) + * and their states and refer to the `state` parameter documentation + * the request body schema docs below. ### Sessions and customer profiles - To + * link a session to a customer profile, set the `profileId` parameter + * in the request body to a customer profile's `integrationId`. - + * While you can create an anonymous session with + * `profileId=\"\"`, we recommend you use a guest ID + * instead. - A profile can be linked to simultaneous sessions in different + * Applications. Either: - Use unique session integration IDs or, - Use the same + * session integration ID across all of the Applications. **Note:** If the + * specified profile does not exist, an empty profile is **created + * automatically**. You can update it with [Update customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). + * <div class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> - Updating a + * customer session returns a response with the new integration state. Use the + * `responseContent` property to save yourself extra API calls. For + * example, you can get the customer profile details directly without extra + * requests. - We recommend sending requests sequentially. See [Managing + * parallel + * requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + * </div> For more information, see: - The introductory video in [Getting + * started](https://docs.talon.one/docs/dev/getting-started/overview). - The + * [integration + * tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCustomerSessionV2Test() throws ApiException { @@ -636,5 +978,5 @@ public void updateCustomerSessionV2Test() throws ApiException { // TODO: test validations } - + } diff --git a/src/test/java/one/talon/api/ManagementApiTest.java b/src/test/java/one/talon/api/ManagementApiTest.java index f0d5e987..1396396a 100644 --- a/src/test/java/one/talon/api/ManagementApiTest.java +++ b/src/test/java/one/talon/api/ManagementApiTest.java @@ -10,7 +10,6 @@ * Do not edit the class manually. */ - package one.talon.api; import one.talon.ApiException; @@ -152,14 +151,15 @@ public class ManagementApiTest { private final ManagementApi api = new ManagementApi(); - /** * Enable user by email address * - * Enable a [disabled user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * Enable a [disabled + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void activateUserByEmailTest() throws ApiException { @@ -168,32 +168,37 @@ public void activateUserByEmailTest() throws ApiException { // TODO: test validations } - + /** * Add points to card * - * Add points to the given loyalty card in the specified card-based loyalty program. + * Add points to the given loyalty card in the specified card-based loyalty + * program. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void addLoyaltyCardPointsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; AddLoyaltyPoints body = null; api.addLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations } - + /** * Add points to customer profile * - * Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Add points in the specified loyalty program for the given customer. To get + * the `integrationId` of the profile from a `sessionId`, + * use the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void addLoyaltyPointsTest() throws ApiException { @@ -204,32 +209,32 @@ public void addLoyaltyPointsTest() throws ApiException { // TODO: test validations } - + /** * Copy the campaign into the specified Application * * Copy the campaign into all specified Applications. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void copyCampaignToApplicationsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; CampaignCopy body = null; InlineResponse2008 response = api.copyCampaignToApplications(applicationId, campaignId, body); // TODO: test validations } - + /** * Create account-level collection * * Create an account-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createAccountCollectionTest() throws ApiException { @@ -238,32 +243,35 @@ public void createAccountCollectionTest() throws ApiException { // TODO: test validations } - + /** * Create achievement * * Create a new achievement in a specific campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createAchievementTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; CreateAchievement body = null; Achievement response = api.createAchievement(applicationId, campaignId, body); // TODO: test validations } - + /** * Create additional cost * - * Create an [additional cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). These additional costs are shared across all applications in your account, and are never required. + * Create an [additional + * cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). + * These additional costs are shared across all applications in your account, + * and are never required. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createAdditionalCostTest() throws ApiException { @@ -272,14 +280,21 @@ public void createAdditionalCostTest() throws ApiException { // TODO: test validations } - + /** * Create custom attribute * - * Create a _custom attribute_ in this account. [Custom attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on. These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all Applications in your account and are never required. + * Create a _custom attribute_ in this account. [Custom + * attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to + * add data to Talon.One domain entities like campaigns, coupons, customers and + * so on. These attributes can then be given values when creating/updating these + * entities, and these values can be used in your campaign rules. For example, + * you could define a `zipCode` field for customer sessions, and add a + * rule to your campaign that only allows certain ZIP codes. These attributes + * are shared across all Applications in your account and are never required. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createAttributeTest() throws ApiException { @@ -288,140 +303,158 @@ public void createAttributeTest() throws ApiException { // TODO: test validations } - + /** * Create loyalty cards * - * Create a batch of loyalty cards in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). Customers can use loyalty cards to collect and spend loyalty points. **Important:** - The specified card-based loyalty program must have a defined card code format that is used to generate the loyalty card codes. - Trying to create more than 20,000 loyalty cards in a single request returns an error message with a `400` status code. + * Create a batch of loyalty cards in a specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). + * Customers can use loyalty cards to collect and spend loyalty points. + * **Important:** - The specified card-based loyalty program must have a defined + * card code format that is used to generate the loyalty card codes. - Trying to + * create more than 20,000 loyalty cards in a single request returns an error + * message with a `400` status code. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createBatchLoyaltyCardsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; LoyaltyCardBatch body = null; LoyaltyCardBatchResponse response = api.createBatchLoyaltyCards(loyaltyProgramId, body); // TODO: test validations } - + /** * Create campaign from campaign template * - * Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications. If the template was created from a campaign with rules referencing [campaign collections](https://docs.talon.one/docs/product/campaigns/managing-collections), the corresponding collections for the new campaign are created automatically. + * Use the campaign template referenced in the request body to create a new + * campaign in one of the connected Applications. If the template was created + * from a campaign with rules referencing [campaign + * collections](https://docs.talon.one/docs/product/campaigns/managing-collections), + * the corresponding collections for the new campaign are created automatically. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCampaignFromTemplateTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; CreateTemplateCampaign body = null; CreateTemplateCampaignResponse response = api.createCampaignFromTemplate(applicationId, body); // TODO: test validations } - + /** * Create campaign-level collection * * Create a campaign-level collection in a given campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCollectionTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; NewCampaignCollection body = null; Collection response = api.createCollection(applicationId, campaignId, body); // TODO: test validations } - + /** * Create coupons * - * Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created. + * Create coupons according to some pattern. Up to 20.000 coupons can be created + * without a unique prefix. When a unique prefix is provided, up to 200.000 + * coupons can be created. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCouponsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; NewCoupons body = null; String silent = null; InlineResponse20010 response = api.createCoupons(applicationId, campaignId, body, silent); // TODO: test validations } - + /** * Create coupons asynchronously * - * Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete. If you want to create less than 20,001 coupons, you can use the [Create coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) endpoint. + * Create up to 5,000,000 coupons asynchronously. You should typically use this + * enpdoint when you create at least 20,001 coupons. You receive an email when + * the creation is complete. If you want to create less than 20,001 coupons, you + * can use the [Create + * coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCouponsAsyncTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; NewCouponCreationJob body = null; AsyncCouponCreationResponse response = api.createCouponsAsync(applicationId, campaignId, body); // TODO: test validations } - + /** * Creates a coupon deletion job * - * This endpoint handles creating a job to delete coupons asynchronously. + * This endpoint handles creating a job to delete coupons asynchronously. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCouponsDeletionJobTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; NewCouponDeletionJob body = null; AsyncCouponDeletionJobResponse response = api.createCouponsDeletionJob(applicationId, campaignId, body); // TODO: test validations } - + /** * Create coupons for multiple recipients * * Create coupons according to some pattern for up to 1000 recipients. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createCouponsForMultipleRecipientsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; NewCouponsForMultipleRecipients body = null; String silent = null; InlineResponse20010 response = api.createCouponsForMultipleRecipients(applicationId, campaignId, body, silent); // TODO: test validations } - + /** * Resend invitation email * - * Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent. + * Resend an email invitation to an existing user. **Note:** The invitation + * token is valid for 24 hours after the email has been sent. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createInviteEmailTest() throws ApiException { @@ -430,14 +463,19 @@ public void createInviteEmailTest() throws ApiException { // TODO: test validations } - + /** * Invite user * - * Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint. + * Create a new user in the account and send an invitation to their email + * address. **Note**: The invitation token is valid for 24 hours after the email + * has been sent. You can resend an invitation to a user with the [Resend + * invitation + * email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createInviteV2Test() throws ApiException { @@ -446,14 +484,16 @@ public void createInviteV2Test() throws ApiException { // TODO: test validations } - + /** * Request a password reset * - * Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered. + * Send an email with a password recovery link to the email address of an + * existing account. **Note:** The password recovery link expires 30 minutes + * after this endpoint is triggered. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createPasswordRecoveryEmailTest() throws ApiException { @@ -462,14 +502,25 @@ public void createPasswordRecoveryEmailTest() throws ApiException { // TODO: test validations } - + /** * Create session * - * Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div> + * Create a session to use the Management API endpoints. Use the value of the + * `token` property provided in the response as bearer token in other + * API calls. A token is valid for 3 months. In accordance with best pratices, + * use your generated token for all your API requests. Do **not** regenerate a + * token for each request. This endpoint has a rate limit of 3 to 6 requests per + * second per account, depending on your setup. <div + * class=\"redoc-section\"> <p + * class=\"title\">Granular API key</p> Instead of using + * a session, you can also use the <a + * href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management + * API key feature</a> in the Campaign Manager to decide which endpoints + * can be used with a given key. </div> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createSessionTest() throws ApiException { @@ -478,31 +529,33 @@ public void createSessionTest() throws ApiException { // TODO: test validations } - + /** * Create store * * Create a new store in a specific Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void createStoreTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; NewStore body = null; Store response = api.createStore(applicationId, body); // TODO: test validations } - + /** * Disable user by email address * - * [Disable a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address. + * [Disable a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) + * by their email address. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deactivateUserByEmailTest() throws ApiException { @@ -511,124 +564,125 @@ public void deactivateUserByEmailTest() throws ApiException { // TODO: test validations } - + /** * Deduct points from card * - * Deduct points from the given loyalty card in the specified card-based loyalty program. + * Deduct points from the given loyalty card in the specified card-based loyalty + * program. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deductLoyaltyCardPointsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; DeductLoyaltyPoints body = null; api.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations } - + /** * Delete account-level collection * * Delete a given account-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteAccountCollectionTest() throws ApiException { - Integer collectionId = null; + Long collectionId = null; api.deleteAccountCollection(collectionId); // TODO: test validations } - + /** * Delete achievement * * Delete the specified achievement. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteAchievementTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer achievementId = null; + Long applicationId = null; + Long campaignId = null; + Long achievementId = null; api.deleteAchievement(applicationId, campaignId, achievementId); // TODO: test validations } - + /** * Delete campaign * * Delete the given campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCampaignTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; api.deleteCampaign(applicationId, campaignId); // TODO: test validations } - + /** * Delete campaign-level collection * * Delete a given campaign-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCollectionTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer collectionId = null; + Long applicationId = null; + Long campaignId = null; + Long collectionId = null; api.deleteCollection(applicationId, campaignId, collectionId); // TODO: test validations } - + /** * Delete coupon * * Delete the specified coupon. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCouponTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String couponId = null; api.deleteCoupon(applicationId, campaignId, couponId); // TODO: test validations } - + /** * Delete coupons * * Deletes all the coupons matching the specified criteria. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteCouponsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -639,89 +693,92 @@ public void deleteCouponsTest() throws ApiException { String valid = null; String batchId = null; String usable = null; - Integer referralId = null; + Long referralId = null; String recipientIntegrationId = null; Boolean exactMatch = null; - api.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); + api.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, + expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); // TODO: test validations } - + /** * Delete loyalty card * * Delete the given loyalty card. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteLoyaltyCardTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; api.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); // TODO: test validations } - + /** * Delete referral * * Delete the specified referral. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteReferralTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String referralId = null; api.deleteReferral(applicationId, campaignId, referralId); // TODO: test validations } - + /** * Delete store * * Delete the specified store. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteStoreTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String storeId = null; api.deleteStore(applicationId, storeId); // TODO: test validations } - + /** * Delete user * * Delete a specific user. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteUserTest() throws ApiException { - Integer userId = null; + Long userId = null; api.deleteUser(userId); // TODO: test validations } - + /** * Delete user by email address * - * [Delete a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) by their email address. + * [Delete a specific + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) + * by their email address. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void deleteUserByEmailTest() throws ApiException { @@ -730,14 +787,14 @@ public void deleteUserByEmailTest() throws ApiException { // TODO: test validations } - + /** * Destroy session * * Destroys the session. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void destroySessionTest() throws ApiException { @@ -745,120 +802,180 @@ public void destroySessionTest() throws ApiException { // TODO: test validations } - + /** * Disconnect stores * * Disconnect the stores linked to a specific campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void disconnectCampaignStoresTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; api.disconnectCampaignStores(applicationId, campaignId); // TODO: test validations } - + /** * Export account-level collection's items * - * Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * Download a CSV file containing items from a given account-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportAccountCollectionItemsTest() throws ApiException { - Integer collectionId = null; + Long collectionId = null; String response = api.exportAccountCollectionItems(collectionId); // TODO: test validations } - + /** * Export achievement customer data * - * Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339. + * Download a CSV file containing a list of all the customers who have + * participated in and are currently participating in the given achievement. The + * CSV file contains the following columns: - `profileIntegrationID`: + * The integration ID of the customer profile participating in the achievement. + * - `title`: The display name of the achievement in the Campaign + * Manager. - `target`: The required number of actions or the + * transactional milestone to complete the achievement. - `progress`: + * The current progress of the customer in the achievement. - + * `status`: The status of the achievement. Can be one of: + * ['inprogress', 'completed', 'expired']. - + * `startDate`: The date on which the customer profile started the + * achievement in RFC3339. - `endDate`: The date on which the + * achievement ends and resets for the customer profile in RFC3339. - + * `completionDate`: The date on which the customer profile completed + * the achievement in RFC3339. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportAchievementsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer achievementId = null; + Long applicationId = null; + Long campaignId = null; + Long achievementId = null; String response = api.exportAchievements(applicationId, campaignId, achievementId); // TODO: test validations } - + /** * Export audience members * - * Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile. + * Download a CSV file containing the integration IDs of the members of an + * audience. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The file contains the following column: - `profileintegrationid`: + * The integration ID of the customer profile. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportAudiencesMembershipsTest() throws ApiException { - Integer audienceId = null; + Long audienceId = null; String response = api.exportAudiencesMemberships(audienceId); // TODO: test validations } - + /** * Export stores * - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * Download a CSV file containing the stores linked to a specific campaign. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following column: - + * `store_integration_id`: The identifier of the store. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportCampaignStoresTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String response = api.exportCampaignStores(applicationId, campaignId); // TODO: test validations } - + /** * Export campaign-level collection's items * - * Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * Download a CSV file containing items from a given campaign-level collection. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportCollectionItemsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer collectionId = null; + Long applicationId = null; + Long campaignId = null; + Long collectionId = null; String response = api.exportCollectionItems(applicationId, campaignId, collectionId); // TODO: test validations } - + /** * Export coupons * - * Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date in RFC3339 of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon can be reserved for multiple customers. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code. - * - * @throws ApiException - * if the Api call fails + * Download a CSV file containing the coupons that match the given properties. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file can contain the following columns: - `accountid`: The + * ID of your deployment. - `applicationid`: The ID of the Application + * this coupon is related to. - `attributes`: A json object describing + * _custom_ referral attribute names and their values. - `batchid`: + * The ID of the batch this coupon is part of. - `campaignid`: The ID + * of the campaign this coupon is related to. - `counter`: The number + * of times this coupon has been redeemed. - `created`: The creation + * date in RFC3339 of the coupon code. - `deleted`: Whether the coupon + * code is deleted. - `deleted_changelogid`: The ID of the delete + * event in the logs. - `discount_counter`: The amount of discount + * given by this coupon. - `discount_limitval`: The maximum discount + * amount that can be given be this coupon. - `expirydate`: The end + * date in RFC3339 of the code redemption period. - `id`: The internal + * ID of the coupon code. - `importid`: The ID of the import job that + * created this coupon. - `is_reservation_mandatory`: Whether this + * coupon requires a reservation to be redeemed. - `limits`: The + * limits set on this coupon. - `limitval`: The maximum number of + * redemptions of this code. - `recipientintegrationid`: The + * integration ID of the recipient of the coupon. Only the customer with this + * integration ID can redeem this code. Available only for personal codes. - + * `referralid`: The ID of the referral code that triggered the + * creation of this coupon (create coupon effect). - `reservation`: + * Whether the coupon can be reserved for multiple customers. - + * `reservation_counter`: How many times this coupon has been + * reserved. - `reservation_limitval`: The maximum of number of + * reservations this coupon can have. - `startdate`: The start date in + * RFC3339 of the code redemption period. - `value`: The coupon code. + * + * @throws ApiException + * if the Api call fails */ @Test public void exportCouponsTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; BigDecimal campaignId = null; String sort = null; String value = null; @@ -866,46 +983,89 @@ public void exportCouponsTest() throws ApiException { OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Integer referralId = null; + Long referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; String dateFormat = null; String campaignState = null; Boolean valuesOnly = null; - String response = api.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); + String response = api.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, + usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); // TODO: test validations } - + /** * Export customer sessions * - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. - * - * @throws ApiException - * if the Api call fails + * Download a CSV file containing the customer sessions that match the request. + * **Important:** Archived sessions cannot be exported. See the [retention + * policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * - `id`: The internal ID of the session. - `firstsession`: + * Whether this is a first session. - `integrationid`: The integration + * ID of the session. - `applicationid`: The ID of the Application. - + * `profileid`: The internal ID of the customer profile. - + * `profileintegrationid`: The integration ID of the customer profile. + * - `created`: The timestamp when the session was created. - + * `state`: The + * [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) + * of the session. - `cartitems`: The cart items in the session. - + * `discounts`: The discounts in the session. - `total`: The + * total value of cart items and additional costs in the session, before any + * discounts are applied. - `attributes`: The attributes set in the + * session. - `closedat`: Timestamp when the session was closed. - + * `cancelledat`: Timestamp when the session was cancelled. - + * `referral`: The referral code in the session. - + * `identifiers`: The identifiers in the session. - + * `additional_costs`: The [additional + * costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) + * in the session. - `updated`: Timestamp of the last session update. + * - `store_integration_id`: The integration ID of the store. - + * `coupons`: Coupon codes in the session. + * + * @throws ApiException + * if the Api call fails */ @Test public void exportCustomerSessionsTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String profileIntegrationId = null; String dateFormat = null; String customerSessionState = null; - String response = api.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState); + String response = api.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, + dateFormat, customerSessionState); // TODO: test validations } - + /** * Export customers' tier data * - * Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerIds` (optional): Filter results by an array of subledger IDs. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierNames` (optional): Filter results by an array of tier names. If no value is provided, all tier data for the specified loyalty program will be exported. + * Download a CSV file containing the tier information for customers of the + * specified loyalty program. The generated file contains the following columns: + * - `programid`: The identifier of the loyalty program. It is + * displayed in your Talon.One deployment URL. - `subledgerid`: The ID + * of the subledger associated with the loyalty program. This column is empty if + * the loyalty program has no subledger. In this case, refer to the export file + * name to get the ID of the loyalty program. - `customerprofileid`: + * The ID used to integrate customer profiles with the loyalty program. - + * `tiername`: The name of the tier. - `startdate`: The tier + * start date in RFC3339. - `expirydate`: The tier expiry date in + * RFC3339. You can filter the results by providing the following optional input + * parameters: - `subledgerIds` (optional): Filter results by an array + * of subledger IDs. If no value is provided, all subledger data for the + * specified loyalty program will be exported. - `tierNames` + * (optional): Filter results by an array of tier names. If no value is + * provided, all tier data for the specified loyalty program will be exported. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportCustomersTiersTest() throws ApiException { @@ -916,18 +1076,41 @@ public void exportCustomersTiersTest() throws ApiException { // TODO: test validations } - + /** * Export triggered effects * - * Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store. - * - * @throws ApiException - * if the Api call fails + * Download a CSV file containing the triggered effects that match the given + * attributes. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `applicationid`: The ID of the Application. - + * `campaignid`: The ID of the campaign. - `couponid`: The + * ID of the coupon, when applicable to the effect. - `created`: The + * timestamp of the effect. - `event_type`: The name of the event. See + * the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - + * `eventid`: The internal ID of the effect. - `name`: The + * effect name. See the + * [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - + * `profileintegrationid`: The ID of the customer profile, when + * applicable. - `props`: The + * [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of + * the effect. - `ruleindex`: The index of the rule. - + * `rulesetid`: The ID of the rule set. - `sessionid`: The + * internal ID of the session that triggered the effect. - + * `profileid`: The internal ID of the customer profile. - + * `sessionintegrationid`: The integration ID of the session. - + * `total_revenue`: The total revenue. - + * `store_integration_id`: The integration ID of the store. You choose + * this ID when you create a store. + * + * @throws ApiException + * if the Api call fails */ @Test public void exportEffectsTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -936,14 +1119,20 @@ public void exportEffectsTest() throws ApiException { // TODO: test validations } - + /** * Export customer loyalty balance to CSV * - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To export customer loyalty balances to CSV, use the [Export customer loyalty + * balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) + * endpoint. Download a CSV file containing the balance of each customer in the + * loyalty program. **Tip:** If the exported CSV file is too large to view, you + * can [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportLoyaltyBalanceTest() throws ApiException { @@ -953,14 +1142,27 @@ public void exportLoyaltyBalanceTest() throws ApiException { // TODO: test validations } - + /** * Export customer loyalty balances * - * Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export. + * Download a CSV file containing the balance of each customer in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The generated file can contain the following columns: - + * `loyaltyProgramID`: The ID of the loyalty program. - + * `loyaltySubledger`: The name of the subdleger, when applicatble. - + * `profileIntegrationID`: The integration ID of the customer profile. + * - `currentBalance`: The current point balance. - + * `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. - + * `currentTier`: The tier that the customer is in at the time of the + * export. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportLoyaltyBalancesTest() throws ApiException { @@ -970,69 +1172,117 @@ public void exportLoyaltyBalancesTest() throws ApiException { // TODO: test validations } - + /** * Export all card transaction logs * - * Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. + * Download a CSV file containing the balances of all cards in the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `loyaltyProgramID`: + * The ID of the loyalty program. - `loyaltySubledger`: The name of + * the subdleger, when applicatble. - `cardIdentifier`: The + * alphanumeric identifier of the loyalty card. - `cardState`:The + * state of the loyalty card. It can be `active` or + * `inactive`. - `currentBalance`: The current point + * balance. - `pendingBalance`: The number of pending points. - + * `expiredBalance`: The number of expired points. - + * `spentBalance`: The number of spent points. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportLoyaltyCardBalancesTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; OffsetDateTime endDate = null; String response = api.exportLoyaltyCardBalances(loyaltyProgramId, endDate); // TODO: test validations } - + /** * Export card's ledger log * - * Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * Download a CSV file containing a loyalty card ledger log of the loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportLoyaltyCardLedgerTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String dateFormat = null; - String response = api.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat); + String response = api.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, + dateFormat); // TODO: test validations } - + /** * Export loyalty cards * - * Download a CSV file containing the loyalty cards from a specified loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `identifier`: The unique identifier of the loyalty card. - `created`: The date and time the loyalty card was created. - `status`: The status of the loyalty card. - `userpercardlimit`: The maximum number of customer profiles that can be linked to the card. - `customerprofileids`: Integration IDs of the customer profiles linked to the card. - `blockreason`: The reason for transferring and blocking the loyalty card. - `generated`: An indicator of whether the loyalty card was generated. - `batchid`: The ID of the batch the loyalty card is in. + * Download a CSV file containing the loyalty cards from a specified loyalty + * program. **Tip:** If the exported CSV file is too large to view, you can + * [split it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `identifier`: The + * unique identifier of the loyalty card. - `created`: The date and + * time the loyalty card was created. - `status`: The status of the + * loyalty card. - `userpercardlimit`: The maximum number of customer + * profiles that can be linked to the card. - `customerprofileids`: + * Integration IDs of the customer profiles linked to the card. - + * `blockreason`: The reason for transferring and blocking the loyalty + * card. - `generated`: An indicator of whether the loyalty card was + * generated. - `batchid`: The ID of the batch the loyalty card is in. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportLoyaltyCardsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String batchId = null; String dateFormat = null; String response = api.exportLoyaltyCards(loyaltyProgramId, batchId, dateFormat); // TODO: test validations } - + /** * 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. - * - * @throws ApiException - * if the Api call fails + * 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. + * + * @throws ApiException + * if the Api call fails */ @Test public void exportLoyaltyLedgerTest() throws ApiException { @@ -1045,36 +1295,64 @@ public void exportLoyaltyLedgerTest() throws ApiException { // TODO: test validations } - + /** * Export giveaway codes of a giveaway pool * - * Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist. - * - * @throws ApiException - * if the Api call fails + * Download a CSV file containing the giveaway codes of a specific giveaway + * pool. **Tip:** If the exported CSV file is too large to view, you can [split + * it into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `id`: The internal + * ID of the giveaway. - `poolid`: The internal ID of the giveaway + * pool. - `code`: The giveaway code. - `startdate`: The + * validity start date in RFC3339 of the giveaway (can be empty). - + * `enddate`: The validity end date in RFC3339 of the giveaway (can be + * empty). - `attributes`: Any custom attributes associated with the + * giveaway code (can be empty). - `used`: An indication of whether + * the giveaway is already awarded. - `importid`: The ID of the import + * which created the giveaway. - `created`: The creation time of the + * giveaway code. - `profileintegrationid`: The third-party + * integration ID of the customer profile that was awarded the giveaway. Can be + * empty if the giveaway was not awarded. - `profileid`: The internal + * ID of the customer profile that was awarded the giveaway. Can be empty if the + * giveaway was not awarded or an internal ID does not exist. + * + * @throws ApiException + * if the Api call fails */ @Test public void exportPoolGiveawaysTest() throws ApiException { - Integer poolId = null; + Long poolId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String response = api.exportPoolGiveaways(poolId, createdBefore, createdAfter); // TODO: test validations } - + /** * Export referrals * - * Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values. + * Download a CSV file containing the referrals that match the given parameters. + * **Tip:** If the exported CSV file is too large to view, you can [split it + * into multiple + * files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + * The CSV file contains the following columns: - `code`: The referral + * code. - `advocateprofileintegrationid`: The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A json object describing _custom_ referral attribute + * names and their values. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void exportReferralsTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -1082,277 +1360,293 @@ public void exportReferralsTest() throws ApiException { String usable = null; String batchId = null; String dateFormat = null; - String response = api.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat); + String response = api.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, + batchId, dateFormat); // TODO: test validations } - + /** * Get access logs for Application * - * Retrieve the list of API calls sent to the specified Application. + * Retrieve the list of API calls sent to the specified Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAccessLogsWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String path = null; String method = null; String status = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; - InlineResponse20022 response = api.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); + InlineResponse20022 response = api.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, + method, status, pageSize, skip, sort); // TODO: test validations } - + /** * Get account details * - * Return the details of your companies Talon.One account. + * Return the details of your companies Talon.One account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAccountTest() throws ApiException { - Integer accountId = null; + Long accountId = null; Account response = api.getAccount(accountId); // TODO: test validations } - + /** * Get account analytics * - * Return the analytics of your Talon.One account. + * Return the analytics of your Talon.One account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAccountAnalyticsTest() throws ApiException { - Integer accountId = null; + Long accountId = null; AccountAnalytics response = api.getAccountAnalytics(accountId); // TODO: test validations } - + /** * Get account-level collection * * Retrieve a given account-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAccountCollectionTest() throws ApiException { - Integer collectionId = null; + Long collectionId = null; Collection response = api.getAccountCollection(collectionId); // TODO: test validations } - + /** * Get achievement * * Get the details of a specific achievement. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAchievementTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer achievementId = null; + Long applicationId = null; + Long campaignId = null; + Long achievementId = null; Achievement response = api.getAchievement(applicationId, campaignId, achievementId); // TODO: test validations } - + /** * Get additional cost * - * Returns the additional cost. + * Returns the additional cost. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAdditionalCostTest() throws ApiException { - Integer additionalCostId = null; + Long additionalCostId = null; AccountAdditionalCost response = api.getAdditionalCost(additionalCostId); // TODO: test validations } - + /** * List additional costs * - * Returns all the defined additional costs for the account. + * Returns all the defined additional costs for the account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAdditionalCostsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse20038 response = api.getAdditionalCosts(pageSize, skip, sort); // TODO: test validations } - + /** * Get Application * * Get the application specified by the ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; Application response = api.getApplication(applicationId); // TODO: test validations } - + /** * Get Application health * - * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). + * Display the health of the Application and show the last time the Application + * was used. You can also find this information in the Campaign Manager. In your + * Application, click **Settings** > **Integration API Keys**. See the + * [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationApiHealthTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; ApplicationApiHealth response = api.getApplicationApiHealth(applicationId); // TODO: test validations } - + /** * Get application's customer * - * Retrieve the customers of the specified application. + * Retrieve the customers of the specified application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationCustomerTest() throws ApiException { - Integer applicationId = null; - Integer customerId = null; + Long applicationId = null; + Long customerId = null; ApplicationCustomer response = api.getApplicationCustomer(applicationId, customerId); // TODO: test validations } - + /** * List friends referred by customer profile * - * List the friends referred by the specified customer profile in this Application. + * List the friends referred by the specified customer profile in this + * Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationCustomerFriendsTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String integrationId = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; - InlineResponse20035 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); + InlineResponse20035 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, + sort, withTotalResultSize); // TODO: test validations } - + /** * List application's customers * * List all the customers of the specified application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationCustomersTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String integrationId = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; Boolean withTotalResultSize = null; - InlineResponse20024 response = api.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); + InlineResponse20024 response = api.getApplicationCustomers(applicationId, integrationId, pageSize, skip, + withTotalResultSize); // TODO: test validations } - + /** * List application customers matching the given attributes * - * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. + * Get a list of the application customers matching the provided criteria. The + * match is successful if all the attributes of the request are found in a + * profile, even if the profile has more attributes that are not present on the + * request. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationCustomersByAttributesTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; CustomerProfileSearchQuery body = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; Boolean withTotalResultSize = null; - InlineResponse20025 response = api.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); + InlineResponse20025 response = api.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, + withTotalResultSize); // TODO: test validations } - + /** * List Applications event types * - * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) + * Get all of the distinct values of the Event `type` property for + * events recorded in the application. See also: [Track an + * event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationEventTypesTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse20031 response = api.getApplicationEventTypes(applicationId, pageSize, skip, sort); // TODO: test validations } - + /** * List Applications events * - * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. + * Lists all events recorded for an application. Instead of having the total + * number of results in the response, this endpoint only mentions whether there + * are more results. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationEventsWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; String type = null; OffsetDateTime createdBefore = null; @@ -1365,41 +1659,46 @@ public void getApplicationEventsWithoutTotalCountTest() throws ApiException { String referralCode = null; String ruleQuery = null; String campaignQuery = null; - InlineResponse20030 response = api.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery); + InlineResponse20030 response = api.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, + type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, + referralCode, ruleQuery, campaignQuery); // TODO: test validations } - + /** * Get Application session * - * Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. + * Get the details of the given session. You can list the sessions with the + * [List Application + * sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationSessionTest() throws ApiException { - Integer applicationId = null; - Integer sessionId = null; + Long applicationId = null; + Long sessionId = null; ApplicationSession response = api.getApplicationSession(applicationId, sessionId); // TODO: test validations } - + /** * List Application sessions * - * List all the sessions of the specified Application. + * List all the sessions of the specified Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationSessionsTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; String profile = null; String state = null; @@ -1409,110 +1708,113 @@ public void getApplicationSessionsTest() throws ApiException { String referral = null; String integrationId = null; String storeIntegrationId = null; - InlineResponse20029 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); + InlineResponse20029 response = api.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, + createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); // TODO: test validations } - + /** * List Applications * * List all applications in the current account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getApplicationsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse2007 response = api.getApplications(pageSize, skip, sort); // TODO: test validations } - + /** * Get custom attribute * - * Retrieve the specified custom attribute. + * Retrieve the specified custom attribute. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAttributeTest() throws ApiException { - Integer attributeId = null; + Long attributeId = null; Attribute response = api.getAttribute(attributeId); // TODO: test validations } - + /** * List custom attributes * - * Return all the custom attributes for the account. + * Return all the custom attributes for the account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAttributesTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String entity = null; InlineResponse20036 response = api.getAttributes(pageSize, skip, sort, entity); // TODO: test validations } - + /** * List audience members * - * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. + * Get a paginated list of the customer profiles in a given audience. A maximum + * of 1000 customer profiles per page is allowed. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAudienceMembershipsTest() throws ApiException { - Integer audienceId = null; - Integer pageSize = null; - Integer skip = null; + Long audienceId = null; + Long pageSize = null; + Long skip = null; String sort = null; String profileQuery = null; InlineResponse20034 response = api.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); // TODO: test validations } - + /** * List audiences * - * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). + * Get all audiences created in the account. To create an audience, use [Create + * audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAudiencesTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; InlineResponse20032 response = api.getAudiences(pageSize, skip, sort, withTotalResultSize); // TODO: test validations } - + /** * List audience analytics * - * Get a list of audience IDs and their member count. + * Get a list of audience IDs and their member count. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getAudiencesAnalyticsTest() throws ApiException { @@ -1522,224 +1824,230 @@ public void getAudiencesAnalyticsTest() throws ApiException { // TODO: test validations } - + /** * Get campaign * * Retrieve the given campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; Campaign response = api.getCampaign(applicationId, campaignId); // TODO: test validations } - + /** * Get analytics of campaigns * * Retrieve statistical data about the performance of the given campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignAnalyticsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String granularity = null; - InlineResponse20023 response = api.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity); + InlineResponse20023 response = api.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, + granularity); // TODO: test validations } - + /** * List campaigns that match the given attributes * - * Get a list of all the campaigns that match a set of attributes. + * Get a list of all the campaigns that match a set of attributes. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignByAttributesTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; CampaignSearch body = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String campaignState = null; - InlineResponse2008 response = api.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState); + InlineResponse2008 response = api.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, + campaignState); // TODO: test validations } - + /** * Get campaign access group * * Get a campaign access group specified by its ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignGroupTest() throws ApiException { - Integer campaignGroupId = null; + Long campaignGroupId = null; CampaignGroup response = api.getCampaignGroup(campaignGroupId); // TODO: test validations } - + /** * List campaign access groups * * List the campaign access groups in the current account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignGroupsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse20013 response = api.getCampaignGroups(pageSize, skip, sort); // TODO: test validations } - + /** * List campaign templates * * Retrieve a list of campaign templates. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignTemplatesTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String state = null; String name = null; String tags = null; - Integer userId = null; + Long userId = null; InlineResponse20014 response = api.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); // TODO: test validations } - + /** * List campaigns * - * List the campaigns of the specified application that match your filter criteria. + * List the campaigns of the specified application that match your filter + * criteria. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCampaignsTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; String campaignState = null; String name = null; String tags = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - Integer campaignGroupId = null; - Integer templateId = null; - Integer storeId = null; - InlineResponse2008 response = api.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); + Long campaignGroupId = null; + Long templateId = null; + Long storeId = null; + InlineResponse2008 response = api.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, + createdBefore, createdAfter, campaignGroupId, templateId, storeId); // TODO: test validations } - + /** * Get audit logs for an account * - * Retrieve the audit logs displayed in **Accounts > Audit logs**. + * Retrieve the audit logs displayed in **Accounts > Audit logs**. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getChangesTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; BigDecimal applicationId = null; String entityPath = null; - Integer userId = null; + Long userId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; Boolean withTotalResultSize = null; - Integer managementKeyId = null; + Long managementKeyId = null; Boolean includeOld = null; - InlineResponse20044 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); + InlineResponse20044 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, + createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); // TODO: test validations } - + /** * Get campaign-level collection * * Retrieve a given campaign-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCollectionTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer collectionId = null; + Long applicationId = null; + Long campaignId = null; + Long collectionId = null; Collection response = api.getCollection(applicationId, campaignId, collectionId); // TODO: test validations } - + /** * Get collection items * - * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. + * Retrieve items from a given collection. You can retrieve items from both + * account-level collections and campaign-level collections using this endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCollectionItemsTest() throws ApiException { - Integer collectionId = null; - Integer pageSize = null; - Integer skip = null; + Long collectionId = null; + Long pageSize = null; + Long skip = null; InlineResponse20021 response = api.getCollectionItems(collectionId, pageSize, skip); // TODO: test validations } - + /** * List coupons * - * List all the coupons matching the specified criteria. + * List all the coupons matching the specified criteria. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCouponsWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long campaignId = null; + Long pageSize = null; + Long skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; @@ -1747,7 +2055,7 @@ public void getCouponsWithoutTotalCountTest() throws ApiException { String valid = null; String usable = null; String redeemed = null; - Integer referralId = null; + Long referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; @@ -1756,162 +2064,186 @@ public void getCouponsWithoutTotalCountTest() throws ApiException { OffsetDateTime startsBefore = null; OffsetDateTime startsAfter = null; Boolean valuesOnly = null; - InlineResponse20011 response = api.getCouponsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly); + InlineResponse20011 response = api.getCouponsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, + value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, + batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly); // TODO: test validations } - + /** * Get customer's activity report * - * Fetch the summary report of a given customer in the given application, in a time range. + * Fetch the summary report of a given customer in the given application, in a + * time range. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerActivityReportTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; - Integer applicationId = null; - Integer customerId = null; - Integer pageSize = null; - Integer skip = null; - CustomerActivityReport response = api.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); + Long applicationId = null; + Long customerId = null; + Long pageSize = null; + Long skip = null; + CustomerActivityReport response = api.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, + pageSize, skip); // TODO: test validations } - + /** * Get Activity Reports for Application Customers * - * Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. + * Fetch summary reports for all application customers based on a time range. + * Instead of having the total number of results in the response, this endpoint + * only mentions whether there are more results. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerActivityReportsWithoutTotalCountTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; String name = null; String integrationId = null; String campaignName = null; String advocateName = null; - InlineResponse20028 response = api.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); + InlineResponse20028 response = api.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, + applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); // TODO: test validations } - + /** * Get customer's analytics report * * Fetch analytics for a given customer in the given application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerAnalyticsTest() throws ApiException { - Integer applicationId = null; - Integer customerId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long customerId = null; + Long pageSize = null; + Long skip = null; String sort = null; CustomerAnalytics response = api.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort); // TODO: test validations } - + /** * Get customer profile * - * Return the details of the specified customer profile. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> You can retrieve the same information via the Integration API, which can save you extra API requests. consider these options: - Request the customer profile to be part of the response content using [Update Customer Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). - Send an empty update with the [Update Customer Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint with `runRuleEngine=false`. </div> + * Return the details of the specified customer profile. <div + * class=\"redoc-section\"> <p + * class=\"title\">Performance tips</p> You can retrieve + * the same information via the Integration API, which can save you extra API + * requests. consider these options: - Request the customer profile to be part + * of the response content using [Update Customer + * Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). + * - Send an empty update with the [Update Customer + * Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint with `runRuleEngine=false`. </div> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerProfileTest() throws ApiException { - Integer customerId = null; + Long customerId = null; CustomerProfile response = api.getCustomerProfile(customerId); // TODO: test validations } - + /** * List customer achievements * - * For the given customer profile, list all the achievements that match your filter criteria. + * For the given customer profile, list all the achievements that match your + * filter criteria. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerProfileAchievementProgressTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String integrationId = null; - Integer pageSize = null; - Integer skip = null; - Integer achievementId = null; + Long pageSize = null; + Long skip = null; + Long achievementId = null; String title = null; - InlineResponse20049 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + InlineResponse20049 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, + skip, achievementId, title); // TODO: test validations } - + /** * List customer profiles * * List all customer profiles. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomerProfilesTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; Boolean sandbox = null; InlineResponse20027 response = api.getCustomerProfiles(pageSize, skip, sandbox); // TODO: test validations } - + /** * List customer profiles matching the given attributes * - * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. + * Get a list of the customer profiles matching the provided criteria. The match + * is successful if all the attributes of the request are found in a profile, + * even if the profile has more attributes that are not present on the request. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getCustomersByAttributesTest() throws ApiException { CustomerProfileSearchQuery body = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; Boolean sandbox = null; InlineResponse20026 response = api.getCustomersByAttributes(body, pageSize, skip, sandbox); // TODO: test validations } - + /** * Get statistics for loyalty dashboard * - * Retrieve the statistics displayed on the specified loyalty program's dashboard, such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone. + * Retrieve the statistics displayed on the specified loyalty program's + * dashboard, such as the total active points, pending points, spent points, and + * expired points. **Important:** The returned data does not include the current + * day. All statistics are updated daily at 11:59 PM in the loyalty program time + * zone. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getDashboardStatisticsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String subledgerId = null; @@ -1919,115 +2251,130 @@ public void getDashboardStatisticsTest() throws ApiException { // TODO: test validations } - + /** * List event types * - * Fetch all event type definitions for your account. + * Fetch all event type definitions for your account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getEventTypesTest() throws ApiException { String name = null; Boolean includeOldVersions = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse20042 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); // TODO: test validations } - + /** * Get exports * - * List all past exports + * List all past exports * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getExportsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; BigDecimal applicationId = null; - Integer campaignId = null; + Long campaignId = null; String entity = null; InlineResponse20045 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); // TODO: test validations } - + /** * Get loyalty card * * Get the given loyalty card. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; LoyaltyCard response = api.getLoyaltyCard(loyaltyProgramId, loyaltyCardId); // TODO: test validations } - + /** * List card's transactions * - * Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned. + * Retrieve the transaction logs for the given [loyalty + * card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) + * within the specified [card-based loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) + * with filtering options applied. If no filtering options are applied, the last + * 50 loyalty transactions for the given loyalty card are returned. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardTransactionLogsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String subledgerId = null; - InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); + InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, + endDate, pageSize, skip, subledgerId); // TODO: test validations } - + /** * List loyalty cards * - * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. + * For the given card-based loyalty program, list the loyalty cards that match + * your filter criteria. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyCardsTest() throws ApiException { - Integer loyaltyProgramId = null; - Integer pageSize = null; - Integer skip = null; + Long loyaltyProgramId = null; + Long pageSize = null; + Long skip = null; String sort = null; String identifier = null; - Integer profileId = null; + Long profileId = null; String batchId = null; - InlineResponse20018 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); + InlineResponse20018 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, + profileId, batchId); // TODO: test validations } - + /** * Get customer's full loyalty ledger * - * Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Get the loyalty ledger for this profile integration ID. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. **Important:** To get loyalty transaction logs for a given + * Integration ID in a loyalty program, we recommend using the Integration + * API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyPointsTest() throws ApiException { @@ -2037,52 +2384,64 @@ public void getLoyaltyPointsTest() throws ApiException { // TODO: test validations } - + /** * Get loyalty program * - * Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) + * Get the specified [loyalty + * program](https://docs.talon.one/docs/product/loyalty-programs/overview). To + * list all loyalty programs in your Application, use [List loyalty + * programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a + * customer profile is part of, use the [List customer + * data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory) * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyProgramTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; LoyaltyProgram response = api.getLoyaltyProgram(loyaltyProgramId); // TODO: test validations } - + /** * List loyalty program transactions * - * Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). + * Retrieve loyalty program transaction logs in a given loyalty program with + * filtering options applied. Manual and imported transactions are also + * included. **Note:** If no filters are applied, the last 50 loyalty + * transactions for the given loyalty program are returned. **Important:** To + * get loyalty transaction logs for a given Integration ID in a loyalty program, + * we recommend using the Integration API's [Get customer's loyalty + * logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyProgramTransactionsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyTransactionType = null; String subledgerId = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Integer pageSize = null; - Integer skip = null; - InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); + Long pageSize = null; + Long skip = null; + InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, + subledgerId, startDate, endDate, pageSize, skip); // TODO: test validations } - + /** * List loyalty programs * * List the loyalty programs of the account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyProgramsTest() throws ApiException { @@ -2090,30 +2449,35 @@ public void getLoyaltyProgramsTest() throws ApiException { // TODO: test validations } - + /** * Get loyalty program statistics * - * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To retrieve statistics for a loyalty program, use the [Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) endpoint. Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points. + * ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. + * To retrieve statistics for a loyalty program, use the [Get statistics for + * loyalty + * dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) + * endpoint. Retrieve the statistics of the specified loyalty program, such as + * the total active points, pending points, spent points, and expired points. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getLoyaltyStatisticsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; LoyaltyDashboardData response = api.getLoyaltyStatistics(loyaltyProgramId); // TODO: test validations } - + /** * List message log entries * * Retrieve all message log entries. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getMessageLogsTest() throws ApiException { @@ -2128,28 +2492,30 @@ public void getMessageLogsTest() throws ApiException { Boolean isSuccessful = null; BigDecimal applicationId = null; BigDecimal campaignId = null; - Integer loyaltyProgramId = null; - Integer responseCode = null; + Long loyaltyProgramId = null; + Long responseCode = null; String webhookIDs = null; - MessageLogEntries response = api.getMessageLogs(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); + MessageLogEntries response = api.getMessageLogs(entityType, messageID, changeType, notificationIDs, + createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, + responseCode, webhookIDs); // TODO: test validations } - + /** * List referrals * * List all referrals of the specified campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getReferralsWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long campaignId = null; + Long pageSize = null; + Long skip = null; String sort = null; String code = null; OffsetDateTime createdBefore = null; @@ -2157,144 +2523,151 @@ public void getReferralsWithoutTotalCountTest() throws ApiException { String valid = null; String usable = null; String advocate = null; - InlineResponse20012 response = api.getReferralsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate); + InlineResponse20012 response = api.getReferralsWithoutTotalCount(applicationId, campaignId, pageSize, skip, + sort, code, createdBefore, createdAfter, valid, usable, advocate); // TODO: test validations } - + /** * Get role * - * Get the details of a specific role. To see all the roles, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + * Get the details of a specific role. To see all the roles, use the [List + * roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getRoleV2Test() throws ApiException { - Integer roleId = null; + Long roleId = null; RoleV2 response = api.getRoleV2(roleId); // TODO: test validations } - + /** * Get ruleset * * Retrieve the specified ruleset. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getRulesetTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer rulesetId = null; + Long applicationId = null; + Long campaignId = null; + Long rulesetId = null; Ruleset response = api.getRuleset(applicationId, campaignId, rulesetId); // TODO: test validations } - + /** * List campaign rulesets * - * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. + * List all rulesets of this campaign. A ruleset is a revision of the rules of a + * campaign. **Important:** The response also includes deleted rules. You should + * only consider the latest revision of the returned rulesets. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getRulesetsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long campaignId = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse2009 response = api.getRulesets(applicationId, campaignId, pageSize, skip, sort); // TODO: test validations } - + /** * Get store * * Get store details for a specific store ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getStoreTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String storeId = null; Store response = api.getStore(applicationId, storeId); // TODO: test validations } - + /** * Get user * - * Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile. + * Retrieve the data (including an invitation code) for a user. Non-admin users + * can only get their own profile. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getUserTest() throws ApiException { - Integer userId = null; + Long userId = null; User response = api.getUser(userId); // TODO: test validations } - + /** * List users in account * - * Retrieve all users in your account. + * Retrieve all users in your account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getUsersTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; InlineResponse20043 response = api.getUsers(pageSize, skip, sort); // TODO: test validations } - + /** * Get webhook * * Returns a webhook by its id. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getWebhookTest() throws ApiException { - Integer webhookId = null; + Long webhookId = null; Webhook response = api.getWebhook(webhookId); // TODO: test validations } - + /** * List webhook activation log entries * - * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). + * Webhook activation log entries are created as soon as an integration request + * triggers a webhook effect. See the + * [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getWebhookActivationLogsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String integrationRequestUuid = null; BigDecimal webhookId = null; @@ -2302,23 +2675,24 @@ public void getWebhookActivationLogsTest() throws ApiException { BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - InlineResponse20040 response = api.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); + InlineResponse20040 response = api.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, + webhookId, applicationId, campaignId, createdBefore, createdAfter); // TODO: test validations } - + /** * List webhook log entries * * Retrieve all webhook log entries. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getWebhookLogsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String status = null; BigDecimal webhookId = null; @@ -2327,234 +2701,422 @@ public void getWebhookLogsTest() throws ApiException { String requestUuid = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - InlineResponse20041 response = api.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); + InlineResponse20041 response = api.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, + campaignId, requestUuid, createdBefore, createdAfter); // TODO: test validations } - + /** * List webhooks * * List all webhooks. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void getWebhooksTest() throws ApiException { String applicationIds = null; String sort = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String creationType = null; String visibility = null; - Integer outgoingIntegrationsTypeId = null; + Long outgoingIntegrationsTypeId = null; String title = null; - InlineResponse20039 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); + InlineResponse20039 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, + outgoingIntegrationsTypeId, title); // TODO: test validations } - + /** * Import data into existing account-level collection * - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importAccountCollectionTest() throws ApiException { - Integer collectionId = null; + Long collectionId = null; String upFile = null; ModelImport response = api.importAccountCollection(collectionId, upFile); // TODO: test validations } - + /** * Import allowed values for attribute * - * Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ``` + * Upload a CSV file containing a list of [picklist + * values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) + * for the specified attribute. The file should be sent as multipart data. The + * import **replaces** the previous list of allowed values for this attribute, + * if any. The CSV file **must** only contain the following column: - + * `item` (required): the values in your allowed list, for example a + * list of SKU's. An allowed list is limited to 500,000 items. Example: + * ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 + * CS-DG-02082021-UP-50G-07 ``` * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importAllowedListTest() throws ApiException { - Integer attributeId = null; + Long attributeId = null; String upFile = null; ModelImport response = api.importAllowedList(attributeId, upFile); // TODO: test validations } - + /** * Import audience members * - * Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ``` + * Upload a CSV file containing the integration IDs of the members you want to + * add to an audience. The file should be sent as multipart data and should + * contain only the following column (required): - + * `profileintegrationid`: The integration ID of the customer profile. + * The import **replaces** the previous list of audience members. **Note:** We + * recommend limiting your file size to 500MB. Example: ```text + * profileintegrationid charles alexa ``` * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importAudiencesMembershipsTest() throws ApiException { - Integer audienceId = null; + Long audienceId = null; String upFile = null; ModelImport response = api.importAudiencesMemberships(audienceId, upFile); // TODO: test validations } - + /** * Import stores * - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. + * Upload a CSV file containing the stores you want to link to a specific + * campaign. Send the file as multipart data. The CSV file **must** only contain + * the following column: - `store_integration_id`: The identifier of + * the store. The import **replaces** the previous list of stores linked to the + * campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importCampaignStoresTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String upFile = null; ModelImport response = api.importCampaignStores(applicationId, campaignId, upFile); // TODO: test validations } - + /** * Import data into existing campaign-level collection * - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * Upload a CSV file containing the collection of string values that should be + * attached as payload for collection. The file should be sent as multipart + * data. The import **replaces** the initial content of the collection. The CSV + * file **must** only contain the following column: - `item`: the + * values in your collection. A collection is limited to 500,000 items. Example: + * ``` item Addidas Nike Asics ``` **Note:** + * Before sending a request to this endpoint, ensure the data in the CSV to + * import is different from the data currently stored in the collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importCollectionTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer collectionId = null; + Long applicationId = null; + Long campaignId = null; + Long collectionId = null; String upFile = null; ModelImport response = api.importCollection(applicationId, campaignId, collectionId, upFile); // TODO: test validations } - + /** * Import coupons * - * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). - * - * @throws ApiException - * if the Api call fails + * Upload a CSV file containing the coupons that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `value` (required): The coupon code. - + * `expirydate`: The end date in RFC3339 of the code redemption + * period. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `recipientintegrationid`: The integration ID + * of the recipient of the coupon. Only the customer with this integration ID + * can redeem this code. Available only for personal codes. - + * `limitval`: The maximum number of redemptions of this code. For + * unlimited redemptions, use `0`. Defaults to `1` when not + * provided. - `discountlimit`: The total discount value that the code + * can give. This is typically used to represent a gift card value. - + * `attributes`: A JSON object describing _custom_ coupon attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the coupon entity, the object in + * the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Note:** We recommend limiting your file size to 500MB. + * **Example:** ```text + * \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" + * COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": + * \"\"10_off\"\"}\",2.4 ``` Once + * imported, you can find the `batchId` in the Campaign Manager or by + * using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). + * + * @throws ApiException + * if the Api call fails */ @Test public void importCouponsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; Boolean skipDuplicates = null; String upFile = null; ModelImport response = api.importCoupons(applicationId, campaignId, skipDuplicates, upFile); // TODO: test validations } - + /** * Import loyalty cards * - * Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ``` + * Upload a CSV file containing the loyalty cards that you want to use in your + * card-based loyalty program. Send the file as multipart data. It contains the + * following columns for each card: - `identifier` (required): The + * alphanumeric identifier of the loyalty card. - `state` (required): + * The state of the loyalty card. It can be `active` or + * `inactive`. - `customerprofileids` (optional): An array + * of strings representing the identifiers of the customer profiles linked to + * the loyalty card. The identifiers should be separated with a semicolon (;). + * **Note:** We recommend limiting your file size to 500MB. **Example:** + * ```csv identifier,state,customerprofileids + * 123-456-789AT,active,Alexa001;UserA ``` * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void importLoyaltyCardsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String upFile = null; ModelImport response = api.importLoyaltyCards(loyaltyProgramId, upFile); // TODO: test validations } - + /** * Import customers into loyalty tiers * - * Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier when the tier is reevaluated. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` - * - * @throws ApiException - * if the Api call fails + * Upload a CSV file containing existing customers to be assigned to existing + * tiers. Send the file as multipart data. **Important:** This endpoint only + * works with loyalty programs with advanced tiers (with expiration and + * downgrade policy) feature enabled. The CSV file should contain the following + * columns: - `subledgerid` (optional): The ID of the subledger. If + * this field is empty, the main ledger will be used. - + * `customerprofileid`: The integration ID of the customer profile to + * whom the tier should be assigned. - `tiername`: The name of an + * existing tier to assign to the customer. - `expirydate`: The + * expiration date of the tier when the tier is reevaluated. It should be a + * future date. About customer assignment to a tier: - If the customer isn't + * already in a tier, the customer is assigned to the specified tier during the + * tier import. - If the customer is already in the tier that's specified in + * the CSV file, only the expiration date is updated. **Note:** We recommend not + * using this endpoint to update the tier of a customer. To update a + * customer's tier, you can + * [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or + * [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their + * loyalty points. You can use the time zone of your choice. It is converted to + * UTC internally by Talon.One. **Note:** We recommend limiting your file size + * to 500MB. **Example:** ```csv + * subledgerid,customerprofileid,tiername,expirydate + * SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z + * SUB2,avocado,Bronze,2026-05-03T11:47:01Z ``` + * + * @throws ApiException + * if the Api call fails */ @Test public void importLoyaltyCustomersTiersTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String upFile = null; ModelImport response = api.importLoyaltyCustomersTiers(loyaltyProgramId, upFile); // TODO: test validations } - + /** * Import loyalty points * - * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` - * - * @throws ApiException - * if the Api call fails + * Upload a CSV file containing the loyalty points you want to import into a + * given loyalty program. Send the file as multipart data. Depending on the type + * of loyalty program, you can import points into a given customer profile or + * loyalty card. The CSV file contains the following columns: - + * `customerprofileid` (optional): For profile-based loyalty programs, + * the integration ID of the customer profile where the loyalty points are + * imported. **Note**: If the customer profile does not exist, it will be + * created. The profile will not be visible in any Application until a session + * or profile update is received for that profile. - `identifier` + * (optional): For card-based loyalty programs, the identifier of the loyalty + * card where the loyalty points are imported. - `amount`: The amount + * of points to award to the customer profile. - `startdate` + * (optional): The earliest date when the points can be redeemed. The points are + * `active` from this date until the expiration date. **Note**: It + * must be an RFC3339 timestamp string or string `immediate`. Empty or + * missing values are considered `immediate`. - `expirydate` + * (optional): The latest date when the points can be redeemed. The points are + * `expired` after this date. **Note**: It must be an RFC3339 + * timestamp string or string `unlimited`. Empty or missing values are + * considered `unlimited`. - `subledgerid` (optional): The + * ID of the subledger that should received the points. - `reason` + * (optional): The reason why these points are awarded. You can use the time + * zone of your choice. It is converted to UTC internally by Talon.One. + * **Note:** For existing customer profiles and loyalty cards, the imported + * points are added to any previous active or pending points, depending on the + * value provided for `startdate`. If `startdate` matches + * the current date, the imported points are _active_. If it is later, the + * points are _pending_ until the date provided for `startdate` is + * reached. **Note:** We recommend limiting your file size to 500MB. **Example + * for profile-based programs:** ```text + * customerprofileid,amount,startdate,expirydate,subledgerid,reason + * URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` **Example for card-based programs:** + * ```text + * identifier,amount,startdate,expirydate,subledgerid,reason + * summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement + * ``` + * + * @throws ApiException + * if the Api call fails */ @Test public void importLoyaltyPointsTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String upFile = null; ModelImport response = api.importLoyaltyPoints(loyaltyProgramId, upFile); // TODO: test validations } - + /** * Import giveaway codes into a giveaway pool * - * Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ``` - * - * @throws ApiException - * if the Api call fails + * Upload a CSV file containing the giveaway codes that should be created. Send + * the file as multipart data. The CSV file contains the following columns: - + * `code` (required): The code of your giveaway, for instance, a gift + * card redemption code. - `startdate`: The start date in RFC3339 of + * the code redemption period. - `enddate`: The last date in RFC3339 + * of the code redemption period. - `attributes`: A JSON object + * describing _custom_ giveaway attribute names and their values, enclosed with + * double quotation marks. For example, if you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `provider` associated with the giveaway entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"provider\": + * \"myPartnerCompany\"}\"`. The `startdate` and + * `enddate` have nothing to do with the _validity_ of the codes. They + * are only used by the Rule Engine to award the codes or not. You can use the + * time zone setting of your choice. The values are converted to UTC internally + * by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - + * You can import the same code multiple times. Duplicate codes are treated and + * distributed to customers as unique codes. **Example:** ```text + * code,startdate,enddate,attributes + * GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Amazon\"\"}\" + * GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": + * \"\"Aliexpress\"\"}\" ``` + * + * @throws ApiException + * if the Api call fails */ @Test public void importPoolGiveawaysTest() throws ApiException { - Integer poolId = null; + Long poolId = null; String upFile = null; ModelImport response = api.importPoolGiveaways(poolId, upFile); // TODO: test validations } - + /** * Import referrals * - * Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ``` - * - * @throws ApiException - * if the Api call fails + * Upload a CSV file containing the referrals that should be created. The file + * should be sent as multipart data. The CSV file contains the following + * columns: - `code` (required): The referral code. - + * `advocateprofileintegrationid` (required): The profile ID of the + * advocate. - `startdate`: The start date in RFC3339 of the code + * redemption period. - `expirydate`: The end date in RFC3339 of the + * code redemption period. - `limitval`: The maximum number of + * redemptions of this code. Defaults to `1` when left blank. - + * `attributes`: A JSON object describing _custom_ referral attribute + * names and their values, enclosed with double quotation marks. For example, if + * you created a [custom + * attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) + * called `category` associated with the referral entity, the object + * in the CSV file, when opened in a text editor, must be: + * `\"{\"category\": \"10_off\"}\"`. You + * can use the time zone of your choice. It is converted to UTC internally by + * Talon.One. **Important:** When you import a CSV file with referrals, a + * [customer + * profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) + * is **not** automatically created for each + * `advocateprofileintegrationid` column value. Use the [Update + * customer + * profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) + * endpoint or the [Update multiple customer + * profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) + * endpoint to create the customer profiles. **Note:** We recommend limiting + * your file size to 500MB. **Example:** ```text + * code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes + * REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": + * \"\"10_off\"\"}\" + * REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": + * \"\"20_off\"\"}\" ``` + * + * @throws ApiException + * if the Api call fails */ @Test public void importReferralsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String upFile = null; ModelImport response = api.importReferrals(applicationId, campaignId, upFile); // TODO: test validations } - + /** * Invite user from identity provider * - * [Invite a user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) from an external identity provider to Talon.One by sending an invitation to their email address. + * [Invite a + * user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) + * from an external identity provider to Talon.One by sending an invitation to + * their email address. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void inviteUserExternalTest() throws ApiException { @@ -2563,19 +3125,19 @@ public void inviteUserExternalTest() throws ApiException { // TODO: test validations } - + /** * List collections in account * * List account-level collections in the account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listAccountCollectionsTest() throws ApiException { - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; @@ -2583,34 +3145,34 @@ public void listAccountCollectionsTest() throws ApiException { // TODO: test validations } - + /** * List achievements * * List all the achievements for a specific campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listAchievementsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long campaignId = null; + Long pageSize = null; + Long skip = null; String title = null; InlineResponse20048 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); // TODO: test validations } - + /** * List roles * * List all roles. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listAllRolesV2Test() throws ApiException { @@ -2618,102 +3180,110 @@ public void listAllRolesV2Test() throws ApiException { // TODO: test validations } - + /** * List items in a catalog * - * Return a paginated list of cart items in the given catalog. + * Return a paginated list of cart items in the given catalog. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listCatalogItemsTest() throws ApiException { - Integer catalogId = null; - Integer pageSize = null; - Integer skip = null; + Long catalogId = null; + Long pageSize = null; + Long skip = null; Boolean withTotalResultSize = null; List sku = null; List productNames = null; - InlineResponse20037 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + InlineResponse20037 response = api.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, + productNames); // TODO: test validations } - + /** * List collections in campaign * * List collections in a given campaign. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listCollectionsTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long campaignId = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20020 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20020 response = api.listCollections(applicationId, campaignId, pageSize, skip, sort, + withTotalResultSize, name); // TODO: test validations } - + /** * List collections in Application * * List campaign-level collections from all campaigns in a given Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listCollectionsInApplicationTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; - InlineResponse20020 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name); + InlineResponse20020 response = api.listCollectionsInApplication(applicationId, pageSize, skip, sort, + withTotalResultSize, name); // TODO: test validations } - + /** * List stores * * List all stores for a specific Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void listStoresTest() throws ApiException { - Integer applicationId = null; - Integer pageSize = null; - Integer skip = null; + Long applicationId = null; + Long pageSize = null; + Long skip = null; String sort = null; Boolean withTotalResultSize = null; BigDecimal campaignId = null; String name = null; String integrationId = null; String query = null; - InlineResponse20047 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); + InlineResponse20047 response = api.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, + campaignId, name, integrationId, query); // TODO: test validations } - + /** * Validate Okta API ownership * - * Validate the ownership of the API through a challenge-response mechanism. This challenger endpoint is used by Okta to confirm that communication between Talon.One and Okta is correctly configured and accessible for provisioning and deprovisioning of Talon.One users, and that only Talon.One can receive and respond to events from Okta. + * Validate the ownership of the API through a challenge-response mechanism. + * This challenger endpoint is used by Okta to confirm that communication + * between Talon.One and Okta is correctly configured and accessible for + * provisioning and deprovisioning of Talon.One users, and that only Talon.One + * can receive and respond to events from Okta. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void oktaEventHandlerChallengeTest() throws ApiException { @@ -2721,14 +3291,20 @@ public void oktaEventHandlerChallengeTest() throws ApiException { // TODO: test validations } - + /** * Deduct points from customer profile * - * Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. + * Deduct points from the specified loyalty program and specified customer + * profile. **Important:** - Only active points can be deducted. - Only pending + * points are rolled back when a session is cancelled or reopened. To get the + * `integrationId` of the profile from a `sessionId`, use + * the [Update customer + * session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) + * endpoint. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void removeLoyaltyPointsTest() throws ApiException { @@ -2739,14 +3315,15 @@ public void removeLoyaltyPointsTest() throws ApiException { // TODO: test validations } - + /** * Reset password * - * Consumes the supplied password reset token and updates the password for the associated account. + * Consumes the supplied password reset token and updates the password for the + * associated account. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void resetPasswordTest() throws ApiException { @@ -2755,14 +3332,15 @@ public void resetPasswordTest() throws ApiException { // TODO: test validations } - + /** * Create SCIM user * - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create a new Talon.One user using the SCIM provisioning protocol with an + * identity provider, for example, Microsoft Entra ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimCreateUserTest() throws ApiException { @@ -2771,30 +3349,33 @@ public void scimCreateUserTest() throws ApiException { // TODO: test validations } - + /** * Delete SCIM user * - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Delete a specific Talon.One user created using the SCIM provisioning protocol + * with an identity provider, for example, Microsoft Entra ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimDeleteUserTest() throws ApiException { - Integer userId = null; + Long userId = null; api.scimDeleteUser(userId); // TODO: test validations } - + /** * List supported SCIM resource types * - * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + * Retrieve a list of resource types supported by the SCIM provisioning + * protocol. Resource types define the various kinds of resources that can be + * managed via the SCIM API, such as users, groups, or custom-defined resources. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimGetResourceTypesTest() throws ApiException { @@ -2802,14 +3383,17 @@ public void scimGetResourceTypesTest() throws ApiException { // TODO: test validations } - + /** * List supported SCIM schemas * - * Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. + * Retrieve a list of schemas supported by the SCIM provisioning protocol. + * Schemas define the structure and attributes of the different resources that + * can be managed via the SCIM API, such as users, groups, and any + * custom-defined resources. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimGetSchemasTest() throws ApiException { @@ -2817,14 +3401,16 @@ public void scimGetSchemasTest() throws ApiException { // TODO: test validations } - + /** * Get SCIM service provider configuration * - * Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. + * Retrieve the configuration settings of the SCIM service provider. It provides + * details about the features and capabilities supported by the SCIM API, such + * as the different operation settings. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimGetServiceProviderConfigTest() throws ApiException { @@ -2832,30 +3418,33 @@ public void scimGetServiceProviderConfigTest() throws ApiException { // TODO: test validations } - + /** * Get SCIM user * - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve data for a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimGetUserTest() throws ApiException { - Integer userId = null; + Long userId = null; ScimUser response = api.scimGetUser(userId); // TODO: test validations } - + /** * List SCIM users * - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * Retrieve a paginated list of users that have been provisioned using the SCIM + * protocol with an identity provider, for example, Microsoft Entra ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimGetUsersTest() throws ApiException { @@ -2863,350 +3452,407 @@ public void scimGetUsersTest() throws ApiException { // TODO: test validations } - + /** * Update SCIM user attributes * - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * Update certain attributes of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint allows for selective adding, removing, or replacing + * specific attributes while leaving other attributes unchanged. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimPatchUserTest() throws ApiException { - Integer userId = null; + Long userId = null; ScimPatchRequest body = null; ScimUser response = api.scimPatchUser(userId, body); // TODO: test validations } - + /** * Update SCIM user * - * Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload. + * Update the details of a specific Talon.One user created using the SCIM + * provisioning protocol with an identity provider, for example, Microsoft Entra + * ID. This endpoint replaces all attributes of the specific user with the + * attributes provided in the request payload. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void scimReplaceUserAttributesTest() throws ApiException { - Integer userId = null; + Long userId = null; ScimNewUser body = null; ScimUser response = api.scimReplaceUserAttributes(userId, body); // TODO: test validations } - + /** * List coupons that match the given attributes (without total count) * - * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. + * List the coupons whose attributes match the query criteria in all the + * campaigns of the given Application. The match is successful if all the + * attributes of the request are found in a coupon, even if the coupon has more + * attributes that are not present on the request. **Note:** The total count is + * not included in the response. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void searchCouponsAdvancedApplicationWideWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; Object body = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Integer referralId = null; + Long referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; String campaignState = null; - InlineResponse20011 response = api.searchCouponsAdvancedApplicationWideWithoutTotalCount(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState); + InlineResponse20011 response = api.searchCouponsAdvancedApplicationWideWithoutTotalCount(applicationId, body, + pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, batchId, exactMatch, campaignState); // TODO: test validations } - + /** - * List coupons that match the given attributes in campaign (without total count) + * List coupons that match the given attributes in campaign (without total + * count) * - * List the coupons whose attributes match the query criteria in the given campaign. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. + * List the coupons whose attributes match the query criteria in the given + * campaign. The match is successful if all the attributes of the request are + * found in a coupon, even if the coupon has more attributes that are not + * present on the request. **Note:** The total count is not included in the + * response. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void searchCouponsAdvancedWithoutTotalCountTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; Object body = null; - Integer pageSize = null; - Integer skip = null; + Long pageSize = null; + Long skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Integer referralId = null; + Long referralId = null; String recipientIntegrationId = null; Boolean exactMatch = null; String batchId = null; - InlineResponse20011 response = api.searchCouponsAdvancedWithoutTotalCount(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId); + InlineResponse20011 response = api.searchCouponsAdvancedWithoutTotalCount(applicationId, campaignId, body, + pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, + recipientIntegrationId, exactMatch, batchId); // TODO: test validations } - + /** * Transfer card data * - * Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_. + * Transfer loyalty card data, such as linked customers, loyalty balances and + * transactions, from a given loyalty card to a new, automatically created + * loyalty card. **Important:** - The original card is automatically blocked + * once the new card is created, and it cannot be activated again. - The default + * status of the new card is _active_. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void transferLoyaltyCardTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; TransferLoyaltyCard body = null; api.transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations } - + /** * Update account-level collection * - * Edit the description of a given account-level collection and enable or disable the collection in the specified Applications. + * Edit the description of a given account-level collection and enable or + * disable the collection in the specified Applications. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAccountCollectionTest() throws ApiException { - Integer collectionId = null; + Long collectionId = null; UpdateCollection body = null; Collection response = api.updateAccountCollection(collectionId, body); // TODO: test validations } - + /** * Update achievement * * Update the details of a specific achievement. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAchievementTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer achievementId = null; + Long applicationId = null; + Long campaignId = null; + Long achievementId = null; UpdateAchievement body = null; Achievement response = api.updateAchievement(applicationId, campaignId, achievementId, body); // TODO: test validations } - + /** * Update additional cost * - * Updates an existing additional cost. Once created, the only property of an additional cost that cannot be changed is the `name` property (or **API name** in the Campaign Manager). This restriction is in place to prevent accidentally breaking live integrations. + * Updates an existing additional cost. Once created, the only property of an + * additional cost that cannot be changed is the `name` property (or + * **API name** in the Campaign Manager). This restriction is in place to + * prevent accidentally breaking live integrations. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAdditionalCostTest() throws ApiException { - Integer additionalCostId = null; + Long additionalCostId = null; NewAdditionalCost body = null; AccountAdditionalCost response = api.updateAdditionalCost(additionalCostId, body); // TODO: test validations } - + /** * Update custom attribute * - * Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description. To change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. + * Update an existing custom attribute. Once created, the only property of a + * custom attribute that can be changed is the description. To change the + * `type` or `name` property of a custom attribute, create a + * new attribute and update any relevant integrations and rules to use the new + * attribute. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateAttributeTest() throws ApiException { - Integer attributeId = null; + Long attributeId = null; NewAttribute body = null; Attribute response = api.updateAttribute(attributeId, body); // TODO: test validations } - + /** * Update campaign * - * Update the given campaign. **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application. + * Update the given campaign. **Important:** You cannot use this endpoint to + * update campaigns if [campaign staging and + * revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) + * is enabled for your Application. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCampaignTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; UpdateCampaign body = null; Campaign response = api.updateCampaign(applicationId, campaignId, body); // TODO: test validations } - + /** * Update campaign-level collection's description * * Edit the description of a given campaign-level collection. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCollectionTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; - Integer collectionId = null; + Long applicationId = null; + Long campaignId = null; + Long collectionId = null; UpdateCampaignCollection body = null; Collection response = api.updateCollection(applicationId, campaignId, collectionId, body); // TODO: test validations } - + /** * Update coupon * - * Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div> + * Update the specified coupon. <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <p>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code>, + * <code>expiryDate</code>, and + * <code>recipientIntegrationId</code> properties in your request, + * it is automatically set to <code>null</code>.</p> + * </div> * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCouponTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String couponId = null; UpdateCoupon body = null; Coupon response = api.updateCoupon(applicationId, campaignId, couponId, body); // TODO: test validations } - + /** * Update coupons * - * Update all coupons or a specific batch of coupons in the given campaign. You can find the `batchId` on the **Coupons** page of your campaign in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.</li> <li>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code> and <code>expiryDate</code> properties in your request, it is automatically set to <code>null</code>.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon). + * Update all coupons or a specific batch of coupons in the given campaign. You + * can find the `batchId` on the **Coupons** page of your campaign in + * the Campaign Manager, or you can use [List + * coupons](#operation/getCouponsWithoutTotalCount). <div + * class=\"redoc-section\"> <p + * class=\"title\">Important</p> <ul> + * <li>Only send sequential requests to this endpoint.</li> + * <li>Requests to this endpoint time out after 30 minutes. If you hit a + * timeout, contact our support team.</li> <li>With this + * <code>PUT</code> endpoint, if you do not explicitly set a value + * for the <code>startDate</code> and + * <code>expiryDate</code> properties in your request, it is + * automatically set to <code>null</code>.</li> </ul> + * </div> To update a specific coupon, use [Update + * coupon](#operation/updateCoupon). * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateCouponBatchTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; UpdateCouponBatch body = null; api.updateCouponBatch(applicationId, campaignId, body); // TODO: test validations } - + /** * Update loyalty card status * - * Update the status of the given loyalty card. A card can be _active_ or _inactive_. + * Update the status of the given loyalty card. A card can be _active_ or + * _inactive_. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateLoyaltyCardTest() throws ApiException { - Integer loyaltyProgramId = null; + Long loyaltyProgramId = null; String loyaltyCardId = null; UpdateLoyaltyCard body = null; LoyaltyCard response = api.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); // TODO: test validations } - + /** * Update referral * * Update the specified referral. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateReferralTest() throws ApiException { - Integer applicationId = null; - Integer campaignId = null; + Long applicationId = null; + Long campaignId = null; String referralId = null; UpdateReferral body = null; Referral response = api.updateReferral(applicationId, campaignId, referralId, body); // TODO: test validations } - + /** * Update role * * Update a specific role. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateRoleV2Test() throws ApiException { - Integer roleId = null; + Long roleId = null; RoleV2Base body = null; RoleV2 response = api.updateRoleV2(roleId, body); // TODO: test validations } - + /** * Update store * * Update store details for a specific store ID. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateStoreTest() throws ApiException { - Integer applicationId = null; + Long applicationId = null; String storeId = null; NewStore body = null; Store response = api.updateStore(applicationId, storeId, body); // TODO: test validations } - + /** * Update user * * Update the details of a specific user. * * @throws ApiException - * if the Api call fails + * if the Api call fails */ @Test public void updateUserTest() throws ApiException { - Integer userId = null; + Long userId = null; UpdateUser body = null; User response = api.updateUser(userId, body); // TODO: test validations } - + }