diff --git a/README.md b/README.md index 6eb57cba..fbbc3d75 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The API is available at the same hostname as these docs. For example, if you are This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 4.1.1 +- Package version: 4.2.0 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -311,9 +311,11 @@ Class | Method | HTTP request | Description *TalonOne.IntegrationApi* | [**getCustomerInventory**](docs/IntegrationApi.md#getCustomerInventory) | **GET** /v1/customer_profiles/{integrationId}/inventory | Get an inventory of all data associated with a specific customer profile. *TalonOne.IntegrationApi* | [**getReservedCustomers**](docs/IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved *TalonOne.IntegrationApi* | [**trackEvent**](docs/IntegrationApi.md#trackEvent) | **POST** /v1/events | Track an Event -*TalonOne.IntegrationApi* | [**updateCustomerProfile**](docs/IntegrationApi.md#updateCustomerProfile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile -*TalonOne.IntegrationApi* | [**updateCustomerProfileV2**](docs/IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{customerProfileId} | Update a Customer Profile -*TalonOne.IntegrationApi* | [**updateCustomerSession**](docs/IntegrationApi.md#updateCustomerSession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session +*TalonOne.IntegrationApi* | [**updateCustomerProfile**](docs/IntegrationApi.md#updateCustomerProfile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile V1 +*TalonOne.IntegrationApi* | [**updateCustomerProfileAudiences**](docs/IntegrationApi.md#updateCustomerProfileAudiences) | **POST** /v2/customer_audiences | Update a Customer Profile Audiences +*TalonOne.IntegrationApi* | [**updateCustomerProfileV2**](docs/IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{integrationId} | Update a Customer Profile +*TalonOne.IntegrationApi* | [**updateCustomerProfilesV2**](docs/IntegrationApi.md#updateCustomerProfilesV2) | **PUT** /v2/customer_profiles | Update multiple Customer Profiles +*TalonOne.IntegrationApi* | [**updateCustomerSession**](docs/IntegrationApi.md#updateCustomerSession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session V1 *TalonOne.IntegrationApi* | [**updateCustomerSessionV2**](docs/IntegrationApi.md#updateCustomerSessionV2) | **PUT** /v2/customer_sessions/{customerSessionId} | Update a Customer Session *TalonOne.ManagementApi* | [**addLoyaltyPoints**](docs/ManagementApi.md#addLoyaltyPoints) | **PUT** /v1/loyalty_programs/{programID}/profile/{integrationID}/add_points | Add points in a certain loyalty program for the specified customer *TalonOne.ManagementApi* | [**copyCampaignToApplications**](docs/ManagementApi.md#copyCampaignToApplications) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/copy | Copy the campaign into every specified application @@ -372,6 +374,7 @@ Class | Method | HTTP request | Description *TalonOne.ManagementApi* | [**getLoyaltyPoints**](docs/ManagementApi.md#getLoyaltyPoints) | **GET** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID *TalonOne.ManagementApi* | [**getLoyaltyProgram**](docs/ManagementApi.md#getLoyaltyProgram) | **GET** /v1/loyalty_programs/{programID} | Get a loyalty program *TalonOne.ManagementApi* | [**getLoyaltyPrograms**](docs/ManagementApi.md#getLoyaltyPrograms) | **GET** /v1/loyalty_programs | List all loyalty Programs +*TalonOne.ManagementApi* | [**getLoyaltyStatistics**](docs/ManagementApi.md#getLoyaltyStatistics) | **GET** /v1/loyalty_programs/{programID}/statistics | Get loyalty program statistics by loyalty program ID *TalonOne.ManagementApi* | [**getReferrals**](docs/ManagementApi.md#getReferrals) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count) *TalonOne.ManagementApi* | [**getReferralsWithoutTotalCount**](docs/ManagementApi.md#getReferralsWithoutTotalCount) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals *TalonOne.ManagementApi* | [**getRole**](docs/ManagementApi.md#getRole) | **GET** /v1/roles/{roleId} | Get information for the specified role. @@ -424,12 +427,16 @@ Class | Method | HTTP request | Description - [TalonOne.Attribute](docs/Attribute.md) - [TalonOne.AttributesMandatory](docs/AttributesMandatory.md) - [TalonOne.AttributesSettings](docs/AttributesSettings.md) + - [TalonOne.Audience](docs/Audience.md) + - [TalonOne.AudienceMembership](docs/AudienceMembership.md) - [TalonOne.BaseSamlConnection](docs/BaseSamlConnection.md) - [TalonOne.Binding](docs/Binding.md) - [TalonOne.Campaign](docs/Campaign.md) - [TalonOne.CampaignAnalytics](docs/CampaignAnalytics.md) - [TalonOne.CampaignCopy](docs/CampaignCopy.md) - [TalonOne.CampaignEntity](docs/CampaignEntity.md) + - [TalonOne.CampaignGroup](docs/CampaignGroup.md) + - [TalonOne.CampaignGroupEntity](docs/CampaignGroupEntity.md) - [TalonOne.CampaignSearch](docs/CampaignSearch.md) - [TalonOne.CampaignSet](docs/CampaignSet.md) - [TalonOne.CampaignSetBranchNode](docs/CampaignSetBranchNode.md) @@ -452,8 +459,10 @@ Class | Method | HTTP request | Description - [TalonOne.CustomerAnalytics](docs/CustomerAnalytics.md) - [TalonOne.CustomerInventory](docs/CustomerInventory.md) - [TalonOne.CustomerProfile](docs/CustomerProfile.md) + - [TalonOne.CustomerProfileAudienceRequest](docs/CustomerProfileAudienceRequest.md) + - [TalonOne.CustomerProfileAudienceRequestItem](docs/CustomerProfileAudienceRequestItem.md) + - [TalonOne.CustomerProfileIntegrationRequestV2](docs/CustomerProfileIntegrationRequestV2.md) - [TalonOne.CustomerProfileSearchQuery](docs/CustomerProfileSearchQuery.md) - - [TalonOne.CustomerProfileUpdate](docs/CustomerProfileUpdate.md) - [TalonOne.CustomerSession](docs/CustomerSession.md) - [TalonOne.CustomerSessionV2](docs/CustomerSessionV2.md) - [TalonOne.DeductLoyaltyPointsEffectProps](docs/DeductLoyaltyPointsEffectProps.md) @@ -461,6 +470,7 @@ Class | Method | HTTP request | Description - [TalonOne.EffectEntity](docs/EffectEntity.md) - [TalonOne.EmailEntity](docs/EmailEntity.md) - [TalonOne.Entity](docs/Entity.md) + - [TalonOne.EntityWithTalangVisibleID](docs/EntityWithTalangVisibleID.md) - [TalonOne.Environment](docs/Environment.md) - [TalonOne.ErrorEffectProps](docs/ErrorEffectProps.md) - [TalonOne.ErrorResponse](docs/ErrorResponse.md) @@ -470,6 +480,7 @@ Class | Method | HTTP request | Description - [TalonOne.FeatureFlag](docs/FeatureFlag.md) - [TalonOne.FeatureFlags](docs/FeatureFlags.md) - [TalonOne.FeaturesFeed](docs/FeaturesFeed.md) + - [TalonOne.FeedNotification](docs/FeedNotification.md) - [TalonOne.FuncArgDef](docs/FuncArgDef.md) - [TalonOne.FunctionDef](docs/FunctionDef.md) - [TalonOne.ImportCoupons](docs/ImportCoupons.md) @@ -522,13 +533,16 @@ Class | Method | HTTP request | Description - [TalonOne.LoyaltyProgram](docs/LoyaltyProgram.md) - [TalonOne.LoyaltyProgramBalance](docs/LoyaltyProgramBalance.md) - [TalonOne.LoyaltyProgramLedgers](docs/LoyaltyProgramLedgers.md) + - [TalonOne.LoyaltyStatistics](docs/LoyaltyStatistics.md) - [TalonOne.LoyaltySubLedger](docs/LoyaltySubLedger.md) - [TalonOne.ManagerConfig](docs/ManagerConfig.md) - [TalonOne.Meta](docs/Meta.md) - - [TalonOne.MiscUpdateUserLatestFeature](docs/MiscUpdateUserLatestFeature.md) - [TalonOne.ModelExport](docs/ModelExport.md) - [TalonOne.ModelImport](docs/ModelImport.md) - [TalonOne.MultiApplicationEntity](docs/MultiApplicationEntity.md) + - [TalonOne.MultipleCustomerProfileIntegrationRequest](docs/MultipleCustomerProfileIntegrationRequest.md) + - [TalonOne.MultipleCustomerProfileIntegrationRequestItem](docs/MultipleCustomerProfileIntegrationRequestItem.md) + - [TalonOne.MultipleCustomerProfileIntegrationResponseV2](docs/MultipleCustomerProfileIntegrationResponseV2.md) - [TalonOne.MutableEntity](docs/MutableEntity.md) - [TalonOne.NewAccount](docs/NewAccount.md) - [TalonOne.NewAccountSignUp](docs/NewAccountSignUp.md) @@ -536,7 +550,9 @@ Class | Method | HTTP request | Description - [TalonOne.NewApplication](docs/NewApplication.md) - [TalonOne.NewApplicationAPIKey](docs/NewApplicationAPIKey.md) - [TalonOne.NewAttribute](docs/NewAttribute.md) + - [TalonOne.NewAudience](docs/NewAudience.md) - [TalonOne.NewCampaign](docs/NewCampaign.md) + - [TalonOne.NewCampaignGroup](docs/NewCampaignGroup.md) - [TalonOne.NewCampaignSet](docs/NewCampaignSet.md) - [TalonOne.NewCoupons](docs/NewCoupons.md) - [TalonOne.NewCustomerProfile](docs/NewCustomerProfile.md) @@ -587,14 +603,18 @@ Class | Method | HTTP request | Description - [TalonOne.UpdateAccount](docs/UpdateAccount.md) - [TalonOne.UpdateApplication](docs/UpdateApplication.md) - [TalonOne.UpdateAttributeEffectProps](docs/UpdateAttributeEffectProps.md) + - [TalonOne.UpdateAudience](docs/UpdateAudience.md) - [TalonOne.UpdateCampaign](docs/UpdateCampaign.md) + - [TalonOne.UpdateCampaignGroup](docs/UpdateCampaignGroup.md) - [TalonOne.UpdateCoupon](docs/UpdateCoupon.md) - [TalonOne.UpdateCouponBatch](docs/UpdateCouponBatch.md) - [TalonOne.UpdateLoyaltyProgram](docs/UpdateLoyaltyProgram.md) - [TalonOne.UpdateRole](docs/UpdateRole.md) - [TalonOne.UpdateUser](docs/UpdateUser.md) + - [TalonOne.UpdateUserLatestFeedTimestamp](docs/UpdateUserLatestFeedTimestamp.md) - [TalonOne.User](docs/User.md) - [TalonOne.UserEntity](docs/UserEntity.md) + - [TalonOne.UserFeedNotifications](docs/UserFeedNotifications.md) - [TalonOne.Webhook](docs/Webhook.md) - [TalonOne.WebhookActivationLogEntry](docs/WebhookActivationLogEntry.md) - [TalonOne.WebhookLogEntry](docs/WebhookLogEntry.md) diff --git a/docs/AccountAnalytics.md b/docs/AccountAnalytics.md index 0ab01619..4c0d5a8e 100644 --- a/docs/AccountAnalytics.md +++ b/docs/AccountAnalytics.md @@ -4,20 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applications** | **Number** | Total Number of Applications inside the account | -**activeCampaigns** | **Number** | Total Number of Active Applications inside the account | -**campaigns** | **Number** | Total Number of campaigns inside the account | -**coupons** | **Number** | Total Number of coupons inside the account | -**activeCoupons** | **Number** | Total Number of active coupons inside the account | -**expiredCoupons** | **Number** | Total Number of expired coupons inside the account | -**customAttributes** | **Number** | Total Number of custom attributes inside the account | -**referralCodes** | **Number** | Total Number of referral codes inside the account | -**activeReferralCodes** | **Number** | Total Number of active referral codes inside the account | -**expiredReferralCodes** | **Number** | Total Number of expired referral codes inside the account | -**users** | **Number** | Total Number of users inside the account | -**roles** | **Number** | Total Number of roles inside the account | -**webhooks** | **Number** | Total Number of webhooks inside the account | -**loyaltyPrograms** | **Number** | Total Number of loyalty programs inside the account | -**activeRules** | **Number** | Total Number of active rules in the account | +**applications** | **Number** | Total number of applications in the account | +**liveApplications** | **Number** | Total number of live applications in the account | +**sandboxApplications** | **Number** | Total number of sandbox applications in the account | +**campaigns** | **Number** | Total number of campaigns in the account | +**activeCampaigns** | **Number** | Total number of active campaigns in the account | +**liveActiveCampaigns** | **Number** | Total number of active campaigns in live applications in the account | +**coupons** | **Number** | Total number of coupons in the account | +**activeCoupons** | **Number** | Total number of active coupons in the account | +**expiredCoupons** | **Number** | Total number of expired coupons in the account | +**referralCodes** | **Number** | Total number of referral codes in the account | +**activeReferralCodes** | **Number** | Total number of active referral codes in the account | +**expiredReferralCodes** | **Number** | Total number of expired referral codes in the account | +**activeRules** | **Number** | Total number of active rules in the account | +**users** | **Number** | Total number of users in the account | +**roles** | **Number** | Total number of roles in the account | +**customAttributes** | **Number** | Total number of custom attributes in the account | +**webhooks** | **Number** | Total number of webhooks in the account | +**loyaltyPrograms** | **Number** | Total number of loyalty programs in the account | diff --git a/docs/AccountLimits.md b/docs/AccountLimits.md index 4f0de432..e40a47d4 100644 --- a/docs/AccountLimits.md +++ b/docs/AccountLimits.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**liveApplications** | **Number** | Total Number of allowed live applications in the account | -**sandboxApplications** | **Number** | Total Number of allowed sandbox applications in the account | -**activeCampaigns** | **Number** | Total Number of allowed active campaigns in the account | -**coupons** | **Number** | Total Number of allowed coupons in the account | -**referralCodes** | **Number** | Total Number of allowed referral codes in the account | -**liveLoyaltyPrograms** | **Number** | Total Number of allowed live loyalty programs in the account | -**sandboxLoyaltyPrograms** | **Number** | Total Number of allowed sandbox loyalty programs in the account | -**webhooks** | **Number** | Total Number of allowed webhooks in the account | -**users** | **Number** | Total Number of allowed users in the account | -**apiVolume** | **Number** | Total allowed api volume | -**activeRules** | **Number** | Total allowed active rulesets | [optional] -**promotionTypes** | **[String]** | array of rulesets where webhook is used | +**liveApplications** | **Number** | Total number of allowed live applications in the account | +**sandboxApplications** | **Number** | Total number of allowed sandbox applications in the account | +**activeCampaigns** | **Number** | Total number of allowed active campaigns in live applications in the account | +**coupons** | **Number** | Total number of allowed coupons in the account | +**referralCodes** | **Number** | Total number of allowed referral codes in the account | +**activeRules** | **Number** | Total number of allowed active rulesets in the account | +**liveLoyaltyPrograms** | **Number** | Total number of allowed live loyalty programs in the account | +**sandboxLoyaltyPrograms** | **Number** | Total number of allowed sandbox loyalty programs in the account | +**webhooks** | **Number** | Total number of allowed webhooks in the account | +**users** | **Number** | Total number of allowed users in the account | +**apiVolume** | **Number** | Allowed volume of API requests to the account | +**promotionTypes** | **[String]** | Array of promotion types that are employed in the account | diff --git a/docs/AddLoyaltyPointsEffectProps.md b/docs/AddLoyaltyPointsEffectProps.md index 56e56754..44d7378e 100644 --- a/docs/AddLoyaltyPointsEffectProps.md +++ b/docs/AddLoyaltyPointsEffectProps.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added | **value** | **Number** | The amount of points that were added | **recipientIntegrationId** | **String** | The user for whom these points were added | -**expiryCondition** | **String** | The amount of time (in days) these points are valid | +**startDate** | **Date** | Date after which points will be valid | [optional] +**expiryDate** | **Date** | Date after which points will expire | [optional] diff --git a/docs/Application.md b/docs/Application.md index 4f1bf4f5..d859f5db 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -15,8 +15,12 @@ Name | Type | Description | Notes **caseSensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | Default limits for campaigns created in this application | [optional] -**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) | [optional] +**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] +**exclusiveCampaignsStrategy** | **String** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] +**enableCascadingDiscounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**AttributesSettings**](AttributesSettings.md) | | [optional] +**sandbox** | **Boolean** | Flag indicating if this is a live or sandbox application | [optional] **loyaltyPrograms** | [**[LoyaltyProgram]**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed | @@ -46,3 +50,16 @@ Name | Type | Description | Notes + +## Enum: ExclusiveCampaignsStrategyEnum + + +* `listOrder` (value: `"listOrder"`) + +* `lowestDiscount` (value: `"lowestDiscount"`) + +* `highestDiscount` (value: `"highestDiscount"`) + + + + diff --git a/docs/ApplicationAPIKey.md b/docs/ApplicationAPIKey.md index 28958a8a..1c4e9825 100644 --- a/docs/ApplicationAPIKey.md +++ b/docs/ApplicationAPIKey.md @@ -4,12 +4,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **String** | Title for API Key | +**expires** | **Date** | The date the API key expired | +**platform** | **String** | Platform the API key is valid for. | [optional] **id** | **Number** | ID of the API Key | **createdBy** | **Number** | ID of user who created | -**title** | **String** | Title for API Key | **accountID** | **Number** | ID of account the key is used for | **applicationID** | **Number** | ID of application the key is used for | **created** | **Date** | The date the API key was created | -**expires** | **Date** | The date the API key expired | + + + +## Enum: PlatformEnum + + +* `none` (value: `"none"`) + +* `segment` (value: `"segment"`) + +* `braze` (value: `"braze"`) + +* `mparticle` (value: `"mparticle"`) + + diff --git a/docs/ApplicationCustomer.md b/docs/ApplicationCustomer.md index 3e536ede..fd616d91 100644 --- a/docs/ApplicationCustomer.md +++ b/docs/ApplicationCustomer.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | Unique ID for this entity. | **created** | **Date** | The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. | -**integrationId** | **String** | The ID used for this entity in the application system. The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item | **accountId** | **Number** | The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile. | **closedSessions** | **Number** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | **Number** | Sum of all purchases made by this customer | **loyaltyMemberships** | [**[LoyaltyMembership]**](LoyaltyMembership.md) | A list of loyalty programs joined by the customer | [optional] +**audienceMemberships** | [**[AudienceMembership]**](AudienceMembership.md) | A list of audiences the customer belongs to | [optional] **lastActivity** | **Date** | Timestamp of the most recent event received from this customer | diff --git a/docs/ApplicationSession.md b/docs/ApplicationSession.md index 8c03a925..838b1a11 100644 --- a/docs/ApplicationSession.md +++ b/docs/ApplicationSession.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created** | **Date** | The exact moment this entity was created. The exact moment this entity was created. | **applicationId** | **Number** | The ID of the application that owns this entity. | **profileId** | **Number** | The globally unique Talon.One ID of the customer that created this entity. | [optional] -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **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/Audience.md b/docs/Audience.md new file mode 100644 index 00000000..476786d9 --- /dev/null +++ b/docs/Audience.md @@ -0,0 +1,23 @@ +# TalonOne.Audience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accountId** | **Number** | The ID of the account that owns this entity. | +**id** | **Number** | Unique ID for this entity. | +**created** | **Date** | The exact moment this entity was created. | +**name** | **String** | The human-friendly display name for this Audience. | +**integration** | **String** | Integration that this audience was created in. | +**integrationId** | **String** | The ID of this Audience in the third-party integration | + + + +## Enum: IntegrationEnum + + +* `mparticle` (value: `"mparticle"`) + + + + diff --git a/docs/AudienceMembership.md b/docs/AudienceMembership.md new file mode 100644 index 00000000..0b23f0d8 --- /dev/null +++ b/docs/AudienceMembership.md @@ -0,0 +1,10 @@ +# TalonOne.AudienceMembership + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the audience belonging to this entity. | +**name** | **String** | The Name of the audience belonging to this entity. | + + diff --git a/docs/Campaign.md b/docs/Campaign.md index e54be1fd..cb55b2b8 100644 --- a/docs/Campaign.md +++ b/docs/Campaign.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **[Number]** | The IDs of the campaign groups that own this entity. | [optional] **couponRedemptionCount** | **Number** | Number of coupons redeemed in the campaign. | [optional] **referralRedemptionCount** | **Number** | Number of referral codes redeemed in the campaign. | [optional] **discountCount** | **Number** | Total amount of discounts redeemed in the campaign. | [optional] diff --git a/docs/CampaignAnalytics.md b/docs/CampaignAnalytics.md index b7d4aad1..c321c074 100644 --- a/docs/CampaignAnalytics.md +++ b/docs/CampaignAnalytics.md @@ -25,5 +25,9 @@ Name | Type | Description | Notes **totalCouponsCreated** | **Number** | Number of coupons created in the campaign by the rule engine since it began. | **referralsCreated** | **Number** | Number of referrals created in the campaign by the rule engine. | **totalReferralsCreated** | **Number** | Number of referrals created in the campaign by the rule engine since it began. | +**addedLoyaltyPoints** | **Number** | Number of added loyalty points in the campaign in a specific interval. | +**totalAddedLoyaltyPoints** | **Number** | Number of added loyalty points in the campaign since it began. | +**deductedLoyaltyPoints** | **Number** | Number of deducted loyalty points in the campaign in a specific interval. | +**totalDeductedLoyaltyPoints** | **Number** | Number of deducted loyalty points in the campaign since it began. | diff --git a/docs/CampaignCopy.md b/docs/CampaignCopy.md index ef75dc5b..a7878efd 100644 --- a/docs/CampaignCopy.md +++ b/docs/CampaignCopy.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the copied campaign (Defaults to \"Copy of original campaign name\") | [optional] -**applicationIds** | **[String]** | Application IDs of the applications to which a campaign should be copied to | +**applicationIds** | **[Number]** | Application IDs of the applications to which a campaign should be copied to | **description** | **String** | A detailed description of the campaign. | [optional] **startTime** | **Date** | Datetime when the campaign will become active. | [optional] **endTime** | **Date** | Datetime when the campaign will become in-active. | [optional] diff --git a/docs/CampaignGroup.md b/docs/CampaignGroup.md new file mode 100644 index 00000000..c5ce7f0b --- /dev/null +++ b/docs/CampaignGroup.md @@ -0,0 +1,16 @@ +# TalonOne.CampaignGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | Unique ID for this entity. | +**created** | **Date** | The exact moment this entity was created. | +**modified** | **Date** | The exact moment this entity was last modified. | +**accountId** | **Number** | The ID of the account that owns this entity. | +**name** | **String** | The name of this campaign group. | +**description** | **String** | A longer description of the campaign group. | [optional] +**subscribedApplicationsIds** | **[Number]** | A list of the IDs of the applications that this campaign group is enabled for | [optional] +**campaignIds** | **[Number]** | A list of the IDs of the campaigns that this campaign group owns | [optional] + + diff --git a/docs/CampaignGroupEntity.md b/docs/CampaignGroupEntity.md new file mode 100644 index 00000000..4fc22607 --- /dev/null +++ b/docs/CampaignGroupEntity.md @@ -0,0 +1,9 @@ +# TalonOne.CampaignGroupEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaignGroups** | **[Number]** | The IDs of the campaign groups that own this entity. | [optional] + + diff --git a/docs/CouponRejectionReason.md b/docs/CouponRejectionReason.md index 7c158768..b1bdbcc5 100644 --- a/docs/CouponRejectionReason.md +++ b/docs/CouponRejectionReason.md @@ -17,8 +17,6 @@ Name | Type | Description | Notes * `CouponPartOfNotRunningCampaign` (value: `"CouponPartOfNotRunningCampaign"`) -* `CouponValidConditionMissing` (value: `"CouponValidConditionMissing"`) - * `CouponLimitReached` (value: `"CouponLimitReached"`) * `CampaignLimitReached` (value: `"CampaignLimitReached"`) diff --git a/docs/CreateApplicationAPIKey.md b/docs/CreateApplicationAPIKey.md index 997ca270..ad44a673 100644 --- a/docs/CreateApplicationAPIKey.md +++ b/docs/CreateApplicationAPIKey.md @@ -6,5 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | Title for API Key | **expires** | **Date** | The date the API key expired | +**platform** | **String** | Platform the API key is valid for. | [optional] + + + +## Enum: PlatformEnum + + +* `none` (value: `"none"`) + +* `segment` (value: `"segment"`) + +* `braze` (value: `"braze"`) + +* `mparticle` (value: `"mparticle"`) + + diff --git a/docs/CustomerActivityReport.md b/docs/CustomerActivityReport.md index 10f105d1..583f0f47 100644 --- a/docs/CustomerActivityReport.md +++ b/docs/CustomerActivityReport.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | **Date** | The exact moment this entity was created. | **name** | **String** | The name for this customer profile. | **customerId** | **Number** | The internal Talon.One ID of the customer. | diff --git a/docs/CustomerInventory.md b/docs/CustomerInventory.md index 36ad0948..a9c6d336 100644 --- a/docs/CustomerInventory.md +++ b/docs/CustomerInventory.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profile** | [**CustomerProfile**](CustomerProfile.md) | | [optional] +**loyalty** | [**Loyalty**](Loyalty.md) | | [optional] **referrals** | [**[Referral]**](Referral.md) | | [optional] **coupons** | [**[Coupon]**](Coupon.md) | | [optional] diff --git a/docs/CustomerProfile.md b/docs/CustomerProfile.md index b909f3e2..3adbfcb6 100644 --- a/docs/CustomerProfile.md +++ b/docs/CustomerProfile.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | **Date** | The exact moment this entity was created. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item | **accountId** | **Number** | The ID of the Talon.One account that owns this profile. | **closedSessions** | **Number** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | **Number** | Sum of all purchases made by this customer | **loyaltyMemberships** | [**[LoyaltyMembership]**](LoyaltyMembership.md) | A list of loyalty programs joined by the customer | [optional] +**audienceMemberships** | [**[AudienceMembership]**](AudienceMembership.md) | A list of audiences the customer belongs to | [optional] **lastActivity** | **Date** | Timestamp of the most recent event received from this customer | diff --git a/docs/CustomerProfileAudienceRequest.md b/docs/CustomerProfileAudienceRequest.md new file mode 100644 index 00000000..da62af52 --- /dev/null +++ b/docs/CustomerProfileAudienceRequest.md @@ -0,0 +1,9 @@ +# TalonOne.CustomerProfileAudienceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[CustomerProfileAudienceRequestItem]**](CustomerProfileAudienceRequestItem.md) | | [optional] + + diff --git a/docs/CustomerProfileAudienceRequestItem.md b/docs/CustomerProfileAudienceRequestItem.md new file mode 100644 index 00000000..448e8bfd --- /dev/null +++ b/docs/CustomerProfileAudienceRequestItem.md @@ -0,0 +1,22 @@ +# TalonOne.CustomerProfileAudienceRequestItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**profileIntegrationId** | **String** | | +**audienceId** | **Number** | | + + + +## Enum: ActionEnum + + +* `add` (value: `"add"`) + +* `delete` (value: `"delete"`) + + + + diff --git a/docs/CustomerProfileIntegrationRequestV2.md b/docs/CustomerProfileIntegrationRequestV2.md new file mode 100644 index 00000000..48e945f1 --- /dev/null +++ b/docs/CustomerProfileIntegrationRequestV2.md @@ -0,0 +1,25 @@ +# TalonOne.CustomerProfileIntegrationRequestV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional] +**responseContent** | **[String]** | Optional list of requested information to be present on the response related to the customer profile update. Currently supported: \"customerProfile\", \"triggeredCampaigns\", \"loyalty\" and \"event\". | [optional] + + + +## Enum: [ResponseContentEnum] + + +* `customerProfile` (value: `"customerProfile"`) + +* `triggeredCampaigns` (value: `"triggeredCampaigns"`) + +* `loyalty` (value: `"loyalty"`) + +* `event` (value: `"event"`) + + + + diff --git a/docs/CustomerSession.md b/docs/CustomerSession.md index 1420543c..3f65264d 100644 --- a/docs/CustomerSession.md +++ b/docs/CustomerSession.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | **Date** | The exact moment this entity was created. | **applicationId** | **Number** | The ID of the application that owns this entity. | **profileId** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md index a83dd7df..328970fd 100644 --- a/docs/CustomerSessionV2.md +++ b/docs/CustomerSessionV2.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | **Date** | The exact moment this entity was created. | **applicationId** | **Number** | The ID of the application that owns this entity. | **profileId** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | diff --git a/docs/EntityWithTalangVisibleID.md b/docs/EntityWithTalangVisibleID.md new file mode 100644 index 00000000..656b8333 --- /dev/null +++ b/docs/EntityWithTalangVisibleID.md @@ -0,0 +1,10 @@ +# TalonOne.EntityWithTalangVisibleID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | Unique ID for this entity. | +**created** | **Date** | The exact moment this entity was created. | + + diff --git a/docs/FeedNotification.md b/docs/FeedNotification.md new file mode 100644 index 00000000..d258081c --- /dev/null +++ b/docs/FeedNotification.md @@ -0,0 +1,31 @@ +# TalonOne.FeedNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | Title of the feed notification | +**created** | **Date** | Timestamp of the moment this feed notification was created | +**updated** | **Date** | Timestamp of the moment this feed notification was last updated | +**articleUrl** | **String** | URL to the feed notification in the help center | +**type** | **String** | The type of the feed notification | +**body** | **String** | Body of the feed notification | + + + +## Enum: TypeEnum + + +* `feed` (value: `"feed"`) + +* `feature` (value: `"feature"`) + +* `announcement` (value: `"announcement"`) + +* `alert` (value: `"alert"`) + +* `test` (value: `"test"`) + + + + diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md index 62668ec4..a8e9eff8 100644 --- a/docs/InlineResponse20012.md +++ b/docs/InlineResponse20012.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Number** | | +**totalResultSize** | **Number** | | [optional] +**hasMore** | **Boolean** | | [optional] **data** | [**[ApplicationCustomer]**](ApplicationCustomer.md) | | diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index ab00e72e..35b748c6 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -11,9 +11,11 @@ Method | HTTP request | Description [**getCustomerInventory**](IntegrationApi.md#getCustomerInventory) | **GET** /v1/customer_profiles/{integrationId}/inventory | Get an inventory of all data associated with a specific customer profile. [**getReservedCustomers**](IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved [**trackEvent**](IntegrationApi.md#trackEvent) | **POST** /v1/events | Track an Event -[**updateCustomerProfile**](IntegrationApi.md#updateCustomerProfile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile -[**updateCustomerProfileV2**](IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{customerProfileId} | Update a Customer Profile -[**updateCustomerSession**](IntegrationApi.md#updateCustomerSession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session +[**updateCustomerProfile**](IntegrationApi.md#updateCustomerProfile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile V1 +[**updateCustomerProfileAudiences**](IntegrationApi.md#updateCustomerProfileAudiences) | **POST** /v2/customer_audiences | Update a Customer Profile Audiences +[**updateCustomerProfileV2**](IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{integrationId} | Update a Customer Profile +[**updateCustomerProfilesV2**](IntegrationApi.md#updateCustomerProfilesV2) | **PUT** /v2/customer_profiles | Update multiple Customer Profiles +[**updateCustomerSession**](IntegrationApi.md#updateCustomerSession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session V1 [**updateCustomerSessionV2**](IntegrationApi.md#updateCustomerSessionV2) | **PUT** /v2/customer_sessions/{customerSessionId} | Update a Customer Session @@ -271,7 +273,8 @@ let integrationId = "integrationId_example"; // String | The custom identifier f let opts = { 'profile': true, // Boolean | optional flag to decide if you would like customer profile information in the response 'referrals': true, // Boolean | optional flag to decide if you would like referral information in the response - 'coupons': true // Boolean | optional flag to decide if you would like coupon information in the response + 'coupons': true, // Boolean | optional flag to decide if you would like coupon information in the response + 'loyalty': true // Boolean | optional flag to decide if you would like loyalty information in the response }; apiInstance.getCustomerInventory(integrationId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); @@ -290,6 +293,7 @@ Name | Type | Description | Notes **profile** | **Boolean**| optional flag to decide if you would like customer profile information in the response | [optional] **referrals** | **Boolean**| optional flag to decide if you would like referral information in the response | [optional] **coupons** | **Boolean**| optional flag to decide if you would like coupon information in the response | [optional] + **loyalty** | **Boolean**| optional flag to decide if you would like loyalty information in the response | [optional] ### Return type @@ -423,9 +427,9 @@ Name | Type | Description | Notes > IntegrationState updateCustomerProfile(integrationId, body, opts) -Update a Customer Profile +Update a Customer Profile V1 -Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons +⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons ### Example @@ -480,13 +484,63 @@ Name | Type | Description | Notes - **Accept**: application/json +## updateCustomerProfileAudiences + +> updateCustomerProfileAudiences(body) + +Update a Customer Profile Audiences + +Update one ore multiple Customer Profiles with the specified Audiences + +### Example + +```javascript +import TalonOne from 'talon_one'; +let defaultClient = TalonOne.ApiClient.instance; +// Configure API key authorization: api_key_v1 +let api_key_v1 = defaultClient.authentications['api_key_v1']; +api_key_v1.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key_v1.apiKeyPrefix = 'Token'; + +let apiInstance = new TalonOne.IntegrationApi(); +let body = new TalonOne.CustomerProfileAudienceRequest(); // CustomerProfileAudienceRequest | +apiInstance.updateCustomerProfileAudiences(body).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**CustomerProfileAudienceRequest**](CustomerProfileAudienceRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[api_key_v1](../README.md#api_key_v1) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + + ## updateCustomerProfileV2 -> CustomerProfileUpdate updateCustomerProfileV2(customerProfileId, body) +> IntegrationStateV2 updateCustomerProfileV2(integrationId, body, opts) Update a Customer Profile -Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile +Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile ### Example @@ -500,9 +554,13 @@ api_key_v1.apiKey = 'YOUR API KEY'; //api_key_v1.apiKeyPrefix = 'Token'; let apiInstance = new TalonOne.IntegrationApi(); -let customerProfileId = "customerProfileId_example"; // String | The custom identifier for this profile, must be unique within the account. -let body = new TalonOne.NewCustomerProfile(); // NewCustomerProfile | -apiInstance.updateCustomerProfileV2(customerProfileId, body).then((data) => { +let integrationId = "integrationId_example"; // String | The custom identifier for this profile, must be unique within the account. +let body = new TalonOne.CustomerProfileIntegrationRequestV2(); // CustomerProfileIntegrationRequestV2 | +let opts = { + 'runRuleEngine': true, // Boolean | Flag to indicate whether to run the rule engine (Defaults to false). + 'dry': true // Boolean | Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). +}; +apiInstance.updateCustomerProfileV2(integrationId, body, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -515,12 +573,68 @@ apiInstance.updateCustomerProfileV2(customerProfileId, body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerProfileId** | **String**| The custom identifier for this profile, must be unique within the account. | - **body** | [**NewCustomerProfile**](NewCustomerProfile.md)| | + **integrationId** | **String**| The custom identifier for this profile, must be unique within the account. | + **body** | [**CustomerProfileIntegrationRequestV2**](CustomerProfileIntegrationRequestV2.md)| | + **runRuleEngine** | **Boolean**| Flag to indicate whether to run the rule engine (Defaults to false). | [optional] + **dry** | **Boolean**| Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). | [optional] + +### Return type + +[**IntegrationStateV2**](IntegrationStateV2.md) + +### Authorization + +[api_key_v1](../README.md#api_key_v1) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## updateCustomerProfilesV2 + +> MultipleCustomerProfileIntegrationResponseV2 updateCustomerProfilesV2(body, opts) + +Update multiple Customer Profiles + +Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile + +### Example + +```javascript +import TalonOne from 'talon_one'; +let defaultClient = TalonOne.ApiClient.instance; +// Configure API key authorization: api_key_v1 +let api_key_v1 = defaultClient.authentications['api_key_v1']; +api_key_v1.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key_v1.apiKeyPrefix = 'Token'; + +let apiInstance = new TalonOne.IntegrationApi(); +let body = new TalonOne.MultipleCustomerProfileIntegrationRequest(); // MultipleCustomerProfileIntegrationRequest | +let opts = { + 'silent': "silent_example" // String | If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. +}; +apiInstance.updateCustomerProfilesV2(body, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**MultipleCustomerProfileIntegrationRequest**](MultipleCustomerProfileIntegrationRequest.md)| | + **silent** | **String**| If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. | [optional] ### Return type -[**CustomerProfileUpdate**](CustomerProfileUpdate.md) +[**MultipleCustomerProfileIntegrationResponseV2**](MultipleCustomerProfileIntegrationResponseV2.md) ### Authorization @@ -536,9 +650,9 @@ Name | Type | Description | Notes > IntegrationState updateCustomerSession(customerSessionId, body, opts) -Update a Customer Session +Update a Customer Session V1 -Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session +⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session ### Example diff --git a/docs/IntegrationEntity.md b/docs/IntegrationEntity.md index 1266174f..203107ca 100644 --- a/docs/IntegrationEntity.md +++ b/docs/IntegrationEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **String** | The ID used for this entity in the application system. | +**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | **Date** | The exact moment this entity was created. | diff --git a/docs/LoyaltyLedgerEntry.md b/docs/LoyaltyLedgerEntry.md index 94f9b907..3685ef09 100644 --- a/docs/LoyaltyLedgerEntry.md +++ b/docs/LoyaltyLedgerEntry.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **eventID** | **Number** | | [optional] **type** | **String** | The type of the ledger transaction. Possible values are addition, subtraction, expire or expiring (for expiring points ledgers) | **amount** | **Number** | | +**startDate** | **Date** | | [optional] **expiryDate** | **Date** | | [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 | diff --git a/docs/LoyaltyPoints.md b/docs/LoyaltyPoints.md index e90617f7..f7a6cc68 100644 --- a/docs/LoyaltyPoints.md +++ b/docs/LoyaltyPoints.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **points** | **Number** | Amount of loyalty points | **name** | **String** | Allows to specify a name for the addition or deduction | [optional] -**expiryDuration** | **String** | Indicates the duration after which the added loyalty points should expire. The format is a number followed by one letter indicating the unit, like '1h' or '40m' or '30d'. | [optional] +**validityDuration** | **String** | Indicates the duration after which the added loyalty points should expire. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). | [optional] +**pendingDuration** | **String** | Indicates the amount of time before the points are considered valid. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). | [optional] **subLedgerID** | **String** | This specifies if we are adding loyalty points to the main ledger or a subledger | [optional] diff --git a/docs/LoyaltyProgram.md b/docs/LoyaltyProgram.md index 37ea7b5d..13332ddc 100644 --- a/docs/LoyaltyProgram.md +++ b/docs/LoyaltyProgram.md @@ -10,7 +10,8 @@ Name | Type | Description | Notes **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | **subscribedApplications** | **[Number]** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | -**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. | +**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. | +**defaultPending** | **String** | Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program | diff --git a/docs/LoyaltyStatistics.md b/docs/LoyaltyStatistics.md new file mode 100644 index 00000000..1fa87aae --- /dev/null +++ b/docs/LoyaltyStatistics.md @@ -0,0 +1,12 @@ +# TalonOne.LoyaltyStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**totalActivePoints** | **Number** | Total of active points for this loyalty program | +**totalPendingPoints** | **Number** | Total of pending points for this loyalty program | +**totalSpentPoints** | **Number** | Total of spent points for this loyalty program | +**totalExpiredPoints** | **Number** | Total of expired points for this loyalty program | + + diff --git a/docs/LoyaltySubLedger.md b/docs/LoyaltySubLedger.md index fb2a18e2..f94ec6cd 100644 --- a/docs/LoyaltySubLedger.md +++ b/docs/LoyaltySubLedger.md @@ -4,8 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total** | **Number** | | -**transactions** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | Transactions contains a list of all events that have happened such as additions, subtractions and expiries | [optional] -**expiringPoints** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | ExpiringPoints contains a list of all points that will expiry and when | [optional] +**total** | **Number** | ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance | +**totalActivePoints** | **Number** | Total amount of currently active and available points in the customer's balance | +**totalPendingPoints** | **Number** | Total amount of pending points, which are not active yet but will become active in the future | +**totalSpentPoints** | **Number** | Total amount of points already spent by this customer | +**totalExpiredPoints** | **Number** | Total amount of points, that expired without ever being spent | +**transactions** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | List of all events that have happened such as additions, subtractions and expiries | [optional] +**expiringPoints** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | List of all points that will expire | [optional] +**activePoints** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | List of all currently active points | [optional] +**pendingPoints** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | List of all points pending activation | [optional] +**expiredPoints** | [**[LoyaltyLedgerEntry]**](LoyaltyLedgerEntry.md) | List of expired points | [optional] diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index c1ed7d2a..2b16c1f7 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -61,6 +61,7 @@ Method | HTTP request | Description [**getLoyaltyPoints**](ManagementApi.md#getLoyaltyPoints) | **GET** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID [**getLoyaltyProgram**](ManagementApi.md#getLoyaltyProgram) | **GET** /v1/loyalty_programs/{programID} | Get a loyalty program [**getLoyaltyPrograms**](ManagementApi.md#getLoyaltyPrograms) | **GET** /v1/loyalty_programs | List all loyalty Programs +[**getLoyaltyStatistics**](ManagementApi.md#getLoyaltyStatistics) | **GET** /v1/loyalty_programs/{programID}/statistics | Get loyalty program statistics by loyalty program ID [**getReferrals**](ManagementApi.md#getReferrals) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count) [**getReferralsWithoutTotalCount**](ManagementApi.md#getReferralsWithoutTotalCount) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals [**getRole**](ManagementApi.md#getRole) | **GET** /v1/roles/{roleId} | Get information for the specified role. @@ -1433,7 +1434,7 @@ Name | Type | Description | Notes ## getApplicationCustomers -> InlineResponse20012 getApplicationCustomers(applicationId) +> InlineResponse20012 getApplicationCustomers(applicationId, opts) List Application Customers @@ -1450,7 +1451,13 @@ manager_auth.apiKey = 'YOUR API KEY'; let apiInstance = new TalonOne.ManagementApi(); let applicationId = 56; // Number | -apiInstance.getApplicationCustomers(applicationId).then((data) => { +let opts = { + 'integrationId': "integrationId_example", // String | Filter results performing an exact matching against the profile integration identifier. + 'pageSize': 56, // Number | The number of items to include in this response. When omitted, the maximum value of 1000 will be used. + 'skip': 56, // Number | Skips the given number of items when paging through large result sets. + 'withTotalResultSize': true // Boolean | When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. +}; +apiInstance.getApplicationCustomers(applicationId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1464,6 +1471,10 @@ apiInstance.getApplicationCustomers(applicationId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **Number**| | + **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] + **pageSize** | **Number**| The number of items to include in this response. When omitted, the maximum value of 1000 will be used. | [optional] + **skip** | **Number**| Skips the given number of items when paging through large result sets. | [optional] + **withTotalResultSize** | **Boolean**| When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. | [optional] ### Return type @@ -1822,10 +1833,11 @@ let opts = { 'sort': "sort_example", // String | The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. 'profile': "profile_example", // String | Profile integration ID filter for sessions. Must be exact match. 'state': "state_example", // String | Filter by sessions with this state. Must be exact match. + 'createdBefore': new Date("2013-10-20T19:20:30+01:00"), // Date | Only return events created before this date + 'createdAfter': new Date("2013-10-20T19:20:30+01:00"), // Date | Only return events created after this date 'coupon': "coupon_example", // String | Filter by sessions with this coupon. Must be exact match. 'referral': "referral_example", // String | Filter by sessions with this referral. Must be exact match. - 'integrationId': "integrationId_example", // String | Filter by sessions with this integrationId. Must be exact match. - 'customerId': "customerId_example" // String | Filter by integration ID of the customer for the session + 'integrationId': "integrationId_example" // String | Filter by sessions with this integrationId. Must be exact match. }; apiInstance.getApplicationSessions(applicationId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); @@ -1846,10 +1858,11 @@ Name | Type | Description | Notes **sort** | **String**| The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. | [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] + **createdBefore** | **Date**| Only return events created before this date | [optional] + **createdAfter** | **Date**| Only return events created after this date | [optional] **coupon** | **String**| Filter by sessions with this coupon. Must be exact match. | [optional] **referral** | **String**| Filter by sessions with this referral. Must be exact match. | [optional] **integrationId** | **String**| Filter by sessions with this integrationId. Must be exact match. | [optional] - **customerId** | **String**| Filter by integration ID of the customer for the session | [optional] ### Return type @@ -2224,7 +2237,8 @@ let opts = { 'name': "name_example", // String | Filter results performing case-insensitive matching against the name of the campaign. '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 'createdBefore': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. - 'createdAfter': new Date("2013-10-20T19:20:30+01:00") // Date | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. + 'createdAfter': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. + 'campaignGroupId': 56 // Number | Filter results to campaigns owned by the specified campaign group ID. }; apiInstance.getCampaigns(applicationId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); @@ -2248,6 +2262,7 @@ Name | Type | Description | Notes **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** | **Date**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. | [optional] **createdAfter** | **Date**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. | [optional] + **campaignGroupId** | **Number**| Filter results to campaigns owned by the specified campaign group ID. | [optional] ### Return type @@ -2913,7 +2928,7 @@ Name | Type | Description | Notes ## getCustomerProfile -> ApplicationCustomer getCustomerProfile(applicationId, customerId) +> ApplicationCustomer getCustomerProfile(customerId) Get Customer Profile @@ -2929,9 +2944,8 @@ manager_auth.apiKey = 'YOUR API KEY'; //manager_auth.apiKeyPrefix = 'Token'; let apiInstance = new TalonOne.ManagementApi(); -let applicationId = 56; // Number | let customerId = 56; // Number | -apiInstance.getCustomerProfile(applicationId, customerId).then((data) => { +apiInstance.getCustomerProfile(customerId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -2944,7 +2958,6 @@ apiInstance.getCustomerProfile(applicationId, customerId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Number**| | **customerId** | **Number**| | ### Return type @@ -3389,6 +3402,54 @@ This endpoint does not need any parameter. - **Accept**: application/json +## getLoyaltyStatistics + +> LoyaltyStatistics getLoyaltyStatistics(programID) + +Get loyalty program statistics by loyalty program ID + +### Example + +```javascript +import TalonOne from 'talon_one'; +let defaultClient = TalonOne.ApiClient.instance; +// Configure API key authorization: manager_auth +let manager_auth = defaultClient.authentications['manager_auth']; +manager_auth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//manager_auth.apiKeyPrefix = 'Token'; + +let apiInstance = new TalonOne.ManagementApi(); +let programID = "programID_example"; // String | +apiInstance.getLoyaltyStatistics(programID).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **programID** | **String**| | + +### Return type + +[**LoyaltyStatistics**](LoyaltyStatistics.md) + +### Authorization + +[manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## getReferrals > InlineResponse2006 getReferrals(applicationId, campaignId, opts) diff --git a/docs/Meta.md b/docs/Meta.md index fe73c947..0e9e3492 100644 --- a/docs/Meta.md +++ b/docs/Meta.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **coupons** | [**Object**](.md) | Maps the coupon value to a key-value list of that coupons attributes. | [optional] **couponRejectionReason** | [**CouponRejectionReason**](CouponRejectionReason.md) | | [optional] **referralRejectionReason** | [**ReferralRejectionReason**](ReferralRejectionReason.md) | | [optional] -**warnings** | [**Object**](.md) | | [optional] +**warnings** | [**Object**](.md) | Contains warnings about possible misuse. | [optional] diff --git a/docs/MiscUpdateUserLatestFeature.md b/docs/MiscUpdateUserLatestFeature.md deleted file mode 100644 index 330a67b5..00000000 --- a/docs/MiscUpdateUserLatestFeature.md +++ /dev/null @@ -1,9 +0,0 @@ -# TalonOne.MiscUpdateUserLatestFeature - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**latestFeature** | **String** | | [optional] - - diff --git a/docs/MultipleCustomerProfileIntegrationRequest.md b/docs/MultipleCustomerProfileIntegrationRequest.md new file mode 100644 index 00000000..f366da34 --- /dev/null +++ b/docs/MultipleCustomerProfileIntegrationRequest.md @@ -0,0 +1,9 @@ +# TalonOne.MultipleCustomerProfileIntegrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customerProfiles** | [**[MultipleCustomerProfileIntegrationRequestItem]**](MultipleCustomerProfileIntegrationRequestItem.md) | | [optional] + + diff --git a/docs/MultipleCustomerProfileIntegrationRequestItem.md b/docs/MultipleCustomerProfileIntegrationRequestItem.md new file mode 100644 index 00000000..508b1fe3 --- /dev/null +++ b/docs/MultipleCustomerProfileIntegrationRequestItem.md @@ -0,0 +1,10 @@ +# TalonOne.MultipleCustomerProfileIntegrationRequestItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional] +**integrationId** | **String** | The custom identifier for this profile, must be unique within the account. | + + diff --git a/docs/MultipleCustomerProfileIntegrationResponseV2.md b/docs/MultipleCustomerProfileIntegrationResponseV2.md new file mode 100644 index 00000000..f1849e7c --- /dev/null +++ b/docs/MultipleCustomerProfileIntegrationResponseV2.md @@ -0,0 +1,9 @@ +# TalonOne.MultipleCustomerProfileIntegrationResponseV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integrationStates** | [**[IntegrationStateV2]**](IntegrationStateV2.md) | | [optional] + + diff --git a/docs/NewApplication.md b/docs/NewApplication.md index e7201ef7..15ccf574 100644 --- a/docs/NewApplication.md +++ b/docs/NewApplication.md @@ -11,8 +11,12 @@ Name | Type | Description | Notes **caseSensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | Default limits for campaigns created in this application | [optional] -**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) | [optional] +**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] +**exclusiveCampaignsStrategy** | **String** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] +**enableCascadingDiscounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**AttributesSettings**](AttributesSettings.md) | | [optional] +**sandbox** | **Boolean** | Flag indicating if this is a live or sandbox application | [optional] **key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) | [optional] @@ -42,3 +46,16 @@ Name | Type | Description | Notes + +## Enum: ExclusiveCampaignsStrategyEnum + + +* `listOrder` (value: `"listOrder"`) + +* `lowestDiscount` (value: `"lowestDiscount"`) + +* `highestDiscount` (value: `"highestDiscount"`) + + + + diff --git a/docs/NewApplicationAPIKey.md b/docs/NewApplicationAPIKey.md index d8c2f908..0cc4d968 100644 --- a/docs/NewApplicationAPIKey.md +++ b/docs/NewApplicationAPIKey.md @@ -4,13 +4,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **String** | Title for API Key | +**expires** | **Date** | The date the API key expired | +**platform** | **String** | Platform the API key is valid for. | [optional] **id** | **Number** | ID of the API Key | **createdBy** | **Number** | ID of user who created | -**title** | **String** | Title for API Key | **accountID** | **Number** | ID of account the key is used for | **applicationID** | **Number** | ID of application the key is used for | **created** | **Date** | The date the API key was created | -**expires** | **Date** | The date the API key expired | **key** | **String** | Raw API Key | + +## Enum: PlatformEnum + + +* `none` (value: `"none"`) + +* `segment` (value: `"segment"`) + +* `braze` (value: `"braze"`) + +* `mparticle` (value: `"mparticle"`) + + + + diff --git a/docs/NewAudience.md b/docs/NewAudience.md new file mode 100644 index 00000000..13411cad --- /dev/null +++ b/docs/NewAudience.md @@ -0,0 +1,20 @@ +# TalonOne.NewAudience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The human-friendly display name for this Audience. | +**integration** | **String** | Integration that this audience was created in. | +**integrationId** | **String** | The ID of this Audience in the third-party integration | + + + +## Enum: IntegrationEnum + + +* `mparticle` (value: `"mparticle"`) + + + + diff --git a/docs/NewCampaign.md b/docs/NewCampaign.md index 68d587c7..9b92cedc 100644 --- a/docs/NewCampaign.md +++ b/docs/NewCampaign.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **[Number]** | The IDs of the campaign groups that own this entity. | [optional] diff --git a/docs/NewCampaignGroup.md b/docs/NewCampaignGroup.md new file mode 100644 index 00000000..db75b25f --- /dev/null +++ b/docs/NewCampaignGroup.md @@ -0,0 +1,12 @@ +# TalonOne.NewCampaignGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of this campaign group. | +**description** | **String** | A longer description of the campaign group. | [optional] +**subscribedApplicationsIds** | **[Number]** | A list of the IDs of the applications that this campaign group is enabled for | [optional] +**campaignIds** | **[Number]** | A list of the IDs of the campaigns that this campaign group owns | [optional] + + diff --git a/docs/NewLoyaltyProgram.md b/docs/NewLoyaltyProgram.md index 99b94d4d..c24752dd 100644 --- a/docs/NewLoyaltyProgram.md +++ b/docs/NewLoyaltyProgram.md @@ -8,7 +8,8 @@ Name | Type | Description | Notes **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | [optional] **subscribedApplications** | **[Number]** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] -**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. | +**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. | +**defaultPending** | **String** | Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program | diff --git a/docs/ReferralRejectionReason.md b/docs/ReferralRejectionReason.md index 9ae00847..bbb6290e 100644 --- a/docs/ReferralRejectionReason.md +++ b/docs/ReferralRejectionReason.md @@ -19,8 +19,6 @@ Name | Type | Description | Notes * `ReferralPartOfNotRunningCampaign` (value: `"ReferralPartOfNotRunningCampaign"`) -* `ReferralValidConditionMissing` (value: `"ReferralValidConditionMissing"`) - * `ReferralLimitReached` (value: `"ReferralLimitReached"`) * `CampaignLimitReached` (value: `"CampaignLimitReached"`) diff --git a/docs/Role.md b/docs/Role.md index ea1b8de2..ff3a2a84 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | The ID of the role corresponding to the DB row | **accountID** | **Number** | The ID of the Talon.One account that owns this role. | +**campaignGroupID** | **Number** | The ID of the Campaign Group this role was created for. | [optional] **name** | **String** | Name of the role | [optional] **description** | **String** | Description of the role | [optional] **members** | **[Number]** | A list of user identifiers assigned to this role | [optional] -**acl** | **String** | Role Policy this should be a stringified blob of json | [optional] +**acl** | [**Object**](.md) | Role ACL Policy | [optional] diff --git a/docs/SetDiscountEffectProps.md b/docs/SetDiscountEffectProps.md index 94cc662b..c4236ece 100644 --- a/docs/SetDiscountEffectProps.md +++ b/docs/SetDiscountEffectProps.md @@ -6,5 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name/description of this discount | **value** | **Number** | The total monetary value of the discount | +**scope** | **String** | The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal) | [optional] diff --git a/docs/SetDiscountPerItemEffectProps.md b/docs/SetDiscountPerItemEffectProps.md index 2681b92d..c9fef9f4 100644 --- a/docs/SetDiscountPerItemEffectProps.md +++ b/docs/SetDiscountPerItemEffectProps.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **name** | **String** | The name/description of this discount | **value** | **Number** | The total monetary value of the discount | **position** | **Number** | The index of the item in the cart items list on which this discount should be applied | +**subPosition** | **Number** | The sub-index of the item in an item stack on which this discount should be applied | [optional] diff --git a/docs/UpdateApplication.md b/docs/UpdateApplication.md index febd5a1d..dd62754c 100644 --- a/docs/UpdateApplication.md +++ b/docs/UpdateApplication.md @@ -11,8 +11,12 @@ Name | Type | Description | Notes **caseSensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | Default limits for campaigns created in this application | [optional] -**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) | [optional] +**campaignPriority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] +**exclusiveCampaignsStrategy** | **String** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] +**enableCascadingDiscounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**AttributesSettings**](AttributesSettings.md) | | [optional] +**sandbox** | **Boolean** | Flag indicating if this is a live or sandbox application | [optional] @@ -41,3 +45,16 @@ Name | Type | Description | Notes + +## Enum: ExclusiveCampaignsStrategyEnum + + +* `listOrder` (value: `"listOrder"`) + +* `lowestDiscount` (value: `"lowestDiscount"`) + +* `highestDiscount` (value: `"highestDiscount"`) + + + + diff --git a/docs/CustomerProfileUpdate.md b/docs/UpdateAudience.md similarity index 52% rename from docs/CustomerProfileUpdate.md rename to docs/UpdateAudience.md index 732b007f..9f16def9 100644 --- a/docs/CustomerProfileUpdate.md +++ b/docs/UpdateAudience.md @@ -1,9 +1,9 @@ -# TalonOne.CustomerProfileUpdate +# TalonOne.UpdateAudience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customerProfile** | [**CustomerProfile**](CustomerProfile.md) | | +**name** | **String** | The human-friendly display name for this Audience. | diff --git a/docs/UpdateCampaign.md b/docs/UpdateCampaign.md index b30d4855..08f308cc 100644 --- a/docs/UpdateCampaign.md +++ b/docs/UpdateCampaign.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**[LimitConfig]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **[Number]** | The IDs of the campaign groups that own this entity. | [optional] diff --git a/docs/UpdateCampaignGroup.md b/docs/UpdateCampaignGroup.md new file mode 100644 index 00000000..0565296b --- /dev/null +++ b/docs/UpdateCampaignGroup.md @@ -0,0 +1,12 @@ +# TalonOne.UpdateCampaignGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of this campaign group. | +**description** | **String** | A longer description of the campaign group. | [optional] +**subscribedApplicationsIds** | **[Number]** | A list of the IDs of the applications that this campaign group is enabled for | [optional] +**campaignIds** | **[Number]** | A list of the IDs of the campaigns that this campaign group owns | [optional] + + diff --git a/docs/UpdateLoyaltyProgram.md b/docs/UpdateLoyaltyProgram.md index fa024e92..553407df 100644 --- a/docs/UpdateLoyaltyProgram.md +++ b/docs/UpdateLoyaltyProgram.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **title** | **String** | The display title for the Loyalty Program. | [optional] **description** | **String** | Description of our Loyalty Program. | [optional] **subscribedApplications** | **[Number]** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] -**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. | [optional] +**defaultValidity** | **String** | Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. | [optional] +**defaultPending** | **String** | Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. | [optional] **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program | [optional] diff --git a/docs/UpdateUser.md b/docs/UpdateUser.md index 74b9d306..a44bbfca 100644 --- a/docs/UpdateUser.md +++ b/docs/UpdateUser.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **name** | **String** | Your name. | [optional] **policy** | **String** | a blob of acl json | [optional] **state** | **String** | New state (\"deactivated\" or \"active\") for the user. Only usable by admins for the user. | [optional] -**releaseUpdate** | **Boolean** | Update the user via email | [optional] -**latestFeature** | **String** | The latest feature you've been notified. | [optional] **roles** | **[Number]** | Update | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | | [optional] diff --git a/docs/UpdateUserLatestFeedTimestamp.md b/docs/UpdateUserLatestFeedTimestamp.md new file mode 100644 index 00000000..ae42ef57 --- /dev/null +++ b/docs/UpdateUserLatestFeedTimestamp.md @@ -0,0 +1,9 @@ +# TalonOne.UpdateUserLatestFeedTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newLatestFeedTimestamp** | **Date** | New timestamp to update for the current user | + + diff --git a/docs/User.md b/docs/User.md index f021f50e..9088ec96 100644 --- a/docs/User.md +++ b/docs/User.md @@ -12,9 +12,8 @@ Name | Type | Description | Notes **inviteToken** | **String** | Invite token, empty if the user as already accepted their invite. | **state** | **String** | Current user state. | **name** | **String** | Full name | -**policy** | **String** | A blob of ACL JSON | -**releaseUpdate** | **Boolean** | Update the user via email | -**latestFeature** | **String** | Latest feature the user has been notified. | [optional] +**policy** | [**Object**](.md) | User ACL Policy | +**latestFeedTimestamp** | **Date** | Latest timestamp the user has been notified for feed. | [optional] **roles** | **[Number]** | Contains a list of all roles the user is a member of | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | | [optional] **authMethod** | **String** | The Authentication method for this user | [optional] diff --git a/docs/UserFeedNotifications.md b/docs/UserFeedNotifications.md new file mode 100644 index 00000000..8af1c06e --- /dev/null +++ b/docs/UserFeedNotifications.md @@ -0,0 +1,10 @@ +# TalonOne.UserFeedNotifications + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastUpdate** | **Date** | Timestamp of the last request for this list | +**notifications** | [**[FeedNotification]**](FeedNotification.md) | List of all notifications to notify the user about | + + diff --git a/package.json b/package.json index 559a62ab..38d6ce17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "talon_one", - "version": "4.1.1", + "version": "4.2.0", "description": "Talon.One API SDK for Javascript", "homepage": "https://developers.talon.one/SDKs/JavaScript", "author": { @@ -19,9 +19,12 @@ }, "license": "MIT", "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { - "prepack": "babel src -d dist", - "test": "mocha --require @babel/register --recursive" + "build": "babel src -d dist", + "generate-types": "tsc", + "test": "mocha --require @babel/register --recursive", + "prepack": "npm run build && npm run generate-types" }, "browser": { "fs": false @@ -52,7 +55,8 @@ "@babel/register": "^7.0.0", "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "^7.2.0" + "sinon": "^7.2.0", + "typescript": "^4.0.3" }, "files": [ "dist" diff --git a/src/ApiClient.js b/src/ApiClient.js index be8cdff0..205d2fd2 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module ApiClient -* @version 4.1.1 +* @version 4.2.0 */ /** diff --git a/src/api/IntegrationApi.js b/src/api/IntegrationApi.js index 212b39a4..7ded21ca 100644 --- a/src/api/IntegrationApi.js +++ b/src/api/IntegrationApi.js @@ -16,11 +16,14 @@ import ApiClient from "../ApiClient"; import Coupon from '../model/Coupon'; import CouponReservations from '../model/CouponReservations'; import CustomerInventory from '../model/CustomerInventory'; -import CustomerProfileUpdate from '../model/CustomerProfileUpdate'; +import CustomerProfileAudienceRequest from '../model/CustomerProfileAudienceRequest'; +import CustomerProfileIntegrationRequestV2 from '../model/CustomerProfileIntegrationRequestV2'; import InlineResponse200 from '../model/InlineResponse200'; import IntegrationRequest from '../model/IntegrationRequest'; import IntegrationState from '../model/IntegrationState'; import IntegrationStateV2 from '../model/IntegrationStateV2'; +import MultipleCustomerProfileIntegrationRequest from '../model/MultipleCustomerProfileIntegrationRequest'; +import MultipleCustomerProfileIntegrationResponseV2 from '../model/MultipleCustomerProfileIntegrationResponseV2'; import NewCustomerProfile from '../model/NewCustomerProfile'; import NewCustomerSession from '../model/NewCustomerSession'; import NewEvent from '../model/NewEvent'; @@ -30,7 +33,7 @@ import Referral from '../model/Referral'; /** * Integration service. * @module api/IntegrationApi -* @version 4.1.1 +* @version 4.2.0 */ export default class IntegrationApi { @@ -258,6 +261,7 @@ export default class IntegrationApi { * @param {Boolean} opts.profile optional flag to decide if you would like customer profile information in the response * @param {Boolean} opts.referrals optional flag to decide if you would like referral information in the response * @param {Boolean} opts.coupons optional flag to decide if you would like coupon information in the response + * @param {Boolean} opts.loyalty optional flag to decide if you would like loyalty information in the response * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerInventory} and HTTP response */ getCustomerInventoryWithHttpInfo(integrationId, opts) { @@ -274,7 +278,8 @@ export default class IntegrationApi { let queryParams = { 'profile': opts['profile'], 'referrals': opts['referrals'], - 'coupons': opts['coupons'] + 'coupons': opts['coupons'], + 'loyalty': opts['loyalty'] }; let headerParams = { }; @@ -300,6 +305,7 @@ export default class IntegrationApi { * @param {Boolean} opts.profile optional flag to decide if you would like customer profile information in the response * @param {Boolean} opts.referrals optional flag to decide if you would like referral information in the response * @param {Boolean} opts.coupons optional flag to decide if you would like coupon information in the response + * @param {Boolean} opts.loyalty optional flag to decide if you would like loyalty information in the response * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerInventory} */ getCustomerInventory(integrationId, opts) { @@ -412,8 +418,8 @@ export default class IntegrationApi { /** - * Update a Customer Profile - * Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons + * Update a Customer Profile V1 + * ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons * @param {String} integrationId The custom identifier for this profile, must be unique within the account. * @param {module:model/NewCustomerProfile} body * @param {Object} opts Optional parameters @@ -455,8 +461,8 @@ export default class IntegrationApi { } /** - * Update a Customer Profile - * Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons + * Update a Customer Profile V1 + * ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons * @param {String} integrationId The custom identifier for this profile, must be unique within the account. * @param {module:model/NewCustomerProfile} body * @param {Object} opts Optional parameters @@ -471,18 +477,69 @@ export default class IntegrationApi { } + /** + * Update a Customer Profile Audiences + * Update one ore multiple Customer Profiles with the specified Audiences + * @param {module:model/CustomerProfileAudienceRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + updateCustomerProfileAudiencesWithHttpInfo(body) { + let postBody = body; + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling updateCustomerProfileAudiences"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['api_key_v1']; + let contentTypes = ['application/json']; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/v2/customer_audiences', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update a Customer Profile Audiences + * Update one ore multiple Customer Profiles with the specified Audiences + * @param {module:model/CustomerProfileAudienceRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + updateCustomerProfileAudiences(body) { + return this.updateCustomerProfileAudiencesWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Update a Customer Profile - * Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile - * @param {String} customerProfileId The custom identifier for this profile, must be unique within the account. - * @param {module:model/NewCustomerProfile} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerProfileUpdate} and HTTP response + * Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile + * @param {String} integrationId The custom identifier for this profile, must be unique within the account. + * @param {module:model/CustomerProfileIntegrationRequestV2} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). + * @param {Boolean} opts.dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IntegrationStateV2} and HTTP response */ - updateCustomerProfileV2WithHttpInfo(customerProfileId, body) { + updateCustomerProfileV2WithHttpInfo(integrationId, body, opts) { + opts = opts || {}; let postBody = body; - // verify the required parameter 'customerProfileId' is set - if (customerProfileId === undefined || customerProfileId === null) { - throw new Error("Missing the required parameter 'customerProfileId' when calling updateCustomerProfileV2"); + // verify the required parameter 'integrationId' is set + if (integrationId === undefined || integrationId === null) { + throw new Error("Missing the required parameter 'integrationId' when calling updateCustomerProfileV2"); } // verify the required parameter 'body' is set if (body === undefined || body === null) { @@ -490,9 +547,11 @@ export default class IntegrationApi { } let pathParams = { - 'customerProfileId': customerProfileId + 'integrationId': integrationId }; let queryParams = { + 'runRuleEngine': opts['runRuleEngine'], + 'dry': opts['dry'] }; let headerParams = { }; @@ -502,9 +561,9 @@ export default class IntegrationApi { let authNames = ['api_key_v1']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = CustomerProfileUpdate; + let returnType = IntegrationStateV2; return this.apiClient.callApi( - '/v2/customer_profiles/{customerProfileId}', 'PUT', + '/v2/customer_profiles/{integrationId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -512,13 +571,16 @@ export default class IntegrationApi { /** * Update a Customer Profile - * Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile - * @param {String} customerProfileId The custom identifier for this profile, must be unique within the account. - * @param {module:model/NewCustomerProfile} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerProfileUpdate} + * Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile + * @param {String} integrationId The custom identifier for this profile, must be unique within the account. + * @param {module:model/CustomerProfileIntegrationRequestV2} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). + * @param {Boolean} opts.dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IntegrationStateV2} */ - updateCustomerProfileV2(customerProfileId, body) { - return this.updateCustomerProfileV2WithHttpInfo(customerProfileId, body) + updateCustomerProfileV2(integrationId, body, opts) { + return this.updateCustomerProfileV2WithHttpInfo(integrationId, body, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -526,8 +588,61 @@ export default class IntegrationApi { /** - * Update a Customer Session - * Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session + * Update multiple Customer Profiles + * Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile + * @param {module:model/MultipleCustomerProfileIntegrationRequest} body + * @param {Object} opts Optional parameters + * @param {String} opts.silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MultipleCustomerProfileIntegrationResponseV2} and HTTP response + */ + updateCustomerProfilesV2WithHttpInfo(body, opts) { + opts = opts || {}; + let postBody = body; + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling updateCustomerProfilesV2"); + } + + let pathParams = { + }; + let queryParams = { + 'silent': opts['silent'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['api_key_v1']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = MultipleCustomerProfileIntegrationResponseV2; + return this.apiClient.callApi( + '/v2/customer_profiles', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update multiple Customer Profiles + * Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile + * @param {module:model/MultipleCustomerProfileIntegrationRequest} body + * @param {Object} opts Optional parameters + * @param {String} opts.silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MultipleCustomerProfileIntegrationResponseV2} + */ + updateCustomerProfilesV2(body, opts) { + return this.updateCustomerProfilesV2WithHttpInfo(body, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Update a Customer Session V1 + * ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session * @param {String} customerSessionId The custom identifier for this session, must be unique within the account. * @param {module:model/NewCustomerSession} body * @param {Object} opts Optional parameters @@ -569,8 +684,8 @@ export default class IntegrationApi { } /** - * Update a Customer Session - * Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session + * Update a Customer Session V1 + * ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session * @param {String} customerSessionId The custom identifier for this session, must be unique within the account. * @param {module:model/NewCustomerSession} body * @param {Object} opts Optional parameters diff --git a/src/api/ManagementApi.js b/src/api/ManagementApi.js index 59913583..95027d35 100644 --- a/src/api/ManagementApi.js +++ b/src/api/ManagementApi.js @@ -63,6 +63,7 @@ import LoginParams from '../model/LoginParams'; import LoyaltyLedger from '../model/LoyaltyLedger'; import LoyaltyPoints from '../model/LoyaltyPoints'; import LoyaltyProgram from '../model/LoyaltyProgram'; +import LoyaltyStatistics from '../model/LoyaltyStatistics'; import NewAdditionalCost from '../model/NewAdditionalCost'; import NewAttribute from '../model/NewAttribute'; import NewCampaign from '../model/NewCampaign'; @@ -82,7 +83,7 @@ import Webhook from '../model/Webhook'; /** * Management service. * @module api/ManagementApi -* @version 4.1.1 +* @version 4.2.0 */ export default class ManagementApi { @@ -1535,9 +1536,15 @@ export default class ManagementApi { /** * List Application Customers * @param {Number} applicationId + * @param {Object} opts Optional parameters + * @param {String} opts.integrationId Filter results performing an exact matching against the profile integration identifier. + * @param {Number} opts.pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. + * @param {Number} opts.skip Skips the given number of items when paging through large result sets. + * @param {Boolean} opts.withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse20012} and HTTP response */ - getApplicationCustomersWithHttpInfo(applicationId) { + getApplicationCustomersWithHttpInfo(applicationId, opts) { + opts = opts || {}; let postBody = null; // verify the required parameter 'applicationId' is set if (applicationId === undefined || applicationId === null) { @@ -1548,6 +1555,10 @@ export default class ManagementApi { 'applicationId': applicationId }; let queryParams = { + 'integrationId': opts['integrationId'], + 'pageSize': opts['pageSize'], + 'skip': opts['skip'], + 'withTotalResultSize': opts['withTotalResultSize'] }; let headerParams = { }; @@ -1568,10 +1579,15 @@ export default class ManagementApi { /** * List Application Customers * @param {Number} applicationId + * @param {Object} opts Optional parameters + * @param {String} opts.integrationId Filter results performing an exact matching against the profile integration identifier. + * @param {Number} opts.pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. + * @param {Number} opts.skip Skips the given number of items when paging through large result sets. + * @param {Boolean} opts.withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse20012} */ - getApplicationCustomers(applicationId) { - return this.getApplicationCustomersWithHttpInfo(applicationId) + getApplicationCustomers(applicationId, opts) { + return this.getApplicationCustomersWithHttpInfo(applicationId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1933,10 +1949,11 @@ export default class ManagementApi { * @param {String} opts.sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. * @param {String} opts.profile Profile integration ID filter for sessions. Must be exact match. * @param {module:model/String} opts.state Filter by sessions with this state. Must be exact match. + * @param {Date} opts.createdBefore Only return events created before this date + * @param {Date} opts.createdAfter Only return events created after this date * @param {String} opts.coupon Filter by sessions with this coupon. Must be exact match. * @param {String} opts.referral Filter by sessions with this referral. Must be exact match. * @param {String} opts.integrationId Filter by sessions with this integrationId. Must be exact match. - * @param {String} opts.customerId Filter by integration ID of the customer for the session * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse20016} and HTTP response */ getApplicationSessionsWithHttpInfo(applicationId, opts) { @@ -1956,10 +1973,11 @@ export default class ManagementApi { 'sort': opts['sort'], 'profile': opts['profile'], 'state': opts['state'], + 'createdBefore': opts['createdBefore'], + 'createdAfter': opts['createdAfter'], 'coupon': opts['coupon'], 'referral': opts['referral'], - 'integrationId': opts['integrationId'], - 'customerId': opts['customerId'] + 'integrationId': opts['integrationId'] }; let headerParams = { }; @@ -1986,10 +2004,11 @@ export default class ManagementApi { * @param {String} opts.sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. * @param {String} opts.profile Profile integration ID filter for sessions. Must be exact match. * @param {module:model/String} opts.state Filter by sessions with this state. Must be exact match. + * @param {Date} opts.createdBefore Only return events created before this date + * @param {Date} opts.createdAfter Only return events created after this date * @param {String} opts.coupon Filter by sessions with this coupon. Must be exact match. * @param {String} opts.referral Filter by sessions with this referral. Must be exact match. * @param {String} opts.integrationId Filter by sessions with this integrationId. Must be exact match. - * @param {String} opts.customerId Filter by integration ID of the customer for the session * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse20016} */ getApplicationSessions(applicationId, opts) { @@ -2361,6 +2380,7 @@ export default class ManagementApi { * @param {String} opts.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 * @param {Date} opts.createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. * @param {Date} opts.createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. + * @param {Number} opts.campaignGroupId Filter results to campaigns owned by the specified campaign group ID. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2002} and HTTP response */ getCampaignsWithHttpInfo(applicationId, opts) { @@ -2382,7 +2402,8 @@ export default class ManagementApi { 'name': opts['name'], 'tags': opts['tags'], 'createdBefore': opts['createdBefore'], - 'createdAfter': opts['createdAfter'] + 'createdAfter': opts['createdAfter'], + 'campaignGroupId': opts['campaignGroupId'] }; let headerParams = { }; @@ -2412,6 +2433,7 @@ export default class ManagementApi { * @param {String} opts.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 * @param {Date} opts.createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. * @param {Date} opts.createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. + * @param {Number} opts.campaignGroupId Filter results to campaigns owned by the specified campaign group ID. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2002} */ getCampaigns(applicationId, opts) { @@ -3201,23 +3223,17 @@ export default class ManagementApi { /** * Get Customer Profile - * @param {Number} applicationId * @param {Number} customerId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApplicationCustomer} and HTTP response */ - getCustomerProfileWithHttpInfo(applicationId, customerId) { + getCustomerProfileWithHttpInfo(customerId) { let postBody = null; - // verify the required parameter 'applicationId' is set - if (applicationId === undefined || applicationId === null) { - throw new Error("Missing the required parameter 'applicationId' when calling getCustomerProfile"); - } // verify the required parameter 'customerId' is set if (customerId === undefined || customerId === null) { throw new Error("Missing the required parameter 'customerId' when calling getCustomerProfile"); } let pathParams = { - 'applicationId': applicationId, 'customerId': customerId }; let queryParams = { @@ -3240,12 +3256,11 @@ export default class ManagementApi { /** * Get Customer Profile - * @param {Number} applicationId * @param {Number} customerId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApplicationCustomer} */ - getCustomerProfile(applicationId, customerId) { - return this.getCustomerProfileWithHttpInfo(applicationId, customerId) + getCustomerProfile(customerId) { + return this.getCustomerProfileWithHttpInfo(customerId) .then(function(response_and_data) { return response_and_data.data; }); @@ -3667,6 +3682,52 @@ export default class ManagementApi { } + /** + * Get loyalty program statistics by loyalty program ID + * @param {String} programID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LoyaltyStatistics} and HTTP response + */ + getLoyaltyStatisticsWithHttpInfo(programID) { + let postBody = null; + // verify the required parameter 'programID' is set + if (programID === undefined || programID === null) { + throw new Error("Missing the required parameter 'programID' when calling getLoyaltyStatistics"); + } + + let pathParams = { + 'programID': programID + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['manager_auth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = LoyaltyStatistics; + return this.apiClient.callApi( + '/v1/loyalty_programs/{programID}/statistics', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get loyalty program statistics by loyalty program ID + * @param {String} programID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LoyaltyStatistics} + */ + getLoyaltyStatistics(programID) { + return this.getLoyaltyStatisticsWithHttpInfo(programID) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * List Referrals (with total count) * @param {Number} applicationId diff --git a/src/index.js b/src/index.js index 17e68a0b..a81f32c8 100644 --- a/src/index.js +++ b/src/index.js @@ -38,12 +38,16 @@ import ApplicationSessionEntity from './model/ApplicationSessionEntity'; import Attribute from './model/Attribute'; import AttributesMandatory from './model/AttributesMandatory'; import AttributesSettings from './model/AttributesSettings'; +import Audience from './model/Audience'; +import AudienceMembership from './model/AudienceMembership'; import BaseSamlConnection from './model/BaseSamlConnection'; import Binding from './model/Binding'; import Campaign from './model/Campaign'; import CampaignAnalytics from './model/CampaignAnalytics'; import CampaignCopy from './model/CampaignCopy'; import CampaignEntity from './model/CampaignEntity'; +import CampaignGroup from './model/CampaignGroup'; +import CampaignGroupEntity from './model/CampaignGroupEntity'; import CampaignSearch from './model/CampaignSearch'; import CampaignSet from './model/CampaignSet'; import CampaignSetBranchNode from './model/CampaignSetBranchNode'; @@ -66,8 +70,10 @@ import CustomerActivityReport from './model/CustomerActivityReport'; import CustomerAnalytics from './model/CustomerAnalytics'; import CustomerInventory from './model/CustomerInventory'; import CustomerProfile from './model/CustomerProfile'; +import CustomerProfileAudienceRequest from './model/CustomerProfileAudienceRequest'; +import CustomerProfileAudienceRequestItem from './model/CustomerProfileAudienceRequestItem'; +import CustomerProfileIntegrationRequestV2 from './model/CustomerProfileIntegrationRequestV2'; import CustomerProfileSearchQuery from './model/CustomerProfileSearchQuery'; -import CustomerProfileUpdate from './model/CustomerProfileUpdate'; import CustomerSession from './model/CustomerSession'; import CustomerSessionV2 from './model/CustomerSessionV2'; import DeductLoyaltyPointsEffectProps from './model/DeductLoyaltyPointsEffectProps'; @@ -75,6 +81,7 @@ import Effect from './model/Effect'; import EffectEntity from './model/EffectEntity'; import EmailEntity from './model/EmailEntity'; import Entity from './model/Entity'; +import EntityWithTalangVisibleID from './model/EntityWithTalangVisibleID'; import Environment from './model/Environment'; import ErrorEffectProps from './model/ErrorEffectProps'; import ErrorResponse from './model/ErrorResponse'; @@ -84,6 +91,7 @@ import EventType from './model/EventType'; import FeatureFlag from './model/FeatureFlag'; import FeatureFlags from './model/FeatureFlags'; import FeaturesFeed from './model/FeaturesFeed'; +import FeedNotification from './model/FeedNotification'; import FuncArgDef from './model/FuncArgDef'; import FunctionDef from './model/FunctionDef'; import ImportCoupons from './model/ImportCoupons'; @@ -136,13 +144,16 @@ import LoyaltyPoints from './model/LoyaltyPoints'; import LoyaltyProgram from './model/LoyaltyProgram'; import LoyaltyProgramBalance from './model/LoyaltyProgramBalance'; import LoyaltyProgramLedgers from './model/LoyaltyProgramLedgers'; +import LoyaltyStatistics from './model/LoyaltyStatistics'; import LoyaltySubLedger from './model/LoyaltySubLedger'; import ManagerConfig from './model/ManagerConfig'; import Meta from './model/Meta'; -import MiscUpdateUserLatestFeature from './model/MiscUpdateUserLatestFeature'; import ModelExport from './model/ModelExport'; import ModelImport from './model/ModelImport'; import MultiApplicationEntity from './model/MultiApplicationEntity'; +import MultipleCustomerProfileIntegrationRequest from './model/MultipleCustomerProfileIntegrationRequest'; +import MultipleCustomerProfileIntegrationRequestItem from './model/MultipleCustomerProfileIntegrationRequestItem'; +import MultipleCustomerProfileIntegrationResponseV2 from './model/MultipleCustomerProfileIntegrationResponseV2'; import MutableEntity from './model/MutableEntity'; import NewAccount from './model/NewAccount'; import NewAccountSignUp from './model/NewAccountSignUp'; @@ -150,7 +161,9 @@ import NewAdditionalCost from './model/NewAdditionalCost'; import NewApplication from './model/NewApplication'; import NewApplicationAPIKey from './model/NewApplicationAPIKey'; import NewAttribute from './model/NewAttribute'; +import NewAudience from './model/NewAudience'; import NewCampaign from './model/NewCampaign'; +import NewCampaignGroup from './model/NewCampaignGroup'; import NewCampaignSet from './model/NewCampaignSet'; import NewCoupons from './model/NewCoupons'; import NewCustomerProfile from './model/NewCustomerProfile'; @@ -201,14 +214,18 @@ import TriggerWebhookEffectProps from './model/TriggerWebhookEffectProps'; import UpdateAccount from './model/UpdateAccount'; import UpdateApplication from './model/UpdateApplication'; import UpdateAttributeEffectProps from './model/UpdateAttributeEffectProps'; +import UpdateAudience from './model/UpdateAudience'; import UpdateCampaign from './model/UpdateCampaign'; +import UpdateCampaignGroup from './model/UpdateCampaignGroup'; import UpdateCoupon from './model/UpdateCoupon'; import UpdateCouponBatch from './model/UpdateCouponBatch'; import UpdateLoyaltyProgram from './model/UpdateLoyaltyProgram'; import UpdateRole from './model/UpdateRole'; import UpdateUser from './model/UpdateUser'; +import UpdateUserLatestFeedTimestamp from './model/UpdateUserLatestFeedTimestamp'; import User from './model/User'; import UserEntity from './model/UserEntity'; +import UserFeedNotifications from './model/UserFeedNotifications'; import Webhook from './model/Webhook'; import WebhookActivationLogEntry from './model/WebhookActivationLogEntry'; import WebhookLogEntry from './model/WebhookLogEntry'; @@ -245,7 +262,7 @@ import ManagementApi from './api/ManagementApi'; * *

* @module index -* @version 4.1.1 +* @version 4.2.0 */ export { /** @@ -404,6 +421,18 @@ export { */ AttributesSettings, + /** + * The Audience model constructor. + * @property {module:model/Audience} + */ + Audience, + + /** + * The AudienceMembership model constructor. + * @property {module:model/AudienceMembership} + */ + AudienceMembership, + /** * The BaseSamlConnection model constructor. * @property {module:model/BaseSamlConnection} @@ -440,6 +469,18 @@ export { */ CampaignEntity, + /** + * The CampaignGroup model constructor. + * @property {module:model/CampaignGroup} + */ + CampaignGroup, + + /** + * The CampaignGroupEntity model constructor. + * @property {module:model/CampaignGroupEntity} + */ + CampaignGroupEntity, + /** * The CampaignSearch model constructor. * @property {module:model/CampaignSearch} @@ -573,16 +614,28 @@ export { CustomerProfile, /** - * The CustomerProfileSearchQuery model constructor. - * @property {module:model/CustomerProfileSearchQuery} + * The CustomerProfileAudienceRequest model constructor. + * @property {module:model/CustomerProfileAudienceRequest} */ - CustomerProfileSearchQuery, + CustomerProfileAudienceRequest, + + /** + * The CustomerProfileAudienceRequestItem model constructor. + * @property {module:model/CustomerProfileAudienceRequestItem} + */ + CustomerProfileAudienceRequestItem, + + /** + * The CustomerProfileIntegrationRequestV2 model constructor. + * @property {module:model/CustomerProfileIntegrationRequestV2} + */ + CustomerProfileIntegrationRequestV2, /** - * The CustomerProfileUpdate model constructor. - * @property {module:model/CustomerProfileUpdate} + * The CustomerProfileSearchQuery model constructor. + * @property {module:model/CustomerProfileSearchQuery} */ - CustomerProfileUpdate, + CustomerProfileSearchQuery, /** * The CustomerSession model constructor. @@ -626,6 +679,12 @@ export { */ Entity, + /** + * The EntityWithTalangVisibleID model constructor. + * @property {module:model/EntityWithTalangVisibleID} + */ + EntityWithTalangVisibleID, + /** * The Environment model constructor. * @property {module:model/Environment} @@ -680,6 +739,12 @@ export { */ FeaturesFeed, + /** + * The FeedNotification model constructor. + * @property {module:model/FeedNotification} + */ + FeedNotification, + /** * The FuncArgDef model constructor. * @property {module:model/FuncArgDef} @@ -992,6 +1057,12 @@ export { */ LoyaltyProgramLedgers, + /** + * The LoyaltyStatistics model constructor. + * @property {module:model/LoyaltyStatistics} + */ + LoyaltyStatistics, + /** * The LoyaltySubLedger model constructor. * @property {module:model/LoyaltySubLedger} @@ -1010,12 +1081,6 @@ export { */ Meta, - /** - * The MiscUpdateUserLatestFeature model constructor. - * @property {module:model/MiscUpdateUserLatestFeature} - */ - MiscUpdateUserLatestFeature, - /** * The ModelExport model constructor. * @property {module:model/ModelExport} @@ -1034,6 +1099,24 @@ export { */ MultiApplicationEntity, + /** + * The MultipleCustomerProfileIntegrationRequest model constructor. + * @property {module:model/MultipleCustomerProfileIntegrationRequest} + */ + MultipleCustomerProfileIntegrationRequest, + + /** + * The MultipleCustomerProfileIntegrationRequestItem model constructor. + * @property {module:model/MultipleCustomerProfileIntegrationRequestItem} + */ + MultipleCustomerProfileIntegrationRequestItem, + + /** + * The MultipleCustomerProfileIntegrationResponseV2 model constructor. + * @property {module:model/MultipleCustomerProfileIntegrationResponseV2} + */ + MultipleCustomerProfileIntegrationResponseV2, + /** * The MutableEntity model constructor. * @property {module:model/MutableEntity} @@ -1076,12 +1159,24 @@ export { */ NewAttribute, + /** + * The NewAudience model constructor. + * @property {module:model/NewAudience} + */ + NewAudience, + /** * The NewCampaign model constructor. * @property {module:model/NewCampaign} */ NewCampaign, + /** + * The NewCampaignGroup model constructor. + * @property {module:model/NewCampaignGroup} + */ + NewCampaignGroup, + /** * The NewCampaignSet model constructor. * @property {module:model/NewCampaignSet} @@ -1382,12 +1477,24 @@ export { */ UpdateAttributeEffectProps, + /** + * The UpdateAudience model constructor. + * @property {module:model/UpdateAudience} + */ + UpdateAudience, + /** * The UpdateCampaign model constructor. * @property {module:model/UpdateCampaign} */ UpdateCampaign, + /** + * The UpdateCampaignGroup model constructor. + * @property {module:model/UpdateCampaignGroup} + */ + UpdateCampaignGroup, + /** * The UpdateCoupon model constructor. * @property {module:model/UpdateCoupon} @@ -1418,6 +1525,12 @@ export { */ UpdateUser, + /** + * The UpdateUserLatestFeedTimestamp model constructor. + * @property {module:model/UpdateUserLatestFeedTimestamp} + */ + UpdateUserLatestFeedTimestamp, + /** * The User model constructor. * @property {module:model/User} @@ -1430,6 +1543,12 @@ export { */ UserEntity, + /** + * The UserFeedNotifications model constructor. + * @property {module:model/UserFeedNotifications} + */ + UserFeedNotifications, + /** * The Webhook model constructor. * @property {module:model/Webhook} diff --git a/src/model/APIError.js b/src/model/APIError.js index ed3e022e..39ae8318 100644 --- a/src/model/APIError.js +++ b/src/model/APIError.js @@ -17,7 +17,7 @@ import ErrorSource from './ErrorSource'; /** * The APIError model module. * @module model/APIError - * @version 4.1.1 + * @version 4.2.0 */ class APIError { /** diff --git a/src/model/AcceptCouponEffectProps.js b/src/model/AcceptCouponEffectProps.js index 218b536f..fa6544dd 100644 --- a/src/model/AcceptCouponEffectProps.js +++ b/src/model/AcceptCouponEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AcceptCouponEffectProps model module. * @module model/AcceptCouponEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class AcceptCouponEffectProps { /** diff --git a/src/model/AcceptReferralEffectProps.js b/src/model/AcceptReferralEffectProps.js index e9b1b207..08620440 100644 --- a/src/model/AcceptReferralEffectProps.js +++ b/src/model/AcceptReferralEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AcceptReferralEffectProps model module. * @module model/AcceptReferralEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class AcceptReferralEffectProps { /** diff --git a/src/model/AccessLogEntry.js b/src/model/AccessLogEntry.js index 845ef5ea..03106b32 100644 --- a/src/model/AccessLogEntry.js +++ b/src/model/AccessLogEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AccessLogEntry model module. * @module model/AccessLogEntry - * @version 4.1.1 + * @version 4.2.0 */ class AccessLogEntry { /** diff --git a/src/model/Account.js b/src/model/Account.js index 335721df..6befc049 100644 --- a/src/model/Account.js +++ b/src/model/Account.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Account model module. * @module model/Account - * @version 4.1.1 + * @version 4.2.0 */ class Account { /** diff --git a/src/model/AccountAdditionalCost.js b/src/model/AccountAdditionalCost.js index f08ad9d1..8f5e5643 100644 --- a/src/model/AccountAdditionalCost.js +++ b/src/model/AccountAdditionalCost.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AccountAdditionalCost model module. * @module model/AccountAdditionalCost - * @version 4.1.1 + * @version 4.2.0 */ class AccountAdditionalCost { /** diff --git a/src/model/AccountAnalytics.js b/src/model/AccountAnalytics.js index 8d1a89e0..82c8382e 100644 --- a/src/model/AccountAnalytics.js +++ b/src/model/AccountAnalytics.js @@ -16,31 +16,34 @@ import ApiClient from '../ApiClient'; /** * The AccountAnalytics model module. * @module model/AccountAnalytics - * @version 4.1.1 + * @version 4.2.0 */ class AccountAnalytics { /** * Constructs a new AccountAnalytics. * @alias module:model/AccountAnalytics - * @param applications {Number} Total Number of Applications inside the account - * @param activeCampaigns {Number} Total Number of Active Applications inside the account - * @param campaigns {Number} Total Number of campaigns inside the account - * @param coupons {Number} Total Number of coupons inside the account - * @param activeCoupons {Number} Total Number of active coupons inside the account - * @param expiredCoupons {Number} Total Number of expired coupons inside the account - * @param customAttributes {Number} Total Number of custom attributes inside the account - * @param referralCodes {Number} Total Number of referral codes inside the account - * @param activeReferralCodes {Number} Total Number of active referral codes inside the account - * @param expiredReferralCodes {Number} Total Number of expired referral codes inside the account - * @param users {Number} Total Number of users inside the account - * @param roles {Number} Total Number of roles inside the account - * @param webhooks {Number} Total Number of webhooks inside the account - * @param loyaltyPrograms {Number} Total Number of loyalty programs inside the account - * @param activeRules {Number} Total Number of active rules in the account + * @param applications {Number} Total number of applications in the account + * @param liveApplications {Number} Total number of live applications in the account + * @param sandboxApplications {Number} Total number of sandbox applications in the account + * @param campaigns {Number} Total number of campaigns in the account + * @param activeCampaigns {Number} Total number of active campaigns in the account + * @param liveActiveCampaigns {Number} Total number of active campaigns in live applications in the account + * @param coupons {Number} Total number of coupons in the account + * @param activeCoupons {Number} Total number of active coupons in the account + * @param expiredCoupons {Number} Total number of expired coupons in the account + * @param referralCodes {Number} Total number of referral codes in the account + * @param activeReferralCodes {Number} Total number of active referral codes in the account + * @param expiredReferralCodes {Number} Total number of expired referral codes in the account + * @param activeRules {Number} Total number of active rules in the account + * @param users {Number} Total number of users in the account + * @param roles {Number} Total number of roles in the account + * @param customAttributes {Number} Total number of custom attributes in the account + * @param webhooks {Number} Total number of webhooks in the account + * @param loyaltyPrograms {Number} Total number of loyalty programs in the account */ - constructor(applications, activeCampaigns, campaigns, coupons, activeCoupons, expiredCoupons, customAttributes, referralCodes, activeReferralCodes, expiredReferralCodes, users, roles, webhooks, loyaltyPrograms, activeRules) { + constructor(applications, liveApplications, sandboxApplications, campaigns, activeCampaigns, liveActiveCampaigns, coupons, activeCoupons, expiredCoupons, referralCodes, activeReferralCodes, expiredReferralCodes, activeRules, users, roles, customAttributes, webhooks, loyaltyPrograms) { - AccountAnalytics.initialize(this, applications, activeCampaigns, campaigns, coupons, activeCoupons, expiredCoupons, customAttributes, referralCodes, activeReferralCodes, expiredReferralCodes, users, roles, webhooks, loyaltyPrograms, activeRules); + AccountAnalytics.initialize(this, applications, liveApplications, sandboxApplications, campaigns, activeCampaigns, liveActiveCampaigns, coupons, activeCoupons, expiredCoupons, referralCodes, activeReferralCodes, expiredReferralCodes, activeRules, users, roles, customAttributes, webhooks, loyaltyPrograms); } /** @@ -48,22 +51,25 @@ class AccountAnalytics { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, applications, activeCampaigns, campaigns, coupons, activeCoupons, expiredCoupons, customAttributes, referralCodes, activeReferralCodes, expiredReferralCodes, users, roles, webhooks, loyaltyPrograms, activeRules) { + static initialize(obj, applications, liveApplications, sandboxApplications, campaigns, activeCampaigns, liveActiveCampaigns, coupons, activeCoupons, expiredCoupons, referralCodes, activeReferralCodes, expiredReferralCodes, activeRules, users, roles, customAttributes, webhooks, loyaltyPrograms) { obj['applications'] = applications; - obj['activeCampaigns'] = activeCampaigns; + obj['liveApplications'] = liveApplications; + obj['sandboxApplications'] = sandboxApplications; obj['campaigns'] = campaigns; + obj['activeCampaigns'] = activeCampaigns; + obj['liveActiveCampaigns'] = liveActiveCampaigns; obj['coupons'] = coupons; obj['activeCoupons'] = activeCoupons; obj['expiredCoupons'] = expiredCoupons; - obj['customAttributes'] = customAttributes; obj['referralCodes'] = referralCodes; obj['activeReferralCodes'] = activeReferralCodes; obj['expiredReferralCodes'] = expiredReferralCodes; + obj['activeRules'] = activeRules; obj['users'] = users; obj['roles'] = roles; + obj['customAttributes'] = customAttributes; obj['webhooks'] = webhooks; obj['loyaltyPrograms'] = loyaltyPrograms; - obj['activeRules'] = activeRules; } /** @@ -80,12 +86,21 @@ class AccountAnalytics { if (data.hasOwnProperty('applications')) { obj['applications'] = ApiClient.convertToType(data['applications'], 'Number'); } - if (data.hasOwnProperty('activeCampaigns')) { - obj['activeCampaigns'] = ApiClient.convertToType(data['activeCampaigns'], 'Number'); + if (data.hasOwnProperty('liveApplications')) { + obj['liveApplications'] = ApiClient.convertToType(data['liveApplications'], 'Number'); + } + if (data.hasOwnProperty('sandboxApplications')) { + obj['sandboxApplications'] = ApiClient.convertToType(data['sandboxApplications'], 'Number'); } if (data.hasOwnProperty('campaigns')) { obj['campaigns'] = ApiClient.convertToType(data['campaigns'], 'Number'); } + if (data.hasOwnProperty('activeCampaigns')) { + obj['activeCampaigns'] = ApiClient.convertToType(data['activeCampaigns'], 'Number'); + } + if (data.hasOwnProperty('liveActiveCampaigns')) { + obj['liveActiveCampaigns'] = ApiClient.convertToType(data['liveActiveCampaigns'], 'Number'); + } if (data.hasOwnProperty('coupons')) { obj['coupons'] = ApiClient.convertToType(data['coupons'], 'Number'); } @@ -95,9 +110,6 @@ class AccountAnalytics { if (data.hasOwnProperty('expiredCoupons')) { obj['expiredCoupons'] = ApiClient.convertToType(data['expiredCoupons'], 'Number'); } - if (data.hasOwnProperty('customAttributes')) { - obj['customAttributes'] = ApiClient.convertToType(data['customAttributes'], 'Number'); - } if (data.hasOwnProperty('referralCodes')) { obj['referralCodes'] = ApiClient.convertToType(data['referralCodes'], 'Number'); } @@ -107,21 +119,24 @@ class AccountAnalytics { if (data.hasOwnProperty('expiredReferralCodes')) { obj['expiredReferralCodes'] = ApiClient.convertToType(data['expiredReferralCodes'], 'Number'); } + if (data.hasOwnProperty('activeRules')) { + obj['activeRules'] = ApiClient.convertToType(data['activeRules'], 'Number'); + } if (data.hasOwnProperty('users')) { obj['users'] = ApiClient.convertToType(data['users'], 'Number'); } if (data.hasOwnProperty('roles')) { obj['roles'] = ApiClient.convertToType(data['roles'], 'Number'); } + if (data.hasOwnProperty('customAttributes')) { + obj['customAttributes'] = ApiClient.convertToType(data['customAttributes'], 'Number'); + } if (data.hasOwnProperty('webhooks')) { obj['webhooks'] = ApiClient.convertToType(data['webhooks'], 'Number'); } if (data.hasOwnProperty('loyaltyPrograms')) { obj['loyaltyPrograms'] = ApiClient.convertToType(data['loyaltyPrograms'], 'Number'); } - if (data.hasOwnProperty('activeRules')) { - obj['activeRules'] = ApiClient.convertToType(data['activeRules'], 'Number'); - } } return obj; } @@ -130,95 +145,113 @@ class AccountAnalytics { } /** - * Total Number of Applications inside the account + * Total number of applications in the account * @member {Number} applications */ AccountAnalytics.prototype['applications'] = undefined; /** - * Total Number of Active Applications inside the account - * @member {Number} activeCampaigns + * Total number of live applications in the account + * @member {Number} liveApplications */ -AccountAnalytics.prototype['activeCampaigns'] = undefined; +AccountAnalytics.prototype['liveApplications'] = undefined; + +/** + * Total number of sandbox applications in the account + * @member {Number} sandboxApplications + */ +AccountAnalytics.prototype['sandboxApplications'] = undefined; /** - * Total Number of campaigns inside the account + * Total number of campaigns in the account * @member {Number} campaigns */ AccountAnalytics.prototype['campaigns'] = undefined; /** - * Total Number of coupons inside the account + * Total number of active campaigns in the account + * @member {Number} activeCampaigns + */ +AccountAnalytics.prototype['activeCampaigns'] = undefined; + +/** + * Total number of active campaigns in live applications in the account + * @member {Number} liveActiveCampaigns + */ +AccountAnalytics.prototype['liveActiveCampaigns'] = undefined; + +/** + * Total number of coupons in the account * @member {Number} coupons */ AccountAnalytics.prototype['coupons'] = undefined; /** - * Total Number of active coupons inside the account + * Total number of active coupons in the account * @member {Number} activeCoupons */ AccountAnalytics.prototype['activeCoupons'] = undefined; /** - * Total Number of expired coupons inside the account + * Total number of expired coupons in the account * @member {Number} expiredCoupons */ AccountAnalytics.prototype['expiredCoupons'] = undefined; /** - * Total Number of custom attributes inside the account - * @member {Number} customAttributes - */ -AccountAnalytics.prototype['customAttributes'] = undefined; - -/** - * Total Number of referral codes inside the account + * Total number of referral codes in the account * @member {Number} referralCodes */ AccountAnalytics.prototype['referralCodes'] = undefined; /** - * Total Number of active referral codes inside the account + * Total number of active referral codes in the account * @member {Number} activeReferralCodes */ AccountAnalytics.prototype['activeReferralCodes'] = undefined; /** - * Total Number of expired referral codes inside the account + * Total number of expired referral codes in the account * @member {Number} expiredReferralCodes */ AccountAnalytics.prototype['expiredReferralCodes'] = undefined; /** - * Total Number of users inside the account + * Total number of active rules in the account + * @member {Number} activeRules + */ +AccountAnalytics.prototype['activeRules'] = undefined; + +/** + * Total number of users in the account * @member {Number} users */ AccountAnalytics.prototype['users'] = undefined; /** - * Total Number of roles inside the account + * Total number of roles in the account * @member {Number} roles */ AccountAnalytics.prototype['roles'] = undefined; /** - * Total Number of webhooks inside the account + * Total number of custom attributes in the account + * @member {Number} customAttributes + */ +AccountAnalytics.prototype['customAttributes'] = undefined; + +/** + * Total number of webhooks in the account * @member {Number} webhooks */ AccountAnalytics.prototype['webhooks'] = undefined; /** - * Total Number of loyalty programs inside the account + * Total number of loyalty programs in the account * @member {Number} loyaltyPrograms */ AccountAnalytics.prototype['loyaltyPrograms'] = undefined; -/** - * Total Number of active rules in the account - * @member {Number} activeRules - */ -AccountAnalytics.prototype['activeRules'] = undefined; - diff --git a/src/model/AccountEntity.js b/src/model/AccountEntity.js index 1cf99aec..8f78898e 100644 --- a/src/model/AccountEntity.js +++ b/src/model/AccountEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AccountEntity model module. * @module model/AccountEntity - * @version 4.1.1 + * @version 4.2.0 */ class AccountEntity { /** diff --git a/src/model/AccountLimits.js b/src/model/AccountLimits.js index 7bbf2a58..a84d28ec 100644 --- a/src/model/AccountLimits.js +++ b/src/model/AccountLimits.js @@ -16,27 +16,28 @@ import ApiClient from '../ApiClient'; /** * The AccountLimits model module. * @module model/AccountLimits - * @version 4.1.1 + * @version 4.2.0 */ class AccountLimits { /** * Constructs a new AccountLimits. * @alias module:model/AccountLimits - * @param liveApplications {Number} Total Number of allowed live applications in the account - * @param sandboxApplications {Number} Total Number of allowed sandbox applications in the account - * @param activeCampaigns {Number} Total Number of allowed active campaigns in the account - * @param coupons {Number} Total Number of allowed coupons in the account - * @param referralCodes {Number} Total Number of allowed referral codes in the account - * @param liveLoyaltyPrograms {Number} Total Number of allowed live loyalty programs in the account - * @param sandboxLoyaltyPrograms {Number} Total Number of allowed sandbox loyalty programs in the account - * @param webhooks {Number} Total Number of allowed webhooks in the account - * @param users {Number} Total Number of allowed users in the account - * @param apiVolume {Number} Total allowed api volume - * @param promotionTypes {Array.} array of rulesets where webhook is used + * @param liveApplications {Number} Total number of allowed live applications in the account + * @param sandboxApplications {Number} Total number of allowed sandbox applications in the account + * @param activeCampaigns {Number} Total number of allowed active campaigns in live applications in the account + * @param coupons {Number} Total number of allowed coupons in the account + * @param referralCodes {Number} Total number of allowed referral codes in the account + * @param activeRules {Number} Total number of allowed active rulesets in the account + * @param liveLoyaltyPrograms {Number} Total number of allowed live loyalty programs in the account + * @param sandboxLoyaltyPrograms {Number} Total number of allowed sandbox loyalty programs in the account + * @param webhooks {Number} Total number of allowed webhooks in the account + * @param users {Number} Total number of allowed users in the account + * @param apiVolume {Number} Allowed volume of API requests to the account + * @param promotionTypes {Array.} Array of promotion types that are employed in the account */ - constructor(liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes) { + constructor(liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, activeRules, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes) { - AccountLimits.initialize(this, liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes); + AccountLimits.initialize(this, liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, activeRules, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes); } /** @@ -44,12 +45,13 @@ class AccountLimits { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes) { + static initialize(obj, liveApplications, sandboxApplications, activeCampaigns, coupons, referralCodes, activeRules, liveLoyaltyPrograms, sandboxLoyaltyPrograms, webhooks, users, apiVolume, promotionTypes) { obj['liveApplications'] = liveApplications; obj['sandboxApplications'] = sandboxApplications; obj['activeCampaigns'] = activeCampaigns; obj['coupons'] = coupons; obj['referralCodes'] = referralCodes; + obj['activeRules'] = activeRules; obj['liveLoyaltyPrograms'] = liveLoyaltyPrograms; obj['sandboxLoyaltyPrograms'] = sandboxLoyaltyPrograms; obj['webhooks'] = webhooks; @@ -84,6 +86,9 @@ class AccountLimits { if (data.hasOwnProperty('referralCodes')) { obj['referralCodes'] = ApiClient.convertToType(data['referralCodes'], 'Number'); } + if (data.hasOwnProperty('activeRules')) { + obj['activeRules'] = ApiClient.convertToType(data['activeRules'], 'Number'); + } if (data.hasOwnProperty('liveLoyaltyPrograms')) { obj['liveLoyaltyPrograms'] = ApiClient.convertToType(data['liveLoyaltyPrograms'], 'Number'); } @@ -99,9 +104,6 @@ class AccountLimits { if (data.hasOwnProperty('apiVolume')) { obj['apiVolume'] = ApiClient.convertToType(data['apiVolume'], 'Number'); } - if (data.hasOwnProperty('activeRules')) { - obj['activeRules'] = ApiClient.convertToType(data['activeRules'], 'Number'); - } if (data.hasOwnProperty('promotionTypes')) { obj['promotionTypes'] = ApiClient.convertToType(data['promotionTypes'], ['String']); } @@ -113,73 +115,73 @@ class AccountLimits { } /** - * Total Number of allowed live applications in the account + * Total number of allowed live applications in the account * @member {Number} liveApplications */ AccountLimits.prototype['liveApplications'] = undefined; /** - * Total Number of allowed sandbox applications in the account + * Total number of allowed sandbox applications in the account * @member {Number} sandboxApplications */ AccountLimits.prototype['sandboxApplications'] = undefined; /** - * Total Number of allowed active campaigns in the account + * Total number of allowed active campaigns in live applications in the account * @member {Number} activeCampaigns */ AccountLimits.prototype['activeCampaigns'] = undefined; /** - * Total Number of allowed coupons in the account + * Total number of allowed coupons in the account * @member {Number} coupons */ AccountLimits.prototype['coupons'] = undefined; /** - * Total Number of allowed referral codes in the account + * Total number of allowed referral codes in the account * @member {Number} referralCodes */ AccountLimits.prototype['referralCodes'] = undefined; /** - * Total Number of allowed live loyalty programs in the account + * Total number of allowed active rulesets in the account + * @member {Number} activeRules + */ +AccountLimits.prototype['activeRules'] = undefined; + +/** + * Total number of allowed live loyalty programs in the account * @member {Number} liveLoyaltyPrograms */ AccountLimits.prototype['liveLoyaltyPrograms'] = undefined; /** - * Total Number of allowed sandbox loyalty programs in the account + * Total number of allowed sandbox loyalty programs in the account * @member {Number} sandboxLoyaltyPrograms */ AccountLimits.prototype['sandboxLoyaltyPrograms'] = undefined; /** - * Total Number of allowed webhooks in the account + * Total number of allowed webhooks in the account * @member {Number} webhooks */ AccountLimits.prototype['webhooks'] = undefined; /** - * Total Number of allowed users in the account + * Total number of allowed users in the account * @member {Number} users */ AccountLimits.prototype['users'] = undefined; /** - * Total allowed api volume + * Allowed volume of API requests to the account * @member {Number} apiVolume */ AccountLimits.prototype['apiVolume'] = undefined; /** - * Total allowed active rulesets - * @member {Number} activeRules - */ -AccountLimits.prototype['activeRules'] = undefined; - -/** - * array of rulesets where webhook is used + * Array of promotion types that are employed in the account * @member {Array.} promotionTypes */ AccountLimits.prototype['promotionTypes'] = undefined; diff --git a/src/model/AddFreeItemEffectProps.js b/src/model/AddFreeItemEffectProps.js index f0f11159..32b8da45 100644 --- a/src/model/AddFreeItemEffectProps.js +++ b/src/model/AddFreeItemEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AddFreeItemEffectProps model module. * @module model/AddFreeItemEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class AddFreeItemEffectProps { /** diff --git a/src/model/AddLoyaltyPointsEffectProps.js b/src/model/AddLoyaltyPointsEffectProps.js index 8cfcbfc6..76d18662 100644 --- a/src/model/AddLoyaltyPointsEffectProps.js +++ b/src/model/AddLoyaltyPointsEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AddLoyaltyPointsEffectProps model module. * @module model/AddLoyaltyPointsEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class AddLoyaltyPointsEffectProps { /** @@ -28,11 +28,10 @@ class AddLoyaltyPointsEffectProps { * @param subLedgerId {String} The ID of the subledger within the loyalty program where these points were added * @param value {Number} The amount of points that were added * @param recipientIntegrationId {String} The user for whom these points were added - * @param expiryCondition {String} The amount of time (in days) these points are valid */ - constructor(name, programId, subLedgerId, value, recipientIntegrationId, expiryCondition) { + constructor(name, programId, subLedgerId, value, recipientIntegrationId) { - AddLoyaltyPointsEffectProps.initialize(this, name, programId, subLedgerId, value, recipientIntegrationId, expiryCondition); + AddLoyaltyPointsEffectProps.initialize(this, name, programId, subLedgerId, value, recipientIntegrationId); } /** @@ -40,13 +39,12 @@ class AddLoyaltyPointsEffectProps { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, name, programId, subLedgerId, value, recipientIntegrationId, expiryCondition) { + static initialize(obj, name, programId, subLedgerId, value, recipientIntegrationId) { obj['name'] = name; obj['programId'] = programId; obj['subLedgerId'] = subLedgerId; obj['value'] = value; obj['recipientIntegrationId'] = recipientIntegrationId; - obj['expiryCondition'] = expiryCondition; } /** @@ -75,8 +73,11 @@ class AddLoyaltyPointsEffectProps { if (data.hasOwnProperty('recipientIntegrationId')) { obj['recipientIntegrationId'] = ApiClient.convertToType(data['recipientIntegrationId'], 'String'); } - if (data.hasOwnProperty('expiryCondition')) { - obj['expiryCondition'] = ApiClient.convertToType(data['expiryCondition'], 'String'); + if (data.hasOwnProperty('startDate')) { + obj['startDate'] = ApiClient.convertToType(data['startDate'], 'Date'); + } + if (data.hasOwnProperty('expiryDate')) { + obj['expiryDate'] = ApiClient.convertToType(data['expiryDate'], 'Date'); } } return obj; @@ -116,10 +117,16 @@ AddLoyaltyPointsEffectProps.prototype['value'] = undefined; AddLoyaltyPointsEffectProps.prototype['recipientIntegrationId'] = undefined; /** - * The amount of time (in days) these points are valid - * @member {String} expiryCondition + * Date after which points will be valid + * @member {Date} startDate + */ +AddLoyaltyPointsEffectProps.prototype['startDate'] = undefined; + +/** + * Date after which points will expire + * @member {Date} expiryDate */ -AddLoyaltyPointsEffectProps.prototype['expiryCondition'] = undefined; +AddLoyaltyPointsEffectProps.prototype['expiryDate'] = undefined; diff --git a/src/model/AdditionalCost.js b/src/model/AdditionalCost.js index 01ec9bfd..af73c58f 100644 --- a/src/model/AdditionalCost.js +++ b/src/model/AdditionalCost.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AdditionalCost model module. * @module model/AdditionalCost - * @version 4.1.1 + * @version 4.2.0 */ class AdditionalCost { /** diff --git a/src/model/Application.js b/src/model/Application.js index ea73bbeb..4a7e3cc6 100644 --- a/src/model/Application.js +++ b/src/model/Application.js @@ -19,7 +19,7 @@ import LoyaltyProgram from './LoyaltyProgram'; /** * The Application model module. * @module model/Application - * @version 4.1.1 + * @version 4.2.0 */ class Application { /** @@ -103,9 +103,21 @@ class Application { if (data.hasOwnProperty('campaignPriority')) { obj['campaignPriority'] = ApiClient.convertToType(data['campaignPriority'], 'String'); } + if (data.hasOwnProperty('exclusiveCampaignsStrategy')) { + obj['exclusiveCampaignsStrategy'] = ApiClient.convertToType(data['exclusiveCampaignsStrategy'], 'String'); + } + if (data.hasOwnProperty('enableCascadingDiscounts')) { + obj['enableCascadingDiscounts'] = ApiClient.convertToType(data['enableCascadingDiscounts'], 'Boolean'); + } + if (data.hasOwnProperty('enableFlattenedCartItems')) { + obj['enableFlattenedCartItems'] = ApiClient.convertToType(data['enableFlattenedCartItems'], 'Boolean'); + } if (data.hasOwnProperty('attributesSettings')) { obj['attributesSettings'] = AttributesSettings.constructFromObject(data['attributesSettings']); } + if (data.hasOwnProperty('sandbox')) { + obj['sandbox'] = ApiClient.convertToType(data['sandbox'], 'Boolean'); + } if (data.hasOwnProperty('loyaltyPrograms')) { obj['loyaltyPrograms'] = ApiClient.convertToType(data['loyaltyPrograms'], [LoyaltyProgram]); } @@ -183,16 +195,40 @@ Application.prototype['attributes'] = undefined; Application.prototype['limits'] = undefined; /** - * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) + * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" * @member {module:model/Application.CampaignPriorityEnum} campaignPriority */ Application.prototype['campaignPriority'] = undefined; +/** + * The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" + * @member {module:model/Application.ExclusiveCampaignsStrategyEnum} exclusiveCampaignsStrategy + */ +Application.prototype['exclusiveCampaignsStrategy'] = undefined; + +/** + * Flag indicating if discounts should cascade for this application + * @member {Boolean} enableCascadingDiscounts + */ +Application.prototype['enableCascadingDiscounts'] = undefined; + +/** + * Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * @member {Boolean} enableFlattenedCartItems + */ +Application.prototype['enableFlattenedCartItems'] = undefined; + /** * @member {module:model/AttributesSettings} attributesSettings */ Application.prototype['attributesSettings'] = undefined; +/** + * Flag indicating if this is a live or sandbox application + * @member {Boolean} sandbox + */ +Application.prototype['sandbox'] = undefined; + /** * An array containing all the loyalty programs to which this application is subscribed * @member {Array.} loyaltyPrograms @@ -257,6 +293,33 @@ Application['CampaignPriorityEnum'] = { }; +/** + * Allowed values for the exclusiveCampaignsStrategy property. + * @enum {String} + * @readonly + */ +Application['ExclusiveCampaignsStrategyEnum'] = { + + /** + * value: "listOrder" + * @const + */ + "listOrder": "listOrder", + + /** + * value: "lowestDiscount" + * @const + */ + "lowestDiscount": "lowestDiscount", + + /** + * value: "highestDiscount" + * @const + */ + "highestDiscount": "highestDiscount" +}; + + export default Application; diff --git a/src/model/ApplicationAPIKey.js b/src/model/ApplicationAPIKey.js index 22d17ab4..6036ad38 100644 --- a/src/model/ApplicationAPIKey.js +++ b/src/model/ApplicationAPIKey.js @@ -16,23 +16,24 @@ import ApiClient from '../ApiClient'; /** * The ApplicationAPIKey model module. * @module model/ApplicationAPIKey - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationAPIKey { /** * Constructs a new ApplicationAPIKey. + * * @alias module:model/ApplicationAPIKey + * @param title {String} Title for API Key + * @param expires {Date} The date the API key expired * @param id {Number} ID of the API Key * @param createdBy {Number} ID of user who created - * @param title {String} Title for API Key * @param accountID {Number} ID of account the key is used for * @param applicationID {Number} ID of application the key is used for * @param created {Date} The date the API key was created - * @param expires {Date} The date the API key expired */ - constructor(id, createdBy, title, accountID, applicationID, created, expires) { + constructor(title, expires, id, createdBy, accountID, applicationID, created) { - ApplicationAPIKey.initialize(this, id, createdBy, title, accountID, applicationID, created, expires); + ApplicationAPIKey.initialize(this, title, expires, id, createdBy, accountID, applicationID, created); } /** @@ -40,14 +41,14 @@ class ApplicationAPIKey { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, id, createdBy, title, accountID, applicationID, created, expires) { + static initialize(obj, title, expires, id, createdBy, accountID, applicationID, created) { + obj['title'] = title; + obj['expires'] = expires; obj['id'] = id; obj['createdBy'] = createdBy; - obj['title'] = title; obj['accountID'] = accountID; obj['applicationID'] = applicationID; obj['created'] = created; - obj['expires'] = expires; } /** @@ -61,15 +62,21 @@ class ApplicationAPIKey { if (data) { obj = obj || new ApplicationAPIKey(); + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('expires')) { + obj['expires'] = ApiClient.convertToType(data['expires'], 'Date'); + } + if (data.hasOwnProperty('platform')) { + obj['platform'] = ApiClient.convertToType(data['platform'], 'String'); + } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('createdBy')) { obj['createdBy'] = ApiClient.convertToType(data['createdBy'], 'Number'); } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } if (data.hasOwnProperty('accountID')) { obj['accountID'] = ApiClient.convertToType(data['accountID'], 'Number'); } @@ -79,9 +86,6 @@ class ApplicationAPIKey { if (data.hasOwnProperty('created')) { obj['created'] = ApiClient.convertToType(data['created'], 'Date'); } - if (data.hasOwnProperty('expires')) { - obj['expires'] = ApiClient.convertToType(data['expires'], 'Date'); - } } return obj; } @@ -89,6 +93,24 @@ class ApplicationAPIKey { } +/** + * Title for API Key + * @member {String} title + */ +ApplicationAPIKey.prototype['title'] = undefined; + +/** + * The date the API key expired + * @member {Date} expires + */ +ApplicationAPIKey.prototype['expires'] = undefined; + +/** + * Platform the API key is valid for. + * @member {module:model/ApplicationAPIKey.PlatformEnum} platform + */ +ApplicationAPIKey.prototype['platform'] = undefined; + /** * ID of the API Key * @member {Number} id @@ -101,12 +123,6 @@ ApplicationAPIKey.prototype['id'] = undefined; */ ApplicationAPIKey.prototype['createdBy'] = undefined; -/** - * Title for API Key - * @member {String} title - */ -ApplicationAPIKey.prototype['title'] = undefined; - /** * ID of account the key is used for * @member {Number} accountID @@ -125,14 +141,41 @@ ApplicationAPIKey.prototype['applicationID'] = undefined; */ ApplicationAPIKey.prototype['created'] = undefined; + + + + /** - * The date the API key expired - * @member {Date} expires + * Allowed values for the platform property. + * @enum {String} + * @readonly */ -ApplicationAPIKey.prototype['expires'] = undefined; +ApplicationAPIKey['PlatformEnum'] = { + + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "segment" + * @const + */ + "segment": "segment", + /** + * value: "braze" + * @const + */ + "braze": "braze", + /** + * value: "mparticle" + * @const + */ + "mparticle": "mparticle" +}; diff --git a/src/model/ApplicationApiHealth.js b/src/model/ApplicationApiHealth.js index 03b2cb50..4b2f1362 100644 --- a/src/model/ApplicationApiHealth.js +++ b/src/model/ApplicationApiHealth.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationApiHealth model module. * @module model/ApplicationApiHealth - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationApiHealth { /** diff --git a/src/model/ApplicationCustomer.js b/src/model/ApplicationCustomer.js index 3259612d..c4ec46e6 100644 --- a/src/model/ApplicationCustomer.js +++ b/src/model/ApplicationCustomer.js @@ -12,12 +12,13 @@ */ import ApiClient from '../ApiClient'; +import AudienceMembership from './AudienceMembership'; import LoyaltyMembership from './LoyaltyMembership'; /** * The ApplicationCustomer model module. * @module model/ApplicationCustomer - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationCustomer { /** @@ -26,7 +27,7 @@ class ApplicationCustomer { * @alias module:model/ApplicationCustomer * @param id {Number} Unique ID for this entity. * @param created {Date} The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. - * @param integrationId {String} The ID used for this entity in the application system. The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. * @param attributes {Object} Arbitrary properties associated with this item * @param accountId {Number} The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile. * @param closedSessions {Number} The total amount of closed sessions by a customer. A closed session is a successful purchase. @@ -89,6 +90,9 @@ class ApplicationCustomer { if (data.hasOwnProperty('loyaltyMemberships')) { obj['loyaltyMemberships'] = ApiClient.convertToType(data['loyaltyMemberships'], [LoyaltyMembership]); } + if (data.hasOwnProperty('audienceMemberships')) { + obj['audienceMemberships'] = ApiClient.convertToType(data['audienceMemberships'], [AudienceMembership]); + } if (data.hasOwnProperty('lastActivity')) { obj['lastActivity'] = ApiClient.convertToType(data['lastActivity'], 'Date'); } @@ -112,7 +116,7 @@ ApplicationCustomer.prototype['id'] = undefined; ApplicationCustomer.prototype['created'] = undefined; /** - * The ID used for this entity in the application system. The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ ApplicationCustomer.prototype['integrationId'] = undefined; @@ -147,6 +151,12 @@ ApplicationCustomer.prototype['totalSales'] = undefined; */ ApplicationCustomer.prototype['loyaltyMemberships'] = undefined; +/** + * A list of audiences the customer belongs to + * @member {Array.} audienceMemberships + */ +ApplicationCustomer.prototype['audienceMemberships'] = undefined; + /** * Timestamp of the most recent event received from this customer * @member {Date} lastActivity diff --git a/src/model/ApplicationCustomerEntity.js b/src/model/ApplicationCustomerEntity.js index 3a29a88c..6ca53639 100644 --- a/src/model/ApplicationCustomerEntity.js +++ b/src/model/ApplicationCustomerEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationCustomerEntity model module. * @module model/ApplicationCustomerEntity - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationCustomerEntity { /** diff --git a/src/model/ApplicationCustomerSearch.js b/src/model/ApplicationCustomerSearch.js index a997987b..9dbf6f85 100644 --- a/src/model/ApplicationCustomerSearch.js +++ b/src/model/ApplicationCustomerSearch.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationCustomerSearch model module. * @module model/ApplicationCustomerSearch - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationCustomerSearch { /** diff --git a/src/model/ApplicationEntity.js b/src/model/ApplicationEntity.js index 8a335db9..6a0fd33c 100644 --- a/src/model/ApplicationEntity.js +++ b/src/model/ApplicationEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationEntity model module. * @module model/ApplicationEntity - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationEntity { /** diff --git a/src/model/ApplicationEvent.js b/src/model/ApplicationEvent.js index c4add52a..72eb0b6e 100644 --- a/src/model/ApplicationEvent.js +++ b/src/model/ApplicationEvent.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationEvent model module. * @module model/ApplicationEvent - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationEvent { /** diff --git a/src/model/ApplicationSession.js b/src/model/ApplicationSession.js index 5d60e7de..7cb8a946 100644 --- a/src/model/ApplicationSession.js +++ b/src/model/ApplicationSession.js @@ -17,7 +17,7 @@ import CartItem from './CartItem'; /** * The ApplicationSession model module. * @module model/ApplicationSession - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationSession { /** @@ -27,7 +27,7 @@ class ApplicationSession { * @param id {Number} Unique ID for this entity. * @param created {Date} The exact moment this entity was created. The exact moment this entity was created. * @param applicationId {Number} The ID of the application that owns this entity. - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param coupon {String} Any coupon code entered. * @param referral {String} Any referral code entered. * @param state {module:model/ApplicationSession.StateEnum} Indicating if the customer session is in progress (\"open\"), \"closed\", or \"cancelled\". @@ -140,7 +140,7 @@ ApplicationSession.prototype['applicationId'] = undefined; ApplicationSession.prototype['profileId'] = undefined; /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ ApplicationSession.prototype['integrationId'] = undefined; diff --git a/src/model/ApplicationSessionEntity.js b/src/model/ApplicationSessionEntity.js index 7d31fdb4..cbe9295d 100644 --- a/src/model/ApplicationSessionEntity.js +++ b/src/model/ApplicationSessionEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApplicationSessionEntity model module. * @module model/ApplicationSessionEntity - * @version 4.1.1 + * @version 4.2.0 */ class ApplicationSessionEntity { /** diff --git a/src/model/Attribute.js b/src/model/Attribute.js index 1202cbce..1b7d8f21 100644 --- a/src/model/Attribute.js +++ b/src/model/Attribute.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Attribute model module. * @module model/Attribute - * @version 4.1.1 + * @version 4.2.0 */ class Attribute { /** diff --git a/src/model/AttributesMandatory.js b/src/model/AttributesMandatory.js index 97610d3a..c86d6dbf 100644 --- a/src/model/AttributesMandatory.js +++ b/src/model/AttributesMandatory.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AttributesMandatory model module. * @module model/AttributesMandatory - * @version 4.1.1 + * @version 4.2.0 */ class AttributesMandatory { /** diff --git a/src/model/AttributesSettings.js b/src/model/AttributesSettings.js index 78930584..99b065b2 100644 --- a/src/model/AttributesSettings.js +++ b/src/model/AttributesSettings.js @@ -17,7 +17,7 @@ import AttributesMandatory from './AttributesMandatory'; /** * The AttributesSettings model module. * @module model/AttributesSettings - * @version 4.1.1 + * @version 4.2.0 */ class AttributesSettings { /** diff --git a/src/model/Audience.js b/src/model/Audience.js new file mode 100644 index 00000000..fcc2ab8d --- /dev/null +++ b/src/model/Audience.js @@ -0,0 +1,145 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Audience model module. + * @module model/Audience + * @version 4.2.0 + */ +class Audience { + /** + * Constructs a new Audience. + * + * @alias module:model/Audience + * @param accountId {Number} The ID of the account that owns this entity. + * @param id {Number} Unique ID for this entity. + * @param created {Date} The exact moment this entity was created. + * @param name {String} The human-friendly display name for this Audience. + * @param integration {module:model/Audience.IntegrationEnum} Integration that this audience was created in. + * @param integrationId {String} The ID of this Audience in the third-party integration + */ + constructor(accountId, id, created, name, integration, integrationId) { + + Audience.initialize(this, accountId, id, created, name, integration, integrationId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, accountId, id, created, name, integration, integrationId) { + obj['accountId'] = accountId; + obj['id'] = id; + obj['created'] = created; + obj['name'] = name; + obj['integration'] = integration; + obj['integrationId'] = integrationId; + } + + /** + * Constructs a Audience from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Audience} obj Optional instance to populate. + * @return {module:model/Audience} The populated Audience instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Audience(); + + if (data.hasOwnProperty('accountId')) { + obj['accountId'] = ApiClient.convertToType(data['accountId'], 'Number'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'Date'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('integration')) { + obj['integration'] = ApiClient.convertToType(data['integration'], 'String'); + } + if (data.hasOwnProperty('integrationId')) { + obj['integrationId'] = ApiClient.convertToType(data['integrationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * The ID of the account that owns this entity. + * @member {Number} accountId + */ +Audience.prototype['accountId'] = undefined; + +/** + * Unique ID for this entity. + * @member {Number} id + */ +Audience.prototype['id'] = undefined; + +/** + * The exact moment this entity was created. + * @member {Date} created + */ +Audience.prototype['created'] = undefined; + +/** + * The human-friendly display name for this Audience. + * @member {String} name + */ +Audience.prototype['name'] = undefined; + +/** + * Integration that this audience was created in. + * @member {module:model/Audience.IntegrationEnum} integration + */ +Audience.prototype['integration'] = undefined; + +/** + * The ID of this Audience in the third-party integration + * @member {String} integrationId + */ +Audience.prototype['integrationId'] = undefined; + + + + + +/** + * Allowed values for the integration property. + * @enum {String} + * @readonly + */ +Audience['IntegrationEnum'] = { + + /** + * value: "mparticle" + * @const + */ + "mparticle": "mparticle" +}; + + + +export default Audience; + diff --git a/src/model/AudienceMembership.js b/src/model/AudienceMembership.js new file mode 100644 index 00000000..5d12503e --- /dev/null +++ b/src/model/AudienceMembership.js @@ -0,0 +1,85 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AudienceMembership model module. + * @module model/AudienceMembership + * @version 4.2.0 + */ +class AudienceMembership { + /** + * Constructs a new AudienceMembership. + * @alias module:model/AudienceMembership + * @param id {Number} The ID of the audience belonging to this entity. + * @param name {String} The Name of the audience belonging to this entity. + */ + constructor(id, name) { + + AudienceMembership.initialize(this, id, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, id, name) { + obj['id'] = id; + obj['name'] = name; + } + + /** + * Constructs a AudienceMembership from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AudienceMembership} obj Optional instance to populate. + * @return {module:model/AudienceMembership} The populated AudienceMembership instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AudienceMembership(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * The ID of the audience belonging to this entity. + * @member {Number} id + */ +AudienceMembership.prototype['id'] = undefined; + +/** + * The Name of the audience belonging to this entity. + * @member {String} name + */ +AudienceMembership.prototype['name'] = undefined; + + + + + + +export default AudienceMembership; + diff --git a/src/model/BaseSamlConnection.js b/src/model/BaseSamlConnection.js index 0f06d89f..382776dc 100644 --- a/src/model/BaseSamlConnection.js +++ b/src/model/BaseSamlConnection.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The BaseSamlConnection model module. * @module model/BaseSamlConnection - * @version 4.1.1 + * @version 4.2.0 */ class BaseSamlConnection { /** diff --git a/src/model/Binding.js b/src/model/Binding.js index 89449acd..146ae993 100644 --- a/src/model/Binding.js +++ b/src/model/Binding.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Binding model module. * @module model/Binding - * @version 4.1.1 + * @version 4.2.0 */ class Binding { /** diff --git a/src/model/Campaign.js b/src/model/Campaign.js index 6eb00a57..7b951047 100644 --- a/src/model/Campaign.js +++ b/src/model/Campaign.js @@ -18,7 +18,7 @@ import LimitConfig from './LimitConfig'; /** * The Campaign model module. * @module model/Campaign - * @version 4.1.1 + * @version 4.2.0 */ class Campaign { /** @@ -118,6 +118,9 @@ class Campaign { if (data.hasOwnProperty('limits')) { obj['limits'] = ApiClient.convertToType(data['limits'], [LimitConfig]); } + if (data.hasOwnProperty('campaignGroups')) { + obj['campaignGroups'] = ApiClient.convertToType(data['campaignGroups'], ['Number']); + } if (data.hasOwnProperty('couponRedemptionCount')) { obj['couponRedemptionCount'] = ApiClient.convertToType(data['couponRedemptionCount'], 'Number'); } @@ -247,6 +250,12 @@ Campaign.prototype['referralSettings'] = undefined; */ Campaign.prototype['limits'] = undefined; +/** + * The IDs of the campaign groups that own this entity. + * @member {Array.} campaignGroups + */ +Campaign.prototype['campaignGroups'] = undefined; + /** * Number of coupons redeemed in the campaign. * @member {Number} couponRedemptionCount diff --git a/src/model/CampaignAnalytics.js b/src/model/CampaignAnalytics.js index 6b951250..57379bd6 100644 --- a/src/model/CampaignAnalytics.js +++ b/src/model/CampaignAnalytics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CampaignAnalytics model module. * @module model/CampaignAnalytics - * @version 4.1.1 + * @version 4.2.0 */ class CampaignAnalytics { /** @@ -44,10 +44,14 @@ class CampaignAnalytics { * @param totalCouponsCreated {Number} Number of coupons created in the campaign by the rule engine since it began. * @param referralsCreated {Number} Number of referrals created in the campaign by the rule engine. * @param totalReferralsCreated {Number} Number of referrals created in the campaign by the rule engine since it began. + * @param addedLoyaltyPoints {Number} Number of added loyalty points in the campaign in a specific interval. + * @param totalAddedLoyaltyPoints {Number} Number of added loyalty points in the campaign since it began. + * @param deductedLoyaltyPoints {Number} Number of deducted loyalty points in the campaign in a specific interval. + * @param totalDeductedLoyaltyPoints {Number} Number of deducted loyalty points in the campaign since it began. */ - constructor(_date, campaignRevenue, totalCampaignRevenue, campaignRefund, totalCampaignRefund, campaignDiscountCosts, totalCampaignDiscountCosts, campaignRefundedDiscounts, totalCampaignRefundedDiscounts, campaignFreeItems, totalCampaignFreeItems, couponRedemptions, totalCouponRedemptions, couponRolledbackRedemptions, totalCouponRolledbackRedemptions, referralRedemptions, totalReferralRedemptions, couponsCreated, totalCouponsCreated, referralsCreated, totalReferralsCreated) { + constructor(_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) { - CampaignAnalytics.initialize(this, _date, campaignRevenue, totalCampaignRevenue, campaignRefund, totalCampaignRefund, campaignDiscountCosts, totalCampaignDiscountCosts, campaignRefundedDiscounts, totalCampaignRefundedDiscounts, campaignFreeItems, totalCampaignFreeItems, couponRedemptions, totalCouponRedemptions, couponRolledbackRedemptions, totalCouponRolledbackRedemptions, referralRedemptions, totalReferralRedemptions, couponsCreated, totalCouponsCreated, referralsCreated, totalReferralsCreated); + CampaignAnalytics.initialize(this, _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); } /** @@ -55,7 +59,7 @@ class CampaignAnalytics { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, _date, campaignRevenue, totalCampaignRevenue, campaignRefund, totalCampaignRefund, campaignDiscountCosts, totalCampaignDiscountCosts, campaignRefundedDiscounts, totalCampaignRefundedDiscounts, campaignFreeItems, totalCampaignFreeItems, couponRedemptions, totalCouponRedemptions, couponRolledbackRedemptions, totalCouponRolledbackRedemptions, referralRedemptions, totalReferralRedemptions, couponsCreated, totalCouponsCreated, referralsCreated, totalReferralsCreated) { + static initialize(obj, _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) { obj['date'] = _date; obj['campaignRevenue'] = campaignRevenue; obj['totalCampaignRevenue'] = totalCampaignRevenue; @@ -77,6 +81,10 @@ class CampaignAnalytics { obj['totalCouponsCreated'] = totalCouponsCreated; obj['referralsCreated'] = referralsCreated; obj['totalReferralsCreated'] = totalReferralsCreated; + obj['addedLoyaltyPoints'] = addedLoyaltyPoints; + obj['totalAddedLoyaltyPoints'] = totalAddedLoyaltyPoints; + obj['deductedLoyaltyPoints'] = deductedLoyaltyPoints; + obj['totalDeductedLoyaltyPoints'] = totalDeductedLoyaltyPoints; } /** @@ -153,6 +161,18 @@ class CampaignAnalytics { if (data.hasOwnProperty('totalReferralsCreated')) { obj['totalReferralsCreated'] = ApiClient.convertToType(data['totalReferralsCreated'], 'Number'); } + if (data.hasOwnProperty('addedLoyaltyPoints')) { + obj['addedLoyaltyPoints'] = ApiClient.convertToType(data['addedLoyaltyPoints'], 'Number'); + } + if (data.hasOwnProperty('totalAddedLoyaltyPoints')) { + obj['totalAddedLoyaltyPoints'] = ApiClient.convertToType(data['totalAddedLoyaltyPoints'], 'Number'); + } + if (data.hasOwnProperty('deductedLoyaltyPoints')) { + obj['deductedLoyaltyPoints'] = ApiClient.convertToType(data['deductedLoyaltyPoints'], 'Number'); + } + if (data.hasOwnProperty('totalDeductedLoyaltyPoints')) { + obj['totalDeductedLoyaltyPoints'] = ApiClient.convertToType(data['totalDeductedLoyaltyPoints'], 'Number'); + } } return obj; } @@ -285,6 +305,30 @@ CampaignAnalytics.prototype['referralsCreated'] = undefined; */ CampaignAnalytics.prototype['totalReferralsCreated'] = undefined; +/** + * Number of added loyalty points in the campaign in a specific interval. + * @member {Number} addedLoyaltyPoints + */ +CampaignAnalytics.prototype['addedLoyaltyPoints'] = undefined; + +/** + * Number of added loyalty points in the campaign since it began. + * @member {Number} totalAddedLoyaltyPoints + */ +CampaignAnalytics.prototype['totalAddedLoyaltyPoints'] = undefined; + +/** + * Number of deducted loyalty points in the campaign in a specific interval. + * @member {Number} deductedLoyaltyPoints + */ +CampaignAnalytics.prototype['deductedLoyaltyPoints'] = undefined; + +/** + * Number of deducted loyalty points in the campaign since it began. + * @member {Number} totalDeductedLoyaltyPoints + */ +CampaignAnalytics.prototype['totalDeductedLoyaltyPoints'] = undefined; + diff --git a/src/model/CampaignCopy.js b/src/model/CampaignCopy.js index 1bd1bacc..9208ee67 100644 --- a/src/model/CampaignCopy.js +++ b/src/model/CampaignCopy.js @@ -16,13 +16,13 @@ import ApiClient from '../ApiClient'; /** * The CampaignCopy model module. * @module model/CampaignCopy - * @version 4.1.1 + * @version 4.2.0 */ class CampaignCopy { /** * Constructs a new CampaignCopy. * @alias module:model/CampaignCopy - * @param applicationIds {Array.} Application IDs of the applications to which a campaign should be copied to + * @param applicationIds {Array.} Application IDs of the applications to which a campaign should be copied to */ constructor(applicationIds) { @@ -53,7 +53,7 @@ class CampaignCopy { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('applicationIds')) { - obj['applicationIds'] = ApiClient.convertToType(data['applicationIds'], ['String']); + obj['applicationIds'] = ApiClient.convertToType(data['applicationIds'], ['Number']); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); @@ -82,7 +82,7 @@ CampaignCopy.prototype['name'] = undefined; /** * Application IDs of the applications to which a campaign should be copied to - * @member {Array.} applicationIds + * @member {Array.} applicationIds */ CampaignCopy.prototype['applicationIds'] = undefined; diff --git a/src/model/CampaignEntity.js b/src/model/CampaignEntity.js index 20bc741d..d316f477 100644 --- a/src/model/CampaignEntity.js +++ b/src/model/CampaignEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CampaignEntity model module. * @module model/CampaignEntity - * @version 4.1.1 + * @version 4.2.0 */ class CampaignEntity { /** diff --git a/src/model/CampaignGroup.js b/src/model/CampaignGroup.js new file mode 100644 index 00000000..55d9fc0b --- /dev/null +++ b/src/model/CampaignGroup.js @@ -0,0 +1,146 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CampaignGroup model module. + * @module model/CampaignGroup + * @version 4.2.0 + */ +class CampaignGroup { + /** + * Constructs a new CampaignGroup. + * + * @alias module:model/CampaignGroup + * @param id {Number} Unique ID for this entity. + * @param created {Date} The exact moment this entity was created. + * @param modified {Date} The exact moment this entity was last modified. + * @param accountId {Number} The ID of the account that owns this entity. + * @param name {String} The name of this campaign group. + */ + constructor(id, created, modified, accountId, name) { + + CampaignGroup.initialize(this, id, created, modified, accountId, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, id, created, modified, accountId, name) { + obj['id'] = id; + obj['created'] = created; + obj['modified'] = modified; + obj['accountId'] = accountId; + obj['name'] = name; + } + + /** + * Constructs a CampaignGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CampaignGroup} obj Optional instance to populate. + * @return {module:model/CampaignGroup} The populated CampaignGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CampaignGroup(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'Date'); + } + if (data.hasOwnProperty('modified')) { + obj['modified'] = ApiClient.convertToType(data['modified'], 'Date'); + } + if (data.hasOwnProperty('accountId')) { + obj['accountId'] = ApiClient.convertToType(data['accountId'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('subscribedApplicationsIds')) { + obj['subscribedApplicationsIds'] = ApiClient.convertToType(data['subscribedApplicationsIds'], ['Number']); + } + if (data.hasOwnProperty('campaignIds')) { + obj['campaignIds'] = ApiClient.convertToType(data['campaignIds'], ['Number']); + } + } + return obj; + } + + +} + +/** + * Unique ID for this entity. + * @member {Number} id + */ +CampaignGroup.prototype['id'] = undefined; + +/** + * The exact moment this entity was created. + * @member {Date} created + */ +CampaignGroup.prototype['created'] = undefined; + +/** + * The exact moment this entity was last modified. + * @member {Date} modified + */ +CampaignGroup.prototype['modified'] = undefined; + +/** + * The ID of the account that owns this entity. + * @member {Number} accountId + */ +CampaignGroup.prototype['accountId'] = undefined; + +/** + * The name of this campaign group. + * @member {String} name + */ +CampaignGroup.prototype['name'] = undefined; + +/** + * A longer description of the campaign group. + * @member {String} description + */ +CampaignGroup.prototype['description'] = undefined; + +/** + * A list of the IDs of the applications that this campaign group is enabled for + * @member {Array.} subscribedApplicationsIds + */ +CampaignGroup.prototype['subscribedApplicationsIds'] = undefined; + +/** + * A list of the IDs of the campaigns that this campaign group owns + * @member {Array.} campaignIds + */ +CampaignGroup.prototype['campaignIds'] = undefined; + + + + + + +export default CampaignGroup; + diff --git a/src/model/MiscUpdateUserLatestFeature.js b/src/model/CampaignGroupEntity.js similarity index 60% rename from src/model/MiscUpdateUserLatestFeature.js rename to src/model/CampaignGroupEntity.js index dad1cba4..a9b5696d 100644 --- a/src/model/MiscUpdateUserLatestFeature.js +++ b/src/model/CampaignGroupEntity.js @@ -14,18 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The MiscUpdateUserLatestFeature model module. - * @module model/MiscUpdateUserLatestFeature - * @version 4.1.1 + * The CampaignGroupEntity model module. + * @module model/CampaignGroupEntity + * @version 4.2.0 */ -class MiscUpdateUserLatestFeature { +class CampaignGroupEntity { /** - * Constructs a new MiscUpdateUserLatestFeature. - * @alias module:model/MiscUpdateUserLatestFeature + * Constructs a new CampaignGroupEntity. + * @alias module:model/CampaignGroupEntity */ constructor() { - MiscUpdateUserLatestFeature.initialize(this); + CampaignGroupEntity.initialize(this); } /** @@ -37,18 +37,18 @@ class MiscUpdateUserLatestFeature { } /** - * Constructs a MiscUpdateUserLatestFeature from a plain JavaScript object, optionally creating a new instance. + * Constructs a CampaignGroupEntity from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MiscUpdateUserLatestFeature} obj Optional instance to populate. - * @return {module:model/MiscUpdateUserLatestFeature} The populated MiscUpdateUserLatestFeature instance. + * @param {module:model/CampaignGroupEntity} obj Optional instance to populate. + * @return {module:model/CampaignGroupEntity} The populated CampaignGroupEntity instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new MiscUpdateUserLatestFeature(); + obj = obj || new CampaignGroupEntity(); - if (data.hasOwnProperty('latestFeature')) { - obj['latestFeature'] = ApiClient.convertToType(data['latestFeature'], 'String'); + if (data.hasOwnProperty('campaignGroups')) { + obj['campaignGroups'] = ApiClient.convertToType(data['campaignGroups'], ['Number']); } } return obj; @@ -58,14 +58,15 @@ class MiscUpdateUserLatestFeature { } /** - * @member {String} latestFeature + * The IDs of the campaign groups that own this entity. + * @member {Array.} campaignGroups */ -MiscUpdateUserLatestFeature.prototype['latestFeature'] = undefined; +CampaignGroupEntity.prototype['campaignGroups'] = undefined; -export default MiscUpdateUserLatestFeature; +export default CampaignGroupEntity; diff --git a/src/model/CampaignSearch.js b/src/model/CampaignSearch.js index f2476c7a..099bc39f 100644 --- a/src/model/CampaignSearch.js +++ b/src/model/CampaignSearch.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CampaignSearch model module. * @module model/CampaignSearch - * @version 4.1.1 + * @version 4.2.0 */ class CampaignSearch { /** diff --git a/src/model/CampaignSet.js b/src/model/CampaignSet.js index 79eeb06d..52600036 100644 --- a/src/model/CampaignSet.js +++ b/src/model/CampaignSet.js @@ -17,7 +17,7 @@ import CampaignSetBranchNode from './CampaignSetBranchNode'; /** * The CampaignSet model module. * @module model/CampaignSet - * @version 4.1.1 + * @version 4.2.0 */ class CampaignSet { /** diff --git a/src/model/CampaignSetBranchNode.js b/src/model/CampaignSetBranchNode.js index cb53f4b0..3bb17699 100644 --- a/src/model/CampaignSetBranchNode.js +++ b/src/model/CampaignSetBranchNode.js @@ -17,7 +17,7 @@ import CampaignSetNode from './CampaignSetNode'; /** * The CampaignSetBranchNode model module. * @module model/CampaignSetBranchNode - * @version 4.1.1 + * @version 4.2.0 */ class CampaignSetBranchNode { /** diff --git a/src/model/CampaignSetLeafNode.js b/src/model/CampaignSetLeafNode.js index 986ef801..49ab6723 100644 --- a/src/model/CampaignSetLeafNode.js +++ b/src/model/CampaignSetLeafNode.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CampaignSetLeafNode model module. * @module model/CampaignSetLeafNode - * @version 4.1.1 + * @version 4.2.0 */ class CampaignSetLeafNode { /** diff --git a/src/model/CampaignSetNode.js b/src/model/CampaignSetNode.js index 0b44f847..f24fe0a7 100644 --- a/src/model/CampaignSetNode.js +++ b/src/model/CampaignSetNode.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CampaignSetNode model module. * @module model/CampaignSetNode - * @version 4.1.1 + * @version 4.2.0 */ class CampaignSetNode { /** diff --git a/src/model/CartItem.js b/src/model/CartItem.js index be325fa7..9771afc4 100644 --- a/src/model/CartItem.js +++ b/src/model/CartItem.js @@ -17,7 +17,7 @@ import CartItemAdjustment from './CartItemAdjustment'; /** * The CartItem model module. * @module model/CartItem - * @version 4.1.1 + * @version 4.2.0 */ class CartItem { /** diff --git a/src/model/CartItemAdjustment.js b/src/model/CartItemAdjustment.js index d46f8c03..d65ad3b3 100644 --- a/src/model/CartItemAdjustment.js +++ b/src/model/CartItemAdjustment.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CartItemAdjustment model module. * @module model/CartItemAdjustment - * @version 4.1.1 + * @version 4.2.0 */ class CartItemAdjustment { /** diff --git a/src/model/Change.js b/src/model/Change.js index c33575a4..a2da7bf1 100644 --- a/src/model/Change.js +++ b/src/model/Change.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Change model module. * @module model/Change - * @version 4.1.1 + * @version 4.2.0 */ class Change { /** diff --git a/src/model/ChangeProfilePassword.js b/src/model/ChangeProfilePassword.js index 914286ef..2ad1b8a5 100644 --- a/src/model/ChangeProfilePassword.js +++ b/src/model/ChangeProfilePassword.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ChangeProfilePassword model module. * @module model/ChangeProfilePassword - * @version 4.1.1 + * @version 4.2.0 */ class ChangeProfilePassword { /** diff --git a/src/model/CodeGeneratorSettings.js b/src/model/CodeGeneratorSettings.js index 726b60ac..a715126f 100644 --- a/src/model/CodeGeneratorSettings.js +++ b/src/model/CodeGeneratorSettings.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CodeGeneratorSettings model module. * @module model/CodeGeneratorSettings - * @version 4.1.1 + * @version 4.2.0 */ class CodeGeneratorSettings { /** diff --git a/src/model/Coupon.js b/src/model/Coupon.js index 2d7d8787..ae33d2dc 100644 --- a/src/model/Coupon.js +++ b/src/model/Coupon.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Coupon model module. * @module model/Coupon - * @version 4.1.1 + * @version 4.2.0 */ class Coupon { /** diff --git a/src/model/CouponConstraints.js b/src/model/CouponConstraints.js index 2d4bff5e..694e7b11 100644 --- a/src/model/CouponConstraints.js +++ b/src/model/CouponConstraints.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponConstraints model module. * @module model/CouponConstraints - * @version 4.1.1 + * @version 4.2.0 */ class CouponConstraints { /** diff --git a/src/model/CouponCreatedEffectProps.js b/src/model/CouponCreatedEffectProps.js index 3b3e86f5..9f9fbbdb 100644 --- a/src/model/CouponCreatedEffectProps.js +++ b/src/model/CouponCreatedEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponCreatedEffectProps model module. * @module model/CouponCreatedEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class CouponCreatedEffectProps { /** diff --git a/src/model/CouponRejectionReason.js b/src/model/CouponRejectionReason.js index edd22d2b..2e1905d5 100644 --- a/src/model/CouponRejectionReason.js +++ b/src/model/CouponRejectionReason.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponRejectionReason model module. * @module model/CouponRejectionReason - * @version 4.1.1 + * @version 4.2.0 */ class CouponRejectionReason { /** @@ -108,12 +108,6 @@ CouponRejectionReason['ReasonEnum'] = { */ "CouponPartOfNotRunningCampaign": "CouponPartOfNotRunningCampaign", - /** - * value: "CouponValidConditionMissing" - * @const - */ - "CouponValidConditionMissing": "CouponValidConditionMissing", - /** * value: "CouponLimitReached" * @const diff --git a/src/model/CouponReservations.js b/src/model/CouponReservations.js index 57022b47..54b19df5 100644 --- a/src/model/CouponReservations.js +++ b/src/model/CouponReservations.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponReservations model module. * @module model/CouponReservations - * @version 4.1.1 + * @version 4.2.0 */ class CouponReservations { /** diff --git a/src/model/CouponSearch.js b/src/model/CouponSearch.js index d194ed05..3664aac8 100644 --- a/src/model/CouponSearch.js +++ b/src/model/CouponSearch.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponSearch model module. * @module model/CouponSearch - * @version 4.1.1 + * @version 4.2.0 */ class CouponSearch { /** diff --git a/src/model/CouponValue.js b/src/model/CouponValue.js index b15f19ef..8fd26add 100644 --- a/src/model/CouponValue.js +++ b/src/model/CouponValue.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponValue model module. * @module model/CouponValue - * @version 4.1.1 + * @version 4.2.0 */ class CouponValue { /** diff --git a/src/model/CreateApplicationAPIKey.js b/src/model/CreateApplicationAPIKey.js index 61bcced4..deb07d14 100644 --- a/src/model/CreateApplicationAPIKey.js +++ b/src/model/CreateApplicationAPIKey.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateApplicationAPIKey model module. * @module model/CreateApplicationAPIKey - * @version 4.1.1 + * @version 4.2.0 */ class CreateApplicationAPIKey { /** @@ -57,6 +57,9 @@ class CreateApplicationAPIKey { if (data.hasOwnProperty('expires')) { obj['expires'] = ApiClient.convertToType(data['expires'], 'Date'); } + if (data.hasOwnProperty('platform')) { + obj['platform'] = ApiClient.convertToType(data['platform'], 'String'); + } } return obj; } @@ -76,8 +79,47 @@ CreateApplicationAPIKey.prototype['title'] = undefined; */ CreateApplicationAPIKey.prototype['expires'] = undefined; +/** + * Platform the API key is valid for. + * @member {module:model/CreateApplicationAPIKey.PlatformEnum} platform + */ +CreateApplicationAPIKey.prototype['platform'] = undefined; + + + + + +/** + * Allowed values for the platform property. + * @enum {String} + * @readonly + */ +CreateApplicationAPIKey['PlatformEnum'] = { + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "segment" + * @const + */ + "segment": "segment", + /** + * value: "braze" + * @const + */ + "braze": "braze", + /** + * value: "mparticle" + * @const + */ + "mparticle": "mparticle" +}; diff --git a/src/model/CustomerActivityReport.js b/src/model/CustomerActivityReport.js index 47ba336e..28092f5f 100644 --- a/src/model/CustomerActivityReport.js +++ b/src/model/CustomerActivityReport.js @@ -16,14 +16,14 @@ import ApiClient from '../ApiClient'; /** * The CustomerActivityReport model module. * @module model/CustomerActivityReport - * @version 4.1.1 + * @version 4.2.0 */ class CustomerActivityReport { /** * Constructs a new CustomerActivityReport. * * @alias module:model/CustomerActivityReport - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param created {Date} The exact moment this entity was created. * @param name {String} The name for this customer profile. * @param customerId {Number} The internal Talon.One ID of the customer. @@ -119,7 +119,7 @@ class CustomerActivityReport { } /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ CustomerActivityReport.prototype['integrationId'] = undefined; diff --git a/src/model/CustomerAnalytics.js b/src/model/CustomerAnalytics.js index 58214798..01ef3c6e 100644 --- a/src/model/CustomerAnalytics.js +++ b/src/model/CustomerAnalytics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CustomerAnalytics model module. * @module model/CustomerAnalytics - * @version 4.1.1 + * @version 4.2.0 */ class CustomerAnalytics { /** diff --git a/src/model/CustomerInventory.js b/src/model/CustomerInventory.js index e5176c03..ccba6dde 100644 --- a/src/model/CustomerInventory.js +++ b/src/model/CustomerInventory.js @@ -14,12 +14,13 @@ import ApiClient from '../ApiClient'; import Coupon from './Coupon'; import CustomerProfile from './CustomerProfile'; +import Loyalty from './Loyalty'; import Referral from './Referral'; /** * The CustomerInventory model module. * @module model/CustomerInventory - * @version 4.1.1 + * @version 4.2.0 */ class CustomerInventory { /** @@ -53,6 +54,9 @@ class CustomerInventory { if (data.hasOwnProperty('profile')) { obj['profile'] = CustomerProfile.constructFromObject(data['profile']); } + if (data.hasOwnProperty('loyalty')) { + obj['loyalty'] = Loyalty.constructFromObject(data['loyalty']); + } if (data.hasOwnProperty('referrals')) { obj['referrals'] = ApiClient.convertToType(data['referrals'], [Referral]); } @@ -71,6 +75,11 @@ class CustomerInventory { */ CustomerInventory.prototype['profile'] = undefined; +/** + * @member {module:model/Loyalty} loyalty + */ +CustomerInventory.prototype['loyalty'] = undefined; + /** * @member {Array.} referrals */ diff --git a/src/model/CustomerProfile.js b/src/model/CustomerProfile.js index f31498cd..8321141a 100644 --- a/src/model/CustomerProfile.js +++ b/src/model/CustomerProfile.js @@ -12,19 +12,20 @@ */ import ApiClient from '../ApiClient'; +import AudienceMembership from './AudienceMembership'; import LoyaltyMembership from './LoyaltyMembership'; /** * The CustomerProfile model module. * @module model/CustomerProfile - * @version 4.1.1 + * @version 4.2.0 */ class CustomerProfile { /** * Constructs a new CustomerProfile. * * @alias module:model/CustomerProfile - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param created {Date} The exact moment this entity was created. * @param attributes {Object} Arbitrary properties associated with this item * @param accountId {Number} The ID of the Talon.One account that owns this profile. @@ -84,6 +85,9 @@ class CustomerProfile { if (data.hasOwnProperty('loyaltyMemberships')) { obj['loyaltyMemberships'] = ApiClient.convertToType(data['loyaltyMemberships'], [LoyaltyMembership]); } + if (data.hasOwnProperty('audienceMemberships')) { + obj['audienceMemberships'] = ApiClient.convertToType(data['audienceMemberships'], [AudienceMembership]); + } if (data.hasOwnProperty('lastActivity')) { obj['lastActivity'] = ApiClient.convertToType(data['lastActivity'], 'Date'); } @@ -95,7 +99,7 @@ class CustomerProfile { } /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ CustomerProfile.prototype['integrationId'] = undefined; @@ -136,6 +140,12 @@ CustomerProfile.prototype['totalSales'] = undefined; */ CustomerProfile.prototype['loyaltyMemberships'] = undefined; +/** + * A list of audiences the customer belongs to + * @member {Array.} audienceMemberships + */ +CustomerProfile.prototype['audienceMemberships'] = undefined; + /** * Timestamp of the most recent event received from this customer * @member {Date} lastActivity diff --git a/src/model/CustomerProfileUpdate.js b/src/model/CustomerProfileAudienceRequest.js similarity index 55% rename from src/model/CustomerProfileUpdate.js rename to src/model/CustomerProfileAudienceRequest.js index 67d4d46e..c08700b6 100644 --- a/src/model/CustomerProfileUpdate.js +++ b/src/model/CustomerProfileAudienceRequest.js @@ -12,22 +12,21 @@ */ import ApiClient from '../ApiClient'; -import CustomerProfile from './CustomerProfile'; +import CustomerProfileAudienceRequestItem from './CustomerProfileAudienceRequestItem'; /** - * The CustomerProfileUpdate model module. - * @module model/CustomerProfileUpdate - * @version 4.1.1 + * The CustomerProfileAudienceRequest model module. + * @module model/CustomerProfileAudienceRequest + * @version 4.2.0 */ -class CustomerProfileUpdate { +class CustomerProfileAudienceRequest { /** - * Constructs a new CustomerProfileUpdate. - * @alias module:model/CustomerProfileUpdate - * @param customerProfile {module:model/CustomerProfile} + * Constructs a new CustomerProfileAudienceRequest. + * @alias module:model/CustomerProfileAudienceRequest */ - constructor(customerProfile) { + constructor() { - CustomerProfileUpdate.initialize(this, customerProfile); + CustomerProfileAudienceRequest.initialize(this); } /** @@ -35,23 +34,22 @@ class CustomerProfileUpdate { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, customerProfile) { - obj['customerProfile'] = customerProfile; + static initialize(obj) { } /** - * Constructs a CustomerProfileUpdate from a plain JavaScript object, optionally creating a new instance. + * Constructs a CustomerProfileAudienceRequest from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerProfileUpdate} obj Optional instance to populate. - * @return {module:model/CustomerProfileUpdate} The populated CustomerProfileUpdate instance. + * @param {module:model/CustomerProfileAudienceRequest} obj Optional instance to populate. + * @return {module:model/CustomerProfileAudienceRequest} The populated CustomerProfileAudienceRequest instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new CustomerProfileUpdate(); + obj = obj || new CustomerProfileAudienceRequest(); - if (data.hasOwnProperty('customerProfile')) { - obj['customerProfile'] = CustomerProfile.constructFromObject(data['customerProfile']); + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [CustomerProfileAudienceRequestItem]); } } return obj; @@ -61,14 +59,14 @@ class CustomerProfileUpdate { } /** - * @member {module:model/CustomerProfile} customerProfile + * @member {Array.} data */ -CustomerProfileUpdate.prototype['customerProfile'] = undefined; +CustomerProfileAudienceRequest.prototype['data'] = undefined; -export default CustomerProfileUpdate; +export default CustomerProfileAudienceRequest; diff --git a/src/model/CustomerProfileAudienceRequestItem.js b/src/model/CustomerProfileAudienceRequestItem.js new file mode 100644 index 00000000..7e131191 --- /dev/null +++ b/src/model/CustomerProfileAudienceRequestItem.js @@ -0,0 +1,114 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerProfileAudienceRequestItem model module. + * @module model/CustomerProfileAudienceRequestItem + * @version 4.2.0 + */ +class CustomerProfileAudienceRequestItem { + /** + * Constructs a new CustomerProfileAudienceRequestItem. + * @alias module:model/CustomerProfileAudienceRequestItem + * @param action {module:model/CustomerProfileAudienceRequestItem.ActionEnum} + * @param profileIntegrationId {String} + * @param audienceId {Number} + */ + constructor(action, profileIntegrationId, audienceId) { + + CustomerProfileAudienceRequestItem.initialize(this, action, profileIntegrationId, audienceId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, action, profileIntegrationId, audienceId) { + obj['action'] = action; + obj['profileIntegrationId'] = profileIntegrationId; + obj['audienceId'] = audienceId; + } + + /** + * Constructs a CustomerProfileAudienceRequestItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerProfileAudienceRequestItem} obj Optional instance to populate. + * @return {module:model/CustomerProfileAudienceRequestItem} The populated CustomerProfileAudienceRequestItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerProfileAudienceRequestItem(); + + if (data.hasOwnProperty('action')) { + obj['action'] = ApiClient.convertToType(data['action'], 'String'); + } + if (data.hasOwnProperty('profileIntegrationId')) { + obj['profileIntegrationId'] = ApiClient.convertToType(data['profileIntegrationId'], 'String'); + } + if (data.hasOwnProperty('audienceId')) { + obj['audienceId'] = ApiClient.convertToType(data['audienceId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CustomerProfileAudienceRequestItem.ActionEnum} action + */ +CustomerProfileAudienceRequestItem.prototype['action'] = undefined; + +/** + * @member {String} profileIntegrationId + */ +CustomerProfileAudienceRequestItem.prototype['profileIntegrationId'] = undefined; + +/** + * @member {Number} audienceId + */ +CustomerProfileAudienceRequestItem.prototype['audienceId'] = undefined; + + + + + +/** + * Allowed values for the action property. + * @enum {String} + * @readonly + */ +CustomerProfileAudienceRequestItem['ActionEnum'] = { + + /** + * value: "add" + * @const + */ + "add": "add", + + /** + * value: "delete" + * @const + */ + "delete": "delete" +}; + + + +export default CustomerProfileAudienceRequestItem; + diff --git a/src/model/CustomerProfileIntegrationRequestV2.js b/src/model/CustomerProfileIntegrationRequestV2.js new file mode 100644 index 00000000..80700a61 --- /dev/null +++ b/src/model/CustomerProfileIntegrationRequestV2.js @@ -0,0 +1,115 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerProfileIntegrationRequestV2 model module. + * @module model/CustomerProfileIntegrationRequestV2 + * @version 4.2.0 + */ +class CustomerProfileIntegrationRequestV2 { + /** + * Constructs a new CustomerProfileIntegrationRequestV2. + * + * @alias module:model/CustomerProfileIntegrationRequestV2 + */ + constructor() { + + CustomerProfileIntegrationRequestV2.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerProfileIntegrationRequestV2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerProfileIntegrationRequestV2} obj Optional instance to populate. + * @return {module:model/CustomerProfileIntegrationRequestV2} The populated CustomerProfileIntegrationRequestV2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerProfileIntegrationRequestV2(); + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = ApiClient.convertToType(data['attributes'], Object); + } + if (data.hasOwnProperty('responseContent')) { + obj['responseContent'] = ApiClient.convertToType(data['responseContent'], ['String']); + } + } + return obj; + } + + +} + +/** + * Arbitrary properties associated with this item + * @member {Object} attributes + */ +CustomerProfileIntegrationRequestV2.prototype['attributes'] = undefined; + +/** + * Optional list of requested information to be present on the response related to the customer profile update. Currently supported: \"customerProfile\", \"triggeredCampaigns\", \"loyalty\" and \"event\". + * @member {Array.} responseContent + */ +CustomerProfileIntegrationRequestV2.prototype['responseContent'] = undefined; + + + + + +/** + * Allowed values for the responseContent property. + * @enum {String} + * @readonly + */ +CustomerProfileIntegrationRequestV2['ResponseContentEnum'] = { + + /** + * value: "customerProfile" + * @const + */ + "customerProfile": "customerProfile", + + /** + * value: "triggeredCampaigns" + * @const + */ + "triggeredCampaigns": "triggeredCampaigns", + + /** + * value: "loyalty" + * @const + */ + "loyalty": "loyalty", + + /** + * value: "event" + * @const + */ + "event": "event" +}; + + + +export default CustomerProfileIntegrationRequestV2; + diff --git a/src/model/CustomerProfileSearchQuery.js b/src/model/CustomerProfileSearchQuery.js index d0ddbb64..20068b68 100644 --- a/src/model/CustomerProfileSearchQuery.js +++ b/src/model/CustomerProfileSearchQuery.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CustomerProfileSearchQuery model module. * @module model/CustomerProfileSearchQuery - * @version 4.1.1 + * @version 4.2.0 */ class CustomerProfileSearchQuery { /** diff --git a/src/model/CustomerSession.js b/src/model/CustomerSession.js index d40c4e42..dbf0eb0d 100644 --- a/src/model/CustomerSession.js +++ b/src/model/CustomerSession.js @@ -17,14 +17,14 @@ import CartItem from './CartItem'; /** * The CustomerSession model module. * @module model/CustomerSession - * @version 4.1.1 + * @version 4.2.0 */ class CustomerSession { /** * Constructs a new CustomerSession. * * @alias module:model/CustomerSession - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param created {Date} The exact moment this entity was created. * @param applicationId {Number} The ID of the application that owns this entity. * @param profileId {String} ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. @@ -120,7 +120,7 @@ class CustomerSession { } /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ CustomerSession.prototype['integrationId'] = undefined; diff --git a/src/model/CustomerSessionV2.js b/src/model/CustomerSessionV2.js index bb910f3e..bee6e794 100644 --- a/src/model/CustomerSessionV2.js +++ b/src/model/CustomerSessionV2.js @@ -18,14 +18,14 @@ import CartItem from './CartItem'; /** * The CustomerSessionV2 model module. * @module model/CustomerSessionV2 - * @version 4.1.1 + * @version 4.2.0 */ class CustomerSessionV2 { /** * Constructs a new CustomerSessionV2. * * @alias module:model/CustomerSessionV2 - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param created {Date} The exact moment this entity was created. * @param applicationId {Number} The ID of the application that owns this entity. * @param profileId {String} ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. @@ -125,7 +125,7 @@ class CustomerSessionV2 { } /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ CustomerSessionV2.prototype['integrationId'] = undefined; diff --git a/src/model/DeductLoyaltyPointsEffectProps.js b/src/model/DeductLoyaltyPointsEffectProps.js index 1ac3feaf..6bdd68a3 100644 --- a/src/model/DeductLoyaltyPointsEffectProps.js +++ b/src/model/DeductLoyaltyPointsEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The DeductLoyaltyPointsEffectProps model module. * @module model/DeductLoyaltyPointsEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class DeductLoyaltyPointsEffectProps { /** diff --git a/src/model/Effect.js b/src/model/Effect.js index 6d4a7368..089c9349 100644 --- a/src/model/Effect.js +++ b/src/model/Effect.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Effect model module. * @module model/Effect - * @version 4.1.1 + * @version 4.2.0 */ class Effect { /** diff --git a/src/model/EffectEntity.js b/src/model/EffectEntity.js index d12c7d30..75474139 100644 --- a/src/model/EffectEntity.js +++ b/src/model/EffectEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The EffectEntity model module. * @module model/EffectEntity - * @version 4.1.1 + * @version 4.2.0 */ class EffectEntity { /** diff --git a/src/model/EmailEntity.js b/src/model/EmailEntity.js index 3459667a..dda6baed 100644 --- a/src/model/EmailEntity.js +++ b/src/model/EmailEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The EmailEntity model module. * @module model/EmailEntity - * @version 4.1.1 + * @version 4.2.0 */ class EmailEntity { /** diff --git a/src/model/Entity.js b/src/model/Entity.js index 31ac060e..215496da 100644 --- a/src/model/Entity.js +++ b/src/model/Entity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Entity model module. * @module model/Entity - * @version 4.1.1 + * @version 4.2.0 */ class Entity { /** diff --git a/src/model/EntityWithTalangVisibleID.js b/src/model/EntityWithTalangVisibleID.js new file mode 100644 index 00000000..c082e6e7 --- /dev/null +++ b/src/model/EntityWithTalangVisibleID.js @@ -0,0 +1,85 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The EntityWithTalangVisibleID model module. + * @module model/EntityWithTalangVisibleID + * @version 4.2.0 + */ +class EntityWithTalangVisibleID { + /** + * Constructs a new EntityWithTalangVisibleID. + * @alias module:model/EntityWithTalangVisibleID + * @param id {Number} Unique ID for this entity. + * @param created {Date} The exact moment this entity was created. + */ + constructor(id, created) { + + EntityWithTalangVisibleID.initialize(this, id, created); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, id, created) { + obj['id'] = id; + obj['created'] = created; + } + + /** + * Constructs a EntityWithTalangVisibleID from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntityWithTalangVisibleID} obj Optional instance to populate. + * @return {module:model/EntityWithTalangVisibleID} The populated EntityWithTalangVisibleID instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntityWithTalangVisibleID(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Unique ID for this entity. + * @member {Number} id + */ +EntityWithTalangVisibleID.prototype['id'] = undefined; + +/** + * The exact moment this entity was created. + * @member {Date} created + */ +EntityWithTalangVisibleID.prototype['created'] = undefined; + + + + + + +export default EntityWithTalangVisibleID; + diff --git a/src/model/Environment.js b/src/model/Environment.js index 7dd70f87..9e22f332 100644 --- a/src/model/Environment.js +++ b/src/model/Environment.js @@ -19,7 +19,7 @@ import TemplateDef from './TemplateDef'; /** * The Environment model module. * @module model/Environment - * @version 4.1.1 + * @version 4.2.0 */ class Environment { /** diff --git a/src/model/ErrorEffectProps.js b/src/model/ErrorEffectProps.js index 7b6e98d5..555affec 100644 --- a/src/model/ErrorEffectProps.js +++ b/src/model/ErrorEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ErrorEffectProps model module. * @module model/ErrorEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class ErrorEffectProps { /** diff --git a/src/model/ErrorResponse.js b/src/model/ErrorResponse.js index cba29c03..162ced32 100644 --- a/src/model/ErrorResponse.js +++ b/src/model/ErrorResponse.js @@ -17,7 +17,7 @@ import APIError from './APIError'; /** * The ErrorResponse model module. * @module model/ErrorResponse - * @version 4.1.1 + * @version 4.2.0 */ class ErrorResponse { /** diff --git a/src/model/ErrorSource.js b/src/model/ErrorSource.js index c8d69c3f..64866de4 100644 --- a/src/model/ErrorSource.js +++ b/src/model/ErrorSource.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ErrorSource model module. * @module model/ErrorSource - * @version 4.1.1 + * @version 4.2.0 */ class ErrorSource { /** diff --git a/src/model/Event.js b/src/model/Event.js index c7fda902..d29c9103 100644 --- a/src/model/Event.js +++ b/src/model/Event.js @@ -18,7 +18,7 @@ import Meta from './Meta'; /** * The Event model module. * @module model/Event - * @version 4.1.1 + * @version 4.2.0 */ class Event { /** diff --git a/src/model/EventType.js b/src/model/EventType.js index 1810a4e6..20fe8fb3 100644 --- a/src/model/EventType.js +++ b/src/model/EventType.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The EventType model module. * @module model/EventType - * @version 4.1.1 + * @version 4.2.0 */ class EventType { /** diff --git a/src/model/FeatureFlag.js b/src/model/FeatureFlag.js index ba81420f..12d1125a 100644 --- a/src/model/FeatureFlag.js +++ b/src/model/FeatureFlag.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FeatureFlag model module. * @module model/FeatureFlag - * @version 4.1.1 + * @version 4.2.0 */ class FeatureFlag { /** diff --git a/src/model/FeatureFlags.js b/src/model/FeatureFlags.js index b87ec5f0..cd2d3c4c 100644 --- a/src/model/FeatureFlags.js +++ b/src/model/FeatureFlags.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FeatureFlags model module. * @module model/FeatureFlags - * @version 4.1.1 + * @version 4.2.0 */ class FeatureFlags { /** diff --git a/src/model/FeaturesFeed.js b/src/model/FeaturesFeed.js index d4169589..1dd1dd85 100644 --- a/src/model/FeaturesFeed.js +++ b/src/model/FeaturesFeed.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FeaturesFeed model module. * @module model/FeaturesFeed - * @version 4.1.1 + * @version 4.2.0 */ class FeaturesFeed { /** diff --git a/src/model/FeedNotification.js b/src/model/FeedNotification.js new file mode 100644 index 00000000..015ce637 --- /dev/null +++ b/src/model/FeedNotification.js @@ -0,0 +1,169 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FeedNotification model module. + * @module model/FeedNotification + * @version 4.2.0 + */ +class FeedNotification { + /** + * Constructs a new FeedNotification. + * A feed notification for CAMA users + * @alias module:model/FeedNotification + * @param title {String} Title of the feed notification + * @param created {Date} Timestamp of the moment this feed notification was created + * @param updated {Date} Timestamp of the moment this feed notification was last updated + * @param articleUrl {String} URL to the feed notification in the help center + * @param type {module:model/FeedNotification.TypeEnum} The type of the feed notification + * @param body {String} Body of the feed notification + */ + constructor(title, created, updated, articleUrl, type, body) { + + FeedNotification.initialize(this, title, created, updated, articleUrl, type, body); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, title, created, updated, articleUrl, type, body) { + obj['title'] = title; + obj['created'] = created; + obj['updated'] = updated; + obj['articleUrl'] = articleUrl; + obj['type'] = type; + obj['body'] = body; + } + + /** + * Constructs a FeedNotification from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FeedNotification} obj Optional instance to populate. + * @return {module:model/FeedNotification} The populated FeedNotification instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FeedNotification(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('created')) { + obj['created'] = ApiClient.convertToType(data['created'], 'Date'); + } + if (data.hasOwnProperty('updated')) { + obj['updated'] = ApiClient.convertToType(data['updated'], 'Date'); + } + if (data.hasOwnProperty('articleUrl')) { + obj['articleUrl'] = ApiClient.convertToType(data['articleUrl'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('body')) { + obj['body'] = ApiClient.convertToType(data['body'], 'String'); + } + } + return obj; + } + + +} + +/** + * Title of the feed notification + * @member {String} title + */ +FeedNotification.prototype['title'] = undefined; + +/** + * Timestamp of the moment this feed notification was created + * @member {Date} created + */ +FeedNotification.prototype['created'] = undefined; + +/** + * Timestamp of the moment this feed notification was last updated + * @member {Date} updated + */ +FeedNotification.prototype['updated'] = undefined; + +/** + * URL to the feed notification in the help center + * @member {String} articleUrl + */ +FeedNotification.prototype['articleUrl'] = undefined; + +/** + * The type of the feed notification + * @member {module:model/FeedNotification.TypeEnum} type + */ +FeedNotification.prototype['type'] = undefined; + +/** + * Body of the feed notification + * @member {String} body + */ +FeedNotification.prototype['body'] = undefined; + + + + + +/** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ +FeedNotification['TypeEnum'] = { + + /** + * value: "feed" + * @const + */ + "feed": "feed", + + /** + * value: "feature" + * @const + */ + "feature": "feature", + + /** + * value: "announcement" + * @const + */ + "announcement": "announcement", + + /** + * value: "alert" + * @const + */ + "alert": "alert", + + /** + * value: "test" + * @const + */ + "test": "test" +}; + + + +export default FeedNotification; + diff --git a/src/model/FuncArgDef.js b/src/model/FuncArgDef.js index ca30e7a7..edc01e7e 100644 --- a/src/model/FuncArgDef.js +++ b/src/model/FuncArgDef.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FuncArgDef model module. * @module model/FuncArgDef - * @version 4.1.1 + * @version 4.2.0 */ class FuncArgDef { /** diff --git a/src/model/FunctionDef.js b/src/model/FunctionDef.js index 493ab2f6..8686b144 100644 --- a/src/model/FunctionDef.js +++ b/src/model/FunctionDef.js @@ -17,7 +17,7 @@ import FuncArgDef from './FuncArgDef'; /** * The FunctionDef model module. * @module model/FunctionDef - * @version 4.1.1 + * @version 4.2.0 */ class FunctionDef { /** diff --git a/src/model/ImportCoupons.js b/src/model/ImportCoupons.js index 015f6c4c..ecdfeafe 100644 --- a/src/model/ImportCoupons.js +++ b/src/model/ImportCoupons.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ImportCoupons model module. * @module model/ImportCoupons - * @version 4.1.1 + * @version 4.2.0 */ class ImportCoupons { /** diff --git a/src/model/InlineResponse200.js b/src/model/InlineResponse200.js index 74d4e445..7475c4f5 100644 --- a/src/model/InlineResponse200.js +++ b/src/model/InlineResponse200.js @@ -17,7 +17,7 @@ import CustomerProfile from './CustomerProfile'; /** * The InlineResponse200 model module. * @module model/InlineResponse200 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse200 { /** diff --git a/src/model/InlineResponse2001.js b/src/model/InlineResponse2001.js index d490ea94..d1a3a02c 100644 --- a/src/model/InlineResponse2001.js +++ b/src/model/InlineResponse2001.js @@ -17,7 +17,7 @@ import Application from './Application'; /** * The InlineResponse2001 model module. * @module model/InlineResponse2001 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2001 { /** diff --git a/src/model/InlineResponse20010.js b/src/model/InlineResponse20010.js index 3dfe92fb..f937e79c 100644 --- a/src/model/InlineResponse20010.js +++ b/src/model/InlineResponse20010.js @@ -17,7 +17,7 @@ import AccessLogEntry from './AccessLogEntry'; /** * The InlineResponse20010 model module. * @module model/InlineResponse20010 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20010 { /** diff --git a/src/model/InlineResponse20011.js b/src/model/InlineResponse20011.js index f71da067..e281a059 100644 --- a/src/model/InlineResponse20011.js +++ b/src/model/InlineResponse20011.js @@ -17,7 +17,7 @@ import CampaignAnalytics from './CampaignAnalytics'; /** * The InlineResponse20011 model module. * @module model/InlineResponse20011 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20011 { /** diff --git a/src/model/InlineResponse20012.js b/src/model/InlineResponse20012.js index 724c987d..8752f88a 100644 --- a/src/model/InlineResponse20012.js +++ b/src/model/InlineResponse20012.js @@ -17,18 +17,17 @@ import ApplicationCustomer from './ApplicationCustomer'; /** * The InlineResponse20012 model module. * @module model/InlineResponse20012 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20012 { /** * Constructs a new InlineResponse20012. * @alias module:model/InlineResponse20012 - * @param totalResultSize {Number} * @param data {Array.} */ - constructor(totalResultSize, data) { + constructor(data) { - InlineResponse20012.initialize(this, totalResultSize, data); + InlineResponse20012.initialize(this, data); } /** @@ -36,8 +35,7 @@ class InlineResponse20012 { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, totalResultSize, data) { - obj['totalResultSize'] = totalResultSize; + static initialize(obj, data) { obj['data'] = data; } @@ -55,6 +53,9 @@ class InlineResponse20012 { if (data.hasOwnProperty('totalResultSize')) { obj['totalResultSize'] = ApiClient.convertToType(data['totalResultSize'], 'Number'); } + if (data.hasOwnProperty('hasMore')) { + obj['hasMore'] = ApiClient.convertToType(data['hasMore'], 'Boolean'); + } if (data.hasOwnProperty('data')) { obj['data'] = ApiClient.convertToType(data['data'], [ApplicationCustomer]); } @@ -70,6 +71,11 @@ class InlineResponse20012 { */ InlineResponse20012.prototype['totalResultSize'] = undefined; +/** + * @member {Boolean} hasMore + */ +InlineResponse20012.prototype['hasMore'] = undefined; + /** * @member {Array.} data */ diff --git a/src/model/InlineResponse20013.js b/src/model/InlineResponse20013.js index 324de90c..bd0d81ac 100644 --- a/src/model/InlineResponse20013.js +++ b/src/model/InlineResponse20013.js @@ -17,7 +17,7 @@ import ApplicationCustomer from './ApplicationCustomer'; /** * The InlineResponse20013 model module. * @module model/InlineResponse20013 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20013 { /** diff --git a/src/model/InlineResponse20014.js b/src/model/InlineResponse20014.js index 65fcc02e..5a01ca3f 100644 --- a/src/model/InlineResponse20014.js +++ b/src/model/InlineResponse20014.js @@ -17,7 +17,7 @@ import CustomerActivityReport from './CustomerActivityReport'; /** * The InlineResponse20014 model module. * @module model/InlineResponse20014 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20014 { /** diff --git a/src/model/InlineResponse20015.js b/src/model/InlineResponse20015.js index 49288000..e2ecf183 100644 --- a/src/model/InlineResponse20015.js +++ b/src/model/InlineResponse20015.js @@ -17,7 +17,7 @@ import CustomerActivityReport from './CustomerActivityReport'; /** * The InlineResponse20015 model module. * @module model/InlineResponse20015 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20015 { /** diff --git a/src/model/InlineResponse20016.js b/src/model/InlineResponse20016.js index eb205194..4da965d9 100644 --- a/src/model/InlineResponse20016.js +++ b/src/model/InlineResponse20016.js @@ -17,7 +17,7 @@ import ApplicationSession from './ApplicationSession'; /** * The InlineResponse20016 model module. * @module model/InlineResponse20016 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20016 { /** diff --git a/src/model/InlineResponse20017.js b/src/model/InlineResponse20017.js index 347c25b8..67f4d1ff 100644 --- a/src/model/InlineResponse20017.js +++ b/src/model/InlineResponse20017.js @@ -17,7 +17,7 @@ import ApplicationEvent from './ApplicationEvent'; /** * The InlineResponse20017 model module. * @module model/InlineResponse20017 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20017 { /** diff --git a/src/model/InlineResponse20018.js b/src/model/InlineResponse20018.js index 3d9b378c..7bf840d2 100644 --- a/src/model/InlineResponse20018.js +++ b/src/model/InlineResponse20018.js @@ -17,7 +17,7 @@ import ApplicationEvent from './ApplicationEvent'; /** * The InlineResponse20018 model module. * @module model/InlineResponse20018 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20018 { /** diff --git a/src/model/InlineResponse20019.js b/src/model/InlineResponse20019.js index 2ddfe6ae..41bc2170 100644 --- a/src/model/InlineResponse20019.js +++ b/src/model/InlineResponse20019.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InlineResponse20019 model module. * @module model/InlineResponse20019 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20019 { /** diff --git a/src/model/InlineResponse2002.js b/src/model/InlineResponse2002.js index c082f2fe..42e2318d 100644 --- a/src/model/InlineResponse2002.js +++ b/src/model/InlineResponse2002.js @@ -17,7 +17,7 @@ import Campaign from './Campaign'; /** * The InlineResponse2002 model module. * @module model/InlineResponse2002 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2002 { /** diff --git a/src/model/InlineResponse20020.js b/src/model/InlineResponse20020.js index 5485e7d3..d6fac1a2 100644 --- a/src/model/InlineResponse20020.js +++ b/src/model/InlineResponse20020.js @@ -17,7 +17,7 @@ import Attribute from './Attribute'; /** * The InlineResponse20020 model module. * @module model/InlineResponse20020 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20020 { /** diff --git a/src/model/InlineResponse20021.js b/src/model/InlineResponse20021.js index ece011dd..27abfec4 100644 --- a/src/model/InlineResponse20021.js +++ b/src/model/InlineResponse20021.js @@ -17,7 +17,7 @@ import AccountAdditionalCost from './AccountAdditionalCost'; /** * The InlineResponse20021 model module. * @module model/InlineResponse20021 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20021 { /** diff --git a/src/model/InlineResponse20022.js b/src/model/InlineResponse20022.js index 30702765..40ae885d 100644 --- a/src/model/InlineResponse20022.js +++ b/src/model/InlineResponse20022.js @@ -17,7 +17,7 @@ import Webhook from './Webhook'; /** * The InlineResponse20022 model module. * @module model/InlineResponse20022 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20022 { /** diff --git a/src/model/InlineResponse20023.js b/src/model/InlineResponse20023.js index 350a3c01..6c4a7ad6 100644 --- a/src/model/InlineResponse20023.js +++ b/src/model/InlineResponse20023.js @@ -17,7 +17,7 @@ import WebhookActivationLogEntry from './WebhookActivationLogEntry'; /** * The InlineResponse20023 model module. * @module model/InlineResponse20023 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20023 { /** diff --git a/src/model/InlineResponse20024.js b/src/model/InlineResponse20024.js index 4e0aae65..5e8bf4e7 100644 --- a/src/model/InlineResponse20024.js +++ b/src/model/InlineResponse20024.js @@ -17,7 +17,7 @@ import WebhookLogEntry from './WebhookLogEntry'; /** * The InlineResponse20024 model module. * @module model/InlineResponse20024 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20024 { /** diff --git a/src/model/InlineResponse20025.js b/src/model/InlineResponse20025.js index fe3667b8..b13c683f 100644 --- a/src/model/InlineResponse20025.js +++ b/src/model/InlineResponse20025.js @@ -17,7 +17,7 @@ import EventType from './EventType'; /** * The InlineResponse20025 model module. * @module model/InlineResponse20025 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20025 { /** diff --git a/src/model/InlineResponse20026.js b/src/model/InlineResponse20026.js index 30d27a5e..a107e9f9 100644 --- a/src/model/InlineResponse20026.js +++ b/src/model/InlineResponse20026.js @@ -17,7 +17,7 @@ import User from './User'; /** * The InlineResponse20026 model module. * @module model/InlineResponse20026 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20026 { /** diff --git a/src/model/InlineResponse20027.js b/src/model/InlineResponse20027.js index 4e52df60..6467dd47 100644 --- a/src/model/InlineResponse20027.js +++ b/src/model/InlineResponse20027.js @@ -17,7 +17,7 @@ import Change from './Change'; /** * The InlineResponse20027 model module. * @module model/InlineResponse20027 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20027 { /** diff --git a/src/model/InlineResponse20028.js b/src/model/InlineResponse20028.js index 68c7cd38..68b1b46b 100644 --- a/src/model/InlineResponse20028.js +++ b/src/model/InlineResponse20028.js @@ -17,7 +17,7 @@ import ModelExport from './ModelExport'; /** * The InlineResponse20028 model module. * @module model/InlineResponse20028 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20028 { /** diff --git a/src/model/InlineResponse20029.js b/src/model/InlineResponse20029.js index 019d562c..fbef47b5 100644 --- a/src/model/InlineResponse20029.js +++ b/src/model/InlineResponse20029.js @@ -17,7 +17,7 @@ import ModelImport from './ModelImport'; /** * The InlineResponse20029 model module. * @module model/InlineResponse20029 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20029 { /** diff --git a/src/model/InlineResponse2003.js b/src/model/InlineResponse2003.js index 919cb28d..59a8fe4e 100644 --- a/src/model/InlineResponse2003.js +++ b/src/model/InlineResponse2003.js @@ -17,7 +17,7 @@ import Ruleset from './Ruleset'; /** * The InlineResponse2003 model module. * @module model/InlineResponse2003 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2003 { /** diff --git a/src/model/InlineResponse20030.js b/src/model/InlineResponse20030.js index d7751d41..49694bfa 100644 --- a/src/model/InlineResponse20030.js +++ b/src/model/InlineResponse20030.js @@ -17,7 +17,7 @@ import Role from './Role'; /** * The InlineResponse20030 model module. * @module model/InlineResponse20030 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse20030 { /** diff --git a/src/model/InlineResponse2004.js b/src/model/InlineResponse2004.js index 47fa1cd1..e3e472db 100644 --- a/src/model/InlineResponse2004.js +++ b/src/model/InlineResponse2004.js @@ -17,7 +17,7 @@ import Coupon from './Coupon'; /** * The InlineResponse2004 model module. * @module model/InlineResponse2004 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2004 { /** diff --git a/src/model/InlineResponse2005.js b/src/model/InlineResponse2005.js index 69efbf04..e6016ce6 100644 --- a/src/model/InlineResponse2005.js +++ b/src/model/InlineResponse2005.js @@ -17,7 +17,7 @@ import Coupon from './Coupon'; /** * The InlineResponse2005 model module. * @module model/InlineResponse2005 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2005 { /** diff --git a/src/model/InlineResponse2006.js b/src/model/InlineResponse2006.js index 918f7557..8df8acfe 100644 --- a/src/model/InlineResponse2006.js +++ b/src/model/InlineResponse2006.js @@ -17,7 +17,7 @@ import Referral from './Referral'; /** * The InlineResponse2006 model module. * @module model/InlineResponse2006 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2006 { /** diff --git a/src/model/InlineResponse2007.js b/src/model/InlineResponse2007.js index c2058536..32de9404 100644 --- a/src/model/InlineResponse2007.js +++ b/src/model/InlineResponse2007.js @@ -17,7 +17,7 @@ import Referral from './Referral'; /** * The InlineResponse2007 model module. * @module model/InlineResponse2007 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2007 { /** diff --git a/src/model/InlineResponse2008.js b/src/model/InlineResponse2008.js index cd183815..9d46762a 100644 --- a/src/model/InlineResponse2008.js +++ b/src/model/InlineResponse2008.js @@ -17,7 +17,7 @@ import LoyaltyProgram from './LoyaltyProgram'; /** * The InlineResponse2008 model module. * @module model/InlineResponse2008 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2008 { /** diff --git a/src/model/InlineResponse2009.js b/src/model/InlineResponse2009.js index 0843b8b1..33462d67 100644 --- a/src/model/InlineResponse2009.js +++ b/src/model/InlineResponse2009.js @@ -17,7 +17,7 @@ import AccessLogEntry from './AccessLogEntry'; /** * The InlineResponse2009 model module. * @module model/InlineResponse2009 - * @version 4.1.1 + * @version 4.2.0 */ class InlineResponse2009 { /** diff --git a/src/model/IntegrationEntity.js b/src/model/IntegrationEntity.js index 365a32a5..0f01780c 100644 --- a/src/model/IntegrationEntity.js +++ b/src/model/IntegrationEntity.js @@ -16,13 +16,13 @@ import ApiClient from '../ApiClient'; /** * The IntegrationEntity model module. * @module model/IntegrationEntity - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationEntity { /** * Constructs a new IntegrationEntity. * @alias module:model/IntegrationEntity - * @param integrationId {String} The ID used for this entity in the application system. + * @param integrationId {String} The integration ID for this entity sent to and used in the Talon.One system. * @param created {Date} The exact moment this entity was created. */ constructor(integrationId, created) { @@ -65,7 +65,7 @@ class IntegrationEntity { } /** - * The ID used for this entity in the application system. + * The integration ID for this entity sent to and used in the Talon.One system. * @member {String} integrationId */ IntegrationEntity.prototype['integrationId'] = undefined; diff --git a/src/model/IntegrationEvent.js b/src/model/IntegrationEvent.js index 053eaacf..8147f7b2 100644 --- a/src/model/IntegrationEvent.js +++ b/src/model/IntegrationEvent.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The IntegrationEvent model module. * @module model/IntegrationEvent - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationEvent { /** diff --git a/src/model/IntegrationProfileEntity.js b/src/model/IntegrationProfileEntity.js index 50697460..2cd8ec22 100644 --- a/src/model/IntegrationProfileEntity.js +++ b/src/model/IntegrationProfileEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The IntegrationProfileEntity model module. * @module model/IntegrationProfileEntity - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationProfileEntity { /** diff --git a/src/model/IntegrationRequest.js b/src/model/IntegrationRequest.js index c33a627a..87e3e578 100644 --- a/src/model/IntegrationRequest.js +++ b/src/model/IntegrationRequest.js @@ -17,7 +17,7 @@ import NewCustomerSessionV2 from './NewCustomerSessionV2'; /** * The IntegrationRequest model module. * @module model/IntegrationRequest - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationRequest { /** diff --git a/src/model/IntegrationState.js b/src/model/IntegrationState.js index 4649fbec..02aee8fd 100644 --- a/src/model/IntegrationState.js +++ b/src/model/IntegrationState.js @@ -21,7 +21,7 @@ import Loyalty from './Loyalty'; /** * The IntegrationState model module. * @module model/IntegrationState - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationState { /** diff --git a/src/model/IntegrationStateV2.js b/src/model/IntegrationStateV2.js index db84e8e4..0e3ae59a 100644 --- a/src/model/IntegrationStateV2.js +++ b/src/model/IntegrationStateV2.js @@ -24,7 +24,7 @@ import Referral from './Referral'; /** * The IntegrationStateV2 model module. * @module model/IntegrationStateV2 - * @version 4.1.1 + * @version 4.2.0 */ class IntegrationStateV2 { /** diff --git a/src/model/LedgerEntry.js b/src/model/LedgerEntry.js index a4fdf0c6..ae9b57fb 100644 --- a/src/model/LedgerEntry.js +++ b/src/model/LedgerEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LedgerEntry model module. * @module model/LedgerEntry - * @version 4.1.1 + * @version 4.2.0 */ class LedgerEntry { /** diff --git a/src/model/LibraryAttribute.js b/src/model/LibraryAttribute.js index efc4ff87..09084eed 100644 --- a/src/model/LibraryAttribute.js +++ b/src/model/LibraryAttribute.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LibraryAttribute model module. * @module model/LibraryAttribute - * @version 4.1.1 + * @version 4.2.0 */ class LibraryAttribute { /** diff --git a/src/model/LimitConfig.js b/src/model/LimitConfig.js index c254cedc..4d3bc5fb 100644 --- a/src/model/LimitConfig.js +++ b/src/model/LimitConfig.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LimitConfig model module. * @module model/LimitConfig - * @version 4.1.1 + * @version 4.2.0 */ class LimitConfig { /** diff --git a/src/model/LoginParams.js b/src/model/LoginParams.js index ccd5a866..bb87662a 100644 --- a/src/model/LoginParams.js +++ b/src/model/LoginParams.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoginParams model module. * @module model/LoginParams - * @version 4.1.1 + * @version 4.2.0 */ class LoginParams { /** diff --git a/src/model/Loyalty.js b/src/model/Loyalty.js index 27d1648b..c72f6428 100644 --- a/src/model/Loyalty.js +++ b/src/model/Loyalty.js @@ -17,7 +17,7 @@ import LoyaltyProgramLedgers from './LoyaltyProgramLedgers'; /** * The Loyalty model module. * @module model/Loyalty - * @version 4.1.1 + * @version 4.2.0 */ class Loyalty { /** diff --git a/src/model/LoyaltyLedger.js b/src/model/LoyaltyLedger.js index da85870c..694bafa0 100644 --- a/src/model/LoyaltyLedger.js +++ b/src/model/LoyaltyLedger.js @@ -17,7 +17,7 @@ import LoyaltySubLedger from './LoyaltySubLedger'; /** * The LoyaltyLedger model module. * @module model/LoyaltyLedger - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyLedger { /** diff --git a/src/model/LoyaltyLedgerEntry.js b/src/model/LoyaltyLedgerEntry.js index 4ecb13dc..d7225bfd 100644 --- a/src/model/LoyaltyLedgerEntry.js +++ b/src/model/LoyaltyLedgerEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoyaltyLedgerEntry model module. * @module model/LoyaltyLedgerEntry - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyLedgerEntry { /** @@ -83,6 +83,9 @@ class LoyaltyLedgerEntry { if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); } + if (data.hasOwnProperty('startDate')) { + obj['startDate'] = ApiClient.convertToType(data['startDate'], 'Date'); + } if (data.hasOwnProperty('expiryDate')) { obj['expiryDate'] = ApiClient.convertToType(data['expiryDate'], 'Date'); } @@ -138,6 +141,11 @@ LoyaltyLedgerEntry.prototype['type'] = undefined; */ LoyaltyLedgerEntry.prototype['amount'] = undefined; +/** + * @member {Date} startDate + */ +LoyaltyLedgerEntry.prototype['startDate'] = undefined; + /** * @member {Date} expiryDate */ diff --git a/src/model/LoyaltyMembership.js b/src/model/LoyaltyMembership.js index 1bda13b4..cff4e607 100644 --- a/src/model/LoyaltyMembership.js +++ b/src/model/LoyaltyMembership.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoyaltyMembership model module. * @module model/LoyaltyMembership - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyMembership { /** diff --git a/src/model/LoyaltyPoints.js b/src/model/LoyaltyPoints.js index a2067b72..3fd0b6e1 100644 --- a/src/model/LoyaltyPoints.js +++ b/src/model/LoyaltyPoints.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoyaltyPoints model module. * @module model/LoyaltyPoints - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyPoints { /** @@ -56,8 +56,11 @@ class LoyaltyPoints { if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } - if (data.hasOwnProperty('expiryDuration')) { - obj['expiryDuration'] = ApiClient.convertToType(data['expiryDuration'], 'String'); + if (data.hasOwnProperty('validityDuration')) { + obj['validityDuration'] = ApiClient.convertToType(data['validityDuration'], 'String'); + } + if (data.hasOwnProperty('pendingDuration')) { + obj['pendingDuration'] = ApiClient.convertToType(data['pendingDuration'], 'String'); } if (data.hasOwnProperty('subLedgerID')) { obj['subLedgerID'] = ApiClient.convertToType(data['subLedgerID'], 'String'); @@ -82,10 +85,16 @@ LoyaltyPoints.prototype['points'] = undefined; LoyaltyPoints.prototype['name'] = undefined; /** - * Indicates the duration after which the added loyalty points should expire. The format is a number followed by one letter indicating the unit, like '1h' or '40m' or '30d'. - * @member {String} expiryDuration + * Indicates the duration after which the added loyalty points should expire. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). + * @member {String} validityDuration + */ +LoyaltyPoints.prototype['validityDuration'] = undefined; + +/** + * Indicates the amount of time before the points are considered valid. The format is a number followed by one letter indicating the time unit, like '1h' or '40m' (defined by Go time package). + * @member {String} pendingDuration */ -LoyaltyPoints.prototype['expiryDuration'] = undefined; +LoyaltyPoints.prototype['pendingDuration'] = undefined; /** * This specifies if we are adding loyalty points to the main ledger or a subledger diff --git a/src/model/LoyaltyProgram.js b/src/model/LoyaltyProgram.js index a18a538c..8fd592ca 100644 --- a/src/model/LoyaltyProgram.js +++ b/src/model/LoyaltyProgram.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoyaltyProgram model module. * @module model/LoyaltyProgram - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyProgram { /** @@ -29,12 +29,13 @@ class LoyaltyProgram { * @param title {String} The display title for the Loyalty Program. * @param description {String} Description of our Loyalty Program. * @param subscribedApplications {Array.} A list containing the IDs of all applications that are subscribed to this Loyalty Program. - * @param defaultValidity {String} Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. + * @param defaultValidity {String} Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. + * @param defaultPending {String} Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. * @param allowSubledger {Boolean} Indicates if this program supports subledgers inside the program */ - constructor(id, accountID, name, title, description, subscribedApplications, defaultValidity, allowSubledger) { + constructor(id, accountID, name, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger) { - LoyaltyProgram.initialize(this, id, accountID, name, title, description, subscribedApplications, defaultValidity, allowSubledger); + LoyaltyProgram.initialize(this, id, accountID, name, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger); } /** @@ -42,7 +43,7 @@ class LoyaltyProgram { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, id, accountID, name, title, description, subscribedApplications, defaultValidity, allowSubledger) { + static initialize(obj, id, accountID, name, title, description, subscribedApplications, defaultValidity, defaultPending, allowSubledger) { obj['id'] = id; obj['accountID'] = accountID; obj['name'] = name; @@ -50,6 +51,7 @@ class LoyaltyProgram { obj['description'] = description; obj['subscribedApplications'] = subscribedApplications; obj['defaultValidity'] = defaultValidity; + obj['defaultPending'] = defaultPending; obj['allowSubledger'] = allowSubledger; } @@ -85,6 +87,9 @@ class LoyaltyProgram { if (data.hasOwnProperty('defaultValidity')) { obj['defaultValidity'] = ApiClient.convertToType(data['defaultValidity'], 'String'); } + if (data.hasOwnProperty('defaultPending')) { + obj['defaultPending'] = ApiClient.convertToType(data['defaultPending'], 'String'); + } if (data.hasOwnProperty('allowSubledger')) { obj['allowSubledger'] = ApiClient.convertToType(data['allowSubledger'], 'Boolean'); } @@ -132,11 +137,17 @@ LoyaltyProgram.prototype['description'] = undefined; LoyaltyProgram.prototype['subscribedApplications'] = undefined; /** - * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. + * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. * @member {String} defaultValidity */ LoyaltyProgram.prototype['defaultValidity'] = undefined; +/** + * Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. + * @member {String} defaultPending + */ +LoyaltyProgram.prototype['defaultPending'] = undefined; + /** * Indicates if this program supports subledgers inside the program * @member {Boolean} allowSubledger diff --git a/src/model/LoyaltyProgramBalance.js b/src/model/LoyaltyProgramBalance.js index d6a91f59..7e85d9bc 100644 --- a/src/model/LoyaltyProgramBalance.js +++ b/src/model/LoyaltyProgramBalance.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LoyaltyProgramBalance model module. * @module model/LoyaltyProgramBalance - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyProgramBalance { /** diff --git a/src/model/LoyaltyProgramLedgers.js b/src/model/LoyaltyProgramLedgers.js index 733cc3ce..c5919a4d 100644 --- a/src/model/LoyaltyProgramLedgers.js +++ b/src/model/LoyaltyProgramLedgers.js @@ -17,7 +17,7 @@ import LoyaltyProgramBalance from './LoyaltyProgramBalance'; /** * The LoyaltyProgramLedgers model module. * @module model/LoyaltyProgramLedgers - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltyProgramLedgers { /** diff --git a/src/model/LoyaltyStatistics.js b/src/model/LoyaltyStatistics.js new file mode 100644 index 00000000..8f8e22ff --- /dev/null +++ b/src/model/LoyaltyStatistics.js @@ -0,0 +1,108 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LoyaltyStatistics model module. + * @module model/LoyaltyStatistics + * @version 4.2.0 + */ +class LoyaltyStatistics { + /** + * Constructs a new LoyaltyStatistics. + * + * @alias module:model/LoyaltyStatistics + * @param totalActivePoints {Number} Total of active points for this loyalty program + * @param totalPendingPoints {Number} Total of pending points for this loyalty program + * @param totalSpentPoints {Number} Total of spent points for this loyalty program + * @param totalExpiredPoints {Number} Total of expired points for this loyalty program + */ + constructor(totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints) { + + LoyaltyStatistics.initialize(this, totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints) { + obj['totalActivePoints'] = totalActivePoints; + obj['totalPendingPoints'] = totalPendingPoints; + obj['totalSpentPoints'] = totalSpentPoints; + obj['totalExpiredPoints'] = totalExpiredPoints; + } + + /** + * Constructs a LoyaltyStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyStatistics} obj Optional instance to populate. + * @return {module:model/LoyaltyStatistics} The populated LoyaltyStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyStatistics(); + + if (data.hasOwnProperty('totalActivePoints')) { + obj['totalActivePoints'] = ApiClient.convertToType(data['totalActivePoints'], 'Number'); + } + if (data.hasOwnProperty('totalPendingPoints')) { + obj['totalPendingPoints'] = ApiClient.convertToType(data['totalPendingPoints'], 'Number'); + } + if (data.hasOwnProperty('totalSpentPoints')) { + obj['totalSpentPoints'] = ApiClient.convertToType(data['totalSpentPoints'], 'Number'); + } + if (data.hasOwnProperty('totalExpiredPoints')) { + obj['totalExpiredPoints'] = ApiClient.convertToType(data['totalExpiredPoints'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Total of active points for this loyalty program + * @member {Number} totalActivePoints + */ +LoyaltyStatistics.prototype['totalActivePoints'] = undefined; + +/** + * Total of pending points for this loyalty program + * @member {Number} totalPendingPoints + */ +LoyaltyStatistics.prototype['totalPendingPoints'] = undefined; + +/** + * Total of spent points for this loyalty program + * @member {Number} totalSpentPoints + */ +LoyaltyStatistics.prototype['totalSpentPoints'] = undefined; + +/** + * Total of expired points for this loyalty program + * @member {Number} totalExpiredPoints + */ +LoyaltyStatistics.prototype['totalExpiredPoints'] = undefined; + + + + + + +export default LoyaltyStatistics; + diff --git a/src/model/LoyaltySubLedger.js b/src/model/LoyaltySubLedger.js index ca1f1252..cf7c8fee 100644 --- a/src/model/LoyaltySubLedger.js +++ b/src/model/LoyaltySubLedger.js @@ -17,18 +17,22 @@ import LoyaltyLedgerEntry from './LoyaltyLedgerEntry'; /** * The LoyaltySubLedger model module. * @module model/LoyaltySubLedger - * @version 4.1.1 + * @version 4.2.0 */ class LoyaltySubLedger { /** * Constructs a new LoyaltySubLedger. * Ledger of Balance in Loyalty Program for a Customer * @alias module:model/LoyaltySubLedger - * @param total {Number} + * @param total {Number} ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance + * @param totalActivePoints {Number} Total amount of currently active and available points in the customer's balance + * @param totalPendingPoints {Number} Total amount of pending points, which are not active yet but will become active in the future + * @param totalSpentPoints {Number} Total amount of points already spent by this customer + * @param totalExpiredPoints {Number} Total amount of points, that expired without ever being spent */ - constructor(total) { + constructor(total, totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints) { - LoyaltySubLedger.initialize(this, total); + LoyaltySubLedger.initialize(this, total, totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints); } /** @@ -36,8 +40,12 @@ class LoyaltySubLedger { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, total) { + static initialize(obj, total, totalActivePoints, totalPendingPoints, totalSpentPoints, totalExpiredPoints) { obj['total'] = total; + obj['totalActivePoints'] = totalActivePoints; + obj['totalPendingPoints'] = totalPendingPoints; + obj['totalSpentPoints'] = totalSpentPoints; + obj['totalExpiredPoints'] = totalExpiredPoints; } /** @@ -54,12 +62,33 @@ class LoyaltySubLedger { if (data.hasOwnProperty('total')) { obj['total'] = ApiClient.convertToType(data['total'], 'Number'); } + if (data.hasOwnProperty('totalActivePoints')) { + obj['totalActivePoints'] = ApiClient.convertToType(data['totalActivePoints'], 'Number'); + } + if (data.hasOwnProperty('totalPendingPoints')) { + obj['totalPendingPoints'] = ApiClient.convertToType(data['totalPendingPoints'], 'Number'); + } + if (data.hasOwnProperty('totalSpentPoints')) { + obj['totalSpentPoints'] = ApiClient.convertToType(data['totalSpentPoints'], 'Number'); + } + if (data.hasOwnProperty('totalExpiredPoints')) { + obj['totalExpiredPoints'] = ApiClient.convertToType(data['totalExpiredPoints'], 'Number'); + } if (data.hasOwnProperty('transactions')) { obj['transactions'] = ApiClient.convertToType(data['transactions'], [LoyaltyLedgerEntry]); } if (data.hasOwnProperty('expiringPoints')) { obj['expiringPoints'] = ApiClient.convertToType(data['expiringPoints'], [LoyaltyLedgerEntry]); } + if (data.hasOwnProperty('activePoints')) { + obj['activePoints'] = ApiClient.convertToType(data['activePoints'], [LoyaltyLedgerEntry]); + } + if (data.hasOwnProperty('pendingPoints')) { + obj['pendingPoints'] = ApiClient.convertToType(data['pendingPoints'], [LoyaltyLedgerEntry]); + } + if (data.hasOwnProperty('expiredPoints')) { + obj['expiredPoints'] = ApiClient.convertToType(data['expiredPoints'], [LoyaltyLedgerEntry]); + } } return obj; } @@ -68,22 +97,65 @@ class LoyaltySubLedger { } /** + * ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance * @member {Number} total */ LoyaltySubLedger.prototype['total'] = undefined; /** - * Transactions contains a list of all events that have happened such as additions, subtractions and expiries + * Total amount of currently active and available points in the customer's balance + * @member {Number} totalActivePoints + */ +LoyaltySubLedger.prototype['totalActivePoints'] = undefined; + +/** + * Total amount of pending points, which are not active yet but will become active in the future + * @member {Number} totalPendingPoints + */ +LoyaltySubLedger.prototype['totalPendingPoints'] = undefined; + +/** + * Total amount of points already spent by this customer + * @member {Number} totalSpentPoints + */ +LoyaltySubLedger.prototype['totalSpentPoints'] = undefined; + +/** + * Total amount of points, that expired without ever being spent + * @member {Number} totalExpiredPoints + */ +LoyaltySubLedger.prototype['totalExpiredPoints'] = undefined; + +/** + * List of all events that have happened such as additions, subtractions and expiries * @member {Array.} transactions */ LoyaltySubLedger.prototype['transactions'] = undefined; /** - * ExpiringPoints contains a list of all points that will expiry and when + * List of all points that will expire * @member {Array.} expiringPoints */ LoyaltySubLedger.prototype['expiringPoints'] = undefined; +/** + * List of all currently active points + * @member {Array.} activePoints + */ +LoyaltySubLedger.prototype['activePoints'] = undefined; + +/** + * List of all points pending activation + * @member {Array.} pendingPoints + */ +LoyaltySubLedger.prototype['pendingPoints'] = undefined; + +/** + * List of expired points + * @member {Array.} expiredPoints + */ +LoyaltySubLedger.prototype['expiredPoints'] = undefined; + diff --git a/src/model/ManagerConfig.js b/src/model/ManagerConfig.js index c50c56ac..e4bc3c69 100644 --- a/src/model/ManagerConfig.js +++ b/src/model/ManagerConfig.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ManagerConfig model module. * @module model/ManagerConfig - * @version 4.1.1 + * @version 4.2.0 */ class ManagerConfig { /** diff --git a/src/model/Meta.js b/src/model/Meta.js index 10189dd6..d8b2320d 100644 --- a/src/model/Meta.js +++ b/src/model/Meta.js @@ -18,7 +18,7 @@ import ReferralRejectionReason from './ReferralRejectionReason'; /** * The Meta model module. * @module model/Meta - * @version 4.1.1 + * @version 4.2.0 */ class Meta { /** @@ -94,6 +94,7 @@ Meta.prototype['couponRejectionReason'] = undefined; Meta.prototype['referralRejectionReason'] = undefined; /** + * Contains warnings about possible misuse. * @member {Object} warnings */ Meta.prototype['warnings'] = undefined; diff --git a/src/model/ModelExport.js b/src/model/ModelExport.js index 9b1ea607..c3b61a1f 100644 --- a/src/model/ModelExport.js +++ b/src/model/ModelExport.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ModelExport model module. * @module model/ModelExport - * @version 4.1.1 + * @version 4.2.0 */ class ModelExport { /** diff --git a/src/model/ModelImport.js b/src/model/ModelImport.js index ae4af7c6..675cdb1c 100644 --- a/src/model/ModelImport.js +++ b/src/model/ModelImport.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ModelImport model module. * @module model/ModelImport - * @version 4.1.1 + * @version 4.2.0 */ class ModelImport { /** diff --git a/src/model/MultiApplicationEntity.js b/src/model/MultiApplicationEntity.js index 1b1c1953..d57b7964 100644 --- a/src/model/MultiApplicationEntity.js +++ b/src/model/MultiApplicationEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MultiApplicationEntity model module. * @module model/MultiApplicationEntity - * @version 4.1.1 + * @version 4.2.0 */ class MultiApplicationEntity { /** diff --git a/src/model/MultipleCustomerProfileIntegrationRequest.js b/src/model/MultipleCustomerProfileIntegrationRequest.js new file mode 100644 index 00000000..ca1c9a52 --- /dev/null +++ b/src/model/MultipleCustomerProfileIntegrationRequest.js @@ -0,0 +1,72 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MultipleCustomerProfileIntegrationRequestItem from './MultipleCustomerProfileIntegrationRequestItem'; + +/** + * The MultipleCustomerProfileIntegrationRequest model module. + * @module model/MultipleCustomerProfileIntegrationRequest + * @version 4.2.0 + */ +class MultipleCustomerProfileIntegrationRequest { + /** + * Constructs a new MultipleCustomerProfileIntegrationRequest. + * @alias module:model/MultipleCustomerProfileIntegrationRequest + */ + constructor() { + + MultipleCustomerProfileIntegrationRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MultipleCustomerProfileIntegrationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MultipleCustomerProfileIntegrationRequest} obj Optional instance to populate. + * @return {module:model/MultipleCustomerProfileIntegrationRequest} The populated MultipleCustomerProfileIntegrationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MultipleCustomerProfileIntegrationRequest(); + + if (data.hasOwnProperty('customerProfiles')) { + obj['customerProfiles'] = ApiClient.convertToType(data['customerProfiles'], [MultipleCustomerProfileIntegrationRequestItem]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} customerProfiles + */ +MultipleCustomerProfileIntegrationRequest.prototype['customerProfiles'] = undefined; + + + + + + +export default MultipleCustomerProfileIntegrationRequest; + diff --git a/src/model/MultipleCustomerProfileIntegrationRequestItem.js b/src/model/MultipleCustomerProfileIntegrationRequestItem.js new file mode 100644 index 00000000..576c8ad5 --- /dev/null +++ b/src/model/MultipleCustomerProfileIntegrationRequestItem.js @@ -0,0 +1,84 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MultipleCustomerProfileIntegrationRequestItem model module. + * @module model/MultipleCustomerProfileIntegrationRequestItem + * @version 4.2.0 + */ +class MultipleCustomerProfileIntegrationRequestItem { + /** + * Constructs a new MultipleCustomerProfileIntegrationRequestItem. + * + * @alias module:model/MultipleCustomerProfileIntegrationRequestItem + * @param integrationId {String} The custom identifier for this profile, must be unique within the account. + */ + constructor(integrationId) { + + MultipleCustomerProfileIntegrationRequestItem.initialize(this, integrationId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, integrationId) { + obj['integrationId'] = integrationId; + } + + /** + * Constructs a MultipleCustomerProfileIntegrationRequestItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MultipleCustomerProfileIntegrationRequestItem} obj Optional instance to populate. + * @return {module:model/MultipleCustomerProfileIntegrationRequestItem} The populated MultipleCustomerProfileIntegrationRequestItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MultipleCustomerProfileIntegrationRequestItem(); + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = ApiClient.convertToType(data['attributes'], Object); + } + if (data.hasOwnProperty('integrationId')) { + obj['integrationId'] = ApiClient.convertToType(data['integrationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Arbitrary properties associated with this item + * @member {Object} attributes + */ +MultipleCustomerProfileIntegrationRequestItem.prototype['attributes'] = undefined; + +/** + * The custom identifier for this profile, must be unique within the account. + * @member {String} integrationId + */ +MultipleCustomerProfileIntegrationRequestItem.prototype['integrationId'] = undefined; + + + + + + +export default MultipleCustomerProfileIntegrationRequestItem; + diff --git a/src/model/MultipleCustomerProfileIntegrationResponseV2.js b/src/model/MultipleCustomerProfileIntegrationResponseV2.js new file mode 100644 index 00000000..29b817ae --- /dev/null +++ b/src/model/MultipleCustomerProfileIntegrationResponseV2.js @@ -0,0 +1,72 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import IntegrationStateV2 from './IntegrationStateV2'; + +/** + * The MultipleCustomerProfileIntegrationResponseV2 model module. + * @module model/MultipleCustomerProfileIntegrationResponseV2 + * @version 4.2.0 + */ +class MultipleCustomerProfileIntegrationResponseV2 { + /** + * Constructs a new MultipleCustomerProfileIntegrationResponseV2. + * @alias module:model/MultipleCustomerProfileIntegrationResponseV2 + */ + constructor() { + + MultipleCustomerProfileIntegrationResponseV2.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MultipleCustomerProfileIntegrationResponseV2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MultipleCustomerProfileIntegrationResponseV2} obj Optional instance to populate. + * @return {module:model/MultipleCustomerProfileIntegrationResponseV2} The populated MultipleCustomerProfileIntegrationResponseV2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MultipleCustomerProfileIntegrationResponseV2(); + + if (data.hasOwnProperty('integrationStates')) { + obj['integrationStates'] = ApiClient.convertToType(data['integrationStates'], [IntegrationStateV2]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} integrationStates + */ +MultipleCustomerProfileIntegrationResponseV2.prototype['integrationStates'] = undefined; + + + + + + +export default MultipleCustomerProfileIntegrationResponseV2; + diff --git a/src/model/MutableEntity.js b/src/model/MutableEntity.js index 4a55fac1..eb7f2175 100644 --- a/src/model/MutableEntity.js +++ b/src/model/MutableEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MutableEntity model module. * @module model/MutableEntity - * @version 4.1.1 + * @version 4.2.0 */ class MutableEntity { /** diff --git a/src/model/NewAccount.js b/src/model/NewAccount.js index 3365647b..e835724e 100644 --- a/src/model/NewAccount.js +++ b/src/model/NewAccount.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewAccount model module. * @module model/NewAccount - * @version 4.1.1 + * @version 4.2.0 */ class NewAccount { /** diff --git a/src/model/NewAccountSignUp.js b/src/model/NewAccountSignUp.js index dbfcb1ae..df13189b 100644 --- a/src/model/NewAccountSignUp.js +++ b/src/model/NewAccountSignUp.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewAccountSignUp model module. * @module model/NewAccountSignUp - * @version 4.1.1 + * @version 4.2.0 */ class NewAccountSignUp { /** diff --git a/src/model/NewAdditionalCost.js b/src/model/NewAdditionalCost.js index 4925386f..6478fec1 100644 --- a/src/model/NewAdditionalCost.js +++ b/src/model/NewAdditionalCost.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewAdditionalCost model module. * @module model/NewAdditionalCost - * @version 4.1.1 + * @version 4.2.0 */ class NewAdditionalCost { /** diff --git a/src/model/NewApplication.js b/src/model/NewApplication.js index 23b8cfd6..f2906a80 100644 --- a/src/model/NewApplication.js +++ b/src/model/NewApplication.js @@ -18,7 +18,7 @@ import LimitConfig from './LimitConfig'; /** * The NewApplication model module. * @module model/NewApplication - * @version 4.1.1 + * @version 4.2.0 */ class NewApplication { /** @@ -80,9 +80,21 @@ class NewApplication { if (data.hasOwnProperty('campaignPriority')) { obj['campaignPriority'] = ApiClient.convertToType(data['campaignPriority'], 'String'); } + if (data.hasOwnProperty('exclusiveCampaignsStrategy')) { + obj['exclusiveCampaignsStrategy'] = ApiClient.convertToType(data['exclusiveCampaignsStrategy'], 'String'); + } + if (data.hasOwnProperty('enableCascadingDiscounts')) { + obj['enableCascadingDiscounts'] = ApiClient.convertToType(data['enableCascadingDiscounts'], 'Boolean'); + } + if (data.hasOwnProperty('enableFlattenedCartItems')) { + obj['enableFlattenedCartItems'] = ApiClient.convertToType(data['enableFlattenedCartItems'], 'Boolean'); + } if (data.hasOwnProperty('attributesSettings')) { obj['attributesSettings'] = AttributesSettings.constructFromObject(data['attributesSettings']); } + if (data.hasOwnProperty('sandbox')) { + obj['sandbox'] = ApiClient.convertToType(data['sandbox'], 'Boolean'); + } if (data.hasOwnProperty('key')) { obj['key'] = ApiClient.convertToType(data['key'], 'String'); } @@ -136,16 +148,40 @@ NewApplication.prototype['attributes'] = undefined; NewApplication.prototype['limits'] = undefined; /** - * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) + * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" * @member {module:model/NewApplication.CampaignPriorityEnum} campaignPriority */ NewApplication.prototype['campaignPriority'] = undefined; +/** + * The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" + * @member {module:model/NewApplication.ExclusiveCampaignsStrategyEnum} exclusiveCampaignsStrategy + */ +NewApplication.prototype['exclusiveCampaignsStrategy'] = undefined; + +/** + * Flag indicating if discounts should cascade for this application + * @member {Boolean} enableCascadingDiscounts + */ +NewApplication.prototype['enableCascadingDiscounts'] = undefined; + +/** + * Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * @member {Boolean} enableFlattenedCartItems + */ +NewApplication.prototype['enableFlattenedCartItems'] = undefined; + /** * @member {module:model/AttributesSettings} attributesSettings */ NewApplication.prototype['attributesSettings'] = undefined; +/** + * Flag indicating if this is a live or sandbox application + * @member {Boolean} sandbox + */ +NewApplication.prototype['sandbox'] = undefined; + /** * Hex key for HMAC-signing API calls as coming from this application (16 hex digits) * @member {String} key @@ -210,6 +246,33 @@ NewApplication['CampaignPriorityEnum'] = { }; +/** + * Allowed values for the exclusiveCampaignsStrategy property. + * @enum {String} + * @readonly + */ +NewApplication['ExclusiveCampaignsStrategyEnum'] = { + + /** + * value: "listOrder" + * @const + */ + "listOrder": "listOrder", + + /** + * value: "lowestDiscount" + * @const + */ + "lowestDiscount": "lowestDiscount", + + /** + * value: "highestDiscount" + * @const + */ + "highestDiscount": "highestDiscount" +}; + + export default NewApplication; diff --git a/src/model/NewApplicationAPIKey.js b/src/model/NewApplicationAPIKey.js index d8115b7a..ec582b64 100644 --- a/src/model/NewApplicationAPIKey.js +++ b/src/model/NewApplicationAPIKey.js @@ -16,25 +16,25 @@ import ApiClient from '../ApiClient'; /** * The NewApplicationAPIKey model module. * @module model/NewApplicationAPIKey - * @version 4.1.1 + * @version 4.2.0 */ class NewApplicationAPIKey { /** * Constructs a new NewApplicationAPIKey. * * @alias module:model/NewApplicationAPIKey + * @param title {String} Title for API Key + * @param expires {Date} The date the API key expired * @param id {Number} ID of the API Key * @param createdBy {Number} ID of user who created - * @param title {String} Title for API Key * @param accountID {Number} ID of account the key is used for * @param applicationID {Number} ID of application the key is used for * @param created {Date} The date the API key was created - * @param expires {Date} The date the API key expired * @param key {String} Raw API Key */ - constructor(id, createdBy, title, accountID, applicationID, created, expires, key) { + constructor(title, expires, id, createdBy, accountID, applicationID, created, key) { - NewApplicationAPIKey.initialize(this, id, createdBy, title, accountID, applicationID, created, expires, key); + NewApplicationAPIKey.initialize(this, title, expires, id, createdBy, accountID, applicationID, created, key); } /** @@ -42,14 +42,14 @@ class NewApplicationAPIKey { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, id, createdBy, title, accountID, applicationID, created, expires, key) { + static initialize(obj, title, expires, id, createdBy, accountID, applicationID, created, key) { + obj['title'] = title; + obj['expires'] = expires; obj['id'] = id; obj['createdBy'] = createdBy; - obj['title'] = title; obj['accountID'] = accountID; obj['applicationID'] = applicationID; obj['created'] = created; - obj['expires'] = expires; obj['key'] = key; } @@ -64,15 +64,21 @@ class NewApplicationAPIKey { if (data) { obj = obj || new NewApplicationAPIKey(); + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('expires')) { + obj['expires'] = ApiClient.convertToType(data['expires'], 'Date'); + } + if (data.hasOwnProperty('platform')) { + obj['platform'] = ApiClient.convertToType(data['platform'], 'String'); + } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('createdBy')) { obj['createdBy'] = ApiClient.convertToType(data['createdBy'], 'Number'); } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } if (data.hasOwnProperty('accountID')) { obj['accountID'] = ApiClient.convertToType(data['accountID'], 'Number'); } @@ -82,9 +88,6 @@ class NewApplicationAPIKey { if (data.hasOwnProperty('created')) { obj['created'] = ApiClient.convertToType(data['created'], 'Date'); } - if (data.hasOwnProperty('expires')) { - obj['expires'] = ApiClient.convertToType(data['expires'], 'Date'); - } if (data.hasOwnProperty('key')) { obj['key'] = ApiClient.convertToType(data['key'], 'String'); } @@ -95,6 +98,24 @@ class NewApplicationAPIKey { } +/** + * Title for API Key + * @member {String} title + */ +NewApplicationAPIKey.prototype['title'] = undefined; + +/** + * The date the API key expired + * @member {Date} expires + */ +NewApplicationAPIKey.prototype['expires'] = undefined; + +/** + * Platform the API key is valid for. + * @member {module:model/NewApplicationAPIKey.PlatformEnum} platform + */ +NewApplicationAPIKey.prototype['platform'] = undefined; + /** * ID of the API Key * @member {Number} id @@ -107,12 +128,6 @@ NewApplicationAPIKey.prototype['id'] = undefined; */ NewApplicationAPIKey.prototype['createdBy'] = undefined; -/** - * Title for API Key - * @member {String} title - */ -NewApplicationAPIKey.prototype['title'] = undefined; - /** * ID of account the key is used for * @member {Number} accountID @@ -131,12 +146,6 @@ NewApplicationAPIKey.prototype['applicationID'] = undefined; */ NewApplicationAPIKey.prototype['created'] = undefined; -/** - * The date the API key expired - * @member {Date} expires - */ -NewApplicationAPIKey.prototype['expires'] = undefined; - /** * Raw API Key * @member {String} key @@ -147,6 +156,39 @@ NewApplicationAPIKey.prototype['key'] = undefined; +/** + * Allowed values for the platform property. + * @enum {String} + * @readonly + */ +NewApplicationAPIKey['PlatformEnum'] = { + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "segment" + * @const + */ + "segment": "segment", + + /** + * value: "braze" + * @const + */ + "braze": "braze", + + /** + * value: "mparticle" + * @const + */ + "mparticle": "mparticle" +}; + + export default NewApplicationAPIKey; diff --git a/src/model/NewAttribute.js b/src/model/NewAttribute.js index 4b2a80b3..250a1175 100644 --- a/src/model/NewAttribute.js +++ b/src/model/NewAttribute.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewAttribute model module. * @module model/NewAttribute - * @version 4.1.1 + * @version 4.2.0 */ class NewAttribute { /** diff --git a/src/model/NewAudience.js b/src/model/NewAudience.js new file mode 100644 index 00000000..5cec8db5 --- /dev/null +++ b/src/model/NewAudience.js @@ -0,0 +1,111 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NewAudience model module. + * @module model/NewAudience + * @version 4.2.0 + */ +class NewAudience { + /** + * Constructs a new NewAudience. + * @alias module:model/NewAudience + * @param name {String} The human-friendly display name for this Audience. + * @param integration {module:model/NewAudience.IntegrationEnum} Integration that this audience was created in. + * @param integrationId {String} The ID of this Audience in the third-party integration + */ + constructor(name, integration, integrationId) { + + NewAudience.initialize(this, name, integration, integrationId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name, integration, integrationId) { + obj['name'] = name; + obj['integration'] = integration; + obj['integrationId'] = integrationId; + } + + /** + * Constructs a NewAudience from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NewAudience} obj Optional instance to populate. + * @return {module:model/NewAudience} The populated NewAudience instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NewAudience(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('integration')) { + obj['integration'] = ApiClient.convertToType(data['integration'], 'String'); + } + if (data.hasOwnProperty('integrationId')) { + obj['integrationId'] = ApiClient.convertToType(data['integrationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * The human-friendly display name for this Audience. + * @member {String} name + */ +NewAudience.prototype['name'] = undefined; + +/** + * Integration that this audience was created in. + * @member {module:model/NewAudience.IntegrationEnum} integration + */ +NewAudience.prototype['integration'] = undefined; + +/** + * The ID of this Audience in the third-party integration + * @member {String} integrationId + */ +NewAudience.prototype['integrationId'] = undefined; + + + + + +/** + * Allowed values for the integration property. + * @enum {String} + * @readonly + */ +NewAudience['IntegrationEnum'] = { + + /** + * value: "mparticle" + * @const + */ + "mparticle": "mparticle" +}; + + + +export default NewAudience; + diff --git a/src/model/NewCampaign.js b/src/model/NewCampaign.js index c116c676..976bf0a8 100644 --- a/src/model/NewCampaign.js +++ b/src/model/NewCampaign.js @@ -18,7 +18,7 @@ import LimitConfig from './LimitConfig'; /** * The NewCampaign model module. * @module model/NewCampaign - * @version 4.1.1 + * @version 4.2.0 */ class NewCampaign { /** @@ -95,6 +95,9 @@ class NewCampaign { if (data.hasOwnProperty('limits')) { obj['limits'] = ApiClient.convertToType(data['limits'], [LimitConfig]); } + if (data.hasOwnProperty('campaignGroups')) { + obj['campaignGroups'] = ApiClient.convertToType(data['campaignGroups'], ['Number']); + } } return obj; } @@ -173,6 +176,12 @@ NewCampaign.prototype['referralSettings'] = undefined; */ NewCampaign.prototype['limits'] = undefined; +/** + * The IDs of the campaign groups that own this entity. + * @member {Array.} campaignGroups + */ +NewCampaign.prototype['campaignGroups'] = undefined; + diff --git a/src/model/NewCampaignGroup.js b/src/model/NewCampaignGroup.js new file mode 100644 index 00000000..83d61c1f --- /dev/null +++ b/src/model/NewCampaignGroup.js @@ -0,0 +1,101 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NewCampaignGroup model module. + * @module model/NewCampaignGroup + * @version 4.2.0 + */ +class NewCampaignGroup { + /** + * Constructs a new NewCampaignGroup. + * @alias module:model/NewCampaignGroup + * @param name {String} The name of this campaign group. + */ + constructor(name) { + + NewCampaignGroup.initialize(this, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a NewCampaignGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NewCampaignGroup} obj Optional instance to populate. + * @return {module:model/NewCampaignGroup} The populated NewCampaignGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NewCampaignGroup(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('subscribedApplicationsIds')) { + obj['subscribedApplicationsIds'] = ApiClient.convertToType(data['subscribedApplicationsIds'], ['Number']); + } + if (data.hasOwnProperty('campaignIds')) { + obj['campaignIds'] = ApiClient.convertToType(data['campaignIds'], ['Number']); + } + } + return obj; + } + + +} + +/** + * The name of this campaign group. + * @member {String} name + */ +NewCampaignGroup.prototype['name'] = undefined; + +/** + * A longer description of the campaign group. + * @member {String} description + */ +NewCampaignGroup.prototype['description'] = undefined; + +/** + * A list of the IDs of the applications that this campaign group is enabled for + * @member {Array.} subscribedApplicationsIds + */ +NewCampaignGroup.prototype['subscribedApplicationsIds'] = undefined; + +/** + * A list of the IDs of the campaigns that this campaign group owns + * @member {Array.} campaignIds + */ +NewCampaignGroup.prototype['campaignIds'] = undefined; + + + + + + +export default NewCampaignGroup; + diff --git a/src/model/NewCampaignSet.js b/src/model/NewCampaignSet.js index 4df39107..54bbb3d3 100644 --- a/src/model/NewCampaignSet.js +++ b/src/model/NewCampaignSet.js @@ -17,7 +17,7 @@ import CampaignSetBranchNode from './CampaignSetBranchNode'; /** * The NewCampaignSet model module. * @module model/NewCampaignSet - * @version 4.1.1 + * @version 4.2.0 */ class NewCampaignSet { /** diff --git a/src/model/NewCoupons.js b/src/model/NewCoupons.js index 338a0c63..78d1cdff 100644 --- a/src/model/NewCoupons.js +++ b/src/model/NewCoupons.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewCoupons model module. * @module model/NewCoupons - * @version 4.1.1 + * @version 4.2.0 */ class NewCoupons { /** diff --git a/src/model/NewCustomerProfile.js b/src/model/NewCustomerProfile.js index c599a903..ca1a70ff 100644 --- a/src/model/NewCustomerProfile.js +++ b/src/model/NewCustomerProfile.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewCustomerProfile model module. * @module model/NewCustomerProfile - * @version 4.1.1 + * @version 4.2.0 */ class NewCustomerProfile { /** diff --git a/src/model/NewCustomerSession.js b/src/model/NewCustomerSession.js index dc107499..b89d57a6 100644 --- a/src/model/NewCustomerSession.js +++ b/src/model/NewCustomerSession.js @@ -17,7 +17,7 @@ import CartItem from './CartItem'; /** * The NewCustomerSession model module. * @module model/NewCustomerSession - * @version 4.1.1 + * @version 4.2.0 */ class NewCustomerSession { /** diff --git a/src/model/NewCustomerSessionV2.js b/src/model/NewCustomerSessionV2.js index 5036c8bb..368276d4 100644 --- a/src/model/NewCustomerSessionV2.js +++ b/src/model/NewCustomerSessionV2.js @@ -18,7 +18,7 @@ import CartItem from './CartItem'; /** * The NewCustomerSessionV2 model module. * @module model/NewCustomerSessionV2 - * @version 4.1.1 + * @version 4.2.0 */ class NewCustomerSessionV2 { /** diff --git a/src/model/NewEvent.js b/src/model/NewEvent.js index 8d721f15..e778aa85 100644 --- a/src/model/NewEvent.js +++ b/src/model/NewEvent.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewEvent model module. * @module model/NewEvent - * @version 4.1.1 + * @version 4.2.0 */ class NewEvent { /** diff --git a/src/model/NewEventType.js b/src/model/NewEventType.js index 894a498f..3427295d 100644 --- a/src/model/NewEventType.js +++ b/src/model/NewEventType.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewEventType model module. * @module model/NewEventType - * @version 4.1.1 + * @version 4.2.0 */ class NewEventType { /** diff --git a/src/model/NewFeatureFlags.js b/src/model/NewFeatureFlags.js index 4f98797e..95ed39f5 100644 --- a/src/model/NewFeatureFlags.js +++ b/src/model/NewFeatureFlags.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewFeatureFlags model module. * @module model/NewFeatureFlags - * @version 4.1.1 + * @version 4.2.0 */ class NewFeatureFlags { /** diff --git a/src/model/NewImport.js b/src/model/NewImport.js index 545066d8..d738c679 100644 --- a/src/model/NewImport.js +++ b/src/model/NewImport.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewImport model module. * @module model/NewImport - * @version 4.1.1 + * @version 4.2.0 */ class NewImport { /** diff --git a/src/model/NewInvitation.js b/src/model/NewInvitation.js index 33723f76..e889e8a5 100644 --- a/src/model/NewInvitation.js +++ b/src/model/NewInvitation.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewInvitation model module. * @module model/NewInvitation - * @version 4.1.1 + * @version 4.2.0 */ class NewInvitation { /** diff --git a/src/model/NewInviteEmail.js b/src/model/NewInviteEmail.js index 33fe871f..50af0dad 100644 --- a/src/model/NewInviteEmail.js +++ b/src/model/NewInviteEmail.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewInviteEmail model module. * @module model/NewInviteEmail - * @version 4.1.1 + * @version 4.2.0 */ class NewInviteEmail { /** diff --git a/src/model/NewLoyaltyProgram.js b/src/model/NewLoyaltyProgram.js index 07ccdd10..f308be69 100644 --- a/src/model/NewLoyaltyProgram.js +++ b/src/model/NewLoyaltyProgram.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewLoyaltyProgram model module. * @module model/NewLoyaltyProgram - * @version 4.1.1 + * @version 4.2.0 */ class NewLoyaltyProgram { /** @@ -25,12 +25,13 @@ class NewLoyaltyProgram { * @alias module:model/NewLoyaltyProgram * @param name {String} The internal name for the Loyalty Program. This is an immutable value. * @param title {String} The display title for the Loyalty Program. - * @param defaultValidity {String} Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. + * @param defaultValidity {String} Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. + * @param defaultPending {String} Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. * @param allowSubledger {Boolean} Indicates if this program supports subledgers inside the program */ - constructor(name, title, defaultValidity, allowSubledger) { + constructor(name, title, defaultValidity, defaultPending, allowSubledger) { - NewLoyaltyProgram.initialize(this, name, title, defaultValidity, allowSubledger); + NewLoyaltyProgram.initialize(this, name, title, defaultValidity, defaultPending, allowSubledger); } /** @@ -38,10 +39,11 @@ class NewLoyaltyProgram { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, name, title, defaultValidity, allowSubledger) { + static initialize(obj, name, title, defaultValidity, defaultPending, allowSubledger) { obj['name'] = name; obj['title'] = title; obj['defaultValidity'] = defaultValidity; + obj['defaultPending'] = defaultPending; obj['allowSubledger'] = allowSubledger; } @@ -71,6 +73,9 @@ class NewLoyaltyProgram { if (data.hasOwnProperty('defaultValidity')) { obj['defaultValidity'] = ApiClient.convertToType(data['defaultValidity'], 'String'); } + if (data.hasOwnProperty('defaultPending')) { + obj['defaultPending'] = ApiClient.convertToType(data['defaultPending'], 'String'); + } if (data.hasOwnProperty('allowSubledger')) { obj['allowSubledger'] = ApiClient.convertToType(data['allowSubledger'], 'Boolean'); } @@ -106,11 +111,17 @@ NewLoyaltyProgram.prototype['description'] = undefined; NewLoyaltyProgram.prototype['subscribedApplications'] = undefined; /** - * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. + * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. * @member {String} defaultValidity */ NewLoyaltyProgram.prototype['defaultValidity'] = undefined; +/** + * Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. + * @member {String} defaultPending + */ +NewLoyaltyProgram.prototype['defaultPending'] = undefined; + /** * Indicates if this program supports subledgers inside the program * @member {Boolean} allowSubledger diff --git a/src/model/NewPassword.js b/src/model/NewPassword.js index a8e75be7..0b6e38db 100644 --- a/src/model/NewPassword.js +++ b/src/model/NewPassword.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewPassword model module. * @module model/NewPassword - * @version 4.1.1 + * @version 4.2.0 */ class NewPassword { /** diff --git a/src/model/NewPasswordEmail.js b/src/model/NewPasswordEmail.js index 4600a52c..980468be 100644 --- a/src/model/NewPasswordEmail.js +++ b/src/model/NewPasswordEmail.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewPasswordEmail model module. * @module model/NewPasswordEmail - * @version 4.1.1 + * @version 4.2.0 */ class NewPasswordEmail { /** diff --git a/src/model/NewReferral.js b/src/model/NewReferral.js index 4ef736dd..696aab83 100644 --- a/src/model/NewReferral.js +++ b/src/model/NewReferral.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewReferral model module. * @module model/NewReferral - * @version 4.1.1 + * @version 4.2.0 */ class NewReferral { /** diff --git a/src/model/NewRole.js b/src/model/NewRole.js index cc2c3f7b..3d5f196a 100644 --- a/src/model/NewRole.js +++ b/src/model/NewRole.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewRole model module. * @module model/NewRole - * @version 4.1.1 + * @version 4.2.0 */ class NewRole { /** diff --git a/src/model/NewRuleset.js b/src/model/NewRuleset.js index 6939cff7..88673396 100644 --- a/src/model/NewRuleset.js +++ b/src/model/NewRuleset.js @@ -18,7 +18,7 @@ import Rule from './Rule'; /** * The NewRuleset model module. * @module model/NewRuleset - * @version 4.1.1 + * @version 4.2.0 */ class NewRuleset { /** diff --git a/src/model/NewSamlConnection.js b/src/model/NewSamlConnection.js index cc2e252f..34dd85d0 100644 --- a/src/model/NewSamlConnection.js +++ b/src/model/NewSamlConnection.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewSamlConnection model module. * @module model/NewSamlConnection - * @version 4.1.1 + * @version 4.2.0 */ class NewSamlConnection { /** diff --git a/src/model/NewTemplateDef.js b/src/model/NewTemplateDef.js index cf916062..505ade25 100644 --- a/src/model/NewTemplateDef.js +++ b/src/model/NewTemplateDef.js @@ -17,7 +17,7 @@ import TemplateArgDef from './TemplateArgDef'; /** * The NewTemplateDef model module. * @module model/NewTemplateDef - * @version 4.1.1 + * @version 4.2.0 */ class NewTemplateDef { /** diff --git a/src/model/NewUser.js b/src/model/NewUser.js index 1d0a5a0d..b08e8960 100644 --- a/src/model/NewUser.js +++ b/src/model/NewUser.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewUser model module. * @module model/NewUser - * @version 4.1.1 + * @version 4.2.0 */ class NewUser { /** diff --git a/src/model/NewWebhook.js b/src/model/NewWebhook.js index 6a85be44..85611de3 100644 --- a/src/model/NewWebhook.js +++ b/src/model/NewWebhook.js @@ -17,7 +17,7 @@ import TemplateArgDef from './TemplateArgDef'; /** * The NewWebhook model module. * @module model/NewWebhook - * @version 4.1.1 + * @version 4.2.0 */ class NewWebhook { /** diff --git a/src/model/Notification.js b/src/model/Notification.js index 3c7155f2..3ce01b28 100644 --- a/src/model/Notification.js +++ b/src/model/Notification.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Notification model module. * @module model/Notification - * @version 4.1.1 + * @version 4.2.0 */ class Notification { /** diff --git a/src/model/RedeemReferralEffectProps.js b/src/model/RedeemReferralEffectProps.js index fcde7ff1..c924055c 100644 --- a/src/model/RedeemReferralEffectProps.js +++ b/src/model/RedeemReferralEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RedeemReferralEffectProps model module. * @module model/RedeemReferralEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class RedeemReferralEffectProps { /** diff --git a/src/model/Referral.js b/src/model/Referral.js index 87bd9993..bc8c16fd 100644 --- a/src/model/Referral.js +++ b/src/model/Referral.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Referral model module. * @module model/Referral - * @version 4.1.1 + * @version 4.2.0 */ class Referral { /** diff --git a/src/model/ReferralCreatedEffectProps.js b/src/model/ReferralCreatedEffectProps.js index 3644c3bd..8d1c2cfc 100644 --- a/src/model/ReferralCreatedEffectProps.js +++ b/src/model/ReferralCreatedEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ReferralCreatedEffectProps model module. * @module model/ReferralCreatedEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class ReferralCreatedEffectProps { /** diff --git a/src/model/ReferralRejectionReason.js b/src/model/ReferralRejectionReason.js index 3f2c0423..a231a00e 100644 --- a/src/model/ReferralRejectionReason.js +++ b/src/model/ReferralRejectionReason.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ReferralRejectionReason model module. * @module model/ReferralRejectionReason - * @version 4.1.1 + * @version 4.2.0 */ class ReferralRejectionReason { /** @@ -114,12 +114,6 @@ ReferralRejectionReason['ReasonEnum'] = { */ "ReferralPartOfNotRunningCampaign": "ReferralPartOfNotRunningCampaign", - /** - * value: "ReferralValidConditionMissing" - * @const - */ - "ReferralValidConditionMissing": "ReferralValidConditionMissing", - /** * value: "ReferralLimitReached" * @const diff --git a/src/model/RejectCouponEffectProps.js b/src/model/RejectCouponEffectProps.js index 4fdb2530..b604f263 100644 --- a/src/model/RejectCouponEffectProps.js +++ b/src/model/RejectCouponEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RejectCouponEffectProps model module. * @module model/RejectCouponEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class RejectCouponEffectProps { /** diff --git a/src/model/RejectReferralEffectProps.js b/src/model/RejectReferralEffectProps.js index 4b6c19b7..5086365a 100644 --- a/src/model/RejectReferralEffectProps.js +++ b/src/model/RejectReferralEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RejectReferralEffectProps model module. * @module model/RejectReferralEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class RejectReferralEffectProps { /** diff --git a/src/model/Role.js b/src/model/Role.js index 2d1064b2..645ab9c5 100644 --- a/src/model/Role.js +++ b/src/model/Role.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Role model module. * @module model/Role - * @version 4.1.1 + * @version 4.2.0 */ class Role { /** @@ -58,6 +58,9 @@ class Role { if (data.hasOwnProperty('accountID')) { obj['accountID'] = ApiClient.convertToType(data['accountID'], 'Number'); } + if (data.hasOwnProperty('campaignGroupID')) { + obj['campaignGroupID'] = ApiClient.convertToType(data['campaignGroupID'], 'Number'); + } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } @@ -68,7 +71,7 @@ class Role { obj['members'] = ApiClient.convertToType(data['members'], ['Number']); } if (data.hasOwnProperty('acl')) { - obj['acl'] = ApiClient.convertToType(data['acl'], 'String'); + obj['acl'] = ApiClient.convertToType(data['acl'], Object); } } return obj; @@ -89,6 +92,12 @@ Role.prototype['id'] = undefined; */ Role.prototype['accountID'] = undefined; +/** + * The ID of the Campaign Group this role was created for. + * @member {Number} campaignGroupID + */ +Role.prototype['campaignGroupID'] = undefined; + /** * Name of the role * @member {String} name @@ -108,8 +117,8 @@ Role.prototype['description'] = undefined; Role.prototype['members'] = undefined; /** - * Role Policy this should be a stringified blob of json - * @member {String} acl + * Role ACL Policy + * @member {Object} acl */ Role.prototype['acl'] = undefined; diff --git a/src/model/RoleAssign.js b/src/model/RoleAssign.js index dd01fc0e..61eb6283 100644 --- a/src/model/RoleAssign.js +++ b/src/model/RoleAssign.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RoleAssign model module. * @module model/RoleAssign - * @version 4.1.1 + * @version 4.2.0 */ class RoleAssign { /** diff --git a/src/model/RoleMembership.js b/src/model/RoleMembership.js index 8e548766..4c0034c9 100644 --- a/src/model/RoleMembership.js +++ b/src/model/RoleMembership.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RoleMembership model module. * @module model/RoleMembership - * @version 4.1.1 + * @version 4.2.0 */ class RoleMembership { /** diff --git a/src/model/RollbackCouponEffectProps.js b/src/model/RollbackCouponEffectProps.js index 92d71843..1c767d00 100644 --- a/src/model/RollbackCouponEffectProps.js +++ b/src/model/RollbackCouponEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RollbackCouponEffectProps model module. * @module model/RollbackCouponEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class RollbackCouponEffectProps { /** diff --git a/src/model/RollbackDiscountEffectProps.js b/src/model/RollbackDiscountEffectProps.js index 187d14f1..9bf8c25d 100644 --- a/src/model/RollbackDiscountEffectProps.js +++ b/src/model/RollbackDiscountEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RollbackDiscountEffectProps model module. * @module model/RollbackDiscountEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class RollbackDiscountEffectProps { /** diff --git a/src/model/Rule.js b/src/model/Rule.js index 2af9a335..226bc67c 100644 --- a/src/model/Rule.js +++ b/src/model/Rule.js @@ -17,7 +17,7 @@ import Binding from './Binding'; /** * The Rule model module. * @module model/Rule - * @version 4.1.1 + * @version 4.2.0 */ class Rule { /** diff --git a/src/model/Ruleset.js b/src/model/Ruleset.js index ee10c34b..4411519d 100644 --- a/src/model/Ruleset.js +++ b/src/model/Ruleset.js @@ -18,7 +18,7 @@ import Rule from './Rule'; /** * The Ruleset model module. * @module model/Ruleset - * @version 4.1.1 + * @version 4.2.0 */ class Ruleset { /** diff --git a/src/model/SamlConnection.js b/src/model/SamlConnection.js index 860dc3fa..0b709270 100644 --- a/src/model/SamlConnection.js +++ b/src/model/SamlConnection.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SamlConnection model module. * @module model/SamlConnection - * @version 4.1.1 + * @version 4.2.0 */ class SamlConnection { /** diff --git a/src/model/SamlConnectionMetadata.js b/src/model/SamlConnectionMetadata.js index c0b63e5c..f3d7b798 100644 --- a/src/model/SamlConnectionMetadata.js +++ b/src/model/SamlConnectionMetadata.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SamlConnectionMetadata model module. * @module model/SamlConnectionMetadata - * @version 4.1.1 + * @version 4.2.0 */ class SamlConnectionMetadata { /** diff --git a/src/model/SamlLoginEndpoint.js b/src/model/SamlLoginEndpoint.js index 99c16ed1..2eb8d06f 100644 --- a/src/model/SamlLoginEndpoint.js +++ b/src/model/SamlLoginEndpoint.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SamlLoginEndpoint model module. * @module model/SamlLoginEndpoint - * @version 4.1.1 + * @version 4.2.0 */ class SamlLoginEndpoint { /** diff --git a/src/model/Session.js b/src/model/Session.js index aa3fc3b2..ee4be5bf 100644 --- a/src/model/Session.js +++ b/src/model/Session.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Session model module. * @module model/Session - * @version 4.1.1 + * @version 4.2.0 */ class Session { /** diff --git a/src/model/SetDiscountEffectProps.js b/src/model/SetDiscountEffectProps.js index 48eb0853..cef9ffb8 100644 --- a/src/model/SetDiscountEffectProps.js +++ b/src/model/SetDiscountEffectProps.js @@ -16,12 +16,12 @@ import ApiClient from '../ApiClient'; /** * The SetDiscountEffectProps model module. * @module model/SetDiscountEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class SetDiscountEffectProps { /** * Constructs a new SetDiscountEffectProps. - * The properties specific to the \"setDiscount\" effect. This gets triggered whenever a validated rule contained a \"set discount\" effect. This is a discount that should be applied globally on the session total. + * The properties specific to the \"setDiscount\" effect. This gets triggered whenever a validated rule contained a \"set discount\" effect. This is a discount that should be applied on the scope of defined with it. * @alias module:model/SetDiscountEffectProps * @param name {String} The name/description of this discount * @param value {Number} The total monetary value of the discount @@ -58,6 +58,9 @@ class SetDiscountEffectProps { if (data.hasOwnProperty('value')) { obj['value'] = ApiClient.convertToType(data['value'], 'Number'); } + if (data.hasOwnProperty('scope')) { + obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); + } } return obj; } @@ -77,6 +80,12 @@ SetDiscountEffectProps.prototype['name'] = undefined; */ SetDiscountEffectProps.prototype['value'] = undefined; +/** + * The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal) + * @member {String} scope + */ +SetDiscountEffectProps.prototype['scope'] = undefined; + diff --git a/src/model/SetDiscountPerItemEffectProps.js b/src/model/SetDiscountPerItemEffectProps.js index 8bc6e7e8..56baff06 100644 --- a/src/model/SetDiscountPerItemEffectProps.js +++ b/src/model/SetDiscountPerItemEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SetDiscountPerItemEffectProps model module. * @module model/SetDiscountPerItemEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class SetDiscountPerItemEffectProps { /** @@ -63,6 +63,9 @@ class SetDiscountPerItemEffectProps { if (data.hasOwnProperty('position')) { obj['position'] = ApiClient.convertToType(data['position'], 'Number'); } + if (data.hasOwnProperty('subPosition')) { + obj['subPosition'] = ApiClient.convertToType(data['subPosition'], 'Number'); + } } return obj; } @@ -88,6 +91,12 @@ SetDiscountPerItemEffectProps.prototype['value'] = undefined; */ SetDiscountPerItemEffectProps.prototype['position'] = undefined; +/** + * The sub-index of the item in an item stack on which this discount should be applied + * @member {Number} subPosition + */ +SetDiscountPerItemEffectProps.prototype['subPosition'] = undefined; + diff --git a/src/model/ShowBundleMetadataEffectProps.js b/src/model/ShowBundleMetadataEffectProps.js index 94ca32ea..889f677f 100644 --- a/src/model/ShowBundleMetadataEffectProps.js +++ b/src/model/ShowBundleMetadataEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ShowBundleMetadataEffectProps model module. * @module model/ShowBundleMetadataEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class ShowBundleMetadataEffectProps { /** diff --git a/src/model/ShowNotificationEffectProps.js b/src/model/ShowNotificationEffectProps.js index a0557da7..3650fe33 100644 --- a/src/model/ShowNotificationEffectProps.js +++ b/src/model/ShowNotificationEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ShowNotificationEffectProps model module. * @module model/ShowNotificationEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class ShowNotificationEffectProps { /** diff --git a/src/model/SlotDef.js b/src/model/SlotDef.js index 49805afb..6457e6c8 100644 --- a/src/model/SlotDef.js +++ b/src/model/SlotDef.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SlotDef model module. * @module model/SlotDef - * @version 4.1.1 + * @version 4.2.0 */ class SlotDef { /** diff --git a/src/model/TemplateArgDef.js b/src/model/TemplateArgDef.js index 1dfa7b7f..538b6732 100644 --- a/src/model/TemplateArgDef.js +++ b/src/model/TemplateArgDef.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TemplateArgDef model module. * @module model/TemplateArgDef - * @version 4.1.1 + * @version 4.2.0 */ class TemplateArgDef { /** diff --git a/src/model/TemplateDef.js b/src/model/TemplateDef.js index afef19c1..9e3210c2 100644 --- a/src/model/TemplateDef.js +++ b/src/model/TemplateDef.js @@ -17,7 +17,7 @@ import TemplateArgDef from './TemplateArgDef'; /** * The TemplateDef model module. * @module model/TemplateDef - * @version 4.1.1 + * @version 4.2.0 */ class TemplateDef { /** diff --git a/src/model/TriggerWebhookEffectProps.js b/src/model/TriggerWebhookEffectProps.js index c8a9b899..3f40ee14 100644 --- a/src/model/TriggerWebhookEffectProps.js +++ b/src/model/TriggerWebhookEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TriggerWebhookEffectProps model module. * @module model/TriggerWebhookEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class TriggerWebhookEffectProps { /** diff --git a/src/model/UpdateAccount.js b/src/model/UpdateAccount.js index 7e7a959d..f466452c 100644 --- a/src/model/UpdateAccount.js +++ b/src/model/UpdateAccount.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateAccount model module. * @module model/UpdateAccount - * @version 4.1.1 + * @version 4.2.0 */ class UpdateAccount { /** diff --git a/src/model/UpdateApplication.js b/src/model/UpdateApplication.js index b9b14baf..81ed1495 100644 --- a/src/model/UpdateApplication.js +++ b/src/model/UpdateApplication.js @@ -18,7 +18,7 @@ import LimitConfig from './LimitConfig'; /** * The UpdateApplication model module. * @module model/UpdateApplication - * @version 4.1.1 + * @version 4.2.0 */ class UpdateApplication { /** @@ -79,9 +79,21 @@ class UpdateApplication { if (data.hasOwnProperty('campaignPriority')) { obj['campaignPriority'] = ApiClient.convertToType(data['campaignPriority'], 'String'); } + if (data.hasOwnProperty('exclusiveCampaignsStrategy')) { + obj['exclusiveCampaignsStrategy'] = ApiClient.convertToType(data['exclusiveCampaignsStrategy'], 'String'); + } + if (data.hasOwnProperty('enableCascadingDiscounts')) { + obj['enableCascadingDiscounts'] = ApiClient.convertToType(data['enableCascadingDiscounts'], 'Boolean'); + } + if (data.hasOwnProperty('enableFlattenedCartItems')) { + obj['enableFlattenedCartItems'] = ApiClient.convertToType(data['enableFlattenedCartItems'], 'Boolean'); + } if (data.hasOwnProperty('attributesSettings')) { obj['attributesSettings'] = AttributesSettings.constructFromObject(data['attributesSettings']); } + if (data.hasOwnProperty('sandbox')) { + obj['sandbox'] = ApiClient.convertToType(data['sandbox'], 'Boolean'); + } } return obj; } @@ -132,16 +144,40 @@ UpdateApplication.prototype['attributes'] = undefined; UpdateApplication.prototype['limits'] = undefined; /** - * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) + * Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" * @member {module:model/UpdateApplication.CampaignPriorityEnum} campaignPriority */ UpdateApplication.prototype['campaignPriority'] = undefined; +/** + * The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" + * @member {module:model/UpdateApplication.ExclusiveCampaignsStrategyEnum} exclusiveCampaignsStrategy + */ +UpdateApplication.prototype['exclusiveCampaignsStrategy'] = undefined; + +/** + * Flag indicating if discounts should cascade for this application + * @member {Boolean} enableCascadingDiscounts + */ +UpdateApplication.prototype['enableCascadingDiscounts'] = undefined; + +/** + * Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * @member {Boolean} enableFlattenedCartItems + */ +UpdateApplication.prototype['enableFlattenedCartItems'] = undefined; + /** * @member {module:model/AttributesSettings} attributesSettings */ UpdateApplication.prototype['attributesSettings'] = undefined; +/** + * Flag indicating if this is a live or sandbox application + * @member {Boolean} sandbox + */ +UpdateApplication.prototype['sandbox'] = undefined; + @@ -200,6 +236,33 @@ UpdateApplication['CampaignPriorityEnum'] = { }; +/** + * Allowed values for the exclusiveCampaignsStrategy property. + * @enum {String} + * @readonly + */ +UpdateApplication['ExclusiveCampaignsStrategyEnum'] = { + + /** + * value: "listOrder" + * @const + */ + "listOrder": "listOrder", + + /** + * value: "lowestDiscount" + * @const + */ + "lowestDiscount": "lowestDiscount", + + /** + * value: "highestDiscount" + * @const + */ + "highestDiscount": "highestDiscount" +}; + + export default UpdateApplication; diff --git a/src/model/UpdateAttributeEffectProps.js b/src/model/UpdateAttributeEffectProps.js index fc497797..a0acf292 100644 --- a/src/model/UpdateAttributeEffectProps.js +++ b/src/model/UpdateAttributeEffectProps.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateAttributeEffectProps model module. * @module model/UpdateAttributeEffectProps - * @version 4.1.1 + * @version 4.2.0 */ class UpdateAttributeEffectProps { /** diff --git a/src/model/UpdateAudience.js b/src/model/UpdateAudience.js new file mode 100644 index 00000000..4d63eeea --- /dev/null +++ b/src/model/UpdateAudience.js @@ -0,0 +1,74 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAudience model module. + * @module model/UpdateAudience + * @version 4.2.0 + */ +class UpdateAudience { + /** + * Constructs a new UpdateAudience. + * @alias module:model/UpdateAudience + * @param name {String} The human-friendly display name for this Audience. + */ + constructor(name) { + + UpdateAudience.initialize(this, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a UpdateAudience from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAudience} obj Optional instance to populate. + * @return {module:model/UpdateAudience} The populated UpdateAudience instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAudience(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * The human-friendly display name for this Audience. + * @member {String} name + */ +UpdateAudience.prototype['name'] = undefined; + + + + + + +export default UpdateAudience; + diff --git a/src/model/UpdateCampaign.js b/src/model/UpdateCampaign.js index 10c1e6f0..f24408b1 100644 --- a/src/model/UpdateCampaign.js +++ b/src/model/UpdateCampaign.js @@ -18,7 +18,7 @@ import LimitConfig from './LimitConfig'; /** * The UpdateCampaign model module. * @module model/UpdateCampaign - * @version 4.1.1 + * @version 4.2.0 */ class UpdateCampaign { /** @@ -93,6 +93,9 @@ class UpdateCampaign { if (data.hasOwnProperty('limits')) { obj['limits'] = ApiClient.convertToType(data['limits'], [LimitConfig]); } + if (data.hasOwnProperty('campaignGroups')) { + obj['campaignGroups'] = ApiClient.convertToType(data['campaignGroups'], ['Number']); + } } return obj; } @@ -171,6 +174,12 @@ UpdateCampaign.prototype['referralSettings'] = undefined; */ UpdateCampaign.prototype['limits'] = undefined; +/** + * The IDs of the campaign groups that own this entity. + * @member {Array.} campaignGroups + */ +UpdateCampaign.prototype['campaignGroups'] = undefined; + diff --git a/src/model/UpdateCampaignGroup.js b/src/model/UpdateCampaignGroup.js new file mode 100644 index 00000000..ba7d1ad3 --- /dev/null +++ b/src/model/UpdateCampaignGroup.js @@ -0,0 +1,102 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateCampaignGroup model module. + * @module model/UpdateCampaignGroup + * @version 4.2.0 + */ +class UpdateCampaignGroup { + /** + * Constructs a new UpdateCampaignGroup. + * + * @alias module:model/UpdateCampaignGroup + * @param name {String} The name of this campaign group. + */ + constructor(name) { + + UpdateCampaignGroup.initialize(this, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a UpdateCampaignGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCampaignGroup} obj Optional instance to populate. + * @return {module:model/UpdateCampaignGroup} The populated UpdateCampaignGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCampaignGroup(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('subscribedApplicationsIds')) { + obj['subscribedApplicationsIds'] = ApiClient.convertToType(data['subscribedApplicationsIds'], ['Number']); + } + if (data.hasOwnProperty('campaignIds')) { + obj['campaignIds'] = ApiClient.convertToType(data['campaignIds'], ['Number']); + } + } + return obj; + } + + +} + +/** + * The name of this campaign group. + * @member {String} name + */ +UpdateCampaignGroup.prototype['name'] = undefined; + +/** + * A longer description of the campaign group. + * @member {String} description + */ +UpdateCampaignGroup.prototype['description'] = undefined; + +/** + * A list of the IDs of the applications that this campaign group is enabled for + * @member {Array.} subscribedApplicationsIds + */ +UpdateCampaignGroup.prototype['subscribedApplicationsIds'] = undefined; + +/** + * A list of the IDs of the campaigns that this campaign group owns + * @member {Array.} campaignIds + */ +UpdateCampaignGroup.prototype['campaignIds'] = undefined; + + + + + + +export default UpdateCampaignGroup; + diff --git a/src/model/UpdateCoupon.js b/src/model/UpdateCoupon.js index 781121a4..26d3d659 100644 --- a/src/model/UpdateCoupon.js +++ b/src/model/UpdateCoupon.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateCoupon model module. * @module model/UpdateCoupon - * @version 4.1.1 + * @version 4.2.0 */ class UpdateCoupon { /** diff --git a/src/model/UpdateCouponBatch.js b/src/model/UpdateCouponBatch.js index 35b10162..11fb09de 100644 --- a/src/model/UpdateCouponBatch.js +++ b/src/model/UpdateCouponBatch.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateCouponBatch model module. * @module model/UpdateCouponBatch - * @version 4.1.1 + * @version 4.2.0 */ class UpdateCouponBatch { /** diff --git a/src/model/UpdateLoyaltyProgram.js b/src/model/UpdateLoyaltyProgram.js index d3bca431..fa297695 100644 --- a/src/model/UpdateLoyaltyProgram.js +++ b/src/model/UpdateLoyaltyProgram.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateLoyaltyProgram model module. * @module model/UpdateLoyaltyProgram - * @version 4.1.1 + * @version 4.2.0 */ class UpdateLoyaltyProgram { /** @@ -60,6 +60,9 @@ class UpdateLoyaltyProgram { if (data.hasOwnProperty('defaultValidity')) { obj['defaultValidity'] = ApiClient.convertToType(data['defaultValidity'], 'String'); } + if (data.hasOwnProperty('defaultPending')) { + obj['defaultPending'] = ApiClient.convertToType(data['defaultPending'], 'String'); + } if (data.hasOwnProperty('allowSubledger')) { obj['allowSubledger'] = ApiClient.convertToType(data['allowSubledger'], 'Boolean'); } @@ -89,11 +92,17 @@ UpdateLoyaltyProgram.prototype['description'] = undefined; UpdateLoyaltyProgram.prototype['subscribedApplications'] = undefined; /** - * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m' or '30d'. + * Indicates the default duration after which new loyalty points should expire. The format is a number, followed by one letter indicating the unit; like '1h' or '40m'. * @member {String} defaultValidity */ UpdateLoyaltyProgram.prototype['defaultValidity'] = undefined; +/** + * Indicates the default duration for the pending time, after which points will be valid. The format is a number followed by a duration unit, like '1h' or '40m'. + * @member {String} defaultPending + */ +UpdateLoyaltyProgram.prototype['defaultPending'] = undefined; + /** * Indicates if this program supports subledgers inside the program * @member {Boolean} allowSubledger diff --git a/src/model/UpdateRole.js b/src/model/UpdateRole.js index e91add4a..3f523f06 100644 --- a/src/model/UpdateRole.js +++ b/src/model/UpdateRole.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateRole model module. * @module model/UpdateRole - * @version 4.1.1 + * @version 4.2.0 */ class UpdateRole { /** diff --git a/src/model/UpdateUser.js b/src/model/UpdateUser.js index ab77858f..0d425529 100644 --- a/src/model/UpdateUser.js +++ b/src/model/UpdateUser.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateUser model module. * @module model/UpdateUser - * @version 4.1.1 + * @version 4.2.0 */ class UpdateUser { /** @@ -56,12 +56,6 @@ class UpdateUser { if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } - if (data.hasOwnProperty('releaseUpdate')) { - obj['releaseUpdate'] = ApiClient.convertToType(data['releaseUpdate'], 'Boolean'); - } - if (data.hasOwnProperty('latestFeature')) { - obj['latestFeature'] = ApiClient.convertToType(data['latestFeature'], 'String'); - } if (data.hasOwnProperty('roles')) { obj['roles'] = ApiClient.convertToType(data['roles'], ['Number']); } @@ -93,18 +87,6 @@ UpdateUser.prototype['policy'] = undefined; */ UpdateUser.prototype['state'] = undefined; -/** - * Update the user via email - * @member {Boolean} releaseUpdate - */ -UpdateUser.prototype['releaseUpdate'] = undefined; - -/** - * The latest feature you've been notified. - * @member {String} latestFeature - */ -UpdateUser.prototype['latestFeature'] = undefined; - /** * Update * @member {Array.} roles diff --git a/src/model/UpdateUserLatestFeedTimestamp.js b/src/model/UpdateUserLatestFeedTimestamp.js new file mode 100644 index 00000000..2229d42d --- /dev/null +++ b/src/model/UpdateUserLatestFeedTimestamp.js @@ -0,0 +1,75 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateUserLatestFeedTimestamp model module. + * @module model/UpdateUserLatestFeedTimestamp + * @version 4.2.0 + */ +class UpdateUserLatestFeedTimestamp { + /** + * Constructs a new UpdateUserLatestFeedTimestamp. + * Updates current user's latest seen notifications timestamp + * @alias module:model/UpdateUserLatestFeedTimestamp + * @param newLatestFeedTimestamp {Date} New timestamp to update for the current user + */ + constructor(newLatestFeedTimestamp) { + + UpdateUserLatestFeedTimestamp.initialize(this, newLatestFeedTimestamp); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, newLatestFeedTimestamp) { + obj['newLatestFeedTimestamp'] = newLatestFeedTimestamp; + } + + /** + * Constructs a UpdateUserLatestFeedTimestamp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateUserLatestFeedTimestamp} obj Optional instance to populate. + * @return {module:model/UpdateUserLatestFeedTimestamp} The populated UpdateUserLatestFeedTimestamp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateUserLatestFeedTimestamp(); + + if (data.hasOwnProperty('newLatestFeedTimestamp')) { + obj['newLatestFeedTimestamp'] = ApiClient.convertToType(data['newLatestFeedTimestamp'], 'Date'); + } + } + return obj; + } + + +} + +/** + * New timestamp to update for the current user + * @member {Date} newLatestFeedTimestamp + */ +UpdateUserLatestFeedTimestamp.prototype['newLatestFeedTimestamp'] = undefined; + + + + + + +export default UpdateUserLatestFeedTimestamp; + diff --git a/src/model/User.js b/src/model/User.js index c38e8119..9a5689fe 100644 --- a/src/model/User.js +++ b/src/model/User.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The User model module. * @module model/User - * @version 4.1.1 + * @version 4.2.0 */ class User { /** @@ -31,12 +31,11 @@ class User { * @param inviteToken {String} Invite token, empty if the user as already accepted their invite. * @param state {module:model/User.StateEnum} Current user state. * @param name {String} Full name - * @param policy {String} A blob of ACL JSON - * @param releaseUpdate {Boolean} Update the user via email + * @param policy {Object} User ACL Policy */ - constructor(id, created, modified, email, accountId, inviteToken, state, name, policy, releaseUpdate) { + constructor(id, created, modified, email, accountId, inviteToken, state, name, policy) { - User.initialize(this, id, created, modified, email, accountId, inviteToken, state, name, policy, releaseUpdate); + User.initialize(this, id, created, modified, email, accountId, inviteToken, state, name, policy); } /** @@ -44,7 +43,7 @@ class User { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, id, created, modified, email, accountId, inviteToken, state, name, policy, releaseUpdate) { + static initialize(obj, id, created, modified, email, accountId, inviteToken, state, name, policy) { obj['id'] = id; obj['created'] = created; obj['modified'] = modified; @@ -54,7 +53,6 @@ class User { obj['state'] = state; obj['name'] = name; obj['policy'] = policy; - obj['releaseUpdate'] = releaseUpdate; } /** @@ -93,13 +91,10 @@ class User { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('policy')) { - obj['policy'] = ApiClient.convertToType(data['policy'], 'String'); + obj['policy'] = ApiClient.convertToType(data['policy'], Object); } - if (data.hasOwnProperty('releaseUpdate')) { - obj['releaseUpdate'] = ApiClient.convertToType(data['releaseUpdate'], 'Boolean'); - } - if (data.hasOwnProperty('latestFeature')) { - obj['latestFeature'] = ApiClient.convertToType(data['latestFeature'], 'String'); + if (data.hasOwnProperty('latestFeedTimestamp')) { + obj['latestFeedTimestamp'] = ApiClient.convertToType(data['latestFeedTimestamp'], 'Date'); } if (data.hasOwnProperty('roles')) { obj['roles'] = ApiClient.convertToType(data['roles'], ['Number']); @@ -166,22 +161,16 @@ User.prototype['state'] = undefined; User.prototype['name'] = undefined; /** - * A blob of ACL JSON - * @member {String} policy + * User ACL Policy + * @member {Object} policy */ User.prototype['policy'] = undefined; /** - * Update the user via email - * @member {Boolean} releaseUpdate - */ -User.prototype['releaseUpdate'] = undefined; - -/** - * Latest feature the user has been notified. - * @member {String} latestFeature + * Latest timestamp the user has been notified for feed. + * @member {Date} latestFeedTimestamp */ -User.prototype['latestFeature'] = undefined; +User.prototype['latestFeedTimestamp'] = undefined; /** * Contains a list of all roles the user is a member of diff --git a/src/model/UserEntity.js b/src/model/UserEntity.js index d2330685..0be2d8c8 100644 --- a/src/model/UserEntity.js +++ b/src/model/UserEntity.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UserEntity model module. * @module model/UserEntity - * @version 4.1.1 + * @version 4.2.0 */ class UserEntity { /** diff --git a/src/model/UserFeedNotifications.js b/src/model/UserFeedNotifications.js new file mode 100644 index 00000000..7a3c2cc3 --- /dev/null +++ b/src/model/UserFeedNotifications.js @@ -0,0 +1,87 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FeedNotification from './FeedNotification'; + +/** + * The UserFeedNotifications model module. + * @module model/UserFeedNotifications + * @version 4.2.0 + */ +class UserFeedNotifications { + /** + * Constructs a new UserFeedNotifications. + * notifications to notify CAMA user about + * @alias module:model/UserFeedNotifications + * @param lastUpdate {Date} Timestamp of the last request for this list + * @param notifications {Array.} List of all notifications to notify the user about + */ + constructor(lastUpdate, notifications) { + + UserFeedNotifications.initialize(this, lastUpdate, notifications); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, lastUpdate, notifications) { + obj['lastUpdate'] = lastUpdate; + obj['notifications'] = notifications; + } + + /** + * Constructs a UserFeedNotifications from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserFeedNotifications} obj Optional instance to populate. + * @return {module:model/UserFeedNotifications} The populated UserFeedNotifications instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserFeedNotifications(); + + if (data.hasOwnProperty('lastUpdate')) { + obj['lastUpdate'] = ApiClient.convertToType(data['lastUpdate'], 'Date'); + } + if (data.hasOwnProperty('notifications')) { + obj['notifications'] = ApiClient.convertToType(data['notifications'], [FeedNotification]); + } + } + return obj; + } + + +} + +/** + * Timestamp of the last request for this list + * @member {Date} lastUpdate + */ +UserFeedNotifications.prototype['lastUpdate'] = undefined; + +/** + * List of all notifications to notify the user about + * @member {Array.} notifications + */ +UserFeedNotifications.prototype['notifications'] = undefined; + + + + + + +export default UserFeedNotifications; + diff --git a/src/model/Webhook.js b/src/model/Webhook.js index e1a1d52b..c9a09de6 100644 --- a/src/model/Webhook.js +++ b/src/model/Webhook.js @@ -17,7 +17,7 @@ import TemplateArgDef from './TemplateArgDef'; /** * The Webhook model module. * @module model/Webhook - * @version 4.1.1 + * @version 4.2.0 */ class Webhook { /** diff --git a/src/model/WebhookActivationLogEntry.js b/src/model/WebhookActivationLogEntry.js index 36a75354..c7e4ba2e 100644 --- a/src/model/WebhookActivationLogEntry.js +++ b/src/model/WebhookActivationLogEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The WebhookActivationLogEntry model module. * @module model/WebhookActivationLogEntry - * @version 4.1.1 + * @version 4.2.0 */ class WebhookActivationLogEntry { /** diff --git a/src/model/WebhookLogEntry.js b/src/model/WebhookLogEntry.js index ec9e1715..d529edee 100644 --- a/src/model/WebhookLogEntry.js +++ b/src/model/WebhookLogEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The WebhookLogEntry model module. * @module model/WebhookLogEntry - * @version 4.1.1 + * @version 4.2.0 */ class WebhookLogEntry { /** diff --git a/test/api/IntegrationApi.spec.js b/test/api/IntegrationApi.spec.js index cc9687ac..1742b18e 100644 --- a/test/api/IntegrationApi.spec.js +++ b/test/api/IntegrationApi.spec.js @@ -128,6 +128,16 @@ done(); }); }); + describe('updateCustomerProfileAudiences', function() { + it('should call updateCustomerProfileAudiences successfully', function(done) { + //uncomment below and update the code to test updateCustomerProfileAudiences + //instance.updateCustomerProfileAudiences(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('updateCustomerProfileV2', function() { it('should call updateCustomerProfileV2 successfully', function(done) { //uncomment below and update the code to test updateCustomerProfileV2 @@ -138,6 +148,16 @@ done(); }); }); + describe('updateCustomerProfilesV2', function() { + it('should call updateCustomerProfilesV2 successfully', function(done) { + //uncomment below and update the code to test updateCustomerProfilesV2 + //instance.updateCustomerProfilesV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('updateCustomerSession', function() { it('should call updateCustomerSession successfully', function(done) { //uncomment below and update the code to test updateCustomerSession diff --git a/test/api/ManagementApi.spec.js b/test/api/ManagementApi.spec.js index b2611b79..4596c637 100644 --- a/test/api/ManagementApi.spec.js +++ b/test/api/ManagementApi.spec.js @@ -618,6 +618,16 @@ done(); }); }); + describe('getLoyaltyStatistics', function() { + it('should call getLoyaltyStatistics successfully', function(done) { + //uncomment below and update the code to test getLoyaltyStatistics + //instance.getLoyaltyStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getReferrals', function() { it('should call getReferrals successfully', function(done) { //uncomment below and update the code to test getReferrals diff --git a/test/model/AccountAnalytics.spec.js b/test/model/AccountAnalytics.spec.js index 2549bb2b..57ed17a2 100644 --- a/test/model/AccountAnalytics.spec.js +++ b/test/model/AccountAnalytics.spec.js @@ -60,8 +60,14 @@ //expect(instance).to.be(); }); - it('should have the property activeCampaigns (base name: "activeCampaigns")', function() { - // uncomment below and update the code to test the property activeCampaigns + it('should have the property liveApplications (base name: "liveApplications")', function() { + // uncomment below and update the code to test the property liveApplications + //var instane = new TalonOne.AccountAnalytics(); + //expect(instance).to.be(); + }); + + it('should have the property sandboxApplications (base name: "sandboxApplications")', function() { + // uncomment below and update the code to test the property sandboxApplications //var instane = new TalonOne.AccountAnalytics(); //expect(instance).to.be(); }); @@ -72,6 +78,18 @@ //expect(instance).to.be(); }); + it('should have the property activeCampaigns (base name: "activeCampaigns")', function() { + // uncomment below and update the code to test the property activeCampaigns + //var instane = new TalonOne.AccountAnalytics(); + //expect(instance).to.be(); + }); + + it('should have the property liveActiveCampaigns (base name: "liveActiveCampaigns")', function() { + // uncomment below and update the code to test the property liveActiveCampaigns + //var instane = new TalonOne.AccountAnalytics(); + //expect(instance).to.be(); + }); + it('should have the property coupons (base name: "coupons")', function() { // uncomment below and update the code to test the property coupons //var instane = new TalonOne.AccountAnalytics(); @@ -90,12 +108,6 @@ //expect(instance).to.be(); }); - it('should have the property customAttributes (base name: "customAttributes")', function() { - // uncomment below and update the code to test the property customAttributes - //var instane = new TalonOne.AccountAnalytics(); - //expect(instance).to.be(); - }); - it('should have the property referralCodes (base name: "referralCodes")', function() { // uncomment below and update the code to test the property referralCodes //var instane = new TalonOne.AccountAnalytics(); @@ -114,6 +126,12 @@ //expect(instance).to.be(); }); + it('should have the property activeRules (base name: "activeRules")', function() { + // uncomment below and update the code to test the property activeRules + //var instane = new TalonOne.AccountAnalytics(); + //expect(instance).to.be(); + }); + it('should have the property users (base name: "users")', function() { // uncomment below and update the code to test the property users //var instane = new TalonOne.AccountAnalytics(); @@ -126,20 +144,20 @@ //expect(instance).to.be(); }); - it('should have the property webhooks (base name: "webhooks")', function() { - // uncomment below and update the code to test the property webhooks + it('should have the property customAttributes (base name: "customAttributes")', function() { + // uncomment below and update the code to test the property customAttributes //var instane = new TalonOne.AccountAnalytics(); //expect(instance).to.be(); }); - it('should have the property loyaltyPrograms (base name: "loyaltyPrograms")', function() { - // uncomment below and update the code to test the property loyaltyPrograms + it('should have the property webhooks (base name: "webhooks")', function() { + // uncomment below and update the code to test the property webhooks //var instane = new TalonOne.AccountAnalytics(); //expect(instance).to.be(); }); - it('should have the property activeRules (base name: "activeRules")', function() { - // uncomment below and update the code to test the property activeRules + it('should have the property loyaltyPrograms (base name: "loyaltyPrograms")', function() { + // uncomment below and update the code to test the property loyaltyPrograms //var instane = new TalonOne.AccountAnalytics(); //expect(instance).to.be(); }); diff --git a/test/model/AccountLimits.spec.js b/test/model/AccountLimits.spec.js index e1140cd0..fb4c8e4c 100644 --- a/test/model/AccountLimits.spec.js +++ b/test/model/AccountLimits.spec.js @@ -84,6 +84,12 @@ //expect(instance).to.be(); }); + it('should have the property activeRules (base name: "activeRules")', function() { + // uncomment below and update the code to test the property activeRules + //var instane = new TalonOne.AccountLimits(); + //expect(instance).to.be(); + }); + it('should have the property liveLoyaltyPrograms (base name: "liveLoyaltyPrograms")', function() { // uncomment below and update the code to test the property liveLoyaltyPrograms //var instane = new TalonOne.AccountLimits(); @@ -114,12 +120,6 @@ //expect(instance).to.be(); }); - it('should have the property activeRules (base name: "activeRules")', function() { - // uncomment below and update the code to test the property activeRules - //var instane = new TalonOne.AccountLimits(); - //expect(instance).to.be(); - }); - it('should have the property promotionTypes (base name: "promotionTypes")', function() { // uncomment below and update the code to test the property promotionTypes //var instane = new TalonOne.AccountLimits(); diff --git a/test/model/AddLoyaltyPointsEffectProps.spec.js b/test/model/AddLoyaltyPointsEffectProps.spec.js index 137dcbe7..f3ce14f2 100644 --- a/test/model/AddLoyaltyPointsEffectProps.spec.js +++ b/test/model/AddLoyaltyPointsEffectProps.spec.js @@ -84,8 +84,14 @@ //expect(instance).to.be(); }); - it('should have the property expiryCondition (base name: "expiryCondition")', function() { - // uncomment below and update the code to test the property expiryCondition + it('should have the property startDate (base name: "startDate")', function() { + // uncomment below and update the code to test the property startDate + //var instane = new TalonOne.AddLoyaltyPointsEffectProps(); + //expect(instance).to.be(); + }); + + it('should have the property expiryDate (base name: "expiryDate")', function() { + // uncomment below and update the code to test the property expiryDate //var instane = new TalonOne.AddLoyaltyPointsEffectProps(); //expect(instance).to.be(); }); diff --git a/test/model/Application.spec.js b/test/model/Application.spec.js index 92559646..722e46a3 100644 --- a/test/model/Application.spec.js +++ b/test/model/Application.spec.js @@ -126,12 +126,36 @@ //expect(instance).to.be(); }); + it('should have the property exclusiveCampaignsStrategy (base name: "exclusiveCampaignsStrategy")', function() { + // uncomment below and update the code to test the property exclusiveCampaignsStrategy + //var instane = new TalonOne.Application(); + //expect(instance).to.be(); + }); + + it('should have the property enableCascadingDiscounts (base name: "enableCascadingDiscounts")', function() { + // uncomment below and update the code to test the property enableCascadingDiscounts + //var instane = new TalonOne.Application(); + //expect(instance).to.be(); + }); + + it('should have the property enableFlattenedCartItems (base name: "enableFlattenedCartItems")', function() { + // uncomment below and update the code to test the property enableFlattenedCartItems + //var instane = new TalonOne.Application(); + //expect(instance).to.be(); + }); + it('should have the property attributesSettings (base name: "attributesSettings")', function() { // uncomment below and update the code to test the property attributesSettings //var instane = new TalonOne.Application(); //expect(instance).to.be(); }); + it('should have the property sandbox (base name: "sandbox")', function() { + // uncomment below and update the code to test the property sandbox + //var instane = new TalonOne.Application(); + //expect(instance).to.be(); + }); + it('should have the property loyaltyPrograms (base name: "loyaltyPrograms")', function() { // uncomment below and update the code to test the property loyaltyPrograms //var instane = new TalonOne.Application(); diff --git a/test/model/ApplicationAPIKey.spec.js b/test/model/ApplicationAPIKey.spec.js index aa8b5fec..cc922546 100644 --- a/test/model/ApplicationAPIKey.spec.js +++ b/test/model/ApplicationAPIKey.spec.js @@ -54,20 +54,32 @@ //expect(instance).to.be.a(TalonOne.ApplicationAPIKey); }); - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id + it('should have the property title (base name: "title")', function() { + // uncomment below and update the code to test the property title //var instane = new TalonOne.ApplicationAPIKey(); //expect(instance).to.be(); }); - it('should have the property createdBy (base name: "createdBy")', function() { - // uncomment below and update the code to test the property createdBy + it('should have the property expires (base name: "expires")', function() { + // uncomment below and update the code to test the property expires //var instane = new TalonOne.ApplicationAPIKey(); //expect(instance).to.be(); }); - it('should have the property title (base name: "title")', function() { - // uncomment below and update the code to test the property title + it('should have the property platform (base name: "platform")', function() { + // uncomment below and update the code to test the property platform + //var instane = new TalonOne.ApplicationAPIKey(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.ApplicationAPIKey(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "createdBy")', function() { + // uncomment below and update the code to test the property createdBy //var instane = new TalonOne.ApplicationAPIKey(); //expect(instance).to.be(); }); @@ -90,12 +102,6 @@ //expect(instance).to.be(); }); - it('should have the property expires (base name: "expires")', function() { - // uncomment below and update the code to test the property expires - //var instane = new TalonOne.ApplicationAPIKey(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/ApplicationCustomer.spec.js b/test/model/ApplicationCustomer.spec.js index 7fbf0068..4370e236 100644 --- a/test/model/ApplicationCustomer.spec.js +++ b/test/model/ApplicationCustomer.spec.js @@ -102,6 +102,12 @@ //expect(instance).to.be(); }); + it('should have the property audienceMemberships (base name: "audienceMemberships")', function() { + // uncomment below and update the code to test the property audienceMemberships + //var instane = new TalonOne.ApplicationCustomer(); + //expect(instance).to.be(); + }); + it('should have the property lastActivity (base name: "lastActivity")', function() { // uncomment below and update the code to test the property lastActivity //var instane = new TalonOne.ApplicationCustomer(); diff --git a/test/model/Audience.spec.js b/test/model/Audience.spec.js new file mode 100644 index 00000000..814114fd --- /dev/null +++ b/test/model/Audience.spec.js @@ -0,0 +1,95 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.Audience(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Audience', function() { + it('should create an instance of Audience', function() { + // uncomment below and update the code to test Audience + //var instane = new TalonOne.Audience(); + //expect(instance).to.be.a(TalonOne.Audience); + }); + + it('should have the property accountId (base name: "accountId")', function() { + // uncomment below and update the code to test the property accountId + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + it('should have the property created (base name: "created")', function() { + // uncomment below and update the code to test the property created + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + it('should have the property integration (base name: "integration")', function() { + // uncomment below and update the code to test the property integration + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + it('should have the property integrationId (base name: "integrationId")', function() { + // uncomment below and update the code to test the property integrationId + //var instane = new TalonOne.Audience(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AudienceMembership.spec.js b/test/model/AudienceMembership.spec.js new file mode 100644 index 00000000..0cc1ecbf --- /dev/null +++ b/test/model/AudienceMembership.spec.js @@ -0,0 +1,71 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.AudienceMembership(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AudienceMembership', function() { + it('should create an instance of AudienceMembership', function() { + // uncomment below and update the code to test AudienceMembership + //var instane = new TalonOne.AudienceMembership(); + //expect(instance).to.be.a(TalonOne.AudienceMembership); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.AudienceMembership(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.AudienceMembership(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Campaign.spec.js b/test/model/Campaign.spec.js index b6afc16e..6508db99 100644 --- a/test/model/Campaign.spec.js +++ b/test/model/Campaign.spec.js @@ -150,6 +150,12 @@ //expect(instance).to.be(); }); + it('should have the property campaignGroups (base name: "campaignGroups")', function() { + // uncomment below and update the code to test the property campaignGroups + //var instane = new TalonOne.Campaign(); + //expect(instance).to.be(); + }); + it('should have the property couponRedemptionCount (base name: "couponRedemptionCount")', function() { // uncomment below and update the code to test the property couponRedemptionCount //var instane = new TalonOne.Campaign(); diff --git a/test/model/CampaignAnalytics.spec.js b/test/model/CampaignAnalytics.spec.js index 0c11d806..dfbe3a7c 100644 --- a/test/model/CampaignAnalytics.spec.js +++ b/test/model/CampaignAnalytics.spec.js @@ -180,6 +180,30 @@ //expect(instance).to.be(); }); + it('should have the property addedLoyaltyPoints (base name: "addedLoyaltyPoints")', function() { + // uncomment below and update the code to test the property addedLoyaltyPoints + //var instane = new TalonOne.CampaignAnalytics(); + //expect(instance).to.be(); + }); + + it('should have the property totalAddedLoyaltyPoints (base name: "totalAddedLoyaltyPoints")', function() { + // uncomment below and update the code to test the property totalAddedLoyaltyPoints + //var instane = new TalonOne.CampaignAnalytics(); + //expect(instance).to.be(); + }); + + it('should have the property deductedLoyaltyPoints (base name: "deductedLoyaltyPoints")', function() { + // uncomment below and update the code to test the property deductedLoyaltyPoints + //var instane = new TalonOne.CampaignAnalytics(); + //expect(instance).to.be(); + }); + + it('should have the property totalDeductedLoyaltyPoints (base name: "totalDeductedLoyaltyPoints")', function() { + // uncomment below and update the code to test the property totalDeductedLoyaltyPoints + //var instane = new TalonOne.CampaignAnalytics(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/CampaignGroup.spec.js b/test/model/CampaignGroup.spec.js new file mode 100644 index 00000000..d78f225b --- /dev/null +++ b/test/model/CampaignGroup.spec.js @@ -0,0 +1,107 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.CampaignGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CampaignGroup', function() { + it('should create an instance of CampaignGroup', function() { + // uncomment below and update the code to test CampaignGroup + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be.a(TalonOne.CampaignGroup); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property created (base name: "created")', function() { + // uncomment below and update the code to test the property created + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property modified (base name: "modified")', function() { + // uncomment below and update the code to test the property modified + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property accountId (base name: "accountId")', function() { + // uncomment below and update the code to test the property accountId + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property subscribedApplicationsIds (base name: "subscribedApplicationsIds")', function() { + // uncomment below and update the code to test the property subscribedApplicationsIds + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property campaignIds (base name: "campaignIds")', function() { + // uncomment below and update the code to test the property campaignIds + //var instane = new TalonOne.CampaignGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MiscUpdateUserLatestFeature.spec.js b/test/model/CampaignGroupEntity.spec.js similarity index 78% rename from test/model/MiscUpdateUserLatestFeature.spec.js rename to test/model/CampaignGroupEntity.spec.js index 5dad0655..ad24b72a 100644 --- a/test/model/MiscUpdateUserLatestFeature.spec.js +++ b/test/model/CampaignGroupEntity.spec.js @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new TalonOne.MiscUpdateUserLatestFeature(); + instance = new TalonOne.CampaignGroupEntity(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('MiscUpdateUserLatestFeature', function() { - it('should create an instance of MiscUpdateUserLatestFeature', function() { - // uncomment below and update the code to test MiscUpdateUserLatestFeature - //var instane = new TalonOne.MiscUpdateUserLatestFeature(); - //expect(instance).to.be.a(TalonOne.MiscUpdateUserLatestFeature); + describe('CampaignGroupEntity', function() { + it('should create an instance of CampaignGroupEntity', function() { + // uncomment below and update the code to test CampaignGroupEntity + //var instane = new TalonOne.CampaignGroupEntity(); + //expect(instance).to.be.a(TalonOne.CampaignGroupEntity); }); - it('should have the property latestFeature (base name: "latestFeature")', function() { - // uncomment below and update the code to test the property latestFeature - //var instane = new TalonOne.MiscUpdateUserLatestFeature(); + it('should have the property campaignGroups (base name: "campaignGroups")', function() { + // uncomment below and update the code to test the property campaignGroups + //var instane = new TalonOne.CampaignGroupEntity(); //expect(instance).to.be(); }); diff --git a/test/model/CreateApplicationAPIKey.spec.js b/test/model/CreateApplicationAPIKey.spec.js index 314d07ee..1fc86807 100644 --- a/test/model/CreateApplicationAPIKey.spec.js +++ b/test/model/CreateApplicationAPIKey.spec.js @@ -66,6 +66,12 @@ //expect(instance).to.be(); }); + it('should have the property platform (base name: "platform")', function() { + // uncomment below and update the code to test the property platform + //var instane = new TalonOne.CreateApplicationAPIKey(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/CustomerInventory.spec.js b/test/model/CustomerInventory.spec.js index d69c98c1..bf05766c 100644 --- a/test/model/CustomerInventory.spec.js +++ b/test/model/CustomerInventory.spec.js @@ -60,6 +60,12 @@ //expect(instance).to.be(); }); + it('should have the property loyalty (base name: "loyalty")', function() { + // uncomment below and update the code to test the property loyalty + //var instane = new TalonOne.CustomerInventory(); + //expect(instance).to.be(); + }); + it('should have the property referrals (base name: "referrals")', function() { // uncomment below and update the code to test the property referrals //var instane = new TalonOne.CustomerInventory(); diff --git a/test/model/CustomerProfile.spec.js b/test/model/CustomerProfile.spec.js index 1bfcce98..db130e28 100644 --- a/test/model/CustomerProfile.spec.js +++ b/test/model/CustomerProfile.spec.js @@ -96,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property audienceMemberships (base name: "audienceMemberships")', function() { + // uncomment below and update the code to test the property audienceMemberships + //var instane = new TalonOne.CustomerProfile(); + //expect(instance).to.be(); + }); + it('should have the property lastActivity (base name: "lastActivity")', function() { // uncomment below and update the code to test the property lastActivity //var instane = new TalonOne.CustomerProfile(); diff --git a/test/model/CustomerProfileUpdate.spec.js b/test/model/CustomerProfileAudienceRequest.spec.js similarity index 80% rename from test/model/CustomerProfileUpdate.spec.js rename to test/model/CustomerProfileAudienceRequest.spec.js index 9a71c799..68715900 100644 --- a/test/model/CustomerProfileUpdate.spec.js +++ b/test/model/CustomerProfileAudienceRequest.spec.js @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new TalonOne.CustomerProfileUpdate(); + instance = new TalonOne.CustomerProfileAudienceRequest(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('CustomerProfileUpdate', function() { - it('should create an instance of CustomerProfileUpdate', function() { - // uncomment below and update the code to test CustomerProfileUpdate - //var instane = new TalonOne.CustomerProfileUpdate(); - //expect(instance).to.be.a(TalonOne.CustomerProfileUpdate); + describe('CustomerProfileAudienceRequest', function() { + it('should create an instance of CustomerProfileAudienceRequest', function() { + // uncomment below and update the code to test CustomerProfileAudienceRequest + //var instane = new TalonOne.CustomerProfileAudienceRequest(); + //expect(instance).to.be.a(TalonOne.CustomerProfileAudienceRequest); }); - it('should have the property customerProfile (base name: "customerProfile")', function() { - // uncomment below and update the code to test the property customerProfile - //var instane = new TalonOne.CustomerProfileUpdate(); + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instane = new TalonOne.CustomerProfileAudienceRequest(); //expect(instance).to.be(); }); diff --git a/test/model/CustomerProfileAudienceRequestItem.spec.js b/test/model/CustomerProfileAudienceRequestItem.spec.js new file mode 100644 index 00000000..6a892740 --- /dev/null +++ b/test/model/CustomerProfileAudienceRequestItem.spec.js @@ -0,0 +1,77 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.CustomerProfileAudienceRequestItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerProfileAudienceRequestItem', function() { + it('should create an instance of CustomerProfileAudienceRequestItem', function() { + // uncomment below and update the code to test CustomerProfileAudienceRequestItem + //var instane = new TalonOne.CustomerProfileAudienceRequestItem(); + //expect(instance).to.be.a(TalonOne.CustomerProfileAudienceRequestItem); + }); + + it('should have the property action (base name: "action")', function() { + // uncomment below and update the code to test the property action + //var instane = new TalonOne.CustomerProfileAudienceRequestItem(); + //expect(instance).to.be(); + }); + + it('should have the property profileIntegrationId (base name: "profileIntegrationId")', function() { + // uncomment below and update the code to test the property profileIntegrationId + //var instane = new TalonOne.CustomerProfileAudienceRequestItem(); + //expect(instance).to.be(); + }); + + it('should have the property audienceId (base name: "audienceId")', function() { + // uncomment below and update the code to test the property audienceId + //var instane = new TalonOne.CustomerProfileAudienceRequestItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerProfileIntegrationRequestV2.spec.js b/test/model/CustomerProfileIntegrationRequestV2.spec.js new file mode 100644 index 00000000..be120373 --- /dev/null +++ b/test/model/CustomerProfileIntegrationRequestV2.spec.js @@ -0,0 +1,71 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.CustomerProfileIntegrationRequestV2(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerProfileIntegrationRequestV2', function() { + it('should create an instance of CustomerProfileIntegrationRequestV2', function() { + // uncomment below and update the code to test CustomerProfileIntegrationRequestV2 + //var instane = new TalonOne.CustomerProfileIntegrationRequestV2(); + //expect(instance).to.be.a(TalonOne.CustomerProfileIntegrationRequestV2); + }); + + it('should have the property attributes (base name: "attributes")', function() { + // uncomment below and update the code to test the property attributes + //var instane = new TalonOne.CustomerProfileIntegrationRequestV2(); + //expect(instance).to.be(); + }); + + it('should have the property responseContent (base name: "responseContent")', function() { + // uncomment below and update the code to test the property responseContent + //var instane = new TalonOne.CustomerProfileIntegrationRequestV2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EntityWithTalangVisibleID.spec.js b/test/model/EntityWithTalangVisibleID.spec.js new file mode 100644 index 00000000..d6b8df73 --- /dev/null +++ b/test/model/EntityWithTalangVisibleID.spec.js @@ -0,0 +1,71 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.EntityWithTalangVisibleID(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EntityWithTalangVisibleID', function() { + it('should create an instance of EntityWithTalangVisibleID', function() { + // uncomment below and update the code to test EntityWithTalangVisibleID + //var instane = new TalonOne.EntityWithTalangVisibleID(); + //expect(instance).to.be.a(TalonOne.EntityWithTalangVisibleID); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.EntityWithTalangVisibleID(); + //expect(instance).to.be(); + }); + + it('should have the property created (base name: "created")', function() { + // uncomment below and update the code to test the property created + //var instane = new TalonOne.EntityWithTalangVisibleID(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FeedNotification.spec.js b/test/model/FeedNotification.spec.js new file mode 100644 index 00000000..6265f2c8 --- /dev/null +++ b/test/model/FeedNotification.spec.js @@ -0,0 +1,95 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.FeedNotification(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FeedNotification', function() { + it('should create an instance of FeedNotification', function() { + // uncomment below and update the code to test FeedNotification + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be.a(TalonOne.FeedNotification); + }); + + it('should have the property title (base name: "title")', function() { + // uncomment below and update the code to test the property title + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + it('should have the property created (base name: "created")', function() { + // uncomment below and update the code to test the property created + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + it('should have the property updated (base name: "updated")', function() { + // uncomment below and update the code to test the property updated + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + it('should have the property articleUrl (base name: "articleUrl")', function() { + // uncomment below and update the code to test the property articleUrl + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + it('should have the property body (base name: "body")', function() { + // uncomment below and update the code to test the property body + //var instane = new TalonOne.FeedNotification(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InlineResponse20012.spec.js b/test/model/InlineResponse20012.spec.js index 6152cc35..670d29f2 100644 --- a/test/model/InlineResponse20012.spec.js +++ b/test/model/InlineResponse20012.spec.js @@ -60,6 +60,12 @@ //expect(instance).to.be(); }); + it('should have the property hasMore (base name: "hasMore")', function() { + // uncomment below and update the code to test the property hasMore + //var instane = new TalonOne.InlineResponse20012(); + //expect(instance).to.be(); + }); + it('should have the property data (base name: "data")', function() { // uncomment below and update the code to test the property data //var instane = new TalonOne.InlineResponse20012(); diff --git a/test/model/LoyaltyLedgerEntry.spec.js b/test/model/LoyaltyLedgerEntry.spec.js index 9cecbac7..32e3be09 100644 --- a/test/model/LoyaltyLedgerEntry.spec.js +++ b/test/model/LoyaltyLedgerEntry.spec.js @@ -96,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property startDate (base name: "startDate")', function() { + // uncomment below and update the code to test the property startDate + //var instane = new TalonOne.LoyaltyLedgerEntry(); + //expect(instance).to.be(); + }); + it('should have the property expiryDate (base name: "expiryDate")', function() { // uncomment below and update the code to test the property expiryDate //var instane = new TalonOne.LoyaltyLedgerEntry(); diff --git a/test/model/LoyaltyPoints.spec.js b/test/model/LoyaltyPoints.spec.js index 415102ef..e0386f90 100644 --- a/test/model/LoyaltyPoints.spec.js +++ b/test/model/LoyaltyPoints.spec.js @@ -66,8 +66,14 @@ //expect(instance).to.be(); }); - it('should have the property expiryDuration (base name: "expiryDuration")', function() { - // uncomment below and update the code to test the property expiryDuration + it('should have the property validityDuration (base name: "validityDuration")', function() { + // uncomment below and update the code to test the property validityDuration + //var instane = new TalonOne.LoyaltyPoints(); + //expect(instance).to.be(); + }); + + it('should have the property pendingDuration (base name: "pendingDuration")', function() { + // uncomment below and update the code to test the property pendingDuration //var instane = new TalonOne.LoyaltyPoints(); //expect(instance).to.be(); }); diff --git a/test/model/LoyaltyProgram.spec.js b/test/model/LoyaltyProgram.spec.js index 9975d03c..0e2d5cf5 100644 --- a/test/model/LoyaltyProgram.spec.js +++ b/test/model/LoyaltyProgram.spec.js @@ -96,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property defaultPending (base name: "defaultPending")', function() { + // uncomment below and update the code to test the property defaultPending + //var instane = new TalonOne.LoyaltyProgram(); + //expect(instance).to.be(); + }); + it('should have the property allowSubledger (base name: "allowSubledger")', function() { // uncomment below and update the code to test the property allowSubledger //var instane = new TalonOne.LoyaltyProgram(); diff --git a/test/model/LoyaltyStatistics.spec.js b/test/model/LoyaltyStatistics.spec.js new file mode 100644 index 00000000..ca376745 --- /dev/null +++ b/test/model/LoyaltyStatistics.spec.js @@ -0,0 +1,83 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.LoyaltyStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyStatistics', function() { + it('should create an instance of LoyaltyStatistics', function() { + // uncomment below and update the code to test LoyaltyStatistics + //var instane = new TalonOne.LoyaltyStatistics(); + //expect(instance).to.be.a(TalonOne.LoyaltyStatistics); + }); + + it('should have the property totalActivePoints (base name: "totalActivePoints")', function() { + // uncomment below and update the code to test the property totalActivePoints + //var instane = new TalonOne.LoyaltyStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property totalPendingPoints (base name: "totalPendingPoints")', function() { + // uncomment below and update the code to test the property totalPendingPoints + //var instane = new TalonOne.LoyaltyStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property totalSpentPoints (base name: "totalSpentPoints")', function() { + // uncomment below and update the code to test the property totalSpentPoints + //var instane = new TalonOne.LoyaltyStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property totalExpiredPoints (base name: "totalExpiredPoints")', function() { + // uncomment below and update the code to test the property totalExpiredPoints + //var instane = new TalonOne.LoyaltyStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltySubLedger.spec.js b/test/model/LoyaltySubLedger.spec.js index d9e2393c..439df4ce 100644 --- a/test/model/LoyaltySubLedger.spec.js +++ b/test/model/LoyaltySubLedger.spec.js @@ -60,6 +60,30 @@ //expect(instance).to.be(); }); + it('should have the property totalActivePoints (base name: "totalActivePoints")', function() { + // uncomment below and update the code to test the property totalActivePoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + + it('should have the property totalPendingPoints (base name: "totalPendingPoints")', function() { + // uncomment below and update the code to test the property totalPendingPoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + + it('should have the property totalSpentPoints (base name: "totalSpentPoints")', function() { + // uncomment below and update the code to test the property totalSpentPoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + + it('should have the property totalExpiredPoints (base name: "totalExpiredPoints")', function() { + // uncomment below and update the code to test the property totalExpiredPoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + it('should have the property transactions (base name: "transactions")', function() { // uncomment below and update the code to test the property transactions //var instane = new TalonOne.LoyaltySubLedger(); @@ -72,6 +96,24 @@ //expect(instance).to.be(); }); + it('should have the property activePoints (base name: "activePoints")', function() { + // uncomment below and update the code to test the property activePoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + + it('should have the property pendingPoints (base name: "pendingPoints")', function() { + // uncomment below and update the code to test the property pendingPoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + + it('should have the property expiredPoints (base name: "expiredPoints")', function() { + // uncomment below and update the code to test the property expiredPoints + //var instane = new TalonOne.LoyaltySubLedger(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/MultipleCustomerProfileIntegrationRequest.spec.js b/test/model/MultipleCustomerProfileIntegrationRequest.spec.js new file mode 100644 index 00000000..8798fe26 --- /dev/null +++ b/test/model/MultipleCustomerProfileIntegrationRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.MultipleCustomerProfileIntegrationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MultipleCustomerProfileIntegrationRequest', function() { + it('should create an instance of MultipleCustomerProfileIntegrationRequest', function() { + // uncomment below and update the code to test MultipleCustomerProfileIntegrationRequest + //var instane = new TalonOne.MultipleCustomerProfileIntegrationRequest(); + //expect(instance).to.be.a(TalonOne.MultipleCustomerProfileIntegrationRequest); + }); + + it('should have the property customerProfiles (base name: "customerProfiles")', function() { + // uncomment below and update the code to test the property customerProfiles + //var instane = new TalonOne.MultipleCustomerProfileIntegrationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MultipleCustomerProfileIntegrationRequestItem.spec.js b/test/model/MultipleCustomerProfileIntegrationRequestItem.spec.js new file mode 100644 index 00000000..7551b42b --- /dev/null +++ b/test/model/MultipleCustomerProfileIntegrationRequestItem.spec.js @@ -0,0 +1,71 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.MultipleCustomerProfileIntegrationRequestItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MultipleCustomerProfileIntegrationRequestItem', function() { + it('should create an instance of MultipleCustomerProfileIntegrationRequestItem', function() { + // uncomment below and update the code to test MultipleCustomerProfileIntegrationRequestItem + //var instane = new TalonOne.MultipleCustomerProfileIntegrationRequestItem(); + //expect(instance).to.be.a(TalonOne.MultipleCustomerProfileIntegrationRequestItem); + }); + + it('should have the property attributes (base name: "attributes")', function() { + // uncomment below and update the code to test the property attributes + //var instane = new TalonOne.MultipleCustomerProfileIntegrationRequestItem(); + //expect(instance).to.be(); + }); + + it('should have the property integrationId (base name: "integrationId")', function() { + // uncomment below and update the code to test the property integrationId + //var instane = new TalonOne.MultipleCustomerProfileIntegrationRequestItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MultipleCustomerProfileIntegrationResponseV2.spec.js b/test/model/MultipleCustomerProfileIntegrationResponseV2.spec.js new file mode 100644 index 00000000..7ffe786b --- /dev/null +++ b/test/model/MultipleCustomerProfileIntegrationResponseV2.spec.js @@ -0,0 +1,65 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.MultipleCustomerProfileIntegrationResponseV2(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MultipleCustomerProfileIntegrationResponseV2', function() { + it('should create an instance of MultipleCustomerProfileIntegrationResponseV2', function() { + // uncomment below and update the code to test MultipleCustomerProfileIntegrationResponseV2 + //var instane = new TalonOne.MultipleCustomerProfileIntegrationResponseV2(); + //expect(instance).to.be.a(TalonOne.MultipleCustomerProfileIntegrationResponseV2); + }); + + it('should have the property integrationStates (base name: "integrationStates")', function() { + // uncomment below and update the code to test the property integrationStates + //var instane = new TalonOne.MultipleCustomerProfileIntegrationResponseV2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NewApplication.spec.js b/test/model/NewApplication.spec.js index 545ed1b6..298938e9 100644 --- a/test/model/NewApplication.spec.js +++ b/test/model/NewApplication.spec.js @@ -102,12 +102,36 @@ //expect(instance).to.be(); }); + it('should have the property exclusiveCampaignsStrategy (base name: "exclusiveCampaignsStrategy")', function() { + // uncomment below and update the code to test the property exclusiveCampaignsStrategy + //var instane = new TalonOne.NewApplication(); + //expect(instance).to.be(); + }); + + it('should have the property enableCascadingDiscounts (base name: "enableCascadingDiscounts")', function() { + // uncomment below and update the code to test the property enableCascadingDiscounts + //var instane = new TalonOne.NewApplication(); + //expect(instance).to.be(); + }); + + it('should have the property enableFlattenedCartItems (base name: "enableFlattenedCartItems")', function() { + // uncomment below and update the code to test the property enableFlattenedCartItems + //var instane = new TalonOne.NewApplication(); + //expect(instance).to.be(); + }); + it('should have the property attributesSettings (base name: "attributesSettings")', function() { // uncomment below and update the code to test the property attributesSettings //var instane = new TalonOne.NewApplication(); //expect(instance).to.be(); }); + it('should have the property sandbox (base name: "sandbox")', function() { + // uncomment below and update the code to test the property sandbox + //var instane = new TalonOne.NewApplication(); + //expect(instance).to.be(); + }); + it('should have the property key (base name: "key")', function() { // uncomment below and update the code to test the property key //var instane = new TalonOne.NewApplication(); diff --git a/test/model/NewApplicationAPIKey.spec.js b/test/model/NewApplicationAPIKey.spec.js index 2309b190..9f751eb0 100644 --- a/test/model/NewApplicationAPIKey.spec.js +++ b/test/model/NewApplicationAPIKey.spec.js @@ -54,20 +54,32 @@ //expect(instance).to.be.a(TalonOne.NewApplicationAPIKey); }); - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id + it('should have the property title (base name: "title")', function() { + // uncomment below and update the code to test the property title //var instane = new TalonOne.NewApplicationAPIKey(); //expect(instance).to.be(); }); - it('should have the property createdBy (base name: "createdBy")', function() { - // uncomment below and update the code to test the property createdBy + it('should have the property expires (base name: "expires")', function() { + // uncomment below and update the code to test the property expires //var instane = new TalonOne.NewApplicationAPIKey(); //expect(instance).to.be(); }); - it('should have the property title (base name: "title")', function() { - // uncomment below and update the code to test the property title + it('should have the property platform (base name: "platform")', function() { + // uncomment below and update the code to test the property platform + //var instane = new TalonOne.NewApplicationAPIKey(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instane = new TalonOne.NewApplicationAPIKey(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "createdBy")', function() { + // uncomment below and update the code to test the property createdBy //var instane = new TalonOne.NewApplicationAPIKey(); //expect(instance).to.be(); }); @@ -90,12 +102,6 @@ //expect(instance).to.be(); }); - it('should have the property expires (base name: "expires")', function() { - // uncomment below and update the code to test the property expires - //var instane = new TalonOne.NewApplicationAPIKey(); - //expect(instance).to.be(); - }); - it('should have the property key (base name: "key")', function() { // uncomment below and update the code to test the property key //var instane = new TalonOne.NewApplicationAPIKey(); diff --git a/test/model/NewAudience.spec.js b/test/model/NewAudience.spec.js new file mode 100644 index 00000000..d89b38c0 --- /dev/null +++ b/test/model/NewAudience.spec.js @@ -0,0 +1,77 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.NewAudience(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NewAudience', function() { + it('should create an instance of NewAudience', function() { + // uncomment below and update the code to test NewAudience + //var instane = new TalonOne.NewAudience(); + //expect(instance).to.be.a(TalonOne.NewAudience); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.NewAudience(); + //expect(instance).to.be(); + }); + + it('should have the property integration (base name: "integration")', function() { + // uncomment below and update the code to test the property integration + //var instane = new TalonOne.NewAudience(); + //expect(instance).to.be(); + }); + + it('should have the property integrationId (base name: "integrationId")', function() { + // uncomment below and update the code to test the property integrationId + //var instane = new TalonOne.NewAudience(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NewCampaign.spec.js b/test/model/NewCampaign.spec.js index 4ac92da0..e6e9dbe1 100644 --- a/test/model/NewCampaign.spec.js +++ b/test/model/NewCampaign.spec.js @@ -126,6 +126,12 @@ //expect(instance).to.be(); }); + it('should have the property campaignGroups (base name: "campaignGroups")', function() { + // uncomment below and update the code to test the property campaignGroups + //var instane = new TalonOne.NewCampaign(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/NewCampaignGroup.spec.js b/test/model/NewCampaignGroup.spec.js new file mode 100644 index 00000000..ef5e1c37 --- /dev/null +++ b/test/model/NewCampaignGroup.spec.js @@ -0,0 +1,83 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.NewCampaignGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NewCampaignGroup', function() { + it('should create an instance of NewCampaignGroup', function() { + // uncomment below and update the code to test NewCampaignGroup + //var instane = new TalonOne.NewCampaignGroup(); + //expect(instance).to.be.a(TalonOne.NewCampaignGroup); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.NewCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instane = new TalonOne.NewCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property subscribedApplicationsIds (base name: "subscribedApplicationsIds")', function() { + // uncomment below and update the code to test the property subscribedApplicationsIds + //var instane = new TalonOne.NewCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property campaignIds (base name: "campaignIds")', function() { + // uncomment below and update the code to test the property campaignIds + //var instane = new TalonOne.NewCampaignGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NewLoyaltyProgram.spec.js b/test/model/NewLoyaltyProgram.spec.js index f3c478db..0a5ca3fe 100644 --- a/test/model/NewLoyaltyProgram.spec.js +++ b/test/model/NewLoyaltyProgram.spec.js @@ -84,6 +84,12 @@ //expect(instance).to.be(); }); + it('should have the property defaultPending (base name: "defaultPending")', function() { + // uncomment below and update the code to test the property defaultPending + //var instane = new TalonOne.NewLoyaltyProgram(); + //expect(instance).to.be(); + }); + it('should have the property allowSubledger (base name: "allowSubledger")', function() { // uncomment below and update the code to test the property allowSubledger //var instane = new TalonOne.NewLoyaltyProgram(); diff --git a/test/model/Role.spec.js b/test/model/Role.spec.js index feb6cbad..a64c0495 100644 --- a/test/model/Role.spec.js +++ b/test/model/Role.spec.js @@ -66,6 +66,12 @@ //expect(instance).to.be(); }); + it('should have the property campaignGroupID (base name: "campaignGroupID")', function() { + // uncomment below and update the code to test the property campaignGroupID + //var instane = new TalonOne.Role(); + //expect(instance).to.be(); + }); + it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name //var instane = new TalonOne.Role(); diff --git a/test/model/SetDiscountEffectProps.spec.js b/test/model/SetDiscountEffectProps.spec.js index 8a9606c4..6c465144 100644 --- a/test/model/SetDiscountEffectProps.spec.js +++ b/test/model/SetDiscountEffectProps.spec.js @@ -66,6 +66,12 @@ //expect(instance).to.be(); }); + it('should have the property scope (base name: "scope")', function() { + // uncomment below and update the code to test the property scope + //var instane = new TalonOne.SetDiscountEffectProps(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/SetDiscountPerItemEffectProps.spec.js b/test/model/SetDiscountPerItemEffectProps.spec.js index 46635d66..c3af3e40 100644 --- a/test/model/SetDiscountPerItemEffectProps.spec.js +++ b/test/model/SetDiscountPerItemEffectProps.spec.js @@ -72,6 +72,12 @@ //expect(instance).to.be(); }); + it('should have the property subPosition (base name: "subPosition")', function() { + // uncomment below and update the code to test the property subPosition + //var instane = new TalonOne.SetDiscountPerItemEffectProps(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/UpdateApplication.spec.js b/test/model/UpdateApplication.spec.js index 7687dc3b..c4297e18 100644 --- a/test/model/UpdateApplication.spec.js +++ b/test/model/UpdateApplication.spec.js @@ -102,12 +102,36 @@ //expect(instance).to.be(); }); + it('should have the property exclusiveCampaignsStrategy (base name: "exclusiveCampaignsStrategy")', function() { + // uncomment below and update the code to test the property exclusiveCampaignsStrategy + //var instane = new TalonOne.UpdateApplication(); + //expect(instance).to.be(); + }); + + it('should have the property enableCascadingDiscounts (base name: "enableCascadingDiscounts")', function() { + // uncomment below and update the code to test the property enableCascadingDiscounts + //var instane = new TalonOne.UpdateApplication(); + //expect(instance).to.be(); + }); + + it('should have the property enableFlattenedCartItems (base name: "enableFlattenedCartItems")', function() { + // uncomment below and update the code to test the property enableFlattenedCartItems + //var instane = new TalonOne.UpdateApplication(); + //expect(instance).to.be(); + }); + it('should have the property attributesSettings (base name: "attributesSettings")', function() { // uncomment below and update the code to test the property attributesSettings //var instane = new TalonOne.UpdateApplication(); //expect(instance).to.be(); }); + it('should have the property sandbox (base name: "sandbox")', function() { + // uncomment below and update the code to test the property sandbox + //var instane = new TalonOne.UpdateApplication(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/UpdateAudience.spec.js b/test/model/UpdateAudience.spec.js new file mode 100644 index 00000000..19d63bd5 --- /dev/null +++ b/test/model/UpdateAudience.spec.js @@ -0,0 +1,65 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.UpdateAudience(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAudience', function() { + it('should create an instance of UpdateAudience', function() { + // uncomment below and update the code to test UpdateAudience + //var instane = new TalonOne.UpdateAudience(); + //expect(instance).to.be.a(TalonOne.UpdateAudience); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.UpdateAudience(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateCampaign.spec.js b/test/model/UpdateCampaign.spec.js index 2d8c44d4..3cc045f3 100644 --- a/test/model/UpdateCampaign.spec.js +++ b/test/model/UpdateCampaign.spec.js @@ -126,6 +126,12 @@ //expect(instance).to.be(); }); + it('should have the property campaignGroups (base name: "campaignGroups")', function() { + // uncomment below and update the code to test the property campaignGroups + //var instane = new TalonOne.UpdateCampaign(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/UpdateCampaignGroup.spec.js b/test/model/UpdateCampaignGroup.spec.js new file mode 100644 index 00000000..44a8719c --- /dev/null +++ b/test/model/UpdateCampaignGroup.spec.js @@ -0,0 +1,83 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.UpdateCampaignGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateCampaignGroup', function() { + it('should create an instance of UpdateCampaignGroup', function() { + // uncomment below and update the code to test UpdateCampaignGroup + //var instane = new TalonOne.UpdateCampaignGroup(); + //expect(instance).to.be.a(TalonOne.UpdateCampaignGroup); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new TalonOne.UpdateCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instane = new TalonOne.UpdateCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property subscribedApplicationsIds (base name: "subscribedApplicationsIds")', function() { + // uncomment below and update the code to test the property subscribedApplicationsIds + //var instane = new TalonOne.UpdateCampaignGroup(); + //expect(instance).to.be(); + }); + + it('should have the property campaignIds (base name: "campaignIds")', function() { + // uncomment below and update the code to test the property campaignIds + //var instane = new TalonOne.UpdateCampaignGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateLoyaltyProgram.spec.js b/test/model/UpdateLoyaltyProgram.spec.js index 0c59b189..a341c6aa 100644 --- a/test/model/UpdateLoyaltyProgram.spec.js +++ b/test/model/UpdateLoyaltyProgram.spec.js @@ -78,6 +78,12 @@ //expect(instance).to.be(); }); + it('should have the property defaultPending (base name: "defaultPending")', function() { + // uncomment below and update the code to test the property defaultPending + //var instane = new TalonOne.UpdateLoyaltyProgram(); + //expect(instance).to.be(); + }); + it('should have the property allowSubledger (base name: "allowSubledger")', function() { // uncomment below and update the code to test the property allowSubledger //var instane = new TalonOne.UpdateLoyaltyProgram(); diff --git a/test/model/UpdateUser.spec.js b/test/model/UpdateUser.spec.js index b0c92ee0..09b3ec1e 100644 --- a/test/model/UpdateUser.spec.js +++ b/test/model/UpdateUser.spec.js @@ -72,18 +72,6 @@ //expect(instance).to.be(); }); - it('should have the property releaseUpdate (base name: "releaseUpdate")', function() { - // uncomment below and update the code to test the property releaseUpdate - //var instane = new TalonOne.UpdateUser(); - //expect(instance).to.be(); - }); - - it('should have the property latestFeature (base name: "latestFeature")', function() { - // uncomment below and update the code to test the property latestFeature - //var instane = new TalonOne.UpdateUser(); - //expect(instance).to.be(); - }); - it('should have the property roles (base name: "roles")', function() { // uncomment below and update the code to test the property roles //var instane = new TalonOne.UpdateUser(); diff --git a/test/model/UpdateUserLatestFeedTimestamp.spec.js b/test/model/UpdateUserLatestFeedTimestamp.spec.js new file mode 100644 index 00000000..e9650356 --- /dev/null +++ b/test/model/UpdateUserLatestFeedTimestamp.spec.js @@ -0,0 +1,65 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.UpdateUserLatestFeedTimestamp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateUserLatestFeedTimestamp', function() { + it('should create an instance of UpdateUserLatestFeedTimestamp', function() { + // uncomment below and update the code to test UpdateUserLatestFeedTimestamp + //var instane = new TalonOne.UpdateUserLatestFeedTimestamp(); + //expect(instance).to.be.a(TalonOne.UpdateUserLatestFeedTimestamp); + }); + + it('should have the property newLatestFeedTimestamp (base name: "newLatestFeedTimestamp")', function() { + // uncomment below and update the code to test the property newLatestFeedTimestamp + //var instane = new TalonOne.UpdateUserLatestFeedTimestamp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/User.spec.js b/test/model/User.spec.js index fb9e0b74..5936ed53 100644 --- a/test/model/User.spec.js +++ b/test/model/User.spec.js @@ -108,14 +108,8 @@ //expect(instance).to.be(); }); - it('should have the property releaseUpdate (base name: "releaseUpdate")', function() { - // uncomment below and update the code to test the property releaseUpdate - //var instane = new TalonOne.User(); - //expect(instance).to.be(); - }); - - it('should have the property latestFeature (base name: "latestFeature")', function() { - // uncomment below and update the code to test the property latestFeature + it('should have the property latestFeedTimestamp (base name: "latestFeedTimestamp")', function() { + // uncomment below and update the code to test the property latestFeedTimestamp //var instane = new TalonOne.User(); //expect(instance).to.be(); }); diff --git a/test/model/UserFeedNotifications.spec.js b/test/model/UserFeedNotifications.spec.js new file mode 100644 index 00000000..3c296fc5 --- /dev/null +++ b/test/model/UserFeedNotifications.spec.js @@ -0,0 +1,71 @@ +/** + * Talon.One API + * The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.TalonOne); + } +}(this, function(expect, TalonOne) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new TalonOne.UserFeedNotifications(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserFeedNotifications', function() { + it('should create an instance of UserFeedNotifications', function() { + // uncomment below and update the code to test UserFeedNotifications + //var instane = new TalonOne.UserFeedNotifications(); + //expect(instance).to.be.a(TalonOne.UserFeedNotifications); + }); + + it('should have the property lastUpdate (base name: "lastUpdate")', function() { + // uncomment below and update the code to test the property lastUpdate + //var instane = new TalonOne.UserFeedNotifications(); + //expect(instance).to.be(); + }); + + it('should have the property notifications (base name: "notifications")', function() { + // uncomment below and update the code to test the property notifications + //var instane = new TalonOne.UserFeedNotifications(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..c4bea732 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,10 @@ +{ + "include": ["src/**/*.js"], + + "compilerOptions": { + "allowJs": true, + "declaration": true, + "emitDeclarationOnly": true, + "outDir": "dist", + }, +}