diff --git a/.gitignore b/.gitignore
index 6e79e69b..daf913b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,5 +22,3 @@ _testmain.go
*.exe
*.test
*.prof
-
-.idea/
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000..b5adc10d
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/talon_go.iml b/.idea/talon_go.iml
new file mode 100644
index 00000000..5e764c4f
--- /dev/null
+++ b/.idea/talon_go.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..35eb1ddf
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 00000000..7f707a4d
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 4436dbce..c9ba3782 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
- API version:
-- Package version: 4.0.0
+- Package version: 5.0.0
- Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen
## Installation
@@ -302,25 +302,25 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**CreateAdditionalCost**](docs/ManagementApi.md#createadditionalcost) | **Post** /v1/additional_costs | Create additional cost
*ManagementApi* | [**CreateAttribute**](docs/ManagementApi.md#createattribute) | **Post** /v1/attributes | Create custom attribute
*ManagementApi* | [**CreateCampaignFromTemplate**](docs/ManagementApi.md#createcampaignfromtemplate) | **Post** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template
-*ManagementApi* | [**CreateCollection**](docs/ManagementApi.md#createcollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create collection
+*ManagementApi* | [**CreateCollection**](docs/ManagementApi.md#createcollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create campaign-level collection
*ManagementApi* | [**CreateCoupons**](docs/ManagementApi.md#createcoupons) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons
*ManagementApi* | [**CreateCouponsAsync**](docs/ManagementApi.md#createcouponsasync) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously
*ManagementApi* | [**CreateCouponsForMultipleRecipients**](docs/ManagementApi.md#createcouponsformultiplerecipients) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients | Create coupons for multiple recipients
-*ManagementApi* | [**CreateNotificationWebhook**](docs/ManagementApi.md#createnotificationwebhook) | **Post** /v1/applications/{applicationId}/notification_webhooks | Create notification about campaign-related changes
*ManagementApi* | [**CreatePasswordRecoveryEmail**](docs/ManagementApi.md#createpasswordrecoveryemail) | **Post** /v1/password_recovery_emails | Request a password reset
*ManagementApi* | [**CreateSession**](docs/ManagementApi.md#createsession) | **Post** /v1/sessions | Create session
+*ManagementApi* | [**CreateStore**](docs/ManagementApi.md#createstore) | **Post** /v1/applications/{applicationId}/stores | Create store
*ManagementApi* | [**DeductLoyaltyCardPoints**](docs/ManagementApi.md#deductloyaltycardpoints) | **Put** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points | Deduct points from card
*ManagementApi* | [**DeleteAccountCollection**](docs/ManagementApi.md#deleteaccountcollection) | **Delete** /v1/collections/{collectionId} | Delete account-level collection
*ManagementApi* | [**DeleteCampaign**](docs/ManagementApi.md#deletecampaign) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign
-*ManagementApi* | [**DeleteCollection**](docs/ManagementApi.md#deletecollection) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete collection
+*ManagementApi* | [**DeleteCollection**](docs/ManagementApi.md#deletecollection) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection
*ManagementApi* | [**DeleteCoupon**](docs/ManagementApi.md#deletecoupon) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon
*ManagementApi* | [**DeleteCoupons**](docs/ManagementApi.md#deletecoupons) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Delete coupons
*ManagementApi* | [**DeleteLoyaltyCard**](docs/ManagementApi.md#deleteloyaltycard) | **Delete** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Delete loyalty card
-*ManagementApi* | [**DeleteNotificationWebhook**](docs/ManagementApi.md#deletenotificationwebhook) | **Delete** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Delete notification about campaign-related changes
*ManagementApi* | [**DeleteReferral**](docs/ManagementApi.md#deletereferral) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Delete referral
+*ManagementApi* | [**DeleteStore**](docs/ManagementApi.md#deletestore) | **Delete** /v1/applications/{applicationId}/stores/{storeId} | Delete store
*ManagementApi* | [**DestroySession**](docs/ManagementApi.md#destroysession) | **Delete** /v1/sessions | Destroy session
*ManagementApi* | [**ExportAccountCollectionItems**](docs/ManagementApi.md#exportaccountcollectionitems) | **Get** /v1/collections/{collectionId}/export | Export account-level collection's items
-*ManagementApi* | [**ExportCollectionItems**](docs/ManagementApi.md#exportcollectionitems) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export a collection's items
+*ManagementApi* | [**ExportCollectionItems**](docs/ManagementApi.md#exportcollectionitems) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items
*ManagementApi* | [**ExportCoupons**](docs/ManagementApi.md#exportcoupons) | **Get** /v1/applications/{applicationId}/export_coupons | Export coupons
*ManagementApi* | [**ExportCustomerSessions**](docs/ManagementApi.md#exportcustomersessions) | **Get** /v1/applications/{applicationId}/export_customer_sessions | Export customer sessions
*ManagementApi* | [**ExportCustomersTiers**](docs/ManagementApi.md#exportcustomerstiers) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/export_customers_tiers | Export customers' tier data
@@ -360,7 +360,7 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetCampaignTemplates**](docs/ManagementApi.md#getcampaigntemplates) | **Get** /v1/campaign_templates | List campaign templates
*ManagementApi* | [**GetCampaigns**](docs/ManagementApi.md#getcampaigns) | **Get** /v1/applications/{applicationId}/campaigns | List campaigns
*ManagementApi* | [**GetChanges**](docs/ManagementApi.md#getchanges) | **Get** /v1/changes | Get audit logs for an account
-*ManagementApi* | [**GetCollection**](docs/ManagementApi.md#getcollection) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Get collection
+*ManagementApi* | [**GetCollection**](docs/ManagementApi.md#getcollection) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Get campaign-level collection
*ManagementApi* | [**GetCollectionItems**](docs/ManagementApi.md#getcollectionitems) | **Get** /v1/collections/{collectionId}/items | Get collection items
*ManagementApi* | [**GetCouponsWithoutTotalCount**](docs/ManagementApi.md#getcouponswithouttotalcount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/no_total | List coupons
*ManagementApi* | [**GetCustomerActivityReport**](docs/ManagementApi.md#getcustomeractivityreport) | **Get** /v1/applications/{applicationId}/customer_activity_reports/{customerId} | Get customer's activity report
@@ -379,21 +379,20 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetLoyaltyProgramTransactions**](docs/ManagementApi.md#getloyaltyprogramtransactions) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/transactions | List loyalty program transactions
*ManagementApi* | [**GetLoyaltyPrograms**](docs/ManagementApi.md#getloyaltyprograms) | **Get** /v1/loyalty_programs | List loyalty programs
*ManagementApi* | [**GetLoyaltyStatistics**](docs/ManagementApi.md#getloyaltystatistics) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/statistics | Get loyalty program statistics
-*ManagementApi* | [**GetNotificationWebhook**](docs/ManagementApi.md#getnotificationwebhook) | **Get** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Get notification about campaign-related changes
-*ManagementApi* | [**GetNotificationWebhooks**](docs/ManagementApi.md#getnotificationwebhooks) | **Get** /v1/applications/{applicationId}/notification_webhooks | List notifications about campaign-related changes
*ManagementApi* | [**GetReferralsWithoutTotalCount**](docs/ManagementApi.md#getreferralswithouttotalcount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List referrals
*ManagementApi* | [**GetRole**](docs/ManagementApi.md#getrole) | **Get** /v1/roles/{roleId} | Get role
*ManagementApi* | [**GetRuleset**](docs/ManagementApi.md#getruleset) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId} | Get ruleset
*ManagementApi* | [**GetRulesets**](docs/ManagementApi.md#getrulesets) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets | List campaign rulesets
+*ManagementApi* | [**GetStore**](docs/ManagementApi.md#getstore) | **Get** /v1/applications/{applicationId}/stores/{storeId} | Get store
*ManagementApi* | [**GetUser**](docs/ManagementApi.md#getuser) | **Get** /v1/users/{userId} | Get user
*ManagementApi* | [**GetUsers**](docs/ManagementApi.md#getusers) | **Get** /v1/users | List users in account
*ManagementApi* | [**GetWebhook**](docs/ManagementApi.md#getwebhook) | **Get** /v1/webhooks/{webhookId} | Get webhook
*ManagementApi* | [**GetWebhookActivationLogs**](docs/ManagementApi.md#getwebhookactivationlogs) | **Get** /v1/webhook_activation_logs | List webhook activation log entries
*ManagementApi* | [**GetWebhookLogs**](docs/ManagementApi.md#getwebhooklogs) | **Get** /v1/webhook_logs | List webhook log entries
*ManagementApi* | [**GetWebhooks**](docs/ManagementApi.md#getwebhooks) | **Get** /v1/webhooks | List webhooks
-*ManagementApi* | [**ImportAccountCollection**](docs/ManagementApi.md#importaccountcollection) | **Post** /v1/collections/{collectionId}/import | Import data in existing account-level collection
+*ManagementApi* | [**ImportAccountCollection**](docs/ManagementApi.md#importaccountcollection) | **Post** /v1/collections/{collectionId}/import | Import data into existing account-level collection
*ManagementApi* | [**ImportAllowedList**](docs/ManagementApi.md#importallowedlist) | **Post** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute
-*ManagementApi* | [**ImportCollection**](docs/ManagementApi.md#importcollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data in existing collection
+*ManagementApi* | [**ImportCollection**](docs/ManagementApi.md#importcollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection
*ManagementApi* | [**ImportCoupons**](docs/ManagementApi.md#importcoupons) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons
*ManagementApi* | [**ImportLoyaltyCards**](docs/ManagementApi.md#importloyaltycards) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/import_cards | Import loyalty cards
*ManagementApi* | [**ImportLoyaltyCustomersTiers**](docs/ManagementApi.md#importloyaltycustomerstiers) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/import_customers_tiers | Import customers into loyalty tiers
@@ -402,8 +401,9 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**ImportReferrals**](docs/ManagementApi.md#importreferrals) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals | Import referrals
*ManagementApi* | [**ListAccountCollections**](docs/ManagementApi.md#listaccountcollections) | **Get** /v1/collections | List collections in account
*ManagementApi* | [**ListCatalogItems**](docs/ManagementApi.md#listcatalogitems) | **Get** /v1/catalogs/{catalogId}/items | List items in a catalog
-*ManagementApi* | [**ListCollections**](docs/ManagementApi.md#listcollections) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections
-*ManagementApi* | [**ListCollectionsInApplication**](docs/ManagementApi.md#listcollectionsinapplication) | **Get** /v1/applications/{applicationId}/collections | List collections in application
+*ManagementApi* | [**ListCollections**](docs/ManagementApi.md#listcollections) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign
+*ManagementApi* | [**ListCollectionsInApplication**](docs/ManagementApi.md#listcollectionsinapplication) | **Get** /v1/applications/{applicationId}/collections | List collections in Application
+*ManagementApi* | [**ListStores**](docs/ManagementApi.md#liststores) | **Get** /v1/applications/{applicationId}/stores | List stores
*ManagementApi* | [**NotificationActivation**](docs/ManagementApi.md#notificationactivation) | **Put** /v1/notifications/{notificationId}/activation | Activate or deactivate notification
*ManagementApi* | [**PostAddedDeductedPointsNotification**](docs/ManagementApi.md#postaddeddeductedpointsnotification) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/notifications/added_deducted_points | Create notification about added or deducted loyalty points
*ManagementApi* | [**PostCatalogsStrikethroughNotification**](docs/ManagementApi.md#postcatalogsstrikethroughnotification) | **Post** /v1/applications/{applicationId}/catalogs/notifications/strikethrough | Create strikethrough notification
@@ -417,12 +417,12 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**UpdateAdditionalCost**](docs/ManagementApi.md#updateadditionalcost) | **Put** /v1/additional_costs/{additionalCostId} | Update additional cost
*ManagementApi* | [**UpdateAttribute**](docs/ManagementApi.md#updateattribute) | **Put** /v1/attributes/{attributeId} | Update custom attribute
*ManagementApi* | [**UpdateCampaign**](docs/ManagementApi.md#updatecampaign) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId} | Update campaign
-*ManagementApi* | [**UpdateCollection**](docs/ManagementApi.md#updatecollection) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update collection description
+*ManagementApi* | [**UpdateCollection**](docs/ManagementApi.md#updatecollection) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update campaign-level collection's description
*ManagementApi* | [**UpdateCoupon**](docs/ManagementApi.md#updatecoupon) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Update coupon
*ManagementApi* | [**UpdateCouponBatch**](docs/ManagementApi.md#updatecouponbatch) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Update coupons
*ManagementApi* | [**UpdateLoyaltyCard**](docs/ManagementApi.md#updateloyaltycard) | **Put** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card status
-*ManagementApi* | [**UpdateNotificationWebhook**](docs/ManagementApi.md#updatenotificationwebhook) | **Put** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Update notification about campaign-related changes
*ManagementApi* | [**UpdateReferral**](docs/ManagementApi.md#updatereferral) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Update referral
+*ManagementApi* | [**UpdateStore**](docs/ManagementApi.md#updatestore) | **Put** /v1/applications/{applicationId}/stores/{storeId} | Update store
## Documentation For Models
@@ -463,6 +463,7 @@ Class | Method | HTTP request | Description
- [ApplicationReferee](docs/ApplicationReferee.md)
- [ApplicationSession](docs/ApplicationSession.md)
- [ApplicationSessionEntity](docs/ApplicationSessionEntity.md)
+ - [ApplicationStoreEntity](docs/ApplicationStoreEntity.md)
- [AsyncCouponCreationResponse](docs/AsyncCouponCreationResponse.md)
- [Attribute](docs/Attribute.md)
- [AttributesMandatory](docs/AttributesMandatory.md)
@@ -488,6 +489,7 @@ Class | Method | HTTP request | Description
- [Campaign](docs/Campaign.md)
- [CampaignActivationRequest](docs/CampaignActivationRequest.md)
- [CampaignAnalytics](docs/CampaignAnalytics.md)
+ - [CampaignBudget](docs/CampaignBudget.md)
- [CampaignCollection](docs/CampaignCollection.md)
- [CampaignCollectionWithoutPayload](docs/CampaignCollectionWithoutPayload.md)
- [CampaignCopy](docs/CampaignCopy.md)
@@ -641,6 +643,7 @@ Class | Method | HTTP request | Description
- [IntegrationRequest](docs/IntegrationRequest.md)
- [IntegrationState](docs/IntegrationState.md)
- [IntegrationStateV2](docs/IntegrationStateV2.md)
+ - [IntegrationStoreEntity](docs/IntegrationStoreEntity.md)
- [InventoryCoupon](docs/InventoryCoupon.md)
- [InventoryReferral](docs/InventoryReferral.md)
- [ItemAttribute](docs/ItemAttribute.md)
@@ -670,7 +673,6 @@ Class | Method | HTTP request | Description
- [LoyaltyProgramLedgers](docs/LoyaltyProgramLedgers.md)
- [LoyaltyProgramSubledgers](docs/LoyaltyProgramSubledgers.md)
- [LoyaltyProgramTransaction](docs/LoyaltyProgramTransaction.md)
- - [LoyaltyStatistics](docs/LoyaltyStatistics.md)
- [LoyaltySubLedger](docs/LoyaltySubLedger.md)
- [LoyaltyTier](docs/LoyaltyTier.md)
- [ManagementKey](docs/ManagementKey.md)
@@ -737,7 +739,7 @@ Class | Method | HTTP request | Description
- [NewWebhook](docs/NewWebhook.md)
- [Notification](docs/Notification.md)
- [NotificationActivation](docs/NotificationActivation.md)
- - [NotificationWebhook](docs/NotificationWebhook.md)
+ - [OneTimeCode](docs/OneTimeCode.md)
- [OutgoingIntegrationBrazePolicy](docs/OutgoingIntegrationBrazePolicy.md)
- [OutgoingIntegrationCleverTapPolicy](docs/OutgoingIntegrationCleverTapPolicy.md)
- [OutgoingIntegrationConfiguration](docs/OutgoingIntegrationConfiguration.md)
@@ -796,6 +798,7 @@ Class | Method | HTTP request | Description
- [ShowBundleMetadataEffectProps](docs/ShowBundleMetadataEffectProps.md)
- [ShowNotificationEffectProps](docs/ShowNotificationEffectProps.md)
- [SlotDef](docs/SlotDef.md)
+ - [SsoConfig](docs/SsoConfig.md)
- [Store](docs/Store.md)
- [StrikethroughChangedItem](docs/StrikethroughChangedItem.md)
- [StrikethroughCustomEffectPerItemProps](docs/StrikethroughCustomEffectPerItemProps.md)
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 68231e3e..d4592f6a 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -192,6 +192,11 @@ tags:
Represents a session used for authentication purposes.
Create one with the [Create session](#operation/createSession) endpoint.
name: Sessions
+- description: |
+ Represents single sign-on (SSO) configuration-related endpoints.
+
+ Single sign-on is a way to allow users to access many service providers using a single username and password by relying on a single identity provider.
+ name: Single sign-on
- description: |
Represents physical or digital stores, branches, and franchises.
name: Stores
@@ -2120,170 +2125,6 @@ paths:
summary: List campaigns
tags:
- management
- /v1/applications/{applicationId}/notification_webhooks:
- get:
- description: |
- List all
- [notifications about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications)
- for the given Application.
- operationId: getNotificationWebhooks
- parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/inline_response_200_7'
- description: OK
- summary: List notifications about campaign-related changes
- tags:
- - management
- post:
- description: |
- Create a
- [notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
-
- A notification about campaign-related changes is different from regular webhooks
- in that it is Application-scoped and has a predefined payload.
- [Regular webhooks](https://docs.talon.one/docs/dev/getting-started/webhooks) have user-definable payloads.
-
- **Tip:**
-
- - You can create these notifications using the Campaign Manager.
- See [Managing notifications](https://docs.talon.one/docs/product/applications/outbound-notifications).
- - You can review the payload you will receive in the [specs](https://docs.talon.one/outbound-notifications).
- operationId: createNotificationWebhook
- parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NewNotificationWebhook'
- description: body
- required: true
- responses:
- "201":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NotificationWebhook'
- description: Created
- summary: Create notification about campaign-related changes
- tags:
- - management
- x-codegen-request-body-name: body
- /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}:
- delete:
- description: |
- Remove the given existing
- [notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
- operationId: deleteNotificationWebhook
- parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- - description: The ID of the webhook. Get it with the appropriate _List notifications_
- endpoint.
- in: path
- name: notificationWebhookId
- required: true
- schema:
- type: integer
- responses:
- "204":
- content: {}
- description: No Content
- summary: Delete notification about campaign-related changes
- tags:
- - management
- get:
- description: |
- Return the given
- [notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
- operationId: getNotificationWebhook
- parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- - description: The ID of the webhook. Get it with the appropriate _List notifications_
- endpoint.
- in: path
- name: notificationWebhookId
- required: true
- schema:
- type: integer
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NotificationWebhook'
- description: OK
- summary: Get notification about campaign-related changes
- tags:
- - management
- put:
- description: |
- Update the given
- [notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
-
- **Tip:** You can review the payload you will receive in the [specs](https://docs.talon.one/outbound-notifications).
- operationId: updateNotificationWebhook
- parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- - description: The ID of the webhook. Get it with the appropriate _List notifications_
- endpoint.
- in: path
- name: notificationWebhookId
- required: true
- schema:
- type: integer
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NewNotificationWebhook'
- description: body
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/NotificationWebhook'
- description: OK
- summary: Update notification about campaign-related changes
- tags:
- - management
- x-codegen-request-body-name: body
/v1/applications/{applicationId}/campaigns/{campaignId}:
delete:
description: Delete the given campaign.
@@ -2719,7 +2560,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_8'
+ $ref: '#/components/schemas/inline_response_200_7'
description: OK
summary: List campaign rulesets
tags:
@@ -2927,7 +2768,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_9'
+ $ref: '#/components/schemas/inline_response_200_8'
description: OK
"204":
content: {}
@@ -3024,7 +2865,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_9'
+ $ref: '#/components/schemas/inline_response_200_8'
description: OK
"204":
content: {}
@@ -3186,7 +3027,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_10'
+ $ref: '#/components/schemas/inline_response_200_9'
description: OK
summary: List coupons
tags:
@@ -3404,7 +3245,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_10'
+ $ref: '#/components/schemas/inline_response_200_9'
description: OK
summary: List coupons that match the given attributes in campaign (without total
count)
@@ -3550,7 +3391,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_10'
+ $ref: '#/components/schemas/inline_response_200_9'
description: OK
summary: List coupons that match the given attributes (without total count)
tags:
@@ -3724,7 +3565,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_11'
+ $ref: '#/components/schemas/inline_response_200_10'
description: OK
summary: List referrals
tags:
@@ -3787,7 +3628,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_12'
+ $ref: '#/components/schemas/inline_response_200_11'
description: OK
summary: List campaign templates
tags:
@@ -3836,7 +3677,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_13'
+ $ref: '#/components/schemas/inline_response_200_12'
description: OK
summary: List loyalty programs
tags:
@@ -4324,7 +4165,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/LoyaltyStatistics'
+ $ref: '#/components/schemas/LoyaltyDashboardData'
description: OK
summary: Get loyalty program statistics
tags:
@@ -4513,7 +4354,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_14'
+ $ref: '#/components/schemas/inline_response_200_13'
description: OK
"400":
content:
@@ -4712,7 +4553,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_15'
+ $ref: '#/components/schemas/inline_response_200_14'
description: OK
"400":
content:
@@ -5128,7 +4969,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_16'
+ $ref: '#/components/schemas/inline_response_200_15'
description: OK
"401":
content:
@@ -5208,25 +5049,34 @@ paths:
x-codegen-request-body-name: body
/v1/giveaways/pools/{poolId}/import:
post:
- description: "Upload a CSV file containing the giveaway codes that should be\
- \ created. Send the file as multipart data.\n\nThe CSV file contains the following\
- \ columns:\n- `code` (required): the code of your giveaway, for instance,\
- \ a gift card redemption code.\n- `startdate`: the start date in RFC3339\
- \ of the code redemption period.\n- `enddate`: the last date in RFC3339 of\
- \ the code redemption period.\n- `attributes`: A JSON object describing _custom_\
- \ giveaway attribute names and their values, enclosed with double quotation\
- \ marks.\n \n For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes)\n\
- \ called `provider` associated with the giveaway entity, the object in the\
- \ CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"\
- }\"`.\n\nThe `startdate` and `enddate` have nothing to do with the _validity_\
- \ of the codes. They are only used by the Rule Engine to award the codes or\
- \ not.\nYou can use the time zone of your choice. The values are converted\
- \ to UTC internally by Talon.One.\n\n**Note:** We recommend limiting your\
- \ file size to 500MB.\n\n**Example:**\n\n```text\ncode,startdate,enddate,attributes\n\
- GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\
- \"Amazon\"\"}\"\nGIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\
- \"provider\"\": \"\"Amazon\"\"}\"\nGIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"\
- {\"\"provider\"\": \"\"Aliexpress\"\"}\"\n```\n"
+ description: |
+ Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data.
+
+ The CSV file contains the following columns:
+ - `code` (required): the code of your giveaway, for instance, a gift card redemption code.
+ - `startdate`: the start date in RFC3339 of the code redemption period.
+ - `enddate`: the last date in RFC3339 of the code redemption period.
+ - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks.
+
+ For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes)
+ called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `"{"provider": "myPartnerCompany"}"`.
+
+ The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not.
+ You can use the time zone of your choice. The values are converted to UTC internally by Talon.One.
+
+ **Note:**
+
+ - We recommend limiting your file size to 500MB.
+ - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes.
+
+ **Example:**
+
+ ```text
+ code,startdate,enddate,attributes
+ GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,"{""provider"": ""Amazon""}"
+ GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,"{""provider"": ""Amazon""}"
+ GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,"{""provider"": ""Aliexpress""}"
+ ```
operationId: importPoolGiveaways
parameters:
- description: The ID of the pool. You can find it in the Campaign Manager,
@@ -5321,7 +5171,7 @@ paths:
- management
/v1/collections:
get:
- description: List collections in account.
+ description: List account-level collections in the account.
operationId: listAccountCollections
parameters:
- description: The number of items in this response.
@@ -5355,7 +5205,7 @@ paths:
name: withTotalResultSize
schema:
type: boolean
- - description: Filter by the name of the Collection.
+ - description: Filter by collection name.
in: query
name: name
schema:
@@ -5365,7 +5215,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_17'
+ $ref: '#/components/schemas/inline_response_200_16'
description: OK
"400":
content:
@@ -5389,7 +5239,7 @@ paths:
tags:
- management
post:
- description: Create account-level collection.
+ description: Create an account-level collection.
operationId: createAccountCollection
requestBody:
content:
@@ -5422,18 +5272,18 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
- description: Conflict. A Collection with this name already exists.
+ description: Conflict. A collection with this name already exists.
summary: Create account-level collection
tags:
- management
x-codegen-request-body-name: body
/v1/collections/{collectionId}:
delete:
- description: Delete the given account-level collection.
+ description: Delete a given account-level collection.
operationId: deleteAccountCollection
parameters:
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -5456,8 +5306,8 @@ paths:
description: Retrieve a given account-level collection.
operationId: getAccountCollection
parameters:
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -5480,12 +5330,12 @@ paths:
tags:
- management
put:
- description: Edit the description of the account-level collection and enable
+ description: Edit the description of a given account-level collection and enable
or disable the collection in the specified Applications.
operationId: updateAccountCollection
parameters:
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -5522,14 +5372,17 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
- description: Conflict. A Collection with this name already exists.
+ description: Conflict. A collection with this name already exists.
summary: Update account-level collection
tags:
- management
x-codegen-request-body-name: body
/v1/collections/{collectionId}/items:
get:
- description: Retrieve the items from the given collection.
+ description: |
+ Retrieve items from a given collection.
+
+ You can retrieve items from both account-level collections and campaign-level collections using this endpoint.
operationId: getCollectionItems
parameters:
- description: The number of items in this response.
@@ -5546,8 +5399,8 @@ paths:
name: skip
schema:
type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -5558,7 +5411,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_18'
+ $ref: '#/components/schemas/inline_response_200_17'
description: OK
"404":
content:
@@ -5571,7 +5424,7 @@ paths:
- management
/v1/applications/{applicationId}/collections:
get:
- description: List collections from all campaigns in the Application.
+ description: List campaign-level collections from all campaigns in a given Application.
operationId: listCollectionsInApplication
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5612,7 +5465,7 @@ paths:
name: withTotalResultSize
schema:
type: boolean
- - description: Filter by the name of the Collection.
+ - description: Filter by collection name.
in: query
name: name
schema:
@@ -5622,7 +5475,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_19'
+ $ref: '#/components/schemas/inline_response_200_18'
description: OK
"404":
content:
@@ -5630,12 +5483,12 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Not found
- summary: List collections in application
+ summary: List collections in Application
tags:
- management
/v1/applications/{applicationId}/campaigns/{campaignId}/collections:
get:
- description: List collections in the campaign.
+ description: List collections in a given campaign.
operationId: listCollections
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5683,7 +5536,7 @@ paths:
name: withTotalResultSize
schema:
type: boolean
- - description: Filter by the name of the Collection.
+ - description: Filter by collection name.
in: query
name: name
schema:
@@ -5693,7 +5546,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_19'
+ $ref: '#/components/schemas/inline_response_200_18'
description: OK
"404":
content:
@@ -5701,11 +5554,11 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Not found
- summary: List collections
+ summary: List collections in campaign
tags:
- management
post:
- description: Create a collection.
+ description: Create a campaign-level collection in a given campaign.
operationId: createCollection
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5736,13 +5589,13 @@ paths:
schema:
$ref: '#/components/schemas/Collection'
description: Created
- summary: Create collection
+ summary: Create campaign-level collection
tags:
- management
x-codegen-request-body-name: body
/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}:
delete:
- description: Delete the given collection.
+ description: Delete a given campaign-level collection.
operationId: deleteCollection
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5759,8 +5612,8 @@ paths:
required: true
schema:
type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in Application](#operation/listCollectionsInApplication) endpoint.
in: path
name: collectionId
required: true
@@ -5776,11 +5629,11 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Unauthorized
- summary: Delete collection
+ summary: Delete campaign-level collection
tags:
- management
get:
- description: Retrieve a given collection.
+ description: Retrieve a given campaign-level collection.
operationId: getCollection
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5797,8 +5650,8 @@ paths:
required: true
schema:
type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in Application](#operation/listCollectionsInApplication) endpoint.
in: path
name: collectionId
required: true
@@ -5817,11 +5670,11 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Not found
- summary: Get collection
+ summary: Get campaign-level collection
tags:
- management
put:
- description: Edit the description of the collection.
+ description: Edit the description of a given campaign-level collection.
operationId: updateCollection
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -5838,8 +5691,8 @@ paths:
required: true
schema:
type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in Application](#operation/listCollectionsInApplication) endpoint.
in: path
name: collectionId
required: true
@@ -5865,11 +5718,11 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Unauthorized
- summary: Update collection description
+ summary: Update campaign-level collection's description
tags:
- management
x-codegen-request-body-name: body
- /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import:
+ /v1/collections/{collectionId}/import:
post:
description: |
Upload a CSV file containing the collection of string values that should be attached as payload for collection.
@@ -5893,24 +5746,10 @@ paths:
```
**Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection.
- operationId: importCollection
+ operationId: importAccountCollection
parameters:
- - description: The ID of the Application. It is displayed in your Talon.One
- deployment URL.
- in: path
- name: applicationId
- required: true
- schema:
- type: integer
- - description: The ID of the campaign. It is displayed in your Talon.One deployment
- URL.
- in: path
- name: campaignId
- required: true
- schema:
- type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -5933,16 +5772,22 @@ paths:
schema:
$ref: '#/components/schemas/Import'
description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Bad request
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Unauthorized
- summary: Import data in existing collection
+ summary: Import data into existing account-level collection
tags:
- management
- /v1/collections/{collectionId}/import:
+ /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import:
post:
description: |
Upload a CSV file containing the collection of string values that should be attached as payload for collection.
@@ -5966,10 +5811,24 @@ paths:
```
**Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection.
- operationId: importAccountCollection
+ operationId: importCollection
parameters:
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ - description: The ID of the campaign. It is displayed in your Talon.One deployment
+ URL.
+ in: path
+ name: campaignId
+ required: true
+ schema:
+ type: integer
+ - description: The ID of the collection. You can get it with the [List collections
+ in Application](#operation/listCollectionsInApplication) endpoint.
in: path
name: collectionId
required: true
@@ -5992,31 +5851,25 @@ paths:
schema:
$ref: '#/components/schemas/Import'
description: OK
- "400":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ErrorResponseWithStatus'
- description: Bad request
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Unauthorized
- summary: Import data in existing account-level collection
+ summary: Import data into existing campaign-level collection
tags:
- management
/v1/collections/{collectionId}/export:
get:
description: |
- Download a CSV file containing items from an account-level collection.
+ Download a CSV file containing items from a given account-level collection.
**Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
operationId: exportAccountCollectionItems
parameters:
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in account](#operation/listAccountCollections) endpoint.
in: path
name: collectionId
required: true
@@ -6053,7 +5906,7 @@ paths:
/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export:
get:
description: |
- Download a CSV file containing a collection's items.
+ Download a CSV file containing items from a given campaign-level collection.
**Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
operationId: exportCollectionItems
@@ -6072,8 +5925,8 @@ paths:
required: true
schema:
type: integer
- - description: The ID of the collection. You can get it with the [List collection
- in account](#operation/listCollectionsInApplication) endpoint.
+ - description: The ID of the collection. You can get it with the [List collections
+ in Application](#operation/listCollectionsInApplication) endpoint.
in: path
name: collectionId
required: true
@@ -6104,7 +5957,7 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponseWithStatus'
description: Not found
- summary: Export a collection's items
+ summary: Export campaign-level collection's items
tags:
- management
/v1/applications/{applicationId}/health_report:
@@ -6216,7 +6069,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_20'
+ $ref: '#/components/schemas/inline_response_200_19'
description: OK
summary: Get access logs for Application
tags:
@@ -6296,7 +6149,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_21'
+ $ref: '#/components/schemas/inline_response_200_20'
description: OK
summary: List access logs
tags:
@@ -6352,7 +6205,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_22'
+ $ref: '#/components/schemas/inline_response_200_21'
description: OK
summary: Get analytics of campaigns
tags:
@@ -6403,7 +6256,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_23'
+ $ref: '#/components/schemas/inline_response_200_22'
description: OK
summary: List application's customers
tags:
@@ -6458,7 +6311,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_24'
+ $ref: '#/components/schemas/inline_response_200_23'
description: OK
summary: List application customers matching the given attributes
tags:
@@ -6504,7 +6357,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_25'
+ $ref: '#/components/schemas/inline_response_200_24'
description: OK
summary: List customer profiles matching the given attributes
tags:
@@ -6574,7 +6427,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_26'
+ $ref: '#/components/schemas/inline_response_200_25'
description: OK
summary: List customer profiles
tags:
@@ -6688,7 +6541,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_27'
+ $ref: '#/components/schemas/inline_response_200_26'
description: OK
summary: Get Activity Reports for Application Customers
tags:
@@ -6890,7 +6743,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_28'
+ $ref: '#/components/schemas/inline_response_200_27'
description: OK
summary: List Application sessions
tags:
@@ -7029,7 +6882,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_29'
+ $ref: '#/components/schemas/inline_response_200_28'
description: OK
summary: List Applications events
tags:
@@ -7076,7 +6929,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_30'
+ $ref: '#/components/schemas/inline_response_200_29'
description: OK
summary: List Applications event types
tags:
@@ -7123,7 +6976,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_31'
+ $ref: '#/components/schemas/inline_response_200_30'
description: OK
summary: List audiences
tags:
@@ -7183,7 +7036,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_32'
+ $ref: '#/components/schemas/inline_response_200_31'
description: OK
summary: List friends referred by customer profile
tags:
@@ -7226,7 +7079,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_33'
+ $ref: '#/components/schemas/inline_response_200_32'
description: OK
summary: List custom attributes
tags:
@@ -7439,7 +7292,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_34'
+ $ref: '#/components/schemas/inline_response_200_33'
description: OK
summary: List items in a catalog
tags:
@@ -7719,7 +7572,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_35'
+ $ref: '#/components/schemas/inline_response_200_34'
description: OK
summary: List additional costs
tags:
@@ -7865,7 +7718,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_36'
+ $ref: '#/components/schemas/inline_response_200_35'
description: OK
summary: List webhooks
tags:
@@ -7960,7 +7813,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_37'
+ $ref: '#/components/schemas/inline_response_200_36'
description: OK
summary: List webhook activation log entries
tags:
@@ -8041,7 +7894,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_38'
+ $ref: '#/components/schemas/inline_response_200_37'
description: OK
summary: List webhook log entries
tags:
@@ -8091,7 +7944,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_39'
+ $ref: '#/components/schemas/inline_response_200_38'
description: OK
summary: List event types
tags:
@@ -8602,29 +8455,38 @@ paths:
- management
/v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals:
post:
- description: "Upload a CSV file containing the referrals that should be created.\n\
- The file should be sent as multipart data.\n\nThe CSV file contains the following\
- \ columns:\n\n- `code` (required): The referral code.\n- `advocateprofileintegrationid`\
- \ (required): The profile ID of the advocate.\n- `startdate`: The start date\
- \ in RFC3339 of the code redemption period.\n- `expirydate`: The end date\
- \ in RFC3339 of the code redemption period.\n- `limitval`: The maximum number\
- \ of redemptions of this code. Defaults to `1` when left blank.\n- `attributes`:\
- \ A JSON object describing _custom_ referral attribute names and their values,\
- \ enclosed with double quotation marks. \n \n For example, if you created\
- \ a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes)\n\
- \ called `category` associated with the referral entity, the object in the\
- \ CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"\
- }\"`.\n\nYou can use the time zone of your choice. It is converted to UTC\
- \ internally by Talon.One.\n\n**Important:** When you import a CSV file with\
- \ referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles)\n\
- is **not** automatically created for each `advocateprofileintegrationid` column\
- \ value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2)\n\
- endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2)\n\
- endpoint to create the customer profiles.\n\n**Note:** We recommend limiting\
- \ your file size to 500MB.\n\n**Example:**\n\n```text\ncode,startdate,expirydate,advocateprofileintegrationid,limitval,attributes\n\
- REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\
- \"my_attribute\"\": \"\"10_off\"\"}\"\nREFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"\
- {\"\"my_attribute\"\": \"\"20_off\"\"}\"\n```\n"
+ description: |
+ Upload a CSV file containing the referrals that should be created.
+ The file should be sent as multipart data.
+
+ The CSV file contains the following columns:
+
+ - `code` (required): The referral code.
+ - `advocateprofileintegrationid` (required): The profile ID of the advocate.
+ - `startdate`: The start date in RFC3339 of the code redemption period.
+ - `expirydate`: The end date in RFC3339 of the code redemption period.
+ - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank.
+ - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks.
+
+ For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes)
+ called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `"{"category": "10_off"}"`.
+
+ You can use the time zone of your choice. It is converted to UTC internally by Talon.One.
+
+ **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles)
+ is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2)
+ endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2)
+ endpoint to create the customer profiles.
+
+ **Note:** We recommend limiting your file size to 500MB.
+
+ **Example:**
+
+ ```text
+ code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes
+ REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,"{""my_attribute"": ""10_off""}"
+ REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,"{""my_attribute"": ""20_off""}"
+ ```
operationId: importReferrals
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -8694,7 +8556,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_40'
+ $ref: '#/components/schemas/inline_response_200_39'
description: OK
summary: List users in account
tags:
@@ -8806,7 +8668,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_41'
+ $ref: '#/components/schemas/inline_response_200_40'
description: OK
summary: Get audit logs for an account
tags:
@@ -9004,7 +8866,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_42'
+ $ref: '#/components/schemas/inline_response_200_41'
description: OK
summary: Get exports
tags:
@@ -9018,7 +8880,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_43'
+ $ref: '#/components/schemas/inline_response_200_42'
description: OK
summary: List roles
tags:
@@ -9045,6 +8907,233 @@ paths:
summary: Get role
tags:
- management
+ /v1/applications/{applicationId}/stores:
+ get:
+ description: List all stores for a specific Application.
+ operationId: listStores
+ parameters:
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ - description: The number of items in this response.
+ in: query
+ name: pageSize
+ schema:
+ default: 1000
+ maximum: 1000
+ minimum: 1
+ type: integer
+ - description: The number of items to skip when paging through large result
+ sets.
+ in: query
+ name: skip
+ schema:
+ type: integer
+ - description: |
+ The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`.
+
+ **Note:** This parameter works only with numeric fields.
+ in: query
+ name: sort
+ schema:
+ type: string
+ - description: |
+ When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets.
+
+ - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero.
+ - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ in: query
+ name: withTotalResultSize
+ schema:
+ type: boolean
+ - description: Filter results by campaign.
+ in: query
+ name: campaignId
+ schema:
+ type: number
+ - description: The name of the store.
+ in: query
+ name: name
+ schema:
+ type: string
+ - description: The integration ID of the store.
+ in: query
+ name: integrationId
+ schema:
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/inline_response_200_43'
+ description: OK
+ summary: List stores
+ tags:
+ - management
+ post:
+ description: Create a new store in a specific Application.
+ operationId: createStore
+ parameters:
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NewStore'
+ description: body
+ required: true
+ responses:
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Store'
+ description: Created
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request
+ "409":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Conflict. A store with this integration ID already exists for
+ this application.
+ summary: Create store
+ tags:
+ - management
+ x-codegen-request-body-name: body
+ /v1/applications/{applicationId}/stores/{storeId}:
+ delete:
+ description: Delete the specified store.
+ operationId: deleteStore
+ parameters:
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ - description: |
+ The ID of the store.
+ You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ in: path
+ name: storeId
+ required: true
+ schema:
+ type: string
+ responses:
+ "204":
+ content: {}
+ description: No Content
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Not found
+ summary: Delete store
+ tags:
+ - management
+ get:
+ description: Get store details for a specific store ID.
+ operationId: getStore
+ parameters:
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ - description: |
+ The ID of the store.
+ You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ in: path
+ name: storeId
+ required: true
+ schema:
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Store'
+ description: OK
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Not found
+ summary: Get store
+ tags:
+ - management
+ put:
+ description: Update store details for a specific store ID.
+ operationId: updateStore
+ parameters:
+ - description: The ID of the Application. It is displayed in your Talon.One
+ deployment URL.
+ in: path
+ name: applicationId
+ required: true
+ schema:
+ type: integer
+ - description: |
+ The ID of the store.
+ You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ in: path
+ name: storeId
+ required: true
+ schema:
+ type: string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NewStore'
+ description: body
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Store'
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Bad request
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponseWithStatus'
+ description: Not found
+ summary: Update store
+ tags:
+ - management
+ x-codegen-request-body-name: body
components:
schemas:
ErrorResponse:
@@ -9271,6 +9360,12 @@ components:
example: 138
type: integer
type: object
+ ApplicationStoreEntity:
+ properties:
+ storeId:
+ description: The ID of the store.
+ type: integer
+ type: object
IntegrationEntity:
properties:
integrationId:
@@ -9298,6 +9393,16 @@ components:
example: URNGV8294NV
type: string
type: object
+ IntegrationStoreEntity:
+ properties:
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
+ type: object
CouponValue:
properties:
value:
@@ -9444,21 +9549,46 @@ components:
token: dy_Fa_lQ4iDAnqldJFvVEmnsN8xDTxej19l0LZDBJhQ
properties:
userId:
- description: The ID of the user of this session.
+ description: The ID of the user of this session.
+ example: 109
+ type: integer
+ token:
+ description: The token to use as a bearer token to query Management API
+ endpoints.
+ example: dy_Fa_lQ4iDAnqldJFvVEmnsN8xDTxej19l0LZDBJhQ
+ type: string
+ created:
+ description: Unix timestamp indicating when the session was first created.
+ example: 2021-07-20T22:00:00Z
+ format: date-time
+ type: string
+ required:
+ - created
+ - token
+ - userId
+ type: object
+ OneTimeCode:
+ properties:
+ userId:
+ description: The ID of the user.
example: 109
type: integer
+ accountId:
+ description: The ID of the account.
+ example: 31
+ type: integer
token:
- description: The token to use as a bearer token to query Management API
- endpoints.
- example: dy_Fa_lQ4iDAnqldJFvVEmnsN8xDTxej19l0LZDBJhQ
+ description: The two-factor authentication token created during sign-in.
+ This token is used to ensure that the correct user is trying to sign in
+ with a given one-time security code.
+ example: dy_Fa_lQ4iDAnqldJFvV
type: string
- created:
- description: Unix timestamp indicating when the session was first created.
- example: 2021-07-20T22:00:00Z
- format: date-time
+ code:
+ description: The one-time security code used for signing in.
+ example: "552917"
type: string
required:
- - created
+ - accountId
- token
- userId
type: object
@@ -10731,13 +10861,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -10921,68 +11057,103 @@ components:
items:
type: integer
type: array
+ budgets:
+ description: |
+ A list of all the budgets that are defined by this campaign and their usage.
+
+ **Note:** Budgets that are not defined do not appear in this list and their usage is
+ not counted until they are defined.
+ items:
+ $ref: '#/components/schemas/CampaignBudget'
+ type: array
couponRedemptionCount:
- description: Number of coupons redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of coupons redeemed in the campaign.
example: 163
type: integer
referralRedemptionCount:
- description: Number of referral codes redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of referral codes redeemed in the campaign.
example: 3
type: integer
discountCount:
- description: Total amount of discounts redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total amount of discounts redeemed in the campaign.
example: 288.0
type: number
discountEffectCount:
- description: Total number of times discounts were redeemed in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times discounts were redeemed in this campaign.
example: 343
type: integer
couponCreationCount:
- description: Total number of coupons created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of coupons created by rules in this campaign.
example: 16
type: integer
customEffectCount:
- description: Total number of custom effects triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of custom effects triggered by rules in this campaign.
example: 0
type: integer
referralCreationCount:
- description: Total number of referrals created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of referrals created by rules in this campaign.
example: 8
type: integer
addFreeItemEffectCount:
- description: Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem)
- can be triggered in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
example: 0
type: integer
awardedGiveawaysCount:
- description: Total number of giveaways awarded by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of giveaways awarded by rules in this campaign.
example: 9
type: integer
createdLoyaltyPointsCount:
- description: Total number of loyalty points created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points created by rules in this campaign.
example: 9.0
type: number
createdLoyaltyPointsEffectCount:
- description: Total number of loyalty point creation effects triggered by
- rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point creation effects triggered by rules in this campaign.
example: 2
type: integer
redeemedLoyaltyPointsCount:
- description: Total number of loyalty points redeemed by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points redeemed by rules in this campaign.
example: 8.0
type: number
redeemedLoyaltyPointsEffectCount:
- description: Total number of loyalty point redemption effects triggered
- by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point redemption effects triggered by rules in this campaign.
example: 9
type: integer
callApiEffectCount:
- description: Total number of webhooks triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of webhooks triggered by rules in this campaign.
example: 0
type: integer
reservecouponEffectCount:
- description: Total number of reserve coupon effects triggered by rules in
- this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of reserve coupon effects triggered by rules in this campaign.
example: 9
type: integer
lastActivity:
@@ -10990,11 +11161,6 @@ components:
example: 2022-11-10T23:00:00Z
format: date-time
type: string
- weeklyUsageCount:
- description: The total number of effects created in this campaign in the
- past 7 days.
- example: 0
- type: integer
updated:
description: |
Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign
@@ -11015,6 +11181,7 @@ components:
type: integer
required:
- applicationId
+ - budgets
- created
- description
- features
@@ -11164,68 +11331,103 @@ components:
items:
type: integer
type: array
+ budgets:
+ description: |
+ A list of all the budgets that are defined by this campaign and their usage.
+
+ **Note:** Budgets that are not defined do not appear in this list and their usage is
+ not counted until they are defined.
+ items:
+ $ref: '#/components/schemas/CampaignBudget'
+ type: array
couponRedemptionCount:
- description: Number of coupons redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of coupons redeemed in the campaign.
example: 163
type: integer
referralRedemptionCount:
- description: Number of referral codes redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of referral codes redeemed in the campaign.
example: 3
type: integer
discountCount:
- description: Total amount of discounts redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total amount of discounts redeemed in the campaign.
example: 288.0
type: number
discountEffectCount:
- description: Total number of times discounts were redeemed in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times discounts were redeemed in this campaign.
example: 343
type: integer
couponCreationCount:
- description: Total number of coupons created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of coupons created by rules in this campaign.
example: 16
type: integer
customEffectCount:
- description: Total number of custom effects triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of custom effects triggered by rules in this campaign.
example: 0
type: integer
referralCreationCount:
- description: Total number of referrals created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of referrals created by rules in this campaign.
example: 8
type: integer
addFreeItemEffectCount:
- description: Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem)
- can be triggered in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
example: 0
type: integer
awardedGiveawaysCount:
- description: Total number of giveaways awarded by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of giveaways awarded by rules in this campaign.
example: 9
type: integer
createdLoyaltyPointsCount:
- description: Total number of loyalty points created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points created by rules in this campaign.
example: 9.0
type: number
createdLoyaltyPointsEffectCount:
- description: Total number of loyalty point creation effects triggered by
- rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point creation effects triggered by rules in this campaign.
example: 2
type: integer
redeemedLoyaltyPointsCount:
- description: Total number of loyalty points redeemed by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points redeemed by rules in this campaign.
example: 8.0
type: number
redeemedLoyaltyPointsEffectCount:
- description: Total number of loyalty point redemption effects triggered
- by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point redemption effects triggered by rules in this campaign.
example: 9
type: integer
callApiEffectCount:
- description: Total number of webhooks triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of webhooks triggered by rules in this campaign.
example: 0
type: integer
reservecouponEffectCount:
- description: Total number of reserve coupon effects triggered by rules in
- this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of reserve coupon effects triggered by rules in this campaign.
example: 9
type: integer
lastActivity:
@@ -11233,11 +11435,6 @@ components:
example: 2022-11-10T23:00:00Z
format: date-time
type: string
- weeklyUsageCount:
- description: The total number of effects created in this campaign in the
- past 7 days.
- example: 0
- type: integer
updated:
description: |
Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign
@@ -11258,6 +11455,7 @@ components:
type: integer
required:
- applicationId
+ - budgets
- created
- description
- features
@@ -11269,70 +11467,136 @@ components:
- type
- userId
type: object
+ CampaignBudget:
+ example:
+ limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ properties:
+ action:
+ description: |
+ The limitable action to which this limit applies. For example:
+ - `setDiscount`
+ - `setDiscountEffect`
+ - `redeemCoupon`
+ - `createCoupon`
+ example: createCoupon
+ type: string
+ limit:
+ description: The value to set for the limit.
+ example: 1000.0
+ minimum: 0
+ type: number
+ counter:
+ description: The number of occurrences of the limited action in the context
+ of the campaign.
+ example: 42.0
+ minimum: 0
+ type: number
+ required:
+ - action
+ - counter
+ - limit
+ type: object
AdditionalCampaignProperties:
properties:
+ budgets:
+ description: |
+ A list of all the budgets that are defined by this campaign and their usage.
+
+ **Note:** Budgets that are not defined do not appear in this list and their usage is
+ not counted until they are defined.
+ items:
+ $ref: '#/components/schemas/CampaignBudget'
+ type: array
couponRedemptionCount:
- description: Number of coupons redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of coupons redeemed in the campaign.
example: 163
type: integer
referralRedemptionCount:
- description: Number of referral codes redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of referral codes redeemed in the campaign.
example: 3
type: integer
discountCount:
- description: Total amount of discounts redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total amount of discounts redeemed in the campaign.
example: 288.0
type: number
discountEffectCount:
- description: Total number of times discounts were redeemed in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times discounts were redeemed in this campaign.
example: 343
type: integer
couponCreationCount:
- description: Total number of coupons created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of coupons created by rules in this campaign.
example: 16
type: integer
customEffectCount:
- description: Total number of custom effects triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of custom effects triggered by rules in this campaign.
example: 0
type: integer
referralCreationCount:
- description: Total number of referrals created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of referrals created by rules in this campaign.
example: 8
type: integer
addFreeItemEffectCount:
- description: Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem)
- can be triggered in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
example: 0
type: integer
awardedGiveawaysCount:
- description: Total number of giveaways awarded by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of giveaways awarded by rules in this campaign.
example: 9
type: integer
createdLoyaltyPointsCount:
- description: Total number of loyalty points created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points created by rules in this campaign.
example: 9.0
type: number
createdLoyaltyPointsEffectCount:
- description: Total number of loyalty point creation effects triggered by
- rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point creation effects triggered by rules in this campaign.
example: 2
type: integer
redeemedLoyaltyPointsCount:
- description: Total number of loyalty points redeemed by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points redeemed by rules in this campaign.
example: 8.0
type: number
redeemedLoyaltyPointsEffectCount:
- description: Total number of loyalty point redemption effects triggered
- by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point redemption effects triggered by rules in this campaign.
example: 9
type: integer
callApiEffectCount:
- description: Total number of webhooks triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of webhooks triggered by rules in this campaign.
example: 0
type: integer
reservecouponEffectCount:
- description: Total number of reserve coupon effects triggered by rules in
- this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of reserve coupon effects triggered by rules in this campaign.
example: 9
type: integer
lastActivity:
@@ -11340,11 +11604,6 @@ components:
example: 2022-11-10T23:00:00Z
format: date-time
type: string
- weeklyUsageCount:
- description: The total number of effects created in this campaign in the
- past 7 days.
- example: 0
- type: integer
updated:
description: |
Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign
@@ -11363,6 +11622,8 @@ components:
description: The ID of the Campaign Template this Campaign was created from.
example: 3
type: integer
+ required:
+ - budgets
type: object
NewRuleset:
properties:
@@ -13834,8 +14095,8 @@ components:
- totalReferralRedemptions
- totalReferralsCreated
type: object
- LoyaltyStatistics:
- description: ""
+ LoyaltyDashboardData:
+ description: Datapoint for the graphs and cards on a loyalty program dashboard.
example:
date: 2000-01-23T04:56:07.000+00:00
totalMembers: 2582.0
@@ -13894,52 +14155,6 @@ components:
- totalPendingPoints
- totalSpentPoints
type: object
- LoyaltyDashboardData:
- description: Datapoint for the graphs and cards on a loyalty program dashboard.
- properties:
- date:
- description: Date at which data point was collected.
- format: date-time
- type: string
- totalActivePoints:
- description: Total of active points for this loyalty program.
- example: 9756.0
- type: number
- totalPendingPoints:
- description: Total of pending points for this loyalty program.
- example: 548.0
- type: number
- totalSpentPoints:
- description: Total of spent points for this loyalty program.
- example: 25668.0
- type: number
- totalExpiredPoints:
- description: Total of expired points for this loyalty program.
- example: 1156.0
- type: number
- totalMembers:
- description: Number of loyalty program members.
- example: 2582.0
- type: number
- newMembers:
- description: Number of members who joined on this day.
- example: 3.0
- type: number
- spentPoints:
- $ref: '#/components/schemas/LoyaltyDashboardPointsBreakdown'
- earnedPoints:
- $ref: '#/components/schemas/LoyaltyDashboardPointsBreakdown'
- required:
- - date
- - earnedPoints
- - newMembers
- - spentPoints
- - totalActivePoints
- - totalExpiredPoints
- - totalMembers
- - totalPendingPoints
- - totalSpentPoints
- type: object
LoyaltyDashboardPointsBreakdown:
example:
createdManually: 125.0
@@ -14167,10 +14382,12 @@ components:
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
+ lastAccessed: 2021-09-12T10:14:42Z
id: 6
state: invited
latestFeedTimestamp: 2020-06-01T00:00:00Z
authMethod: basic_auth
+ lastSignedIn: 2021-09-12T10:12:42Z
email: john.doe@example.com
policy:
Role: 127
@@ -14243,6 +14460,17 @@ components:
description: An indication of whether the user has admin permissions.
example: false
type: boolean
+ lastSignedIn:
+ description: Date and time when the user last signed in to Talon.One.
+ example: 2021-09-12T10:12:42Z
+ format: date-time
+ type: string
+ lastAccessed:
+ description: Date and time of the user's last activity after signing in
+ to Talon.One.
+ example: 2021-09-12T10:14:42Z
+ format: date-time
+ type: string
required:
- accountId
- created
@@ -14588,8 +14816,9 @@ components:
type: boolean
tiersExpireIn:
description: |
- The duration is an **integer** followed by one letter indicating the time unit.
+ The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time.
+ The time format is an **integer** followed by one letter indicating the time unit.
Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.
Available units:
@@ -14794,8 +15023,9 @@ components:
type: boolean
tiersExpireIn:
description: |
- The duration is an **integer** followed by one letter indicating the time unit.
+ The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time.
+ The time format is an **integer** followed by one letter indicating the time unit.
Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.
Available units:
@@ -14878,8 +15108,9 @@ components:
type: boolean
tiersExpireIn:
description: |
- The duration is an **integer** followed by one letter indicating the time unit.
+ The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time.
+ The time format is an **integer** followed by one letter indicating the time unit.
Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.
Available units:
@@ -14993,8 +15224,9 @@ components:
type: boolean
tiersExpireIn:
description: |
- The duration is an **integer** followed by one letter indicating the time unit.
+ The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time.
+ The time format is an **integer** followed by one letter indicating the time unit.
Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.
Available units:
@@ -15893,27 +16125,6 @@ components:
- id
- name
type: object
- RoundableDuration:
- description: |
- The duration is an **integer** followed by one letter indicating the time unit.
-
- Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.
-
- Available units:
-
- - `s`: seconds
- - `m`: minutes
- - `h`: hours
- - `D`: days
- - `W`: weeks
- - `M`: months
- - `Y`: years
-
- You can round certain units up or down:
- - `_D` for rounding down days only. Signifies the start of the day.
- - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
- example: 27W_U
- type: string
LoyaltyCard:
description: ""
example:
@@ -17280,6 +17491,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
evaluableCampaignIds:
description: |
When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine.
@@ -17393,13 +17611,6 @@ components:
ShippingCity: Berlin
properties: {}
type: object
- storeIntegrationId:
- description: The integration ID of the store. You choose this ID when you
- create a store.
- example: STORE-001
- maxLength: 1000
- minLength: 1
- type: string
type: object
CustomerAnalytics:
description: A summary report of customer activity for a given time range.
@@ -17731,6 +17942,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
evaluableCampaignIds:
description: |
When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine.
@@ -17844,13 +18062,6 @@ components:
ShippingCity: Berlin
properties: {}
type: object
- storeIntegrationId:
- description: The integration ID of the store. You choose this ID when you
- create a store.
- example: STORE-001
- maxLength: 1000
- minLength: 1
- type: string
firstSession:
description: Indicates whether this is the first session for the customer's
profile. Will always be true for anonymous sessions.
@@ -18030,6 +18241,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
type:
description: A string representing the event. Must not be a reserved event
name.
@@ -18057,6 +18275,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
type:
description: A string representing the event. Must not be a reserved event
name.
@@ -18086,6 +18311,7 @@ components:
effects:
- '{}'
- '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: URNGV8294NV
meta:
@@ -18148,6 +18374,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
type:
description: A string representing the event. Must not be a reserved event
name.
@@ -18475,6 +18708,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -18483,6 +18717,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -18584,13 +18819,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -18719,13 +18960,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -18944,6 +19191,7 @@ components:
effects:
- '{}'
- '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: URNGV8294NV
meta:
@@ -19088,6 +19336,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -19096,6 +19345,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -19179,13 +19429,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -19314,13 +19570,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -19535,6 +19797,7 @@ components:
effects:
- '{}'
- '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: URNGV8294NV
meta:
@@ -19743,6 +20006,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -19751,6 +20015,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -19834,13 +20099,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -19969,13 +20240,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -20190,6 +20467,7 @@ components:
effects:
- '{}'
- '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: URNGV8294NV
meta:
@@ -20398,6 +20676,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -20406,6 +20685,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -20459,6 +20739,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -20467,6 +20748,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -20875,6 +21157,19 @@ components:
created.
format: date-time
type: string
+ integrationId:
+ description: The integration ID set by your integration layer.
+ example: URNGV8294NV
+ format: string
+ maxLength: 1000
+ type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
applicationId:
description: The ID of the application that owns this entity.
example: 322
@@ -20884,12 +21179,6 @@ components:
this entity.
example: 138
type: integer
- integrationId:
- description: The integration ID set by your integration layer.
- example: URNGV8294NV
- format: string
- maxLength: 1000
- type: string
profileintegrationid:
description: Integration ID of the customer for the session.
example: 382370BKDB946
@@ -20945,12 +21234,6 @@ components:
description: Arbitrary properties associated with this item.
properties: {}
type: object
- storeIntegrationId:
- description: The integration ID of the store for this session.
- example: STORE-001
- maxLength: 1000
- minLength: 1
- type: string
required:
- applicationId
- cartItems
@@ -20973,6 +21256,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -20981,15 +21265,18 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: 138
attributes: '{}'
id: 6
- sessionId: 0
+ sessionId: 6
applicationId: 322
+ storeId: 0
type: type
ruleFailureReasons:
- rulesetID: 2
@@ -21035,6 +21322,16 @@ components:
this entity.
example: 138
type: integer
+ storeId:
+ description: The ID of the store.
+ type: integer
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
sessionId:
description: The globally unique Talon.One ID of the session that contains
this event.
@@ -22630,13 +22927,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -22848,6 +23151,7 @@ components:
- Event
- Giveaway
- Referral
+ - Store
example: Event
type: string
eventType:
@@ -23015,6 +23319,7 @@ components:
- Event
- Giveaway
- Referral
+ - Store
example: Event
type: string
eventType:
@@ -24034,6 +24339,7 @@ components:
- Giveaway
- Referral
- Session
+ - Store
type: string
name:
description: |
@@ -25219,6 +25525,17 @@ components:
required:
- enabled
type: object
+ SSOConfig:
+ properties:
+ enforced:
+ description: |
+ An indication of whether single sign-on is enforced for the account. When enforced, users cannot use their email and password to sign in to Talon.One.
+ It is not possible to change this to `false` after it is set to `true`.
+ example: true
+ type: boolean
+ required:
+ - enforced
+ type: object
Effect:
description: ""
example:
@@ -25227,6 +25544,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -25263,6 +25581,10 @@ components:
effect was triggered.
example: 786
type: integer
+ conditionIndex:
+ description: The index of the condition that was triggered.
+ example: 786
+ type: integer
props:
description: The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).
type: object
@@ -25310,6 +25632,10 @@ components:
effect was triggered.
example: 786
type: integer
+ conditionIndex:
+ description: The index of the condition that was triggered.
+ example: 786
+ type: integer
required:
- campaignId
- effectType
@@ -27996,68 +28322,103 @@ components:
items:
type: integer
type: array
+ budgets:
+ description: |
+ A list of all the budgets that are defined by this campaign and their usage.
+
+ **Note:** Budgets that are not defined do not appear in this list and their usage is
+ not counted until they are defined.
+ items:
+ $ref: '#/components/schemas/CampaignBudget'
+ type: array
couponRedemptionCount:
- description: Number of coupons redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of coupons redeemed in the campaign.
example: 163
type: integer
referralRedemptionCount:
- description: Number of referral codes redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Number of referral codes redeemed in the campaign.
example: 3
type: integer
discountCount:
- description: Total amount of discounts redeemed in the campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total amount of discounts redeemed in the campaign.
example: 288.0
type: number
discountEffectCount:
- description: Total number of times discounts were redeemed in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times discounts were redeemed in this campaign.
example: 343
type: integer
couponCreationCount:
- description: Total number of coupons created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of coupons created by rules in this campaign.
example: 16
type: integer
customEffectCount:
- description: Total number of custom effects triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of custom effects triggered by rules in this campaign.
example: 0
type: integer
referralCreationCount:
- description: Total number of referrals created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of referrals created by rules in this campaign.
example: 8
type: integer
addFreeItemEffectCount:
- description: Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem)
- can be triggered in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
example: 0
type: integer
awardedGiveawaysCount:
- description: Total number of giveaways awarded by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of giveaways awarded by rules in this campaign.
example: 9
type: integer
createdLoyaltyPointsCount:
- description: Total number of loyalty points created by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points created by rules in this campaign.
example: 9.0
type: number
createdLoyaltyPointsEffectCount:
- description: Total number of loyalty point creation effects triggered by
- rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point creation effects triggered by rules in this campaign.
example: 2
type: integer
redeemedLoyaltyPointsCount:
- description: Total number of loyalty points redeemed by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty points redeemed by rules in this campaign.
example: 8.0
type: number
redeemedLoyaltyPointsEffectCount:
- description: Total number of loyalty point redemption effects triggered
- by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of loyalty point redemption effects triggered by rules in this campaign.
example: 9
type: integer
callApiEffectCount:
- description: Total number of webhooks triggered by rules in this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of webhooks triggered by rules in this campaign.
example: 0
type: integer
reservecouponEffectCount:
- description: Total number of reserve coupon effects triggered by rules in
- this campaign.
+ description: |
+ This property is **deprecated**. The count should be available under *budgets* property.
+ Total number of reserve coupon effects triggered by rules in this campaign.
example: 9
type: integer
lastActivity:
@@ -28065,11 +28426,6 @@ components:
example: 2022-11-10T23:00:00Z
format: date-time
type: string
- weeklyUsageCount:
- description: The total number of effects created in this campaign in the
- past 7 days.
- example: 0
- type: integer
updated:
description: |
Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign
@@ -28100,6 +28456,7 @@ components:
type: string
required:
- applicationId
+ - budgets
- created
- description
- features
@@ -28634,59 +28991,6 @@ components:
- headers
- url
type: object
- NotificationWebhook:
- description: ""
- example:
- headers: 'content-type: application/json'
- created: 2020-06-10T09:05:27.993483Z
- modified: 2021-09-12T10:12:42Z
- id: 6
- applicationId: 322
- url: www.my-company.com/my-endpoint-name
- enabled: true
- properties:
- id:
- description: Internal ID of this entity.
- example: 6
- type: integer
- created:
- description: The time this entity was created.
- example: 2020-06-10T09:05:27.993483Z
- format: date-time
- type: string
- modified:
- description: The time this entity was last modified.
- example: 2021-09-12T10:12:42Z
- format: date-time
- type: string
- applicationId:
- description: The ID of the application that owns this entity.
- example: 322
- type: integer
- url:
- description: API URL for the given webhook-based notification.
- example: www.my-company.com/my-endpoint-name
- type: string
- headers:
- description: List of API HTTP headers for the given webhook-based notification.
- example: 'content-type: application/json'
- items:
- pattern: ^[^:,]+:[^,]*$
- type: string
- type: array
- enabled:
- default: true
- description: Indicates whether the notification is activated.
- example: true
- type: boolean
- required:
- - applicationId
- - created
- - headers
- - id
- - modified
- - url
- type: object
NotificationActivation:
example:
enabled: true
@@ -29136,6 +29440,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
evaluableCampaignIds:
description: |
When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine.
@@ -29169,6 +29480,7 @@ components:
IntegrationEventV2Request:
description: ""
example:
+ storeIntegrationId: STORE-001
profileId: URNGV8294NV
evaluableCampaignIds:
- 10
@@ -29187,6 +29499,13 @@ components:
**Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
example: URNGV8294NV
type: string
+ storeIntegrationId:
+ description: The integration ID of the store. You choose this ID when you
+ create a store.
+ example: STORE-001
+ maxLength: 1000
+ minLength: 1
+ type: string
evaluableCampaignIds:
description: |
When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine.
@@ -29772,6 +30091,13 @@ components:
type: object
NewStore:
description: ""
+ example:
+ name: South US store
+ description: This is the description of the store in south US.
+ integrationId: STORE-001
+ attributes:
+ country: USA
+ code: 1234
properties:
name:
description: The name of the store.
@@ -29805,6 +30131,21 @@ components:
type: object
Store:
description: ""
+ example:
+ linkedCampaignIds:
+ - 4
+ - 6
+ - 8
+ created: 2000-01-23T04:56:07.000+00:00
+ name: South US store
+ description: This is the description of the store in south US.
+ integrationId: STORE-001
+ attributes:
+ country: USA
+ code: 1234
+ id: 6
+ applicationId: 322
+ updated: 2021-09-23T10:12:42Z
properties:
id:
description: Internal ID of this entity.
@@ -30454,13 +30795,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -30589,13 +30936,19 @@ components:
tags:
- summer
awardedGiveawaysCount: 9
- weeklyUsageCount: 0
redeemedLoyaltyPointsEffectCount: 9
linkedStoreIds:
- 1
- 2
- 3
discountEffectCount: 343
+ budgets:
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
+ - limit: 1000.0
+ action: createCoupon
+ counter: 42.0
createdBy: John Doe
redeemedLoyaltyPointsCount: 8.0
addFreeItemEffectCount: 0
@@ -30658,35 +31011,6 @@ components:
- data
- totalResultSize
inline_response_200_7:
- example:
- data:
- - headers: 'content-type: application/json'
- created: 2020-06-10T09:05:27.993483Z
- modified: 2021-09-12T10:12:42Z
- id: 6
- applicationId: 322
- url: www.my-company.com/my-endpoint-name
- enabled: true
- - headers: 'content-type: application/json'
- created: 2020-06-10T09:05:27.993483Z
- modified: 2021-09-12T10:12:42Z
- id: 6
- applicationId: 322
- url: www.my-company.com/my-endpoint-name
- enabled: true
- totalResultSize: 1
- properties:
- totalResultSize:
- example: 1
- type: integer
- data:
- items:
- $ref: '#/components/schemas/NotificationWebhook'
- type: array
- required:
- - data
- - totalResultSize
- inline_response_200_8:
example:
data:
- rbVersion: v2
@@ -30979,7 +31303,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_9:
+ inline_response_200_8:
example:
data:
- recipientIntegrationId: URNGV8294NV
@@ -31058,7 +31382,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_10:
+ inline_response_200_9:
example:
data:
- recipientIntegrationId: URNGV8294NV
@@ -31137,7 +31461,7 @@ components:
required:
- data
- hasMore
- inline_response_200_11:
+ inline_response_200_10:
example:
data:
- code: 27G47Y54VH9L
@@ -31180,7 +31504,7 @@ components:
required:
- data
- hasMore
- inline_response_200_12:
+ inline_response_200_11:
example:
data:
- activeRulesetId: 5
@@ -31459,7 +31783,7 @@ components:
required:
- data
- hasMore
- inline_response_200_13:
+ inline_response_200_12:
example:
data:
- cardBased: true
@@ -31546,7 +31870,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_14:
+ inline_response_200_13:
example:
data:
- rulesetId: 11
@@ -31595,7 +31919,7 @@ components:
required:
- data
- hasMore
- inline_response_200_15:
+ inline_response_200_14:
example:
data:
- ledger:
@@ -31692,7 +32016,7 @@ components:
required:
- data
- hasMore
- inline_response_200_16:
+ inline_response_200_15:
example:
data:
- amount: 10.25
@@ -31735,7 +32059,7 @@ components:
required:
- data
- hasMore
- inline_response_200_17:
+ inline_response_200_16:
example:
data:
- accountId: 3886
@@ -31780,7 +32104,7 @@ components:
type: array
required:
- data
- inline_response_200_18:
+ inline_response_200_17:
example:
data:
- item: item
@@ -31796,7 +32120,7 @@ components:
required:
- data
- hasMore
- inline_response_200_19:
+ inline_response_200_18:
example:
data:
- accountId: 3886
@@ -31847,7 +32171,7 @@ components:
type: array
required:
- data
- inline_response_200_20:
+ inline_response_200_19:
example:
data:
- method: PUT
@@ -31887,7 +32211,7 @@ components:
required:
- data
- hasMore
- inline_response_200_21:
+ inline_response_200_20:
example:
data:
- method: PUT
@@ -31928,7 +32252,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_22:
+ inline_response_200_21:
example:
data:
- date: 2021-10-12T10:12:42Z
@@ -31993,7 +32317,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_23:
+ inline_response_200_22:
example:
data:
- accountId: 6
@@ -32054,7 +32378,7 @@ components:
type: array
required:
- data
- inline_response_200_24:
+ inline_response_200_23:
example:
data:
- accountId: 6
@@ -32114,7 +32438,7 @@ components:
type: array
required:
- data
- inline_response_200_25:
+ inline_response_200_24:
example:
data:
- accountId: 31
@@ -32172,7 +32496,7 @@ components:
type: array
required:
- data
- inline_response_200_26:
+ inline_response_200_25:
example:
data:
- accountId: 31
@@ -32228,7 +32552,7 @@ components:
required:
- data
- hasMore
- inline_response_200_27:
+ inline_response_200_26:
example:
data:
- couponUseAttempts: 1
@@ -32268,7 +32592,7 @@ components:
required:
- data
- hasMore
- inline_response_200_28:
+ inline_response_200_27:
example:
data:
- coupon: BKDB946
@@ -32389,7 +32713,7 @@ components:
type: array
required:
- data
- inline_response_200_29:
+ inline_response_200_28:
example:
data:
- effects:
@@ -32398,6 +32722,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -32406,15 +32731,18 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: 138
attributes: '{}'
id: 6
- sessionId: 0
+ sessionId: 6
applicationId: 322
+ storeId: 0
type: type
ruleFailureReasons:
- rulesetID: 2
@@ -32447,6 +32775,7 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
@@ -32455,15 +32784,18 @@ components:
triggeredForCatalogItem: 786
campaignId: 244
ruleName: Give 20% discount
+ conditionIndex: 786
triggeredByCoupon: 4928
effectType: rejectCoupon
props: '{}'
+ storeIntegrationId: STORE-001
created: 2020-06-10T09:05:27.993483Z
profileId: 138
attributes: '{}'
id: 6
- sessionId: 0
+ sessionId: 6
applicationId: 322
+ storeId: 0
type: type
ruleFailureReasons:
- rulesetID: 2
@@ -32501,7 +32833,7 @@ components:
required:
- data
- hasMore
- inline_response_200_30:
+ inline_response_200_29:
example:
data:
- data
@@ -32518,7 +32850,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_31:
+ inline_response_200_30:
example:
data:
- accountId: 3886
@@ -32555,7 +32887,7 @@ components:
type: array
required:
- data
- inline_response_200_32:
+ inline_response_200_31:
example:
data:
- friendIntegrationId: friendIntegrationId
@@ -32584,7 +32916,7 @@ components:
type: array
required:
- data
- inline_response_200_33:
+ inline_response_200_32:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -32657,7 +32989,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_34:
+ inline_response_200_33:
example:
data:
- catalogid: 6
@@ -32700,7 +33032,7 @@ components:
type: array
required:
- data
- inline_response_200_35:
+ inline_response_200_34:
example:
data:
- accountId: 3886
@@ -32735,7 +33067,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_36:
+ inline_response_200_35:
example:
data:
- headers:
@@ -32786,7 +33118,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_37:
+ inline_response_200_36:
example:
data:
- webhookId: 1
@@ -32811,7 +33143,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_38:
+ inline_response_200_37:
example:
data:
- requestTime: 2021-07-20T22:00:00Z
@@ -32852,7 +33184,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_39:
+ inline_response_200_38:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -32877,7 +33209,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_40:
+ inline_response_200_39:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -32889,10 +33221,12 @@ components:
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
+ lastAccessed: 2021-09-12T10:14:42Z
id: 6
state: invited
latestFeedTimestamp: 2020-06-01T00:00:00Z
authMethod: basic_auth
+ lastSignedIn: 2021-09-12T10:12:42Z
email: john.doe@example.com
policy:
Role: 127
@@ -32905,10 +33239,12 @@ components:
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
+ lastAccessed: 2021-09-12T10:14:42Z
id: 6
state: invited
latestFeedTimestamp: 2020-06-01T00:00:00Z
authMethod: basic_auth
+ lastSignedIn: 2021-09-12T10:12:42Z
email: john.doe@example.com
policy:
Role: 127
@@ -32924,7 +33260,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_41:
+ inline_response_200_40:
example:
data:
- new:
@@ -32975,7 +33311,7 @@ components:
type: array
required:
- data
- inline_response_200_42:
+ inline_response_200_41:
example:
data:
- filter: '{}'
@@ -33002,7 +33338,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_43:
+ inline_response_200_42:
example:
data:
- accountId: 3886
@@ -33045,6 +33381,51 @@ components:
required:
- data
- totalResultSize
+ inline_response_200_43:
+ example:
+ data:
+ - linkedCampaignIds:
+ - 4
+ - 6
+ - 8
+ created: 2000-01-23T04:56:07.000+00:00
+ name: South US store
+ description: This is the description of the store in south US.
+ integrationId: STORE-001
+ attributes:
+ country: USA
+ code: 1234
+ id: 6
+ applicationId: 322
+ updated: 2021-09-23T10:12:42Z
+ - linkedCampaignIds:
+ - 4
+ - 6
+ - 8
+ created: 2000-01-23T04:56:07.000+00:00
+ name: South US store
+ description: This is the description of the store in south US.
+ integrationId: STORE-001
+ attributes:
+ country: USA
+ code: 1234
+ id: 6
+ applicationId: 322
+ updated: 2021-09-23T10:12:42Z
+ hasMore: true
+ totalResultSize: 1
+ properties:
+ hasMore:
+ type: boolean
+ totalResultSize:
+ example: 1
+ type: integer
+ data:
+ items:
+ $ref: '#/components/schemas/Store'
+ type: array
+ required:
+ - data
securitySchemes:
api_key_v1:
description: |
diff --git a/api_management.go b/api_management.go
index fe009465..2d5cb985 100644
--- a/api_management.go
+++ b/api_management.go
@@ -529,7 +529,7 @@ func (r apiCreateAccountCollectionRequest) Body(body NewCollection) apiCreateAcc
/*
CreateAccountCollection Create account-level collection
-Create account-level collection.
+Create an account-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return apiCreateAccountCollectionRequest
@@ -1172,8 +1172,8 @@ func (r apiCreateCollectionRequest) Body(body NewCampaignCollection) apiCreateCo
}
/*
-CreateCollection Create collection
-Create a collection.
+CreateCollection Create campaign-level collection
+Create a campaign-level collection in a given campaign.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
@@ -1353,16 +1353,16 @@ func (a *ManagementApiService) CreateCoupons(ctx _context.Context, applicationId
/*
Execute executes the request
- @return InlineResponse2009
+ @return InlineResponse2008
*/
-func (r apiCreateCouponsRequest) Execute() (InlineResponse2009, *_nethttp.Response, error) {
+func (r apiCreateCouponsRequest) Execute() (InlineResponse2008, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse2009
+ localVarReturnValue InlineResponse2008
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateCoupons")
@@ -1454,7 +1454,7 @@ func (r apiCreateCouponsRequest) Execute() (InlineResponse2009, *_nethttp.Respon
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse2009
+ var v InlineResponse2008
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -1676,16 +1676,16 @@ func (a *ManagementApiService) CreateCouponsForMultipleRecipients(ctx _context.C
/*
Execute executes the request
- @return InlineResponse2009
+ @return InlineResponse2008
*/
-func (r apiCreateCouponsForMultipleRecipientsRequest) Execute() (InlineResponse2009, *_nethttp.Response, error) {
+func (r apiCreateCouponsForMultipleRecipientsRequest) Execute() (InlineResponse2008, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse2009
+ localVarReturnValue InlineResponse2008
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateCouponsForMultipleRecipients")
@@ -1777,7 +1777,7 @@ func (r apiCreateCouponsForMultipleRecipientsRequest) Execute() (InlineResponse2
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse2009
+ var v InlineResponse2008
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -1801,68 +1801,55 @@ func (r apiCreateCouponsForMultipleRecipientsRequest) Execute() (InlineResponse2
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiCreateNotificationWebhookRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
- body *NewNotificationWebhook
+type apiCreatePasswordRecoveryEmailRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ body *NewPasswordEmail
}
-func (r apiCreateNotificationWebhookRequest) Body(body NewNotificationWebhook) apiCreateNotificationWebhookRequest {
+func (r apiCreatePasswordRecoveryEmailRequest) Body(body NewPasswordEmail) apiCreatePasswordRecoveryEmailRequest {
r.body = &body
return r
}
/*
-CreateNotificationWebhook Create notification about campaign-related changes
-Create a
-[notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
-
-A notification about campaign-related changes is different from regular webhooks
-in that it is Application-scoped and has a predefined payload.
-[Regular webhooks](https://docs.talon.one/docs/dev/getting-started/webhooks) have user-definable payloads.
-
-**Tip:**
+CreatePasswordRecoveryEmail Request a password reset
+Send an email with a password recovery link to the email address of an existing account.
-- You can create these notifications using the Campaign Manager.
-See [Managing notifications](https://docs.talon.one/docs/product/applications/outbound-notifications).
-- You can review the payload you will receive in the [specs](https://docs.talon.one/outbound-notifications).
+**Note:** The password recovery link expires 30 minutes after this endpoint is triggered.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
-@return apiCreateNotificationWebhookRequest
+@return apiCreatePasswordRecoveryEmailRequest
*/
-func (a *ManagementApiService) CreateNotificationWebhook(ctx _context.Context, applicationId int32) apiCreateNotificationWebhookRequest {
- return apiCreateNotificationWebhookRequest{
- apiService: a,
- ctx: ctx,
- applicationId: applicationId,
+func (a *ManagementApiService) CreatePasswordRecoveryEmail(ctx _context.Context) apiCreatePasswordRecoveryEmailRequest {
+ return apiCreatePasswordRecoveryEmailRequest{
+ apiService: a,
+ ctx: ctx,
}
}
/*
Execute executes the request
- @return NotificationWebhook
+ @return NewPasswordEmail
*/
-func (r apiCreateNotificationWebhookRequest) Execute() (NotificationWebhook, *_nethttp.Response, error) {
+func (r apiCreatePasswordRecoveryEmailRequest) Execute() (NewPasswordEmail, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue NotificationWebhook
+ localVarReturnValue NewPasswordEmail
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateNotificationWebhook")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreatePasswordRecoveryEmail")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/notification_webhooks"
- localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
+ localVarPath := localBasePath + "/v1/password_recovery_emails"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -1940,8 +1927,8 @@ func (r apiCreateNotificationWebhookRequest) Execute() (NotificationWebhook, *_n
body: localVarBody,
error: localVarHTTPResponse.Status,
}
- if localVarHTTPResponse.StatusCode == 201 {
- var v NotificationWebhook
+ if localVarHTTPResponse.StatusCode == 204 {
+ var v NewPasswordEmail
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -1964,29 +1951,41 @@ func (r apiCreateNotificationWebhookRequest) Execute() (NotificationWebhook, *_n
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiCreatePasswordRecoveryEmailRequest struct {
+type apiCreateSessionRequest struct {
ctx _context.Context
apiService *ManagementApiService
- body *NewPasswordEmail
+ body *LoginParams
}
-func (r apiCreatePasswordRecoveryEmailRequest) Body(body NewPasswordEmail) apiCreatePasswordRecoveryEmailRequest {
+func (r apiCreateSessionRequest) Body(body LoginParams) apiCreateSessionRequest {
r.body = &body
return r
}
/*
-CreatePasswordRecoveryEmail Request a password reset
-Send an email with a password recovery link to the email address of an existing account.
+CreateSession Create session
+Create a session to use the Management API endpoints.
+Use the value of the `token` property provided in the response as bearer token in other API calls.
-**Note:** The password recovery link expires 30 minutes after this endpoint is triggered.
+A token is valid for 3 months. In accordance with best pratices, use your generated token
+for all your API requests. Do **not** regenerate a token for each request.
+
+This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup.
+
+
+
+
Granular API key
+ Instead of using a session, you can also use the Management API key feature
+ in the Campaign Manager to decide which endpoints can be used with a given key.
+
+
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
-@return apiCreatePasswordRecoveryEmailRequest
+@return apiCreateSessionRequest
*/
-func (a *ManagementApiService) CreatePasswordRecoveryEmail(ctx _context.Context) apiCreatePasswordRecoveryEmailRequest {
- return apiCreatePasswordRecoveryEmailRequest{
+func (a *ManagementApiService) CreateSession(ctx _context.Context) apiCreateSessionRequest {
+ return apiCreateSessionRequest{
apiService: a,
ctx: ctx,
}
@@ -1995,24 +1994,24 @@ func (a *ManagementApiService) CreatePasswordRecoveryEmail(ctx _context.Context)
/*
Execute executes the request
- @return NewPasswordEmail
+ @return Session
*/
-func (r apiCreatePasswordRecoveryEmailRequest) Execute() (NewPasswordEmail, *_nethttp.Response, error) {
+func (r apiCreateSessionRequest) Execute() (Session, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue NewPasswordEmail
+ localVarReturnValue Session
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreatePasswordRecoveryEmail")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateSession")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/password_recovery_emails"
+ localVarPath := localBasePath + "/v1/sessions"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -2090,8 +2089,8 @@ func (r apiCreatePasswordRecoveryEmailRequest) Execute() (NewPasswordEmail, *_ne
body: localVarBody,
error: localVarHTTPResponse.Status,
}
- if localVarHTTPResponse.StatusCode == 204 {
- var v NewPasswordEmail
+ if localVarHTTPResponse.StatusCode == 201 {
+ var v Session
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -2114,67 +2113,56 @@ func (r apiCreatePasswordRecoveryEmailRequest) Execute() (NewPasswordEmail, *_ne
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiCreateSessionRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- body *LoginParams
+type apiCreateStoreRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ applicationId int32
+ body *NewStore
}
-func (r apiCreateSessionRequest) Body(body LoginParams) apiCreateSessionRequest {
+func (r apiCreateStoreRequest) Body(body NewStore) apiCreateStoreRequest {
r.body = &body
return r
}
/*
-CreateSession Create session
-Create a session to use the Management API endpoints.
-Use the value of the `token` property provided in the response as bearer token in other API calls.
-
-A token is valid for 3 months. In accordance with best pratices, use your generated token
-for all your API requests. Do **not** regenerate a token for each request.
-
-This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup.
-
-
-
-
Granular API key
- Instead of using a session, you can also use the Management API key feature
- in the Campaign Manager to decide which endpoints can be used with a given key.
-
-
-
+CreateStore Create store
+Create a new store in a specific Application.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ - @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
-@return apiCreateSessionRequest
+@return apiCreateStoreRequest
*/
-func (a *ManagementApiService) CreateSession(ctx _context.Context) apiCreateSessionRequest {
- return apiCreateSessionRequest{
- apiService: a,
- ctx: ctx,
+func (a *ManagementApiService) CreateStore(ctx _context.Context, applicationId int32) apiCreateStoreRequest {
+ return apiCreateStoreRequest{
+ apiService: a,
+ ctx: ctx,
+ applicationId: applicationId,
}
}
/*
Execute executes the request
- @return Session
+ @return Store
*/
-func (r apiCreateSessionRequest) Execute() (Session, *_nethttp.Response, error) {
+func (r apiCreateStoreRequest) Execute() (Store, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue Session
+ localVarReturnValue Store
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateSession")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.CreateStore")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/sessions"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/stores"
+ localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -2253,7 +2241,27 @@ func (r apiCreateSessionRequest) Execute() (Session, *_nethttp.Response, error)
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 201 {
- var v Session
+ var v Store
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponse
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 409 {
+ var v ErrorResponseWithStatus
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -2452,9 +2460,9 @@ type apiDeleteAccountCollectionRequest struct {
/*
DeleteAccountCollection Delete account-level collection
-Delete the given account-level collection.
+Delete a given account-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiDeleteAccountCollectionRequest
*/
@@ -2702,12 +2710,12 @@ type apiDeleteCollectionRequest struct {
}
/*
-DeleteCollection Delete collection
-Delete the given collection.
+DeleteCollection Delete campaign-level collection
+Delete a given campaign-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
@return apiDeleteCollectionRequest
*/
@@ -3338,37 +3346,38 @@ func (r apiDeleteLoyaltyCardRequest) Execute() (*_nethttp.Response, error) {
return localVarHTTPResponse, nil
}
-type apiDeleteNotificationWebhookRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
- notificationWebhookId int32
+type apiDeleteReferralRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ applicationId int32
+ campaignId int32
+ referralId string
}
/*
-DeleteNotificationWebhook Delete notification about campaign-related changes
-Remove the given existing
-[notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
-
+DeleteReferral Delete referral
+Delete the specified referral.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param notificationWebhookId The ID of the webhook. Get it with the appropriate _List notifications_ endpoint.
+ - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ - @param referralId The ID of the referral code.
-@return apiDeleteNotificationWebhookRequest
+@return apiDeleteReferralRequest
*/
-func (a *ManagementApiService) DeleteNotificationWebhook(ctx _context.Context, applicationId int32, notificationWebhookId int32) apiDeleteNotificationWebhookRequest {
- return apiDeleteNotificationWebhookRequest{
- apiService: a,
- ctx: ctx,
- applicationId: applicationId,
- notificationWebhookId: notificationWebhookId,
+func (a *ManagementApiService) DeleteReferral(ctx _context.Context, applicationId int32, campaignId int32, referralId string) apiDeleteReferralRequest {
+ return apiDeleteReferralRequest{
+ apiService: a,
+ ctx: ctx,
+ applicationId: applicationId,
+ campaignId: campaignId,
+ referralId: referralId,
}
}
/*
Execute executes the request
*/
-func (r apiDeleteNotificationWebhookRequest) Execute() (*_nethttp.Response, error) {
+func (r apiDeleteReferralRequest) Execute() (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
localVarPostBody interface{}
@@ -3377,14 +3386,15 @@ func (r apiDeleteNotificationWebhookRequest) Execute() (*_nethttp.Response, erro
localVarFileBytes []byte
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.DeleteNotificationWebhook")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.DeleteReferral")
if err != nil {
return nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"notificationWebhookId"+"}", _neturl.QueryEscape(parameterToString(r.notificationWebhookId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"referralId"+"}", _neturl.QueryEscape(parameterToString(r.referralId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -3462,38 +3472,35 @@ func (r apiDeleteNotificationWebhookRequest) Execute() (*_nethttp.Response, erro
return localVarHTTPResponse, nil
}
-type apiDeleteReferralRequest struct {
+type apiDeleteStoreRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
- campaignId int32
- referralId string
+ storeId string
}
/*
-DeleteReferral Delete referral
-Delete the specified referral.
+DeleteStore Delete store
+Delete the specified store.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param referralId The ID of the referral code.
+ - @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
-@return apiDeleteReferralRequest
+@return apiDeleteStoreRequest
*/
-func (a *ManagementApiService) DeleteReferral(ctx _context.Context, applicationId int32, campaignId int32, referralId string) apiDeleteReferralRequest {
- return apiDeleteReferralRequest{
+func (a *ManagementApiService) DeleteStore(ctx _context.Context, applicationId int32, storeId string) apiDeleteStoreRequest {
+ return apiDeleteStoreRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
- campaignId: campaignId,
- referralId: referralId,
+ storeId: storeId,
}
}
/*
Execute executes the request
*/
-func (r apiDeleteReferralRequest) Execute() (*_nethttp.Response, error) {
+func (r apiDeleteStoreRequest) Execute() (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
localVarPostBody interface{}
@@ -3502,15 +3509,14 @@ func (r apiDeleteReferralRequest) Execute() (*_nethttp.Response, error) {
localVarFileBytes []byte
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.DeleteReferral")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.DeleteStore")
if err != nil {
return nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/stores/{storeId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"referralId"+"}", _neturl.QueryEscape(parameterToString(r.referralId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"storeId"+"}", _neturl.QueryEscape(parameterToString(r.storeId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -3526,7 +3532,7 @@ func (r apiDeleteReferralRequest) Execute() (*_nethttp.Response, error) {
}
// to determine the Accept header
- localVarHTTPHeaderAccepts := []string{}
+ localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -3582,6 +3588,15 @@ func (r apiDeleteReferralRequest) Execute() (*_nethttp.Response, error) {
body: localVarBody,
error: localVarHTTPResponse.Status,
}
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponseWithStatus
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ }
return localVarHTTPResponse, newErr
}
@@ -3710,12 +3725,12 @@ type apiExportAccountCollectionItemsRequest struct {
/*
ExportAccountCollectionItems Export account-level collection's items
-Download a CSV file containing items from an account-level collection.
+Download a CSV file containing items from a given account-level collection.
**Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiExportAccountCollectionItemsRequest
*/
@@ -3873,15 +3888,15 @@ type apiExportCollectionItemsRequest struct {
}
/*
-ExportCollectionItems Export a collection's items
-Download a CSV file containing a collection's items.
+ExportCollectionItems Export campaign-level collection's items
+Download a CSV file containing items from a given campaign-level collection.
**Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
@return apiExportCollectionItemsRequest
*/
@@ -6338,16 +6353,16 @@ func (a *ManagementApiService) GetAccessLogsWithoutTotalCount(ctx _context.Conte
/*
Execute executes the request
- @return InlineResponse20020
+ @return InlineResponse20019
*/
-func (r apiGetAccessLogsWithoutTotalCountRequest) Execute() (InlineResponse20020, *_nethttp.Response, error) {
+func (r apiGetAccessLogsWithoutTotalCountRequest) Execute() (InlineResponse20019, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20020
+ localVarReturnValue InlineResponse20019
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAccessLogsWithoutTotalCount")
@@ -6457,7 +6472,7 @@ func (r apiGetAccessLogsWithoutTotalCountRequest) Execute() (InlineResponse20020
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20020
+ var v InlineResponse20019
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -6770,7 +6785,7 @@ type apiGetAccountCollectionRequest struct {
GetAccountCollection Get account-level collection
Retrieve a given account-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiGetAccountCollectionRequest
*/
@@ -7090,16 +7105,16 @@ func (a *ManagementApiService) GetAdditionalCosts(ctx _context.Context) apiGetAd
/*
Execute executes the request
- @return InlineResponse20035
+ @return InlineResponse20034
*/
-func (r apiGetAdditionalCostsRequest) Execute() (InlineResponse20035, *_nethttp.Response, error) {
+func (r apiGetAdditionalCostsRequest) Execute() (InlineResponse20034, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20035
+ localVarReturnValue InlineResponse20034
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAdditionalCosts")
@@ -7189,7 +7204,7 @@ func (r apiGetAdditionalCostsRequest) Execute() (InlineResponse20035, *_nethttp.
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20035
+ var v InlineResponse20034
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -7283,16 +7298,16 @@ func (a *ManagementApiService) GetAllAccessLogs(ctx _context.Context) apiGetAllA
/*
Execute executes the request
- @return InlineResponse20021
+ @return InlineResponse20020
*/
-func (r apiGetAllAccessLogsRequest) Execute() (InlineResponse20021, *_nethttp.Response, error) {
+func (r apiGetAllAccessLogsRequest) Execute() (InlineResponse20020, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20021
+ localVarReturnValue InlineResponse20020
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAllAccessLogs")
@@ -7401,7 +7416,7 @@ func (r apiGetAllAccessLogsRequest) Execute() (InlineResponse20021, *_nethttp.Re
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20021
+ var v InlineResponse20020
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -7446,16 +7461,16 @@ func (a *ManagementApiService) GetAllRoles(ctx _context.Context) apiGetAllRolesR
/*
Execute executes the request
- @return InlineResponse20043
+ @return InlineResponse20042
*/
-func (r apiGetAllRolesRequest) Execute() (InlineResponse20043, *_nethttp.Response, error) {
+func (r apiGetAllRolesRequest) Execute() (InlineResponse20042, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20043
+ localVarReturnValue InlineResponse20042
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAllRoles")
@@ -7536,7 +7551,7 @@ func (r apiGetAllRolesRequest) Execute() (InlineResponse20043, *_nethttp.Respons
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20043
+ var v InlineResponse20042
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -8039,16 +8054,16 @@ func (a *ManagementApiService) GetApplicationCustomerFriends(ctx _context.Contex
/*
Execute executes the request
- @return InlineResponse20032
+ @return InlineResponse20031
*/
-func (r apiGetApplicationCustomerFriendsRequest) Execute() (InlineResponse20032, *_nethttp.Response, error) {
+func (r apiGetApplicationCustomerFriendsRequest) Execute() (InlineResponse20031, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20032
+ localVarReturnValue InlineResponse20031
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationCustomerFriends")
@@ -8143,7 +8158,7 @@ func (r apiGetApplicationCustomerFriendsRequest) Execute() (InlineResponse20032,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20032
+ var v InlineResponse20031
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -8215,16 +8230,16 @@ func (a *ManagementApiService) GetApplicationCustomers(ctx _context.Context, app
/*
Execute executes the request
- @return InlineResponse20023
+ @return InlineResponse20022
*/
-func (r apiGetApplicationCustomersRequest) Execute() (InlineResponse20023, *_nethttp.Response, error) {
+func (r apiGetApplicationCustomersRequest) Execute() (InlineResponse20022, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20023
+ localVarReturnValue InlineResponse20022
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationCustomers")
@@ -8318,7 +8333,7 @@ func (r apiGetApplicationCustomersRequest) Execute() (InlineResponse20023, *_net
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20023
+ var v InlineResponse20022
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -8393,16 +8408,16 @@ func (a *ManagementApiService) GetApplicationCustomersByAttributes(ctx _context.
/*
Execute executes the request
- @return InlineResponse20024
+ @return InlineResponse20023
*/
-func (r apiGetApplicationCustomersByAttributesRequest) Execute() (InlineResponse20024, *_nethttp.Response, error) {
+func (r apiGetApplicationCustomersByAttributesRequest) Execute() (InlineResponse20023, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20024
+ localVarReturnValue InlineResponse20023
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationCustomersByAttributes")
@@ -8499,7 +8514,7 @@ func (r apiGetApplicationCustomersByAttributesRequest) Execute() (InlineResponse
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20024
+ var v InlineResponse20023
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -8568,16 +8583,16 @@ func (a *ManagementApiService) GetApplicationEventTypes(ctx _context.Context, ap
/*
Execute executes the request
- @return InlineResponse20030
+ @return InlineResponse20029
*/
-func (r apiGetApplicationEventTypesRequest) Execute() (InlineResponse20030, *_nethttp.Response, error) {
+func (r apiGetApplicationEventTypesRequest) Execute() (InlineResponse20029, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20030
+ localVarReturnValue InlineResponse20029
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationEventTypes")
@@ -8668,7 +8683,7 @@ func (r apiGetApplicationEventTypesRequest) Execute() (InlineResponse20030, *_ne
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20030
+ var v InlineResponse20029
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -8801,16 +8816,16 @@ func (a *ManagementApiService) GetApplicationEventsWithoutTotalCount(ctx _contex
/*
Execute executes the request
- @return InlineResponse20029
+ @return InlineResponse20028
*/
-func (r apiGetApplicationEventsWithoutTotalCountRequest) Execute() (InlineResponse20029, *_nethttp.Response, error) {
+func (r apiGetApplicationEventsWithoutTotalCountRequest) Execute() (InlineResponse20028, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20029
+ localVarReturnValue InlineResponse20028
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationEventsWithoutTotalCount")
@@ -8934,7 +8949,7 @@ func (r apiGetApplicationEventsWithoutTotalCountRequest) Execute() (InlineRespon
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20029
+ var v InlineResponse20028
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -9188,16 +9203,16 @@ func (a *ManagementApiService) GetApplicationSessions(ctx _context.Context, appl
/*
Execute executes the request
- @return InlineResponse20028
+ @return InlineResponse20027
*/
-func (r apiGetApplicationSessionsRequest) Execute() (InlineResponse20028, *_nethttp.Response, error) {
+func (r apiGetApplicationSessionsRequest) Execute() (InlineResponse20027, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20028
+ localVarReturnValue InlineResponse20027
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetApplicationSessions")
@@ -9309,7 +9324,7 @@ func (r apiGetApplicationSessionsRequest) Execute() (InlineResponse20028, *_neth
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20028
+ var v InlineResponse20027
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -9681,16 +9696,16 @@ func (a *ManagementApiService) GetAttributes(ctx _context.Context) apiGetAttribu
/*
Execute executes the request
- @return InlineResponse20033
+ @return InlineResponse20032
*/
-func (r apiGetAttributesRequest) Execute() (InlineResponse20033, *_nethttp.Response, error) {
+func (r apiGetAttributesRequest) Execute() (InlineResponse20032, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20033
+ localVarReturnValue InlineResponse20032
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAttributes")
@@ -9783,7 +9798,7 @@ func (r apiGetAttributesRequest) Execute() (InlineResponse20033, *_nethttp.Respo
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20033
+ var v InlineResponse20032
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -9853,16 +9868,16 @@ func (a *ManagementApiService) GetAudiences(ctx _context.Context) apiGetAudience
/*
Execute executes the request
- @return InlineResponse20031
+ @return InlineResponse20030
*/
-func (r apiGetAudiencesRequest) Execute() (InlineResponse20031, *_nethttp.Response, error) {
+func (r apiGetAudiencesRequest) Execute() (InlineResponse20030, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20031
+ localVarReturnValue InlineResponse20030
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetAudiences")
@@ -9955,7 +9970,7 @@ func (r apiGetAudiencesRequest) Execute() (InlineResponse20031, *_nethttp.Respon
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20031
+ var v InlineResponse20030
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -10167,16 +10182,16 @@ func (a *ManagementApiService) GetCampaignAnalytics(ctx _context.Context, applic
/*
Execute executes the request
- @return InlineResponse20022
+ @return InlineResponse20021
*/
-func (r apiGetCampaignAnalyticsRequest) Execute() (InlineResponse20022, *_nethttp.Response, error) {
+func (r apiGetCampaignAnalyticsRequest) Execute() (InlineResponse20021, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20022
+ localVarReturnValue InlineResponse20021
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCampaignAnalytics")
@@ -10272,7 +10287,7 @@ func (r apiGetCampaignAnalyticsRequest) Execute() (InlineResponse20022, *_nethtt
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20022
+ var v InlineResponse20021
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -10547,16 +10562,16 @@ func (a *ManagementApiService) GetCampaignTemplates(ctx _context.Context) apiGet
/*
Execute executes the request
- @return InlineResponse20012
+ @return InlineResponse20011
*/
-func (r apiGetCampaignTemplatesRequest) Execute() (InlineResponse20012, *_nethttp.Response, error) {
+func (r apiGetCampaignTemplatesRequest) Execute() (InlineResponse20011, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20012
+ localVarReturnValue InlineResponse20011
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCampaignTemplates")
@@ -10658,7 +10673,7 @@ func (r apiGetCampaignTemplatesRequest) Execute() (InlineResponse20012, *_nethtt
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20012
+ var v InlineResponse20011
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -11019,16 +11034,16 @@ func (a *ManagementApiService) GetChanges(ctx _context.Context) apiGetChangesReq
/*
Execute executes the request
- @return InlineResponse20041
+ @return InlineResponse20040
*/
-func (r apiGetChangesRequest) Execute() (InlineResponse20041, *_nethttp.Response, error) {
+func (r apiGetChangesRequest) Execute() (InlineResponse20040, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20041
+ localVarReturnValue InlineResponse20040
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetChanges")
@@ -11142,7 +11157,7 @@ func (r apiGetChangesRequest) Execute() (InlineResponse20041, *_nethttp.Response
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20041
+ var v InlineResponse20040
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -11174,12 +11189,12 @@ type apiGetCollectionRequest struct {
}
/*
-GetCollection Get collection
-Retrieve a given collection.
+GetCollection Get campaign-level collection
+Retrieve a given campaign-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
@return apiGetCollectionRequest
*/
@@ -11342,9 +11357,12 @@ func (r apiGetCollectionItemsRequest) Skip(skip int32) apiGetCollectionItemsRequ
/*
GetCollectionItems Get collection items
-Retrieve the items from the given collection.
+Retrieve items from a given collection.
+
+You can retrieve items from both account-level collections and campaign-level collections using this endpoint.
+
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiGetCollectionItemsRequest
*/
@@ -11359,16 +11377,16 @@ func (a *ManagementApiService) GetCollectionItems(ctx _context.Context, collecti
/*
Execute executes the request
- @return InlineResponse20018
+ @return InlineResponse20017
*/
-func (r apiGetCollectionItemsRequest) Execute() (InlineResponse20018, *_nethttp.Response, error) {
+func (r apiGetCollectionItemsRequest) Execute() (InlineResponse20017, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20018
+ localVarReturnValue InlineResponse20017
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCollectionItems")
@@ -11456,7 +11474,7 @@ func (r apiGetCollectionItemsRequest) Execute() (InlineResponse20018, *_nethttp.
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20018
+ var v InlineResponse20017
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -11590,16 +11608,16 @@ func (a *ManagementApiService) GetCouponsWithoutTotalCount(ctx _context.Context,
/*
Execute executes the request
- @return InlineResponse20010
+ @return InlineResponse2009
*/
-func (r apiGetCouponsWithoutTotalCountRequest) Execute() (InlineResponse20010, *_nethttp.Response, error) {
+func (r apiGetCouponsWithoutTotalCountRequest) Execute() (InlineResponse2009, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20010
+ localVarReturnValue InlineResponse2009
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCouponsWithoutTotalCount")
@@ -11718,7 +11736,7 @@ func (r apiGetCouponsWithoutTotalCountRequest) Execute() (InlineResponse20010, *
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20010
+ var v InlineResponse2009
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -12005,16 +12023,16 @@ func (a *ManagementApiService) GetCustomerActivityReportsWithoutTotalCount(ctx _
/*
Execute executes the request
- @return InlineResponse20027
+ @return InlineResponse20026
*/
-func (r apiGetCustomerActivityReportsWithoutTotalCountRequest) Execute() (InlineResponse20027, *_nethttp.Response, error) {
+func (r apiGetCustomerActivityReportsWithoutTotalCountRequest) Execute() (InlineResponse20026, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20027
+ localVarReturnValue InlineResponse20026
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCustomerActivityReportsWithoutTotalCount")
@@ -12127,7 +12145,7 @@ func (r apiGetCustomerActivityReportsWithoutTotalCountRequest) Execute() (Inline
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20027
+ var v InlineResponse20026
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -12512,16 +12530,16 @@ func (a *ManagementApiService) GetCustomerProfiles(ctx _context.Context) apiGetC
/*
Execute executes the request
- @return InlineResponse20026
+ @return InlineResponse20025
*/
-func (r apiGetCustomerProfilesRequest) Execute() (InlineResponse20026, *_nethttp.Response, error) {
+func (r apiGetCustomerProfilesRequest) Execute() (InlineResponse20025, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20026
+ localVarReturnValue InlineResponse20025
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCustomerProfiles")
@@ -12611,7 +12629,7 @@ func (r apiGetCustomerProfilesRequest) Execute() (InlineResponse20026, *_nethttp
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20026
+ var v InlineResponse20025
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -12683,16 +12701,16 @@ func (a *ManagementApiService) GetCustomersByAttributes(ctx _context.Context) ap
/*
Execute executes the request
- @return InlineResponse20025
+ @return InlineResponse20024
*/
-func (r apiGetCustomersByAttributesRequest) Execute() (InlineResponse20025, *_nethttp.Response, error) {
+func (r apiGetCustomersByAttributesRequest) Execute() (InlineResponse20024, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20025
+ localVarReturnValue InlineResponse20024
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetCustomersByAttributes")
@@ -12788,7 +12806,7 @@ func (r apiGetCustomersByAttributesRequest) Execute() (InlineResponse20025, *_ne
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20025
+ var v InlineResponse20024
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -12864,16 +12882,16 @@ func (a *ManagementApiService) GetEventTypes(ctx _context.Context) apiGetEventTy
/*
Execute executes the request
- @return InlineResponse20039
+ @return InlineResponse20038
*/
-func (r apiGetEventTypesRequest) Execute() (InlineResponse20039, *_nethttp.Response, error) {
+func (r apiGetEventTypesRequest) Execute() (InlineResponse20038, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20039
+ localVarReturnValue InlineResponse20038
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetEventTypes")
@@ -12969,7 +12987,7 @@ func (r apiGetEventTypesRequest) Execute() (InlineResponse20039, *_nethttp.Respo
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20039
+ var v InlineResponse20038
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -13045,16 +13063,16 @@ func (a *ManagementApiService) GetExports(ctx _context.Context) apiGetExportsReq
/*
Execute executes the request
- @return InlineResponse20042
+ @return InlineResponse20041
*/
-func (r apiGetExportsRequest) Execute() (InlineResponse20042, *_nethttp.Response, error) {
+func (r apiGetExportsRequest) Execute() (InlineResponse20041, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20042
+ localVarReturnValue InlineResponse20041
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetExports")
@@ -13150,7 +13168,7 @@ func (r apiGetExportsRequest) Execute() (InlineResponse20042, *_nethttp.Response
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20042
+ var v InlineResponse20041
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -13411,16 +13429,16 @@ func (a *ManagementApiService) GetLoyaltyCardTransactionLogs(ctx _context.Contex
/*
Execute executes the request
- @return InlineResponse20016
+ @return InlineResponse20015
*/
-func (r apiGetLoyaltyCardTransactionLogsRequest) Execute() (InlineResponse20016, *_nethttp.Response, error) {
+func (r apiGetLoyaltyCardTransactionLogsRequest) Execute() (InlineResponse20015, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20016
+ localVarReturnValue InlineResponse20015
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetLoyaltyCardTransactionLogs")
@@ -13522,7 +13540,7 @@ func (r apiGetLoyaltyCardTransactionLogsRequest) Execute() (InlineResponse20016,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20016
+ var v InlineResponse20015
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -13621,16 +13639,16 @@ func (a *ManagementApiService) GetLoyaltyCards(ctx _context.Context, loyaltyProg
/*
Execute executes the request
- @return InlineResponse20015
+ @return InlineResponse20014
*/
-func (r apiGetLoyaltyCardsRequest) Execute() (InlineResponse20015, *_nethttp.Response, error) {
+func (r apiGetLoyaltyCardsRequest) Execute() (InlineResponse20014, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20015
+ localVarReturnValue InlineResponse20014
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetLoyaltyCards")
@@ -13727,7 +13745,7 @@ func (r apiGetLoyaltyCardsRequest) Execute() (InlineResponse20015, *_nethttp.Res
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20015
+ var v InlineResponse20014
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14130,16 +14148,16 @@ func (a *ManagementApiService) GetLoyaltyProgramTransactions(ctx _context.Contex
/*
Execute executes the request
- @return InlineResponse20014
+ @return InlineResponse20013
*/
-func (r apiGetLoyaltyProgramTransactionsRequest) Execute() (InlineResponse20014, *_nethttp.Response, error) {
+func (r apiGetLoyaltyProgramTransactionsRequest) Execute() (InlineResponse20013, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20014
+ localVarReturnValue InlineResponse20013
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetLoyaltyProgramTransactions")
@@ -14239,7 +14257,7 @@ func (r apiGetLoyaltyProgramTransactionsRequest) Execute() (InlineResponse20014,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20014
+ var v InlineResponse20013
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14314,16 +14332,16 @@ func (a *ManagementApiService) GetLoyaltyPrograms(ctx _context.Context) apiGetLo
/*
Execute executes the request
- @return InlineResponse20013
+ @return InlineResponse20012
*/
-func (r apiGetLoyaltyProgramsRequest) Execute() (InlineResponse20013, *_nethttp.Response, error) {
+func (r apiGetLoyaltyProgramsRequest) Execute() (InlineResponse20012, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20013
+ localVarReturnValue InlineResponse20012
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetLoyaltyPrograms")
@@ -14404,7 +14422,7 @@ func (r apiGetLoyaltyProgramsRequest) Execute() (InlineResponse20013, *_nethttp.
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20013
+ var v InlineResponse20012
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14457,16 +14475,16 @@ func (a *ManagementApiService) GetLoyaltyStatistics(ctx _context.Context, loyalt
/*
Execute executes the request
- @return LoyaltyStatistics
+ @return LoyaltyDashboardData
*/
-func (r apiGetLoyaltyStatisticsRequest) Execute() (LoyaltyStatistics, *_nethttp.Response, error) {
+func (r apiGetLoyaltyStatisticsRequest) Execute() (LoyaltyDashboardData, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue LoyaltyStatistics
+ localVarReturnValue LoyaltyDashboardData
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetLoyaltyStatistics")
@@ -14548,7 +14566,7 @@ func (r apiGetLoyaltyStatisticsRequest) Execute() (LoyaltyStatistics, *_nethttp.
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v LoyaltyStatistics
+ var v LoyaltyDashboardData
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14571,61 +14589,140 @@ func (r apiGetLoyaltyStatisticsRequest) Execute() (LoyaltyStatistics, *_nethttp.
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiGetNotificationWebhookRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
- notificationWebhookId int32
+type apiGetReferralsWithoutTotalCountRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ applicationId int32
+ campaignId int32
+ pageSize *int32
+ skip *int32
+ sort *string
+ code *string
+ createdBefore *time.Time
+ createdAfter *time.Time
+ valid *string
+ usable *string
+ advocate *string
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) PageSize(pageSize int32) apiGetReferralsWithoutTotalCountRequest {
+ r.pageSize = &pageSize
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) Skip(skip int32) apiGetReferralsWithoutTotalCountRequest {
+ r.skip = &skip
+ return r
}
-/*
-GetNotificationWebhook Get notification about campaign-related changes
-Return the given
-[notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
+func (r apiGetReferralsWithoutTotalCountRequest) Sort(sort string) apiGetReferralsWithoutTotalCountRequest {
+ r.sort = &sort
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) Code(code string) apiGetReferralsWithoutTotalCountRequest {
+ r.code = &code
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) CreatedBefore(createdBefore time.Time) apiGetReferralsWithoutTotalCountRequest {
+ r.createdBefore = &createdBefore
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) CreatedAfter(createdAfter time.Time) apiGetReferralsWithoutTotalCountRequest {
+ r.createdAfter = &createdAfter
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) Valid(valid string) apiGetReferralsWithoutTotalCountRequest {
+ r.valid = &valid
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) Usable(usable string) apiGetReferralsWithoutTotalCountRequest {
+ r.usable = &usable
+ return r
+}
+
+func (r apiGetReferralsWithoutTotalCountRequest) Advocate(advocate string) apiGetReferralsWithoutTotalCountRequest {
+ r.advocate = &advocate
+ return r
+}
+/*
+GetReferralsWithoutTotalCount List referrals
+List all referrals of the specified campaign.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param notificationWebhookId The ID of the webhook. Get it with the appropriate _List notifications_ endpoint.
+ - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
-@return apiGetNotificationWebhookRequest
+@return apiGetReferralsWithoutTotalCountRequest
*/
-func (a *ManagementApiService) GetNotificationWebhook(ctx _context.Context, applicationId int32, notificationWebhookId int32) apiGetNotificationWebhookRequest {
- return apiGetNotificationWebhookRequest{
- apiService: a,
- ctx: ctx,
- applicationId: applicationId,
- notificationWebhookId: notificationWebhookId,
+func (a *ManagementApiService) GetReferralsWithoutTotalCount(ctx _context.Context, applicationId int32, campaignId int32) apiGetReferralsWithoutTotalCountRequest {
+ return apiGetReferralsWithoutTotalCountRequest{
+ apiService: a,
+ ctx: ctx,
+ applicationId: applicationId,
+ campaignId: campaignId,
}
}
/*
Execute executes the request
- @return NotificationWebhook
+ @return InlineResponse20010
*/
-func (r apiGetNotificationWebhookRequest) Execute() (NotificationWebhook, *_nethttp.Response, error) {
+func (r apiGetReferralsWithoutTotalCountRequest) Execute() (InlineResponse20010, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue NotificationWebhook
+ localVarReturnValue InlineResponse20010
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetNotificationWebhook")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetReferralsWithoutTotalCount")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"notificationWebhookId"+"}", _neturl.QueryEscape(parameterToString(r.notificationWebhookId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
+ if r.pageSize != nil {
+ localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, ""))
+ }
+ if r.skip != nil {
+ localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
+ }
+ if r.sort != nil {
+ localVarQueryParams.Add("sort", parameterToString(*r.sort, ""))
+ }
+ if r.code != nil {
+ localVarQueryParams.Add("code", parameterToString(*r.code, ""))
+ }
+ if r.createdBefore != nil {
+ localVarQueryParams.Add("createdBefore", parameterToString(*r.createdBefore, ""))
+ }
+ if r.createdAfter != nil {
+ localVarQueryParams.Add("createdAfter", parameterToString(*r.createdAfter, ""))
+ }
+ if r.valid != nil {
+ localVarQueryParams.Add("valid", parameterToString(*r.valid, ""))
+ }
+ if r.usable != nil {
+ localVarQueryParams.Add("usable", parameterToString(*r.usable, ""))
+ }
+ if r.advocate != nil {
+ localVarQueryParams.Add("advocate", parameterToString(*r.advocate, ""))
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -14693,7 +14790,7 @@ func (r apiGetNotificationWebhookRequest) Execute() (NotificationWebhook, *_neth
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v NotificationWebhook
+ var v InlineResponse20010
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14716,53 +14813,51 @@ func (r apiGetNotificationWebhookRequest) Execute() (NotificationWebhook, *_neth
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiGetNotificationWebhooksRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
+type apiGetRoleRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ roleId int32
}
/*
-GetNotificationWebhooks List notifications about campaign-related changes
-List all
-[notifications about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications)
-for the given Application.
+GetRole Get role
+Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles).
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
+ - @param roleId The ID of role.
-@return apiGetNotificationWebhooksRequest
+@return apiGetRoleRequest
*/
-func (a *ManagementApiService) GetNotificationWebhooks(ctx _context.Context, applicationId int32) apiGetNotificationWebhooksRequest {
- return apiGetNotificationWebhooksRequest{
- apiService: a,
- ctx: ctx,
- applicationId: applicationId,
+func (a *ManagementApiService) GetRole(ctx _context.Context, roleId int32) apiGetRoleRequest {
+ return apiGetRoleRequest{
+ apiService: a,
+ ctx: ctx,
+ roleId: roleId,
}
}
/*
Execute executes the request
- @return InlineResponse2007
+ @return Role
*/
-func (r apiGetNotificationWebhooksRequest) Execute() (InlineResponse2007, *_nethttp.Response, error) {
+func (r apiGetRoleRequest) Execute() (Role, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse2007
+ localVarReturnValue Role
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetNotificationWebhooks")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRole")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/notification_webhooks"
- localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
+ localVarPath := localBasePath + "/v1/roles/{roleId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", _neturl.QueryEscape(parameterToString(r.roleId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -14835,7 +14930,7 @@ func (r apiGetNotificationWebhooksRequest) Execute() (InlineResponse2007, *_neth
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse2007
+ var v Role
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -14858,140 +14953,63 @@ func (r apiGetNotificationWebhooksRequest) Execute() (InlineResponse2007, *_neth
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiGetReferralsWithoutTotalCountRequest struct {
+type apiGetRulesetRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
campaignId int32
- pageSize *int32
- skip *int32
- sort *string
- code *string
- createdBefore *time.Time
- createdAfter *time.Time
- valid *string
- usable *string
- advocate *string
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) PageSize(pageSize int32) apiGetReferralsWithoutTotalCountRequest {
- r.pageSize = &pageSize
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Skip(skip int32) apiGetReferralsWithoutTotalCountRequest {
- r.skip = &skip
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Sort(sort string) apiGetReferralsWithoutTotalCountRequest {
- r.sort = &sort
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Code(code string) apiGetReferralsWithoutTotalCountRequest {
- r.code = &code
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) CreatedBefore(createdBefore time.Time) apiGetReferralsWithoutTotalCountRequest {
- r.createdBefore = &createdBefore
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) CreatedAfter(createdAfter time.Time) apiGetReferralsWithoutTotalCountRequest {
- r.createdAfter = &createdAfter
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Valid(valid string) apiGetReferralsWithoutTotalCountRequest {
- r.valid = &valid
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Usable(usable string) apiGetReferralsWithoutTotalCountRequest {
- r.usable = &usable
- return r
-}
-
-func (r apiGetReferralsWithoutTotalCountRequest) Advocate(advocate string) apiGetReferralsWithoutTotalCountRequest {
- r.advocate = &advocate
- return r
+ rulesetId int32
}
/*
-GetReferralsWithoutTotalCount List referrals
-List all referrals of the specified campaign.
+GetRuleset Get ruleset
+Retrieve the specified ruleset.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ - @param rulesetId The ID of the ruleset.
-@return apiGetReferralsWithoutTotalCountRequest
+@return apiGetRulesetRequest
*/
-func (a *ManagementApiService) GetReferralsWithoutTotalCount(ctx _context.Context, applicationId int32, campaignId int32) apiGetReferralsWithoutTotalCountRequest {
- return apiGetReferralsWithoutTotalCountRequest{
+func (a *ManagementApiService) GetRuleset(ctx _context.Context, applicationId int32, campaignId int32, rulesetId int32) apiGetRulesetRequest {
+ return apiGetRulesetRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
campaignId: campaignId,
+ rulesetId: rulesetId,
}
}
/*
Execute executes the request
- @return InlineResponse20011
+ @return Ruleset
*/
-func (r apiGetReferralsWithoutTotalCountRequest) Execute() (InlineResponse20011, *_nethttp.Response, error) {
+func (r apiGetRulesetRequest) Execute() (Ruleset, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20011
+ localVarReturnValue Ruleset
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetReferralsWithoutTotalCount")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRuleset")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"rulesetId"+"}", _neturl.QueryEscape(parameterToString(r.rulesetId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
- if r.pageSize != nil {
- localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, ""))
- }
- if r.skip != nil {
- localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
- }
- if r.sort != nil {
- localVarQueryParams.Add("sort", parameterToString(*r.sort, ""))
- }
- if r.code != nil {
- localVarQueryParams.Add("code", parameterToString(*r.code, ""))
- }
- if r.createdBefore != nil {
- localVarQueryParams.Add("createdBefore", parameterToString(*r.createdBefore, ""))
- }
- if r.createdAfter != nil {
- localVarQueryParams.Add("createdAfter", parameterToString(*r.createdAfter, ""))
- }
- if r.valid != nil {
- localVarQueryParams.Add("valid", parameterToString(*r.valid, ""))
- }
- if r.usable != nil {
- localVarQueryParams.Add("usable", parameterToString(*r.usable, ""))
- }
- if r.advocate != nil {
- localVarQueryParams.Add("advocate", parameterToString(*r.advocate, ""))
- }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -15059,7 +15077,7 @@ func (r apiGetReferralsWithoutTotalCountRequest) Execute() (InlineResponse20011,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20011
+ var v Ruleset
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -15082,203 +15100,89 @@ func (r apiGetReferralsWithoutTotalCountRequest) Execute() (InlineResponse20011,
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiGetRoleRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- roleId int32
+type apiGetRulesetsRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ applicationId int32
+ campaignId int32
+ pageSize *int32
+ skip *int32
+ sort *string
}
-/*
-GetRole Get role
-Get the details of a specific role. To see all the roles, use [List roles](#operation/getAllRoles).
-
- - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param roleId The ID of role.
-
-@return apiGetRoleRequest
-*/
-func (a *ManagementApiService) GetRole(ctx _context.Context, roleId int32) apiGetRoleRequest {
- return apiGetRoleRequest{
- apiService: a,
- ctx: ctx,
- roleId: roleId,
- }
+func (r apiGetRulesetsRequest) PageSize(pageSize int32) apiGetRulesetsRequest {
+ r.pageSize = &pageSize
+ return r
}
-/*
-Execute executes the request
-
- @return Role
-*/
-func (r apiGetRoleRequest) Execute() (Role, *_nethttp.Response, error) {
- var (
- localVarHTTPMethod = _nethttp.MethodGet
- localVarPostBody interface{}
- localVarFormFileName string
- localVarFileName string
- localVarFileBytes []byte
- localVarReturnValue Role
- )
-
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRole")
- if err != nil {
- return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/v1/roles/{roleId}"
- localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", _neturl.QueryEscape(parameterToString(r.roleId, "")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := _neturl.Values{}
- localVarFormParams := _neturl.Values{}
-
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
- }
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
- }
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if auth, ok := auth["Authorization"]; ok {
- var key string
- if auth.Prefix != "" {
- key = auth.Prefix + " " + auth.Key
- } else {
- key = auth.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- if r.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- if auth, ok := auth["Authorization"]; ok {
- var key string
- if auth.Prefix != "" {
- key = auth.Prefix + " " + auth.Key
- } else {
- key = auth.Key
- }
- localVarHeaderParams["Authorization"] = key
- }
- }
- }
- req, err := r.apiService.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
- if err != nil {
- return localVarReturnValue, nil, err
- }
-
- localVarHTTPResponse, err := r.apiService.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
- localVarHTTPResponse.Body.Close()
- if err != nil {
- return localVarReturnValue, localVarHTTPResponse, err
- }
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
- }
- if localVarHTTPResponse.StatusCode == 200 {
- var v Role
- err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.error = err.Error()
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
- newErr.model = v
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- err = r.apiService.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr := GenericOpenAPIError{
- body: localVarBody,
- error: err.Error(),
- }
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
-
- return localVarReturnValue, localVarHTTPResponse, nil
+func (r apiGetRulesetsRequest) Skip(skip int32) apiGetRulesetsRequest {
+ r.skip = &skip
+ return r
}
-type apiGetRulesetRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
- campaignId int32
- rulesetId int32
+func (r apiGetRulesetsRequest) Sort(sort string) apiGetRulesetsRequest {
+ r.sort = &sort
+ return r
}
/*
-GetRuleset Get ruleset
-Retrieve the specified ruleset.
+GetRulesets List campaign rulesets
+List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign.
+**Important:** The response also includes deleted rules.
+You should only consider the latest revision of the returned rulesets.
+
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param rulesetId The ID of the ruleset.
-@return apiGetRulesetRequest
+@return apiGetRulesetsRequest
*/
-func (a *ManagementApiService) GetRuleset(ctx _context.Context, applicationId int32, campaignId int32, rulesetId int32) apiGetRulesetRequest {
- return apiGetRulesetRequest{
+func (a *ManagementApiService) GetRulesets(ctx _context.Context, applicationId int32, campaignId int32) apiGetRulesetsRequest {
+ return apiGetRulesetsRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
campaignId: campaignId,
- rulesetId: rulesetId,
}
}
/*
Execute executes the request
- @return Ruleset
+ @return InlineResponse2007
*/
-func (r apiGetRulesetRequest) Execute() (Ruleset, *_nethttp.Response, error) {
+func (r apiGetRulesetsRequest) Execute() (InlineResponse2007, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue Ruleset
+ localVarReturnValue InlineResponse2007
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRuleset")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRulesets")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"rulesetId"+"}", _neturl.QueryEscape(parameterToString(r.rulesetId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
+ if r.pageSize != nil {
+ localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, ""))
+ }
+ if r.skip != nil {
+ localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
+ }
+ if r.sort != nil {
+ localVarQueryParams.Add("sort", parameterToString(*r.sort, ""))
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -15346,7 +15250,7 @@ func (r apiGetRulesetRequest) Execute() (Ruleset, *_nethttp.Response, error) {
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v Ruleset
+ var v InlineResponse2007
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -15369,89 +15273,59 @@ func (r apiGetRulesetRequest) Execute() (Ruleset, *_nethttp.Response, error) {
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiGetRulesetsRequest struct {
+type apiGetStoreRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
- campaignId int32
- pageSize *int32
- skip *int32
- sort *string
-}
-
-func (r apiGetRulesetsRequest) PageSize(pageSize int32) apiGetRulesetsRequest {
- r.pageSize = &pageSize
- return r
-}
-
-func (r apiGetRulesetsRequest) Skip(skip int32) apiGetRulesetsRequest {
- r.skip = &skip
- return r
-}
-
-func (r apiGetRulesetsRequest) Sort(sort string) apiGetRulesetsRequest {
- r.sort = &sort
- return r
+ storeId string
}
/*
-GetRulesets List campaign rulesets
-List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign.
-**Important:** The response also includes deleted rules.
-You should only consider the latest revision of the returned rulesets.
-
+GetStore Get store
+Get store details for a specific store ID.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ - @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
-@return apiGetRulesetsRequest
+@return apiGetStoreRequest
*/
-func (a *ManagementApiService) GetRulesets(ctx _context.Context, applicationId int32, campaignId int32) apiGetRulesetsRequest {
- return apiGetRulesetsRequest{
+func (a *ManagementApiService) GetStore(ctx _context.Context, applicationId int32, storeId string) apiGetStoreRequest {
+ return apiGetStoreRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
- campaignId: campaignId,
+ storeId: storeId,
}
}
/*
Execute executes the request
- @return InlineResponse2008
+ @return Store
*/
-func (r apiGetRulesetsRequest) Execute() (InlineResponse2008, *_nethttp.Response, error) {
+func (r apiGetStoreRequest) Execute() (Store, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse2008
+ localVarReturnValue Store
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetRulesets")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetStore")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/rulesets"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/stores/{storeId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"storeId"+"}", _neturl.QueryEscape(parameterToString(r.storeId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
- if r.pageSize != nil {
- localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, ""))
- }
- if r.skip != nil {
- localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
- }
- if r.sort != nil {
- localVarQueryParams.Add("sort", parameterToString(*r.sort, ""))
- }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -15519,7 +15393,17 @@ func (r apiGetRulesetsRequest) Execute() (InlineResponse2008, *_nethttp.Response
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse2008
+ var v Store
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponseWithStatus
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -15723,16 +15607,16 @@ func (a *ManagementApiService) GetUsers(ctx _context.Context) apiGetUsersRequest
/*
Execute executes the request
- @return InlineResponse20040
+ @return InlineResponse20039
*/
-func (r apiGetUsersRequest) Execute() (InlineResponse20040, *_nethttp.Response, error) {
+func (r apiGetUsersRequest) Execute() (InlineResponse20039, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20040
+ localVarReturnValue InlineResponse20039
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetUsers")
@@ -15822,7 +15706,7 @@ func (r apiGetUsersRequest) Execute() (InlineResponse20040, *_nethttp.Response,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20040
+ var v InlineResponse20039
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -16062,16 +15946,16 @@ func (a *ManagementApiService) GetWebhookActivationLogs(ctx _context.Context) ap
/*
Execute executes the request
- @return InlineResponse20037
+ @return InlineResponse20036
*/
-func (r apiGetWebhookActivationLogsRequest) Execute() (InlineResponse20037, *_nethttp.Response, error) {
+func (r apiGetWebhookActivationLogsRequest) Execute() (InlineResponse20036, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20037
+ localVarReturnValue InlineResponse20036
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetWebhookActivationLogs")
@@ -16179,7 +16063,7 @@ func (r apiGetWebhookActivationLogsRequest) Execute() (InlineResponse20037, *_ne
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20037
+ var v InlineResponse20036
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -16284,16 +16168,16 @@ func (a *ManagementApiService) GetWebhookLogs(ctx _context.Context) apiGetWebhoo
/*
Execute executes the request
- @return InlineResponse20038
+ @return InlineResponse20037
*/
-func (r apiGetWebhookLogsRequest) Execute() (InlineResponse20038, *_nethttp.Response, error) {
+func (r apiGetWebhookLogsRequest) Execute() (InlineResponse20037, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20038
+ localVarReturnValue InlineResponse20037
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetWebhookLogs")
@@ -16404,7 +16288,7 @@ func (r apiGetWebhookLogsRequest) Execute() (InlineResponse20038, *_nethttp.Resp
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20038
+ var v InlineResponse20037
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -16497,16 +16381,16 @@ func (a *ManagementApiService) GetWebhooks(ctx _context.Context) apiGetWebhooksR
/*
Execute executes the request
- @return InlineResponse20036
+ @return InlineResponse20035
*/
-func (r apiGetWebhooksRequest) Execute() (InlineResponse20036, *_nethttp.Response, error) {
+func (r apiGetWebhooksRequest) Execute() (InlineResponse20035, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20036
+ localVarReturnValue InlineResponse20035
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.GetWebhooks")
@@ -16611,7 +16495,7 @@ func (r apiGetWebhooksRequest) Execute() (InlineResponse20036, *_nethttp.Respons
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20036
+ var v InlineResponse20035
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -16647,7 +16531,7 @@ func (r apiImportAccountCollectionRequest) UpFile(upFile string) apiImportAccoun
}
/*
-ImportAccountCollection Import data in existing account-level collection
+ImportAccountCollection Import data into existing account-level collection
Upload a CSV file containing the collection of string values that should be attached as payload for collection.
The file should be sent as multipart data.
@@ -16671,7 +16555,7 @@ Asics
**Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiImportAccountCollectionRequest
*/
@@ -17035,7 +16919,7 @@ func (r apiImportCollectionRequest) UpFile(upFile string) apiImportCollectionReq
}
/*
-ImportCollection Import data in existing collection
+ImportCollection Import data into existing campaign-level collection
Upload a CSV file containing the collection of string values that should be attached as payload for collection.
The file should be sent as multipart data.
@@ -17061,7 +16945,7 @@ Asics
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
@return apiImportCollectionRequest
*/
@@ -18003,7 +17887,10 @@ The CSV file contains the following columns:
The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not.
You can use the time zone of your choice. The values are converted to UTC internally by Talon.One.
-**Note:** We recommend limiting your file size to 500MB.
+**Note:**
+
+- We recommend limiting your file size to 500MB.
+- You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes.
**Example:**
@@ -18367,7 +18254,7 @@ func (r apiListAccountCollectionsRequest) Name(name string) apiListAccountCollec
/*
ListAccountCollections List collections in account
-List collections in account.
+List account-level collections in the account.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return apiListAccountCollectionsRequest
@@ -18382,16 +18269,16 @@ func (a *ManagementApiService) ListAccountCollections(ctx _context.Context) apiL
/*
Execute executes the request
- @return InlineResponse20017
+ @return InlineResponse20016
*/
-func (r apiListAccountCollectionsRequest) Execute() (InlineResponse20017, *_nethttp.Response, error) {
+func (r apiListAccountCollectionsRequest) Execute() (InlineResponse20016, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20017
+ localVarReturnValue InlineResponse20016
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListAccountCollections")
@@ -18487,7 +18374,7 @@ func (r apiListAccountCollectionsRequest) Execute() (InlineResponse20017, *_neth
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20017
+ var v InlineResponse20016
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -18516,8 +18403,184 @@ func (r apiListAccountCollectionsRequest) Execute() (InlineResponse20017, *_neth
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponseWithStatus
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponseWithStatus
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = r.apiService.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type apiListCatalogItemsRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ catalogId int32
+ pageSize *int32
+ skip *int32
+ withTotalResultSize *bool
+ sku *string
+}
+
+func (r apiListCatalogItemsRequest) PageSize(pageSize int32) apiListCatalogItemsRequest {
+ r.pageSize = &pageSize
+ return r
+}
+
+func (r apiListCatalogItemsRequest) Skip(skip int32) apiListCatalogItemsRequest {
+ r.skip = &skip
+ return r
+}
+
+func (r apiListCatalogItemsRequest) WithTotalResultSize(withTotalResultSize bool) apiListCatalogItemsRequest {
+ r.withTotalResultSize = &withTotalResultSize
+ return r
+}
+
+func (r apiListCatalogItemsRequest) Sku(sku string) apiListCatalogItemsRequest {
+ r.sku = &sku
+ return r
+}
+
+/*
+ListCatalogItems List items in a catalog
+Return a paginated list of cart items in the given catalog.
+
+ - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ - @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
+
+@return apiListCatalogItemsRequest
+*/
+func (a *ManagementApiService) ListCatalogItems(ctx _context.Context, catalogId int32) apiListCatalogItemsRequest {
+ return apiListCatalogItemsRequest{
+ apiService: a,
+ ctx: ctx,
+ catalogId: catalogId,
+ }
+}
+
+/*
+Execute executes the request
+
+ @return InlineResponse20033
+*/
+func (r apiListCatalogItemsRequest) Execute() (InlineResponse20033, *_nethttp.Response, error) {
+ var (
+ localVarHTTPMethod = _nethttp.MethodGet
+ localVarPostBody interface{}
+ localVarFormFileName string
+ localVarFileName string
+ localVarFileBytes []byte
+ localVarReturnValue InlineResponse20033
+ )
+
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCatalogItems")
+ if err != nil {
+ return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/v1/catalogs/{catalogId}/items"
+ localVarPath = strings.Replace(localVarPath, "{"+"catalogId"+"}", _neturl.QueryEscape(parameterToString(r.catalogId, "")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := _neturl.Values{}
+ localVarFormParams := _neturl.Values{}
+
+ if r.pageSize != nil {
+ localVarQueryParams.Add("pageSize", parameterToString(*r.pageSize, ""))
+ }
+ if r.skip != nil {
+ localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
+ }
+ if r.withTotalResultSize != nil {
+ localVarQueryParams.Add("withTotalResultSize", parameterToString(*r.withTotalResultSize, ""))
+ }
+ if r.sku != nil {
+ localVarQueryParams.Add("sku", parameterToString(*r.sku, ""))
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if auth, ok := auth["Authorization"]; ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if auth, ok := auth["Authorization"]; ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := r.apiService.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := r.apiService.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode == 200 {
+ var v InlineResponse20033
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -18540,75 +18603,84 @@ func (r apiListAccountCollectionsRequest) Execute() (InlineResponse20017, *_neth
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiListCatalogItemsRequest struct {
+type apiListCollectionsRequest struct {
ctx _context.Context
apiService *ManagementApiService
- catalogId int32
+ applicationId int32
+ campaignId int32
pageSize *int32
skip *int32
+ sort *string
withTotalResultSize *bool
- sku *string
+ name *string
}
-func (r apiListCatalogItemsRequest) PageSize(pageSize int32) apiListCatalogItemsRequest {
+func (r apiListCollectionsRequest) PageSize(pageSize int32) apiListCollectionsRequest {
r.pageSize = &pageSize
return r
}
-func (r apiListCatalogItemsRequest) Skip(skip int32) apiListCatalogItemsRequest {
+func (r apiListCollectionsRequest) Skip(skip int32) apiListCollectionsRequest {
r.skip = &skip
return r
}
-func (r apiListCatalogItemsRequest) WithTotalResultSize(withTotalResultSize bool) apiListCatalogItemsRequest {
+func (r apiListCollectionsRequest) Sort(sort string) apiListCollectionsRequest {
+ r.sort = &sort
+ return r
+}
+
+func (r apiListCollectionsRequest) WithTotalResultSize(withTotalResultSize bool) apiListCollectionsRequest {
r.withTotalResultSize = &withTotalResultSize
return r
}
-func (r apiListCatalogItemsRequest) Sku(sku string) apiListCatalogItemsRequest {
- r.sku = &sku
+func (r apiListCollectionsRequest) Name(name string) apiListCollectionsRequest {
+ r.name = &name
return r
}
/*
-ListCatalogItems List items in a catalog
-Return a paginated list of cart items in the given catalog.
-
+ListCollections List collections in campaign
+List collections in a given campaign.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
+ - @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
+ - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
-@return apiListCatalogItemsRequest
+@return apiListCollectionsRequest
*/
-func (a *ManagementApiService) ListCatalogItems(ctx _context.Context, catalogId int32) apiListCatalogItemsRequest {
- return apiListCatalogItemsRequest{
- apiService: a,
- ctx: ctx,
- catalogId: catalogId,
+func (a *ManagementApiService) ListCollections(ctx _context.Context, applicationId int32, campaignId int32) apiListCollectionsRequest {
+ return apiListCollectionsRequest{
+ apiService: a,
+ ctx: ctx,
+ applicationId: applicationId,
+ campaignId: campaignId,
}
}
/*
Execute executes the request
- @return InlineResponse20034
+ @return InlineResponse20018
*/
-func (r apiListCatalogItemsRequest) Execute() (InlineResponse20034, *_nethttp.Response, error) {
+func (r apiListCollectionsRequest) Execute() (InlineResponse20018, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20034
+ localVarReturnValue InlineResponse20018
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCatalogItems")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCollections")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/catalogs/{catalogId}/items"
- localVarPath = strings.Replace(localVarPath, "{"+"catalogId"+"}", _neturl.QueryEscape(parameterToString(r.catalogId, "")), -1)
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/collections"
+ localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -18620,11 +18692,14 @@ func (r apiListCatalogItemsRequest) Execute() (InlineResponse20034, *_nethttp.Re
if r.skip != nil {
localVarQueryParams.Add("skip", parameterToString(*r.skip, ""))
}
+ if r.sort != nil {
+ localVarQueryParams.Add("sort", parameterToString(*r.sort, ""))
+ }
if r.withTotalResultSize != nil {
localVarQueryParams.Add("withTotalResultSize", parameterToString(*r.withTotalResultSize, ""))
}
- if r.sku != nil {
- localVarQueryParams.Add("sku", parameterToString(*r.sku, ""))
+ if r.name != nil {
+ localVarQueryParams.Add("name", parameterToString(*r.name, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -18693,7 +18768,17 @@ func (r apiListCatalogItemsRequest) Execute() (InlineResponse20034, *_nethttp.Re
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20034
+ var v InlineResponse20018
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponseWithStatus
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -18716,11 +18801,10 @@ func (r apiListCatalogItemsRequest) Execute() (InlineResponse20034, *_nethttp.Re
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiListCollectionsRequest struct {
+type apiListCollectionsInApplicationRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
- campaignId int32
pageSize *int32
skip *int32
sort *string
@@ -18728,72 +18812,69 @@ type apiListCollectionsRequest struct {
name *string
}
-func (r apiListCollectionsRequest) PageSize(pageSize int32) apiListCollectionsRequest {
+func (r apiListCollectionsInApplicationRequest) PageSize(pageSize int32) apiListCollectionsInApplicationRequest {
r.pageSize = &pageSize
return r
}
-func (r apiListCollectionsRequest) Skip(skip int32) apiListCollectionsRequest {
+func (r apiListCollectionsInApplicationRequest) Skip(skip int32) apiListCollectionsInApplicationRequest {
r.skip = &skip
return r
}
-func (r apiListCollectionsRequest) Sort(sort string) apiListCollectionsRequest {
+func (r apiListCollectionsInApplicationRequest) Sort(sort string) apiListCollectionsInApplicationRequest {
r.sort = &sort
return r
}
-func (r apiListCollectionsRequest) WithTotalResultSize(withTotalResultSize bool) apiListCollectionsRequest {
+func (r apiListCollectionsInApplicationRequest) WithTotalResultSize(withTotalResultSize bool) apiListCollectionsInApplicationRequest {
r.withTotalResultSize = &withTotalResultSize
return r
}
-func (r apiListCollectionsRequest) Name(name string) apiListCollectionsRequest {
+func (r apiListCollectionsInApplicationRequest) Name(name string) apiListCollectionsInApplicationRequest {
r.name = &name
return r
}
/*
-ListCollections List collections
-List collections in the campaign.
+ListCollectionsInApplication List collections in Application
+List campaign-level collections from all campaigns in a given Application.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
-@return apiListCollectionsRequest
+@return apiListCollectionsInApplicationRequest
*/
-func (a *ManagementApiService) ListCollections(ctx _context.Context, applicationId int32, campaignId int32) apiListCollectionsRequest {
- return apiListCollectionsRequest{
+func (a *ManagementApiService) ListCollectionsInApplication(ctx _context.Context, applicationId int32) apiListCollectionsInApplicationRequest {
+ return apiListCollectionsInApplicationRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
- campaignId: campaignId,
}
}
/*
Execute executes the request
- @return InlineResponse20019
+ @return InlineResponse20018
*/
-func (r apiListCollectionsRequest) Execute() (InlineResponse20019, *_nethttp.Response, error) {
+func (r apiListCollectionsInApplicationRequest) Execute() (InlineResponse20018, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20019
+ localVarReturnValue InlineResponse20018
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCollections")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCollectionsInApplication")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/collections"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/collections"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -18881,7 +18962,7 @@ func (r apiListCollectionsRequest) Execute() (InlineResponse20019, *_nethttp.Res
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20019
+ var v InlineResponse20018
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -18914,7 +18995,7 @@ func (r apiListCollectionsRequest) Execute() (InlineResponse20019, *_nethttp.Res
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiListCollectionsInApplicationRequest struct {
+type apiListStoresRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
@@ -18922,44 +19003,56 @@ type apiListCollectionsInApplicationRequest struct {
skip *int32
sort *string
withTotalResultSize *bool
+ campaignId *float32
name *string
+ integrationId *string
}
-func (r apiListCollectionsInApplicationRequest) PageSize(pageSize int32) apiListCollectionsInApplicationRequest {
+func (r apiListStoresRequest) PageSize(pageSize int32) apiListStoresRequest {
r.pageSize = &pageSize
return r
}
-func (r apiListCollectionsInApplicationRequest) Skip(skip int32) apiListCollectionsInApplicationRequest {
+func (r apiListStoresRequest) Skip(skip int32) apiListStoresRequest {
r.skip = &skip
return r
}
-func (r apiListCollectionsInApplicationRequest) Sort(sort string) apiListCollectionsInApplicationRequest {
+func (r apiListStoresRequest) Sort(sort string) apiListStoresRequest {
r.sort = &sort
return r
}
-func (r apiListCollectionsInApplicationRequest) WithTotalResultSize(withTotalResultSize bool) apiListCollectionsInApplicationRequest {
+func (r apiListStoresRequest) WithTotalResultSize(withTotalResultSize bool) apiListStoresRequest {
r.withTotalResultSize = &withTotalResultSize
return r
}
-func (r apiListCollectionsInApplicationRequest) Name(name string) apiListCollectionsInApplicationRequest {
+func (r apiListStoresRequest) CampaignId(campaignId float32) apiListStoresRequest {
+ r.campaignId = &campaignId
+ return r
+}
+
+func (r apiListStoresRequest) Name(name string) apiListStoresRequest {
r.name = &name
return r
}
+func (r apiListStoresRequest) IntegrationId(integrationId string) apiListStoresRequest {
+ r.integrationId = &integrationId
+ return r
+}
+
/*
-ListCollectionsInApplication List collections in application
-List collections from all campaigns in the Application.
+ListStores List stores
+List all stores for a specific Application.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
-@return apiListCollectionsInApplicationRequest
+@return apiListStoresRequest
*/
-func (a *ManagementApiService) ListCollectionsInApplication(ctx _context.Context, applicationId int32) apiListCollectionsInApplicationRequest {
- return apiListCollectionsInApplicationRequest{
+func (a *ManagementApiService) ListStores(ctx _context.Context, applicationId int32) apiListStoresRequest {
+ return apiListStoresRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
@@ -18969,24 +19062,24 @@ func (a *ManagementApiService) ListCollectionsInApplication(ctx _context.Context
/*
Execute executes the request
- @return InlineResponse20019
+ @return InlineResponse20043
*/
-func (r apiListCollectionsInApplicationRequest) Execute() (InlineResponse20019, *_nethttp.Response, error) {
+func (r apiListStoresRequest) Execute() (InlineResponse20043, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20019
+ localVarReturnValue InlineResponse20043
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListCollectionsInApplication")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.ListStores")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/collections"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/stores"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
localVarHeaderParams := make(map[string]string)
@@ -19005,9 +19098,15 @@ func (r apiListCollectionsInApplicationRequest) Execute() (InlineResponse20019,
if r.withTotalResultSize != nil {
localVarQueryParams.Add("withTotalResultSize", parameterToString(*r.withTotalResultSize, ""))
}
+ if r.campaignId != nil {
+ localVarQueryParams.Add("campaignId", parameterToString(*r.campaignId, ""))
+ }
if r.name != nil {
localVarQueryParams.Add("name", parameterToString(*r.name, ""))
}
+ if r.integrationId != nil {
+ localVarQueryParams.Add("integrationId", parameterToString(*r.integrationId, ""))
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -19075,17 +19174,7 @@ func (r apiListCollectionsInApplicationRequest) Execute() (InlineResponse20019,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20019
- err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
- if err != nil {
- newErr.error = err.Error()
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
- newErr.model = v
- return localVarReturnValue, localVarHTTPResponse, newErr
- }
- if localVarHTTPResponse.StatusCode == 404 {
- var v ErrorResponseWithStatus
+ var v InlineResponse20043
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -20228,16 +20317,16 @@ func (a *ManagementApiService) SearchCouponsAdvancedApplicationWideWithoutTotalC
/*
Execute executes the request
- @return InlineResponse20010
+ @return InlineResponse2009
*/
-func (r apiSearchCouponsAdvancedApplicationWideWithoutTotalCountRequest) Execute() (InlineResponse20010, *_nethttp.Response, error) {
+func (r apiSearchCouponsAdvancedApplicationWideWithoutTotalCountRequest) Execute() (InlineResponse2009, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20010
+ localVarReturnValue InlineResponse2009
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.SearchCouponsAdvancedApplicationWideWithoutTotalCount")
@@ -20364,7 +20453,7 @@ func (r apiSearchCouponsAdvancedApplicationWideWithoutTotalCountRequest) Execute
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20010
+ var v InlineResponse2009
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -20500,16 +20589,16 @@ func (a *ManagementApiService) SearchCouponsAdvancedWithoutTotalCount(ctx _conte
/*
Execute executes the request
- @return InlineResponse20010
+ @return InlineResponse2009
*/
-func (r apiSearchCouponsAdvancedWithoutTotalCountRequest) Execute() (InlineResponse20010, *_nethttp.Response, error) {
+func (r apiSearchCouponsAdvancedWithoutTotalCountRequest) Execute() (InlineResponse2009, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue InlineResponse20010
+ localVarReturnValue InlineResponse2009
)
localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.SearchCouponsAdvancedWithoutTotalCount")
@@ -20634,7 +20723,7 @@ func (r apiSearchCouponsAdvancedWithoutTotalCountRequest) Execute() (InlineRespo
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v InlineResponse20010
+ var v InlineResponse2009
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -20844,9 +20933,9 @@ func (r apiUpdateAccountCollectionRequest) Body(body UpdateCollection) apiUpdate
/*
UpdateAccountCollection Update account-level collection
-Edit the description of the account-level collection and enable or disable the collection in the specified Applications.
+Edit the description of a given account-level collection and enable or disable the collection in the specified Applications.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
@return apiUpdateAccountCollectionRequest
*/
@@ -21489,12 +21578,12 @@ func (r apiUpdateCollectionRequest) Body(body UpdateCampaignCollection) apiUpdat
}
/*
-UpdateCollection Update collection description
-Edit the description of the collection.
+UpdateCollection Update campaign-level collection's description
+Edit the description of a given campaign-level collection.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param collectionId The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint.
+ - @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
@return apiUpdateCollectionRequest
*/
@@ -22151,64 +22240,64 @@ func (r apiUpdateLoyaltyCardRequest) Execute() (LoyaltyCard, *_nethttp.Response,
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiUpdateNotificationWebhookRequest struct {
- ctx _context.Context
- apiService *ManagementApiService
- applicationId int32
- notificationWebhookId int32
- body *NewNotificationWebhook
+type apiUpdateReferralRequest struct {
+ ctx _context.Context
+ apiService *ManagementApiService
+ applicationId int32
+ campaignId int32
+ referralId string
+ body *UpdateReferral
}
-func (r apiUpdateNotificationWebhookRequest) Body(body NewNotificationWebhook) apiUpdateNotificationWebhookRequest {
+func (r apiUpdateReferralRequest) Body(body UpdateReferral) apiUpdateReferralRequest {
r.body = &body
return r
}
/*
-UpdateNotificationWebhook Update notification about campaign-related changes
-Update the given
-[notification about campaign-related changes](https://docs.talon.one/docs/product/applications/outbound-notifications).
-
-**Tip:** You can review the payload you will receive in the [specs](https://docs.talon.one/outbound-notifications).
-
+UpdateReferral Update referral
+Update the specified referral.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param notificationWebhookId The ID of the webhook. Get it with the appropriate _List notifications_ endpoint.
+ - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ - @param referralId The ID of the referral code.
-@return apiUpdateNotificationWebhookRequest
+@return apiUpdateReferralRequest
*/
-func (a *ManagementApiService) UpdateNotificationWebhook(ctx _context.Context, applicationId int32, notificationWebhookId int32) apiUpdateNotificationWebhookRequest {
- return apiUpdateNotificationWebhookRequest{
- apiService: a,
- ctx: ctx,
- applicationId: applicationId,
- notificationWebhookId: notificationWebhookId,
+func (a *ManagementApiService) UpdateReferral(ctx _context.Context, applicationId int32, campaignId int32, referralId string) apiUpdateReferralRequest {
+ return apiUpdateReferralRequest{
+ apiService: a,
+ ctx: ctx,
+ applicationId: applicationId,
+ campaignId: campaignId,
+ referralId: referralId,
}
}
/*
Execute executes the request
- @return NotificationWebhook
+ @return Referral
*/
-func (r apiUpdateNotificationWebhookRequest) Execute() (NotificationWebhook, *_nethttp.Response, error) {
+func (r apiUpdateReferralRequest) Execute() (Referral, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue NotificationWebhook
+ localVarReturnValue Referral
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.UpdateNotificationWebhook")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.UpdateReferral")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"notificationWebhookId"+"}", _neturl.QueryEscape(parameterToString(r.notificationWebhookId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"referralId"+"}", _neturl.QueryEscape(parameterToString(r.referralId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -22287,7 +22376,7 @@ func (r apiUpdateNotificationWebhookRequest) Execute() (NotificationWebhook, *_n
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v NotificationWebhook
+ var v Referral
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
@@ -22310,64 +22399,60 @@ func (r apiUpdateNotificationWebhookRequest) Execute() (NotificationWebhook, *_n
return localVarReturnValue, localVarHTTPResponse, nil
}
-type apiUpdateReferralRequest struct {
+type apiUpdateStoreRequest struct {
ctx _context.Context
apiService *ManagementApiService
applicationId int32
- campaignId int32
- referralId string
- body *UpdateReferral
+ storeId string
+ body *NewStore
}
-func (r apiUpdateReferralRequest) Body(body UpdateReferral) apiUpdateReferralRequest {
+func (r apiUpdateStoreRequest) Body(body NewStore) apiUpdateStoreRequest {
r.body = &body
return r
}
/*
-UpdateReferral Update referral
-Update the specified referral.
+UpdateStore Update store
+Update store details for a specific store ID.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL.
- - @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL.
- - @param referralId The ID of the referral code.
+ - @param storeId The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
-@return apiUpdateReferralRequest
+@return apiUpdateStoreRequest
*/
-func (a *ManagementApiService) UpdateReferral(ctx _context.Context, applicationId int32, campaignId int32, referralId string) apiUpdateReferralRequest {
- return apiUpdateReferralRequest{
+func (a *ManagementApiService) UpdateStore(ctx _context.Context, applicationId int32, storeId string) apiUpdateStoreRequest {
+ return apiUpdateStoreRequest{
apiService: a,
ctx: ctx,
applicationId: applicationId,
- campaignId: campaignId,
- referralId: referralId,
+ storeId: storeId,
}
}
/*
Execute executes the request
- @return Referral
+ @return Store
*/
-func (r apiUpdateReferralRequest) Execute() (Referral, *_nethttp.Response, error) {
+func (r apiUpdateStoreRequest) Execute() (Store, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue Referral
+ localVarReturnValue Store
)
- localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.UpdateReferral")
+ localBasePath, err := r.apiService.client.cfg.ServerURLWithContext(r.ctx, "ManagementApiService.UpdateStore")
if err != nil {
return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}"
+ localVarPath := localBasePath + "/v1/applications/{applicationId}/stores/{storeId}"
localVarPath = strings.Replace(localVarPath, "{"+"applicationId"+"}", _neturl.QueryEscape(parameterToString(r.applicationId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"campaignId"+"}", _neturl.QueryEscape(parameterToString(r.campaignId, "")), -1)
- localVarPath = strings.Replace(localVarPath, "{"+"referralId"+"}", _neturl.QueryEscape(parameterToString(r.referralId, "")), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"storeId"+"}", _neturl.QueryEscape(parameterToString(r.storeId, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
@@ -22446,7 +22531,27 @@ func (r apiUpdateReferralRequest) Execute() (Referral, *_nethttp.Response, error
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 200 {
- var v Referral
+ var v Store
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v ErrorResponseWithStatus
+ err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 404 {
+ var v ErrorResponseWithStatus
err = r.apiService.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
diff --git a/configuration.go b/configuration.go
index 8cd3f655..084a5e2e 100644
--- a/configuration.go
+++ b/configuration.go
@@ -97,7 +97,7 @@ type Configuration struct {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
- UserAgent: "OpenAPI-Generator/4.0.0/go",
+ UserAgent: "OpenAPI-Generator/5.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
diff --git a/docs/AdditionalCampaignProperties.md b/docs/AdditionalCampaignProperties.md
index 62ef852f..54a4697f 100644
--- a/docs/AdditionalCampaignProperties.md
+++ b/docs/AdditionalCampaignProperties.md
@@ -4,23 +4,23 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**CouponRedemptionCount** | Pointer to **int32** | Number of coupons redeemed in the campaign. | [optional]
-**ReferralRedemptionCount** | Pointer to **int32** | Number of referral codes redeemed in the campaign. | [optional]
-**DiscountCount** | Pointer to **float32** | Total amount of discounts redeemed in the campaign. | [optional]
-**DiscountEffectCount** | Pointer to **int32** | Total number of times discounts were redeemed in this campaign. | [optional]
-**CouponCreationCount** | Pointer to **int32** | Total number of coupons created by rules in this campaign. | [optional]
-**CustomEffectCount** | Pointer to **int32** | Total number of custom effects triggered by rules in this campaign. | [optional]
-**ReferralCreationCount** | Pointer to **int32** | Total number of referrals created by rules in this campaign. | [optional]
-**AddFreeItemEffectCount** | Pointer to **int32** | Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
-**AwardedGiveawaysCount** | Pointer to **int32** | Total number of giveaways awarded by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points created by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points redeemed by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
-**CallApiEffectCount** | Pointer to **int32** | Total number of webhooks triggered by rules in this campaign. | [optional]
-**ReservecouponEffectCount** | Pointer to **int32** | Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
+**Budgets** | Pointer to [**[]CampaignBudget**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. |
+**CouponRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional]
+**ReferralRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional]
+**DiscountCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional]
+**DiscountEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional]
+**CouponCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional]
+**CustomEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional]
+**ReferralCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional]
+**AddFreeItemEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
+**AwardedGiveawaysCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
+**CallApiEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional]
+**ReservecouponEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
**LastActivity** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent event received by this campaign. | [optional]
-**WeeklyUsageCount** | Pointer to **int32** | The total number of effects created in this campaign in the past 7 days. | [optional]
**Updated** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional]
**CreatedBy** | Pointer to **string** | Name of the user who created this campaign if available. | [optional]
**UpdatedBy** | Pointer to **string** | Name of the user who last updated this campaign if available. | [optional]
@@ -28,6 +28,31 @@ Name | Type | Description | Notes
## Methods
+### GetBudgets
+
+`func (o *AdditionalCampaignProperties) GetBudgets() []CampaignBudget`
+
+GetBudgets returns the Budgets field if non-nil, zero value otherwise.
+
+### GetBudgetsOk
+
+`func (o *AdditionalCampaignProperties) GetBudgetsOk() ([]CampaignBudget, bool)`
+
+GetBudgetsOk returns a tuple with the Budgets field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasBudgets
+
+`func (o *AdditionalCampaignProperties) HasBudgets() bool`
+
+HasBudgets returns a boolean if a field has been set.
+
+### SetBudgets
+
+`func (o *AdditionalCampaignProperties) SetBudgets(v []CampaignBudget)`
+
+SetBudgets gets a reference to the given []CampaignBudget and assigns it to the Budgets field.
+
### GetCouponRedemptionCount
`func (o *AdditionalCampaignProperties) GetCouponRedemptionCount() int32`
@@ -428,31 +453,6 @@ HasLastActivity returns a boolean if a field has been set.
SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
-### GetWeeklyUsageCount
-
-`func (o *AdditionalCampaignProperties) GetWeeklyUsageCount() int32`
-
-GetWeeklyUsageCount returns the WeeklyUsageCount field if non-nil, zero value otherwise.
-
-### GetWeeklyUsageCountOk
-
-`func (o *AdditionalCampaignProperties) GetWeeklyUsageCountOk() (int32, bool)`
-
-GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasWeeklyUsageCount
-
-`func (o *AdditionalCampaignProperties) HasWeeklyUsageCount() bool`
-
-HasWeeklyUsageCount returns a boolean if a field has been set.
-
-### SetWeeklyUsageCount
-
-`func (o *AdditionalCampaignProperties) SetWeeklyUsageCount(v int32)`
-
-SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-
### GetUpdated
`func (o *AdditionalCampaignProperties) GetUpdated() time.Time`
diff --git a/docs/ApplicationEvent.md b/docs/ApplicationEvent.md
index e7acb140..dbe31237 100644
--- a/docs/ApplicationEvent.md
+++ b/docs/ApplicationEvent.md
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
**Created** | Pointer to [**time.Time**](time.Time.md) | The time this entity was created. |
**ApplicationId** | Pointer to **int32** | The ID of the application that owns this entity. |
**ProfileId** | Pointer to **int32** | The globally unique Talon.One ID of the customer that created this entity. | [optional]
+**StoreId** | Pointer to **int32** | The ID of the store. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**SessionId** | Pointer to **int32** | The globally unique Talon.One ID of the session that contains this event. | [optional]
**Type** | Pointer to **string** | A string representing the event. Must not be a reserved event name. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Additional JSON serialized data associated with the event. |
@@ -116,6 +118,56 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.
+### GetStoreId
+
+`func (o *ApplicationEvent) GetStoreId() int32`
+
+GetStoreId returns the StoreId field if non-nil, zero value otherwise.
+
+### GetStoreIdOk
+
+`func (o *ApplicationEvent) GetStoreIdOk() (int32, bool)`
+
+GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreId
+
+`func (o *ApplicationEvent) HasStoreId() bool`
+
+HasStoreId returns a boolean if a field has been set.
+
+### SetStoreId
+
+`func (o *ApplicationEvent) SetStoreId(v int32)`
+
+SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.
+
+### GetStoreIntegrationId
+
+`func (o *ApplicationEvent) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *ApplicationEvent) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *ApplicationEvent) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *ApplicationEvent) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetSessionId
`func (o *ApplicationEvent) GetSessionId() int32`
diff --git a/docs/ApplicationSession.md b/docs/ApplicationSession.md
index c573f7bf..865c76eb 100644
--- a/docs/ApplicationSession.md
+++ b/docs/ApplicationSession.md
@@ -6,9 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | Pointer to **int32** | Internal ID of this entity. |
**Created** | Pointer to [**time.Time**](time.Time.md) | The time this entity was created. The time this entity was created. |
+**IntegrationId** | Pointer to **string** | The integration ID set by your integration layer. |
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**ApplicationId** | Pointer to **int32** | The ID of the application that owns this entity. |
**ProfileId** | Pointer to **int32** | The globally unique Talon.One ID of the customer that created this entity. | [optional]
-**IntegrationId** | Pointer to **string** | The integration ID set by your integration layer. |
**Profileintegrationid** | Pointer to **string** | Integration ID of the customer for the session. | [optional]
**Coupon** | Pointer to **string** | Any coupon code entered. |
**Referral** | Pointer to **string** | Any referral code entered. |
@@ -18,7 +19,6 @@ Name | Type | Description | Notes
**TotalDiscounts** | Pointer to **float32** | The total sum of the discounts applied to this session. |
**Total** | Pointer to **float32** | The total sum of the session before any discounts applied. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary properties associated with this item. | [optional]
-**StoreIntegrationId** | Pointer to **string** | The integration ID of the store for this session. | [optional]
## Methods
@@ -72,6 +72,56 @@ HasCreated returns a boolean if a field has been set.
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
+### GetIntegrationId
+
+`func (o *ApplicationSession) GetIntegrationId() string`
+
+GetIntegrationId returns the IntegrationId field if non-nil, zero value otherwise.
+
+### GetIntegrationIdOk
+
+`func (o *ApplicationSession) GetIntegrationIdOk() (string, bool)`
+
+GetIntegrationIdOk returns a tuple with the IntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasIntegrationId
+
+`func (o *ApplicationSession) HasIntegrationId() bool`
+
+HasIntegrationId returns a boolean if a field has been set.
+
+### SetIntegrationId
+
+`func (o *ApplicationSession) SetIntegrationId(v string)`
+
+SetIntegrationId gets a reference to the given string and assigns it to the IntegrationId field.
+
+### GetStoreIntegrationId
+
+`func (o *ApplicationSession) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *ApplicationSession) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *ApplicationSession) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *ApplicationSession) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetApplicationId
`func (o *ApplicationSession) GetApplicationId() int32`
@@ -122,31 +172,6 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.
-### GetIntegrationId
-
-`func (o *ApplicationSession) GetIntegrationId() string`
-
-GetIntegrationId returns the IntegrationId field if non-nil, zero value otherwise.
-
-### GetIntegrationIdOk
-
-`func (o *ApplicationSession) GetIntegrationIdOk() (string, bool)`
-
-GetIntegrationIdOk returns a tuple with the IntegrationId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasIntegrationId
-
-`func (o *ApplicationSession) HasIntegrationId() bool`
-
-HasIntegrationId returns a boolean if a field has been set.
-
-### SetIntegrationId
-
-`func (o *ApplicationSession) SetIntegrationId(v string)`
-
-SetIntegrationId gets a reference to the given string and assigns it to the IntegrationId field.
-
### GetProfileintegrationid
`func (o *ApplicationSession) GetProfileintegrationid() string`
@@ -372,31 +397,6 @@ HasAttributes returns a boolean if a field has been set.
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
-### GetStoreIntegrationId
-
-`func (o *ApplicationSession) GetStoreIntegrationId() string`
-
-GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
-
-### GetStoreIntegrationIdOk
-
-`func (o *ApplicationSession) GetStoreIntegrationIdOk() (string, bool)`
-
-GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasStoreIntegrationId
-
-`func (o *ApplicationSession) HasStoreIntegrationId() bool`
-
-HasStoreIntegrationId returns a boolean if a field has been set.
-
-### SetStoreIntegrationId
-
-`func (o *ApplicationSession) SetStoreIntegrationId(v string)`
-
-SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ApplicationStoreEntity.md b/docs/ApplicationStoreEntity.md
new file mode 100644
index 00000000..d3e773a0
--- /dev/null
+++ b/docs/ApplicationStoreEntity.md
@@ -0,0 +1,39 @@
+# ApplicationStoreEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StoreId** | Pointer to **int32** | The ID of the store. | [optional]
+
+## Methods
+
+### GetStoreId
+
+`func (o *ApplicationStoreEntity) GetStoreId() int32`
+
+GetStoreId returns the StoreId field if non-nil, zero value otherwise.
+
+### GetStoreIdOk
+
+`func (o *ApplicationStoreEntity) GetStoreIdOk() (int32, bool)`
+
+GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreId
+
+`func (o *ApplicationStoreEntity) HasStoreId() bool`
+
+HasStoreId returns a boolean if a field has been set.
+
+### SetStoreId
+
+`func (o *ApplicationStoreEntity) SetStoreId(v int32)`
+
+SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BaseLoyaltyProgram.md b/docs/BaseLoyaltyProgram.md
index ff66ce2c..ad2a5c18 100644
--- a/docs/BaseLoyaltyProgram.md
+++ b/docs/BaseLoyaltyProgram.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**AllowSubledger** | Pointer to **bool** | Indicates if this program supports subledgers inside the program. | [optional]
**UsersPerCardLimit** | Pointer to **int32** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional]
**Sandbox** | Pointer to **bool** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional]
-**TiersExpireIn** | Pointer to **string** | The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
+**TiersExpireIn** | Pointer to **string** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**TiersDowngradePolicy** | Pointer to **string** | Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant. | [optional]
## Methods
diff --git a/docs/Campaign.md b/docs/Campaign.md
index 9854d3ea..9fae3745 100644
--- a/docs/Campaign.md
+++ b/docs/Campaign.md
@@ -24,23 +24,23 @@ Name | Type | Description | Notes
**EvaluationGroupId** | Pointer to **int32** | The ID of the campaign evaluation group the campaign belongs to. | [optional]
**Type** | Pointer to **string** | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [default to TYPE_ADVANCED]
**LinkedStoreIds** | Pointer to **[]int32** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional]
-**CouponRedemptionCount** | Pointer to **int32** | Number of coupons redeemed in the campaign. | [optional]
-**ReferralRedemptionCount** | Pointer to **int32** | Number of referral codes redeemed in the campaign. | [optional]
-**DiscountCount** | Pointer to **float32** | Total amount of discounts redeemed in the campaign. | [optional]
-**DiscountEffectCount** | Pointer to **int32** | Total number of times discounts were redeemed in this campaign. | [optional]
-**CouponCreationCount** | Pointer to **int32** | Total number of coupons created by rules in this campaign. | [optional]
-**CustomEffectCount** | Pointer to **int32** | Total number of custom effects triggered by rules in this campaign. | [optional]
-**ReferralCreationCount** | Pointer to **int32** | Total number of referrals created by rules in this campaign. | [optional]
-**AddFreeItemEffectCount** | Pointer to **int32** | Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
-**AwardedGiveawaysCount** | Pointer to **int32** | Total number of giveaways awarded by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points created by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points redeemed by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
-**CallApiEffectCount** | Pointer to **int32** | Total number of webhooks triggered by rules in this campaign. | [optional]
-**ReservecouponEffectCount** | Pointer to **int32** | Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
+**Budgets** | Pointer to [**[]CampaignBudget**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. |
+**CouponRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional]
+**ReferralRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional]
+**DiscountCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional]
+**DiscountEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional]
+**CouponCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional]
+**CustomEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional]
+**ReferralCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional]
+**AddFreeItemEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
+**AwardedGiveawaysCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
+**CallApiEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional]
+**ReservecouponEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
**LastActivity** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent event received by this campaign. | [optional]
-**WeeklyUsageCount** | Pointer to **int32** | The total number of effects created in this campaign in the past 7 days. | [optional]
**Updated** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional]
**CreatedBy** | Pointer to **string** | Name of the user who created this campaign if available. | [optional]
**UpdatedBy** | Pointer to **string** | Name of the user who last updated this campaign if available. | [optional]
@@ -548,6 +548,31 @@ HasLinkedStoreIds returns a boolean if a field has been set.
SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.
+### GetBudgets
+
+`func (o *Campaign) GetBudgets() []CampaignBudget`
+
+GetBudgets returns the Budgets field if non-nil, zero value otherwise.
+
+### GetBudgetsOk
+
+`func (o *Campaign) GetBudgetsOk() ([]CampaignBudget, bool)`
+
+GetBudgetsOk returns a tuple with the Budgets field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasBudgets
+
+`func (o *Campaign) HasBudgets() bool`
+
+HasBudgets returns a boolean if a field has been set.
+
+### SetBudgets
+
+`func (o *Campaign) SetBudgets(v []CampaignBudget)`
+
+SetBudgets gets a reference to the given []CampaignBudget and assigns it to the Budgets field.
+
### GetCouponRedemptionCount
`func (o *Campaign) GetCouponRedemptionCount() int32`
@@ -948,31 +973,6 @@ HasLastActivity returns a boolean if a field has been set.
SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
-### GetWeeklyUsageCount
-
-`func (o *Campaign) GetWeeklyUsageCount() int32`
-
-GetWeeklyUsageCount returns the WeeklyUsageCount field if non-nil, zero value otherwise.
-
-### GetWeeklyUsageCountOk
-
-`func (o *Campaign) GetWeeklyUsageCountOk() (int32, bool)`
-
-GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasWeeklyUsageCount
-
-`func (o *Campaign) HasWeeklyUsageCount() bool`
-
-HasWeeklyUsageCount returns a boolean if a field has been set.
-
-### SetWeeklyUsageCount
-
-`func (o *Campaign) SetWeeklyUsageCount(v int32)`
-
-SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-
### GetUpdated
`func (o *Campaign) GetUpdated() time.Time`
diff --git a/docs/CampaignBudget.md b/docs/CampaignBudget.md
new file mode 100644
index 00000000..b1dc95f6
--- /dev/null
+++ b/docs/CampaignBudget.md
@@ -0,0 +1,91 @@
+# CampaignBudget
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Action** | Pointer to **string** | The limitable action to which this limit applies. For example: - `setDiscount` - `setDiscountEffect` - `redeemCoupon` - `createCoupon` |
+**Limit** | Pointer to **float32** | The value to set for the limit. |
+**Counter** | Pointer to **float32** | The number of occurrences of the limited action in the context of the campaign. |
+
+## Methods
+
+### GetAction
+
+`func (o *CampaignBudget) GetAction() string`
+
+GetAction returns the Action field if non-nil, zero value otherwise.
+
+### GetActionOk
+
+`func (o *CampaignBudget) GetActionOk() (string, bool)`
+
+GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasAction
+
+`func (o *CampaignBudget) HasAction() bool`
+
+HasAction returns a boolean if a field has been set.
+
+### SetAction
+
+`func (o *CampaignBudget) SetAction(v string)`
+
+SetAction gets a reference to the given string and assigns it to the Action field.
+
+### GetLimit
+
+`func (o *CampaignBudget) GetLimit() float32`
+
+GetLimit returns the Limit field if non-nil, zero value otherwise.
+
+### GetLimitOk
+
+`func (o *CampaignBudget) GetLimitOk() (float32, bool)`
+
+GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasLimit
+
+`func (o *CampaignBudget) HasLimit() bool`
+
+HasLimit returns a boolean if a field has been set.
+
+### SetLimit
+
+`func (o *CampaignBudget) SetLimit(v float32)`
+
+SetLimit gets a reference to the given float32 and assigns it to the Limit field.
+
+### GetCounter
+
+`func (o *CampaignBudget) GetCounter() float32`
+
+GetCounter returns the Counter field if non-nil, zero value otherwise.
+
+### GetCounterOk
+
+`func (o *CampaignBudget) GetCounterOk() (float32, bool)`
+
+GetCounterOk returns a tuple with the Counter field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasCounter
+
+`func (o *CampaignBudget) HasCounter() bool`
+
+HasCounter returns a boolean if a field has been set.
+
+### SetCounter
+
+`func (o *CampaignBudget) SetCounter(v float32)`
+
+SetCounter gets a reference to the given float32 and assigns it to the Counter field.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CampaignForNotification.md b/docs/CampaignForNotification.md
index c3ed18e4..dd876a04 100644
--- a/docs/CampaignForNotification.md
+++ b/docs/CampaignForNotification.md
@@ -24,23 +24,23 @@ Name | Type | Description | Notes
**EvaluationGroupId** | Pointer to **int32** | The ID of the campaign evaluation group the campaign belongs to. | [optional]
**Type** | Pointer to **string** | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [default to TYPE_ADVANCED]
**LinkedStoreIds** | Pointer to **[]int32** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional]
-**CouponRedemptionCount** | Pointer to **int32** | Number of coupons redeemed in the campaign. | [optional]
-**ReferralRedemptionCount** | Pointer to **int32** | Number of referral codes redeemed in the campaign. | [optional]
-**DiscountCount** | Pointer to **float32** | Total amount of discounts redeemed in the campaign. | [optional]
-**DiscountEffectCount** | Pointer to **int32** | Total number of times discounts were redeemed in this campaign. | [optional]
-**CouponCreationCount** | Pointer to **int32** | Total number of coupons created by rules in this campaign. | [optional]
-**CustomEffectCount** | Pointer to **int32** | Total number of custom effects triggered by rules in this campaign. | [optional]
-**ReferralCreationCount** | Pointer to **int32** | Total number of referrals created by rules in this campaign. | [optional]
-**AddFreeItemEffectCount** | Pointer to **int32** | Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
-**AwardedGiveawaysCount** | Pointer to **int32** | Total number of giveaways awarded by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points created by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points redeemed by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
-**CallApiEffectCount** | Pointer to **int32** | Total number of webhooks triggered by rules in this campaign. | [optional]
-**ReservecouponEffectCount** | Pointer to **int32** | Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
+**Budgets** | Pointer to [**[]CampaignBudget**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. |
+**CouponRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional]
+**ReferralRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional]
+**DiscountCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional]
+**DiscountEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional]
+**CouponCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional]
+**CustomEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional]
+**ReferralCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional]
+**AddFreeItemEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
+**AwardedGiveawaysCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
+**CallApiEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional]
+**ReservecouponEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
**LastActivity** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent event received by this campaign. | [optional]
-**WeeklyUsageCount** | Pointer to **int32** | The total number of effects created in this campaign in the past 7 days. | [optional]
**Updated** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional]
**CreatedBy** | Pointer to **string** | Name of the user who created this campaign if available. | [optional]
**UpdatedBy** | Pointer to **string** | Name of the user who last updated this campaign if available. | [optional]
@@ -548,6 +548,31 @@ HasLinkedStoreIds returns a boolean if a field has been set.
SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.
+### GetBudgets
+
+`func (o *CampaignForNotification) GetBudgets() []CampaignBudget`
+
+GetBudgets returns the Budgets field if non-nil, zero value otherwise.
+
+### GetBudgetsOk
+
+`func (o *CampaignForNotification) GetBudgetsOk() ([]CampaignBudget, bool)`
+
+GetBudgetsOk returns a tuple with the Budgets field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasBudgets
+
+`func (o *CampaignForNotification) HasBudgets() bool`
+
+HasBudgets returns a boolean if a field has been set.
+
+### SetBudgets
+
+`func (o *CampaignForNotification) SetBudgets(v []CampaignBudget)`
+
+SetBudgets gets a reference to the given []CampaignBudget and assigns it to the Budgets field.
+
### GetCouponRedemptionCount
`func (o *CampaignForNotification) GetCouponRedemptionCount() int32`
@@ -948,31 +973,6 @@ HasLastActivity returns a boolean if a field has been set.
SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
-### GetWeeklyUsageCount
-
-`func (o *CampaignForNotification) GetWeeklyUsageCount() int32`
-
-GetWeeklyUsageCount returns the WeeklyUsageCount field if non-nil, zero value otherwise.
-
-### GetWeeklyUsageCountOk
-
-`func (o *CampaignForNotification) GetWeeklyUsageCountOk() (int32, bool)`
-
-GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasWeeklyUsageCount
-
-`func (o *CampaignForNotification) HasWeeklyUsageCount() bool`
-
-HasWeeklyUsageCount returns a boolean if a field has been set.
-
-### SetWeeklyUsageCount
-
-`func (o *CampaignForNotification) SetWeeklyUsageCount(v int32)`
-
-SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-
### GetUpdated
`func (o *CampaignForNotification) GetUpdated() time.Time`
diff --git a/docs/CampaignStateNotification.md b/docs/CampaignStateNotification.md
index 96001a7c..2add0001 100644
--- a/docs/CampaignStateNotification.md
+++ b/docs/CampaignStateNotification.md
@@ -24,23 +24,23 @@ Name | Type | Description | Notes
**EvaluationGroupId** | Pointer to **int32** | The ID of the campaign evaluation group the campaign belongs to. | [optional]
**Type** | Pointer to **string** | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [default to TYPE_ADVANCED]
**LinkedStoreIds** | Pointer to **[]int32** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional]
-**CouponRedemptionCount** | Pointer to **int32** | Number of coupons redeemed in the campaign. | [optional]
-**ReferralRedemptionCount** | Pointer to **int32** | Number of referral codes redeemed in the campaign. | [optional]
-**DiscountCount** | Pointer to **float32** | Total amount of discounts redeemed in the campaign. | [optional]
-**DiscountEffectCount** | Pointer to **int32** | Total number of times discounts were redeemed in this campaign. | [optional]
-**CouponCreationCount** | Pointer to **int32** | Total number of coupons created by rules in this campaign. | [optional]
-**CustomEffectCount** | Pointer to **int32** | Total number of custom effects triggered by rules in this campaign. | [optional]
-**ReferralCreationCount** | Pointer to **int32** | Total number of referrals created by rules in this campaign. | [optional]
-**AddFreeItemEffectCount** | Pointer to **int32** | Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
-**AwardedGiveawaysCount** | Pointer to **int32** | Total number of giveaways awarded by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points created by rules in this campaign. | [optional]
-**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsCount** | Pointer to **float32** | Total number of loyalty points redeemed by rules in this campaign. | [optional]
-**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
-**CallApiEffectCount** | Pointer to **int32** | Total number of webhooks triggered by rules in this campaign. | [optional]
-**ReservecouponEffectCount** | Pointer to **int32** | Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
+**Budgets** | Pointer to [**[]CampaignBudget**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. |
+**CouponRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional]
+**ReferralRedemptionCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional]
+**DiscountCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional]
+**DiscountEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional]
+**CouponCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional]
+**CustomEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional]
+**ReferralCreationCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional]
+**AddFreeItemEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional]
+**AwardedGiveawaysCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional]
+**CreatedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsCount** | Pointer to **float32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional]
+**RedeemedLoyaltyPointsEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional]
+**CallApiEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional]
+**ReservecouponEffectCount** | Pointer to **int32** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional]
**LastActivity** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent event received by this campaign. | [optional]
-**WeeklyUsageCount** | Pointer to **int32** | The total number of effects created in this campaign in the past 7 days. | [optional]
**Updated** | Pointer to [**time.Time**](time.Time.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional]
**CreatedBy** | Pointer to **string** | Name of the user who created this campaign if available. | [optional]
**UpdatedBy** | Pointer to **string** | Name of the user who last updated this campaign if available. | [optional]
@@ -549,6 +549,31 @@ HasLinkedStoreIds returns a boolean if a field has been set.
SetLinkedStoreIds gets a reference to the given []int32 and assigns it to the LinkedStoreIds field.
+### GetBudgets
+
+`func (o *CampaignStateNotification) GetBudgets() []CampaignBudget`
+
+GetBudgets returns the Budgets field if non-nil, zero value otherwise.
+
+### GetBudgetsOk
+
+`func (o *CampaignStateNotification) GetBudgetsOk() ([]CampaignBudget, bool)`
+
+GetBudgetsOk returns a tuple with the Budgets field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasBudgets
+
+`func (o *CampaignStateNotification) HasBudgets() bool`
+
+HasBudgets returns a boolean if a field has been set.
+
+### SetBudgets
+
+`func (o *CampaignStateNotification) SetBudgets(v []CampaignBudget)`
+
+SetBudgets gets a reference to the given []CampaignBudget and assigns it to the Budgets field.
+
### GetCouponRedemptionCount
`func (o *CampaignStateNotification) GetCouponRedemptionCount() int32`
@@ -949,31 +974,6 @@ HasLastActivity returns a boolean if a field has been set.
SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.
-### GetWeeklyUsageCount
-
-`func (o *CampaignStateNotification) GetWeeklyUsageCount() int32`
-
-GetWeeklyUsageCount returns the WeeklyUsageCount field if non-nil, zero value otherwise.
-
-### GetWeeklyUsageCountOk
-
-`func (o *CampaignStateNotification) GetWeeklyUsageCountOk() (int32, bool)`
-
-GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasWeeklyUsageCount
-
-`func (o *CampaignStateNotification) HasWeeklyUsageCount() bool`
-
-HasWeeklyUsageCount returns a boolean if a field has been set.
-
-### SetWeeklyUsageCount
-
-`func (o *CampaignStateNotification) SetWeeklyUsageCount(v int32)`
-
-SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-
### GetUpdated
`func (o *CampaignStateNotification) GetUpdated() time.Time`
diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md
index 36b89662..76bcccec 100644
--- a/docs/CustomerSessionV2.md
+++ b/docs/CustomerSessionV2.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**IntegrationId** | Pointer to **string** | The integration ID set by your integration layer. |
**ApplicationId** | Pointer to **int32** | The ID of the application that owns this entity. |
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. |
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**EvaluableCampaignIds** | Pointer to **[]int32** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
**CouponCodes** | Pointer to **[]string** | Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. | [optional]
**ReferralCode** | Pointer to **string** | Any referral code entered. **Important**: If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. | [optional]
@@ -18,7 +19,6 @@ Name | Type | Description | Notes
**AdditionalCosts** | Pointer to [**map[string]AdditionalCost**](AdditionalCost.md) | Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional]
**Identifiers** | Pointer to **[]string** | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). | [optional]
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. |
-**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**FirstSession** | Pointer to **bool** | Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions. |
**Total** | Pointer to **float32** | The total value of cart items and additional costs in the session, before any discounts are applied. |
**CartItemTotal** | Pointer to **float32** | The total value of cart items, before any discounts are applied. |
@@ -152,6 +152,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *CustomerSessionV2) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *CustomerSessionV2) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *CustomerSessionV2) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *CustomerSessionV2) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetEvaluableCampaignIds
`func (o *CustomerSessionV2) GetEvaluableCampaignIds() []int32`
@@ -377,31 +402,6 @@ HasAttributes returns a boolean if a field has been set.
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
-### GetStoreIntegrationId
-
-`func (o *CustomerSessionV2) GetStoreIntegrationId() string`
-
-GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
-
-### GetStoreIntegrationIdOk
-
-`func (o *CustomerSessionV2) GetStoreIntegrationIdOk() (string, bool)`
-
-GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasStoreIntegrationId
-
-`func (o *CustomerSessionV2) HasStoreIntegrationId() bool`
-
-HasStoreIntegrationId returns a boolean if a field has been set.
-
-### SetStoreIntegrationId
-
-`func (o *CustomerSessionV2) SetStoreIntegrationId(v string)`
-
-SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-
### GetFirstSession
`func (o *CustomerSessionV2) GetFirstSession() bool`
diff --git a/docs/Effect.md b/docs/Effect.md
index 2851d197..2444932b 100644
--- a/docs/Effect.md
+++ b/docs/Effect.md
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
**EffectType** | Pointer to **string** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
**TriggeredByCoupon** | Pointer to **int32** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional]
**TriggeredForCatalogItem** | Pointer to **int32** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional]
+**ConditionIndex** | Pointer to **int32** | The index of the condition that was triggered. | [optional]
**Props** | Pointer to [**map[string]interface{}**](.md) | The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
## Methods
@@ -190,6 +191,31 @@ HasTriggeredForCatalogItem returns a boolean if a field has been set.
SetTriggeredForCatalogItem gets a reference to the given int32 and assigns it to the TriggeredForCatalogItem field.
+### GetConditionIndex
+
+`func (o *Effect) GetConditionIndex() int32`
+
+GetConditionIndex returns the ConditionIndex field if non-nil, zero value otherwise.
+
+### GetConditionIndexOk
+
+`func (o *Effect) GetConditionIndexOk() (int32, bool)`
+
+GetConditionIndexOk returns a tuple with the ConditionIndex field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasConditionIndex
+
+`func (o *Effect) HasConditionIndex() bool`
+
+HasConditionIndex returns a boolean if a field has been set.
+
+### SetConditionIndex
+
+`func (o *Effect) SetConditionIndex(v int32)`
+
+SetConditionIndex gets a reference to the given int32 and assigns it to the ConditionIndex field.
+
### GetProps
`func (o *Effect) GetProps() map[string]interface{}`
diff --git a/docs/EffectEntity.md b/docs/EffectEntity.md
index d4f7672f..d3283913 100644
--- a/docs/EffectEntity.md
+++ b/docs/EffectEntity.md
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
**EffectType** | Pointer to **string** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
**TriggeredByCoupon** | Pointer to **int32** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional]
**TriggeredForCatalogItem** | Pointer to **int32** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional]
+**ConditionIndex** | Pointer to **int32** | The index of the condition that was triggered. | [optional]
## Methods
@@ -189,6 +190,31 @@ HasTriggeredForCatalogItem returns a boolean if a field has been set.
SetTriggeredForCatalogItem gets a reference to the given int32 and assigns it to the TriggeredForCatalogItem field.
+### GetConditionIndex
+
+`func (o *EffectEntity) GetConditionIndex() int32`
+
+GetConditionIndex returns the ConditionIndex field if non-nil, zero value otherwise.
+
+### GetConditionIndexOk
+
+`func (o *EffectEntity) GetConditionIndexOk() (int32, bool)`
+
+GetConditionIndexOk returns a tuple with the ConditionIndex field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasConditionIndex
+
+`func (o *EffectEntity) HasConditionIndex() bool`
+
+HasConditionIndex returns a boolean if a field has been set.
+
+### SetConditionIndex
+
+`func (o *EffectEntity) SetConditionIndex(v int32)`
+
+SetConditionIndex gets a reference to the given int32 and assigns it to the ConditionIndex field.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Event.md b/docs/Event.md
index 3f0d32b0..ffe04163 100644
--- a/docs/Event.md
+++ b/docs/Event.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Created** | Pointer to [**time.Time**](time.Time.md) | The time this entity was created. |
**ApplicationId** | Pointer to **int32** | The ID of the application that owns this entity. |
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**Type** | Pointer to **string** | A string representing the event. Must not be a reserved event name. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON data associated with the event. |
**SessionId** | Pointer to **string** | The ID of the session that this event occurred in. | [optional]
@@ -117,6 +118,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *Event) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *Event) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *Event) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *Event) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetType
`func (o *Event) GetType() string`
diff --git a/docs/EventV2.md b/docs/EventV2.md
index ff87a425..1fa9853e 100644
--- a/docs/EventV2.md
+++ b/docs/EventV2.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**EvaluableCampaignIds** | Pointer to **[]int32** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
**Type** | Pointer to **string** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional]
@@ -36,6 +37,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *EventV2) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *EventV2) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *EventV2) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *EventV2) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetEvaluableCampaignIds
`func (o *EventV2) GetEvaluableCampaignIds() []int32`
diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md
index a9ff9b84..fbbd0d3f 100644
--- a/docs/InlineResponse20010.md
+++ b/docs/InlineResponse20010.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]Coupon**](Coupon.md) | |
+**Data** | Pointer to [**[]Referral**](Referral.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20010) GetData() []Coupon`
+`func (o *InlineResponse20010) GetData() []Referral`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20010) GetDataOk() ([]Coupon, bool)`
+`func (o *InlineResponse20010) GetDataOk() ([]Referral, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20010) SetData(v []Coupon)`
+`func (o *InlineResponse20010) SetData(v []Referral)`
-SetData gets a reference to the given []Coupon and assigns it to the Data field.
+SetData gets a reference to the given []Referral and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20011.md b/docs/InlineResponse20011.md
index 993cad47..e7ce2dd6 100644
--- a/docs/InlineResponse20011.md
+++ b/docs/InlineResponse20011.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]Referral**](Referral.md) | |
+**Data** | Pointer to [**[]CampaignTemplate**](CampaignTemplate.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20011) GetData() []Referral`
+`func (o *InlineResponse20011) GetData() []CampaignTemplate`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20011) GetDataOk() ([]Referral, bool)`
+`func (o *InlineResponse20011) GetDataOk() ([]CampaignTemplate, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20011) SetData(v []Referral)`
+`func (o *InlineResponse20011) SetData(v []CampaignTemplate)`
-SetData gets a reference to the given []Referral and assigns it to the Data field.
+SetData gets a reference to the given []CampaignTemplate and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md
index a53ae864..3adc81fa 100644
--- a/docs/InlineResponse20012.md
+++ b/docs/InlineResponse20012.md
@@ -4,45 +4,45 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]CampaignTemplate**](CampaignTemplate.md) | |
+**TotalResultSize** | Pointer to **int32** | |
+**Data** | Pointer to [**[]LoyaltyProgram**](LoyaltyProgram.md) | |
## Methods
-### GetHasMore
+### GetTotalResultSize
-`func (o *InlineResponse20012) GetHasMore() bool`
+`func (o *InlineResponse20012) GetTotalResultSize() int32`
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-### GetHasMoreOk
+### GetTotalResultSizeOk
-`func (o *InlineResponse20012) GetHasMoreOk() (bool, bool)`
+`func (o *InlineResponse20012) GetTotalResultSizeOk() (int32, bool)`
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasHasMore
+### HasTotalResultSize
-`func (o *InlineResponse20012) HasHasMore() bool`
+`func (o *InlineResponse20012) HasTotalResultSize() bool`
-HasHasMore returns a boolean if a field has been set.
+HasTotalResultSize returns a boolean if a field has been set.
-### SetHasMore
+### SetTotalResultSize
-`func (o *InlineResponse20012) SetHasMore(v bool)`
+`func (o *InlineResponse20012) SetTotalResultSize(v int32)`
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
### GetData
-`func (o *InlineResponse20012) GetData() []CampaignTemplate`
+`func (o *InlineResponse20012) GetData() []LoyaltyProgram`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20012) GetDataOk() ([]CampaignTemplate, bool)`
+`func (o *InlineResponse20012) GetDataOk() ([]LoyaltyProgram, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20012) SetData(v []CampaignTemplate)`
+`func (o *InlineResponse20012) SetData(v []LoyaltyProgram)`
-SetData gets a reference to the given []CampaignTemplate and assigns it to the Data field.
+SetData gets a reference to the given []LoyaltyProgram and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md
index f2ba3cdf..76763975 100644
--- a/docs/InlineResponse20013.md
+++ b/docs/InlineResponse20013.md
@@ -4,45 +4,45 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]LoyaltyProgram**](LoyaltyProgram.md) | |
+**HasMore** | Pointer to **bool** | |
+**Data** | Pointer to [**[]LoyaltyProgramTransaction**](LoyaltyProgramTransaction.md) | |
## Methods
-### GetTotalResultSize
+### GetHasMore
-`func (o *InlineResponse20013) GetTotalResultSize() int32`
+`func (o *InlineResponse20013) GetHasMore() bool`
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-### GetTotalResultSizeOk
+### GetHasMoreOk
-`func (o *InlineResponse20013) GetTotalResultSizeOk() (int32, bool)`
+`func (o *InlineResponse20013) GetHasMoreOk() (bool, bool)`
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasTotalResultSize
+### HasHasMore
-`func (o *InlineResponse20013) HasTotalResultSize() bool`
+`func (o *InlineResponse20013) HasHasMore() bool`
-HasTotalResultSize returns a boolean if a field has been set.
+HasHasMore returns a boolean if a field has been set.
-### SetTotalResultSize
+### SetHasMore
-`func (o *InlineResponse20013) SetTotalResultSize(v int32)`
+`func (o *InlineResponse20013) SetHasMore(v bool)`
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
### GetData
-`func (o *InlineResponse20013) GetData() []LoyaltyProgram`
+`func (o *InlineResponse20013) GetData() []LoyaltyProgramTransaction`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20013) GetDataOk() ([]LoyaltyProgram, bool)`
+`func (o *InlineResponse20013) GetDataOk() ([]LoyaltyProgramTransaction, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20013) SetData(v []LoyaltyProgram)`
+`func (o *InlineResponse20013) SetData(v []LoyaltyProgramTransaction)`
-SetData gets a reference to the given []LoyaltyProgram and assigns it to the Data field.
+SetData gets a reference to the given []LoyaltyProgramTransaction and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20014.md b/docs/InlineResponse20014.md
index 59f228d1..7e4de241 100644
--- a/docs/InlineResponse20014.md
+++ b/docs/InlineResponse20014.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]LoyaltyProgramTransaction**](LoyaltyProgramTransaction.md) | |
+**Data** | Pointer to [**[]LoyaltyCard**](LoyaltyCard.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20014) GetData() []LoyaltyProgramTransaction`
+`func (o *InlineResponse20014) GetData() []LoyaltyCard`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20014) GetDataOk() ([]LoyaltyProgramTransaction, bool)`
+`func (o *InlineResponse20014) GetDataOk() ([]LoyaltyCard, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20014) SetData(v []LoyaltyProgramTransaction)`
+`func (o *InlineResponse20014) SetData(v []LoyaltyCard)`
-SetData gets a reference to the given []LoyaltyProgramTransaction and assigns it to the Data field.
+SetData gets a reference to the given []LoyaltyCard and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md
index 746a06e1..4641f49f 100644
--- a/docs/InlineResponse20015.md
+++ b/docs/InlineResponse20015.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]LoyaltyCard**](LoyaltyCard.md) | |
+**HasMore** | Pointer to **bool** | true means there is more data in the source collection to request.. |
+**Data** | Pointer to [**[]CardLedgerTransactionLogEntry**](CardLedgerTransactionLogEntry.md) | List of loyalty card transaction logs. |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20015) GetData() []LoyaltyCard`
+`func (o *InlineResponse20015) GetData() []CardLedgerTransactionLogEntry`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20015) GetDataOk() ([]LoyaltyCard, bool)`
+`func (o *InlineResponse20015) GetDataOk() ([]CardLedgerTransactionLogEntry, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20015) SetData(v []LoyaltyCard)`
+`func (o *InlineResponse20015) SetData(v []CardLedgerTransactionLogEntry)`
-SetData gets a reference to the given []LoyaltyCard and assigns it to the Data field.
+SetData gets a reference to the given []CardLedgerTransactionLogEntry and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md
index c5fb144d..60669caa 100644
--- a/docs/InlineResponse20016.md
+++ b/docs/InlineResponse20016.md
@@ -4,8 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | true means there is more data in the source collection to request.. |
-**Data** | Pointer to [**[]CardLedgerTransactionLogEntry**](CardLedgerTransactionLogEntry.md) | List of loyalty card transaction logs. |
+**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**Data** | Pointer to [**[]CollectionWithoutPayload**](CollectionWithoutPayload.md) | |
## Methods
@@ -34,15 +35,40 @@ HasHasMore returns a boolean if a field has been set.
SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+### GetTotalResultSize
+
+`func (o *InlineResponse20016) GetTotalResultSize() int32`
+
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
+
+### GetTotalResultSizeOk
+
+`func (o *InlineResponse20016) GetTotalResultSizeOk() (int32, bool)`
+
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasTotalResultSize
+
+`func (o *InlineResponse20016) HasTotalResultSize() bool`
+
+HasTotalResultSize returns a boolean if a field has been set.
+
+### SetTotalResultSize
+
+`func (o *InlineResponse20016) SetTotalResultSize(v int32)`
+
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+
### GetData
-`func (o *InlineResponse20016) GetData() []CardLedgerTransactionLogEntry`
+`func (o *InlineResponse20016) GetData() []CollectionWithoutPayload`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20016) GetDataOk() ([]CardLedgerTransactionLogEntry, bool)`
+`func (o *InlineResponse20016) GetDataOk() ([]CollectionWithoutPayload, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20016) SetData(v []CardLedgerTransactionLogEntry)`
+`func (o *InlineResponse20016) SetData(v []CollectionWithoutPayload)`
-SetData gets a reference to the given []CardLedgerTransactionLogEntry and assigns it to the Data field.
+SetData gets a reference to the given []CollectionWithoutPayload and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20017.md b/docs/InlineResponse20017.md
index b2c7aafc..54370e2e 100644
--- a/docs/InlineResponse20017.md
+++ b/docs/InlineResponse20017.md
@@ -4,9 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]CollectionWithoutPayload**](CollectionWithoutPayload.md) | |
+**HasMore** | Pointer to **bool** | |
+**Data** | Pointer to [**[]CollectionItem**](CollectionItem.md) | |
## Methods
@@ -35,40 +34,15 @@ HasHasMore returns a boolean if a field has been set.
SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-### GetTotalResultSize
-
-`func (o *InlineResponse20017) GetTotalResultSize() int32`
-
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-
-### GetTotalResultSizeOk
-
-`func (o *InlineResponse20017) GetTotalResultSizeOk() (int32, bool)`
-
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasTotalResultSize
-
-`func (o *InlineResponse20017) HasTotalResultSize() bool`
-
-HasTotalResultSize returns a boolean if a field has been set.
-
-### SetTotalResultSize
-
-`func (o *InlineResponse20017) SetTotalResultSize(v int32)`
-
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-
### GetData
-`func (o *InlineResponse20017) GetData() []CollectionWithoutPayload`
+`func (o *InlineResponse20017) GetData() []CollectionItem`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20017) GetDataOk() ([]CollectionWithoutPayload, bool)`
+`func (o *InlineResponse20017) GetDataOk() ([]CollectionItem, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20017) SetData(v []CollectionWithoutPayload)`
+`func (o *InlineResponse20017) SetData(v []CollectionItem)`
-SetData gets a reference to the given []CollectionWithoutPayload and assigns it to the Data field.
+SetData gets a reference to the given []CollectionItem and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20018.md b/docs/InlineResponse20018.md
index 33f08ca5..76fb1203 100644
--- a/docs/InlineResponse20018.md
+++ b/docs/InlineResponse20018.md
@@ -4,8 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]CollectionItem**](CollectionItem.md) | |
+**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**Data** | Pointer to [**[]Collection**](Collection.md) | |
## Methods
@@ -34,15 +35,40 @@ HasHasMore returns a boolean if a field has been set.
SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+### GetTotalResultSize
+
+`func (o *InlineResponse20018) GetTotalResultSize() int32`
+
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
+
+### GetTotalResultSizeOk
+
+`func (o *InlineResponse20018) GetTotalResultSizeOk() (int32, bool)`
+
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasTotalResultSize
+
+`func (o *InlineResponse20018) HasTotalResultSize() bool`
+
+HasTotalResultSize returns a boolean if a field has been set.
+
+### SetTotalResultSize
+
+`func (o *InlineResponse20018) SetTotalResultSize(v int32)`
+
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+
### GetData
-`func (o *InlineResponse20018) GetData() []CollectionItem`
+`func (o *InlineResponse20018) GetData() []Collection`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20018) GetDataOk() ([]CollectionItem, bool)`
+`func (o *InlineResponse20018) GetDataOk() ([]Collection, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20018) SetData(v []CollectionItem)`
+`func (o *InlineResponse20018) SetData(v []Collection)`
-SetData gets a reference to the given []CollectionItem and assigns it to the Data field.
+SetData gets a reference to the given []Collection and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20019.md b/docs/InlineResponse20019.md
index 512d57b2..3ae769f7 100644
--- a/docs/InlineResponse20019.md
+++ b/docs/InlineResponse20019.md
@@ -4,9 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]Collection**](Collection.md) | |
+**HasMore** | Pointer to **bool** | |
+**Data** | Pointer to [**[]AccessLogEntry**](AccessLogEntry.md) | |
## Methods
@@ -35,40 +34,15 @@ HasHasMore returns a boolean if a field has been set.
SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-### GetTotalResultSize
-
-`func (o *InlineResponse20019) GetTotalResultSize() int32`
-
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-
-### GetTotalResultSizeOk
-
-`func (o *InlineResponse20019) GetTotalResultSizeOk() (int32, bool)`
-
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasTotalResultSize
-
-`func (o *InlineResponse20019) HasTotalResultSize() bool`
-
-HasTotalResultSize returns a boolean if a field has been set.
-
-### SetTotalResultSize
-
-`func (o *InlineResponse20019) SetTotalResultSize(v int32)`
-
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-
### GetData
-`func (o *InlineResponse20019) GetData() []Collection`
+`func (o *InlineResponse20019) GetData() []AccessLogEntry`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20019) GetDataOk() ([]Collection, bool)`
+`func (o *InlineResponse20019) GetDataOk() ([]AccessLogEntry, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20019) SetData(v []Collection)`
+`func (o *InlineResponse20019) SetData(v []AccessLogEntry)`
-SetData gets a reference to the given []Collection and assigns it to the Data field.
+SetData gets a reference to the given []AccessLogEntry and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20020.md b/docs/InlineResponse20020.md
index d0b5f629..5a57177f 100644
--- a/docs/InlineResponse20020.md
+++ b/docs/InlineResponse20020.md
@@ -4,35 +4,35 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
+**TotalResultSize** | Pointer to **int32** | |
**Data** | Pointer to [**[]AccessLogEntry**](AccessLogEntry.md) | |
## Methods
-### GetHasMore
+### GetTotalResultSize
-`func (o *InlineResponse20020) GetHasMore() bool`
+`func (o *InlineResponse20020) GetTotalResultSize() int32`
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-### GetHasMoreOk
+### GetTotalResultSizeOk
-`func (o *InlineResponse20020) GetHasMoreOk() (bool, bool)`
+`func (o *InlineResponse20020) GetTotalResultSizeOk() (int32, bool)`
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasHasMore
+### HasTotalResultSize
-`func (o *InlineResponse20020) HasHasMore() bool`
+`func (o *InlineResponse20020) HasTotalResultSize() bool`
-HasHasMore returns a boolean if a field has been set.
+HasTotalResultSize returns a boolean if a field has been set.
-### SetHasMore
+### SetTotalResultSize
-`func (o *InlineResponse20020) SetHasMore(v bool)`
+`func (o *InlineResponse20020) SetTotalResultSize(v int32)`
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
### GetData
diff --git a/docs/InlineResponse20021.md b/docs/InlineResponse20021.md
index 8b387b53..b0ef4070 100644
--- a/docs/InlineResponse20021.md
+++ b/docs/InlineResponse20021.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]AccessLogEntry**](AccessLogEntry.md) | |
+**Data** | Pointer to [**[]CampaignAnalytics**](CampaignAnalytics.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20021) GetData() []AccessLogEntry`
+`func (o *InlineResponse20021) GetData() []CampaignAnalytics`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20021) GetDataOk() ([]AccessLogEntry, bool)`
+`func (o *InlineResponse20021) GetDataOk() ([]CampaignAnalytics, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20021) SetData(v []AccessLogEntry)`
+`func (o *InlineResponse20021) SetData(v []CampaignAnalytics)`
-SetData gets a reference to the given []AccessLogEntry and assigns it to the Data field.
+SetData gets a reference to the given []CampaignAnalytics and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20022.md b/docs/InlineResponse20022.md
index efde3082..8ba2a534 100644
--- a/docs/InlineResponse20022.md
+++ b/docs/InlineResponse20022.md
@@ -4,8 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]CampaignAnalytics**](CampaignAnalytics.md) | |
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**HasMore** | Pointer to **bool** | | [optional]
+**Data** | Pointer to [**[]ApplicationCustomer**](ApplicationCustomer.md) | |
## Methods
@@ -34,15 +35,40 @@ HasTotalResultSize returns a boolean if a field has been set.
SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+### GetHasMore
+
+`func (o *InlineResponse20022) GetHasMore() bool`
+
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+
+### GetHasMoreOk
+
+`func (o *InlineResponse20022) GetHasMoreOk() (bool, bool)`
+
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasHasMore
+
+`func (o *InlineResponse20022) HasHasMore() bool`
+
+HasHasMore returns a boolean if a field has been set.
+
+### SetHasMore
+
+`func (o *InlineResponse20022) SetHasMore(v bool)`
+
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+
### GetData
-`func (o *InlineResponse20022) GetData() []CampaignAnalytics`
+`func (o *InlineResponse20022) GetData() []ApplicationCustomer`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20022) GetDataOk() ([]CampaignAnalytics, bool)`
+`func (o *InlineResponse20022) GetDataOk() ([]ApplicationCustomer, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20022) SetData(v []CampaignAnalytics)`
+`func (o *InlineResponse20022) SetData(v []ApplicationCustomer)`
-SetData gets a reference to the given []CampaignAnalytics and assigns it to the Data field.
+SetData gets a reference to the given []ApplicationCustomer and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md
index 2c61604e..40db183c 100644
--- a/docs/InlineResponse20023.md
+++ b/docs/InlineResponse20023.md
@@ -4,61 +4,61 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | | [optional]
**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
**Data** | Pointer to [**[]ApplicationCustomer**](ApplicationCustomer.md) | |
## Methods
-### GetTotalResultSize
+### GetHasMore
-`func (o *InlineResponse20023) GetTotalResultSize() int32`
+`func (o *InlineResponse20023) GetHasMore() bool`
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-### GetTotalResultSizeOk
+### GetHasMoreOk
-`func (o *InlineResponse20023) GetTotalResultSizeOk() (int32, bool)`
+`func (o *InlineResponse20023) GetHasMoreOk() (bool, bool)`
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasTotalResultSize
+### HasHasMore
-`func (o *InlineResponse20023) HasTotalResultSize() bool`
+`func (o *InlineResponse20023) HasHasMore() bool`
-HasTotalResultSize returns a boolean if a field has been set.
+HasHasMore returns a boolean if a field has been set.
-### SetTotalResultSize
+### SetHasMore
-`func (o *InlineResponse20023) SetTotalResultSize(v int32)`
+`func (o *InlineResponse20023) SetHasMore(v bool)`
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-### GetHasMore
+### GetTotalResultSize
-`func (o *InlineResponse20023) GetHasMore() bool`
+`func (o *InlineResponse20023) GetTotalResultSize() int32`
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-### GetHasMoreOk
+### GetTotalResultSizeOk
-`func (o *InlineResponse20023) GetHasMoreOk() (bool, bool)`
+`func (o *InlineResponse20023) GetTotalResultSizeOk() (int32, bool)`
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasHasMore
+### HasTotalResultSize
-`func (o *InlineResponse20023) HasHasMore() bool`
+`func (o *InlineResponse20023) HasTotalResultSize() bool`
-HasHasMore returns a boolean if a field has been set.
+HasTotalResultSize returns a boolean if a field has been set.
-### SetHasMore
+### SetTotalResultSize
-`func (o *InlineResponse20023) SetHasMore(v bool)`
+`func (o *InlineResponse20023) SetTotalResultSize(v int32)`
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
### GetData
diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md
index fc77e56a..5cce34f4 100644
--- a/docs/InlineResponse20024.md
+++ b/docs/InlineResponse20024.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | | [optional]
**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]ApplicationCustomer**](ApplicationCustomer.md) | |
+**Data** | Pointer to [**[]CustomerProfile**](CustomerProfile.md) | |
## Methods
@@ -62,13 +62,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20024) GetData() []ApplicationCustomer`
+`func (o *InlineResponse20024) GetData() []CustomerProfile`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20024) GetDataOk() ([]ApplicationCustomer, bool)`
+`func (o *InlineResponse20024) GetDataOk() ([]CustomerProfile, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20024) SetData(v []ApplicationCustomer)`
+`func (o *InlineResponse20024) SetData(v []CustomerProfile)`
-SetData gets a reference to the given []ApplicationCustomer and assigns it to the Data field.
+SetData gets a reference to the given []CustomerProfile and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md
index 14bbb02d..201a9e55 100644
--- a/docs/InlineResponse20025.md
+++ b/docs/InlineResponse20025.md
@@ -4,8 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**TotalResultSize** | Pointer to **int32** | | [optional]
+**HasMore** | Pointer to **bool** | |
**Data** | Pointer to [**[]CustomerProfile**](CustomerProfile.md) | |
## Methods
@@ -35,31 +34,6 @@ HasHasMore returns a boolean if a field has been set.
SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-### GetTotalResultSize
-
-`func (o *InlineResponse20025) GetTotalResultSize() int32`
-
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-
-### GetTotalResultSizeOk
-
-`func (o *InlineResponse20025) GetTotalResultSizeOk() (int32, bool)`
-
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasTotalResultSize
-
-`func (o *InlineResponse20025) HasTotalResultSize() bool`
-
-HasTotalResultSize returns a boolean if a field has been set.
-
-### SetTotalResultSize
-
-`func (o *InlineResponse20025) SetTotalResultSize(v int32)`
-
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-
### GetData
`func (o *InlineResponse20025) GetData() []CustomerProfile`
diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md
index 3cfd9179..92e7b81a 100644
--- a/docs/InlineResponse20026.md
+++ b/docs/InlineResponse20026.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]CustomerProfile**](CustomerProfile.md) | |
+**Data** | Pointer to [**[]CustomerActivityReport**](CustomerActivityReport.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20026) GetData() []CustomerProfile`
+`func (o *InlineResponse20026) GetData() []CustomerActivityReport`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20026) GetDataOk() ([]CustomerProfile, bool)`
+`func (o *InlineResponse20026) GetDataOk() ([]CustomerActivityReport, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20026) SetData(v []CustomerProfile)`
+`func (o *InlineResponse20026) SetData(v []CustomerActivityReport)`
-SetData gets a reference to the given []CustomerProfile and assigns it to the Data field.
+SetData gets a reference to the given []CustomerActivityReport and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20027.md b/docs/InlineResponse20027.md
index 723eccc1..a175091a 100644
--- a/docs/InlineResponse20027.md
+++ b/docs/InlineResponse20027.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]CustomerActivityReport**](CustomerActivityReport.md) | |
+**HasMore** | Pointer to **bool** | | [optional]
+**Data** | Pointer to [**[]ApplicationSession**](ApplicationSession.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20027) GetData() []CustomerActivityReport`
+`func (o *InlineResponse20027) GetData() []ApplicationSession`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20027) GetDataOk() ([]CustomerActivityReport, bool)`
+`func (o *InlineResponse20027) GetDataOk() ([]ApplicationSession, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20027) SetData(v []CustomerActivityReport)`
+`func (o *InlineResponse20027) SetData(v []ApplicationSession)`
-SetData gets a reference to the given []CustomerActivityReport and assigns it to the Data field.
+SetData gets a reference to the given []ApplicationSession and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20028.md b/docs/InlineResponse20028.md
index 0306b292..9b48c165 100644
--- a/docs/InlineResponse20028.md
+++ b/docs/InlineResponse20028.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**Data** | Pointer to [**[]ApplicationSession**](ApplicationSession.md) | |
+**HasMore** | Pointer to **bool** | |
+**Data** | Pointer to [**[]ApplicationEvent**](ApplicationEvent.md) | |
## Methods
@@ -36,13 +36,13 @@ SetHasMore gets a reference to the given bool and assigns it to the HasMore fiel
### GetData
-`func (o *InlineResponse20028) GetData() []ApplicationSession`
+`func (o *InlineResponse20028) GetData() []ApplicationEvent`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20028) GetDataOk() ([]ApplicationSession, bool)`
+`func (o *InlineResponse20028) GetDataOk() ([]ApplicationEvent, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20028) SetData(v []ApplicationSession)`
+`func (o *InlineResponse20028) SetData(v []ApplicationEvent)`
-SetData gets a reference to the given []ApplicationSession and assigns it to the Data field.
+SetData gets a reference to the given []ApplicationEvent and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20029.md b/docs/InlineResponse20029.md
index 2b897937..8d831918 100644
--- a/docs/InlineResponse20029.md
+++ b/docs/InlineResponse20029.md
@@ -4,45 +4,45 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | |
-**Data** | Pointer to [**[]ApplicationEvent**](ApplicationEvent.md) | |
+**TotalResultSize** | Pointer to **int32** | |
+**Data** | Pointer to **[]string** | |
## Methods
-### GetHasMore
+### GetTotalResultSize
-`func (o *InlineResponse20029) GetHasMore() bool`
+`func (o *InlineResponse20029) GetTotalResultSize() int32`
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
-### GetHasMoreOk
+### GetTotalResultSizeOk
-`func (o *InlineResponse20029) GetHasMoreOk() (bool, bool)`
+`func (o *InlineResponse20029) GetTotalResultSizeOk() (int32, bool)`
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasHasMore
+### HasTotalResultSize
-`func (o *InlineResponse20029) HasHasMore() bool`
+`func (o *InlineResponse20029) HasTotalResultSize() bool`
-HasHasMore returns a boolean if a field has been set.
+HasTotalResultSize returns a boolean if a field has been set.
-### SetHasMore
+### SetTotalResultSize
-`func (o *InlineResponse20029) SetHasMore(v bool)`
+`func (o *InlineResponse20029) SetTotalResultSize(v int32)`
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
### GetData
-`func (o *InlineResponse20029) GetData() []ApplicationEvent`
+`func (o *InlineResponse20029) GetData() []string`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20029) GetDataOk() ([]ApplicationEvent, bool)`
+`func (o *InlineResponse20029) GetDataOk() ([]string, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20029) SetData(v []ApplicationEvent)`
+`func (o *InlineResponse20029) SetData(v []string)`
-SetData gets a reference to the given []ApplicationEvent and assigns it to the Data field.
+SetData gets a reference to the given []string and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20030.md b/docs/InlineResponse20030.md
index 160daca7..ddf27872 100644
--- a/docs/InlineResponse20030.md
+++ b/docs/InlineResponse20030.md
@@ -4,11 +4,37 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to **[]string** | |
+**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**Data** | Pointer to [**[]Audience**](Audience.md) | |
## Methods
+### GetHasMore
+
+`func (o *InlineResponse20030) GetHasMore() bool`
+
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+
+### GetHasMoreOk
+
+`func (o *InlineResponse20030) GetHasMoreOk() (bool, bool)`
+
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasHasMore
+
+`func (o *InlineResponse20030) HasHasMore() bool`
+
+HasHasMore returns a boolean if a field has been set.
+
+### SetHasMore
+
+`func (o *InlineResponse20030) SetHasMore(v bool)`
+
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+
### GetTotalResultSize
`func (o *InlineResponse20030) GetTotalResultSize() int32`
@@ -36,13 +62,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20030) GetData() []string`
+`func (o *InlineResponse20030) GetData() []Audience`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20030) GetDataOk() ([]string, bool)`
+`func (o *InlineResponse20030) GetDataOk() ([]Audience, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20030) SetData(v []string)`
+`func (o *InlineResponse20030) SetData(v []Audience)`
-SetData gets a reference to the given []string and assigns it to the Data field.
+SetData gets a reference to the given []Audience and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md
index d0c6c789..32edf616 100644
--- a/docs/InlineResponse20031.md
+++ b/docs/InlineResponse20031.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | Pointer to **bool** | | [optional]
**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]Audience**](Audience.md) | |
+**Data** | Pointer to [**[]ApplicationReferee**](ApplicationReferee.md) | |
## Methods
@@ -62,13 +62,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20031) GetData() []Audience`
+`func (o *InlineResponse20031) GetData() []ApplicationReferee`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20031) GetDataOk() ([]Audience, bool)`
+`func (o *InlineResponse20031) GetDataOk() ([]ApplicationReferee, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20031) SetData(v []Audience)`
+`func (o *InlineResponse20031) SetData(v []ApplicationReferee)`
-SetData gets a reference to the given []Audience and assigns it to the Data field.
+SetData gets a reference to the given []ApplicationReferee and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md
index 7120a86e..2fcb8596 100644
--- a/docs/InlineResponse20032.md
+++ b/docs/InlineResponse20032.md
@@ -4,37 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]ApplicationReferee**](ApplicationReferee.md) | |
+**TotalResultSize** | Pointer to **int32** | |
+**Data** | Pointer to [**[]Attribute**](Attribute.md) | |
## Methods
-### GetHasMore
-
-`func (o *InlineResponse20032) GetHasMore() bool`
-
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-
-### GetHasMoreOk
-
-`func (o *InlineResponse20032) GetHasMoreOk() (bool, bool)`
-
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasHasMore
-
-`func (o *InlineResponse20032) HasHasMore() bool`
-
-HasHasMore returns a boolean if a field has been set.
-
-### SetHasMore
-
-`func (o *InlineResponse20032) SetHasMore(v bool)`
-
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-
### GetTotalResultSize
`func (o *InlineResponse20032) GetTotalResultSize() int32`
@@ -62,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20032) GetData() []ApplicationReferee`
+`func (o *InlineResponse20032) GetData() []Attribute`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20032) GetDataOk() ([]ApplicationReferee, bool)`
+`func (o *InlineResponse20032) GetDataOk() ([]Attribute, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20032) SetData(v []ApplicationReferee)`
+`func (o *InlineResponse20032) SetData(v []Attribute)`
-SetData gets a reference to the given []ApplicationReferee and assigns it to the Data field.
+SetData gets a reference to the given []Attribute and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20033.md b/docs/InlineResponse20033.md
index 4aea41bb..ea2c3961 100644
--- a/docs/InlineResponse20033.md
+++ b/docs/InlineResponse20033.md
@@ -4,11 +4,37 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]Attribute**](Attribute.md) | |
+**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**Data** | Pointer to [**[]CatalogItem**](CatalogItem.md) | |
## Methods
+### GetHasMore
+
+`func (o *InlineResponse20033) GetHasMore() bool`
+
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+
+### GetHasMoreOk
+
+`func (o *InlineResponse20033) GetHasMoreOk() (bool, bool)`
+
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasHasMore
+
+`func (o *InlineResponse20033) HasHasMore() bool`
+
+HasHasMore returns a boolean if a field has been set.
+
+### SetHasMore
+
+`func (o *InlineResponse20033) SetHasMore(v bool)`
+
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+
### GetTotalResultSize
`func (o *InlineResponse20033) GetTotalResultSize() int32`
@@ -36,13 +62,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20033) GetData() []Attribute`
+`func (o *InlineResponse20033) GetData() []CatalogItem`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20033) GetDataOk() ([]Attribute, bool)`
+`func (o *InlineResponse20033) GetDataOk() ([]CatalogItem, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20033) SetData(v []Attribute)`
+`func (o *InlineResponse20033) SetData(v []CatalogItem)`
-SetData gets a reference to the given []Attribute and assigns it to the Data field.
+SetData gets a reference to the given []CatalogItem and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20034.md b/docs/InlineResponse20034.md
index 21b29cb5..9593133d 100644
--- a/docs/InlineResponse20034.md
+++ b/docs/InlineResponse20034.md
@@ -4,37 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**HasMore** | Pointer to **bool** | | [optional]
-**TotalResultSize** | Pointer to **int32** | | [optional]
-**Data** | Pointer to [**[]CatalogItem**](CatalogItem.md) | |
+**TotalResultSize** | Pointer to **int32** | |
+**Data** | Pointer to [**[]AccountAdditionalCost**](AccountAdditionalCost.md) | |
## Methods
-### GetHasMore
-
-`func (o *InlineResponse20034) GetHasMore() bool`
-
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-
-### GetHasMoreOk
-
-`func (o *InlineResponse20034) GetHasMoreOk() (bool, bool)`
-
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasHasMore
-
-`func (o *InlineResponse20034) HasHasMore() bool`
-
-HasHasMore returns a boolean if a field has been set.
-
-### SetHasMore
-
-`func (o *InlineResponse20034) SetHasMore(v bool)`
-
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-
### GetTotalResultSize
`func (o *InlineResponse20034) GetTotalResultSize() int32`
@@ -62,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20034) GetData() []CatalogItem`
+`func (o *InlineResponse20034) GetData() []AccountAdditionalCost`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20034) GetDataOk() ([]CatalogItem, bool)`
+`func (o *InlineResponse20034) GetDataOk() ([]AccountAdditionalCost, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20034) SetData(v []CatalogItem)`
+`func (o *InlineResponse20034) SetData(v []AccountAdditionalCost)`
-SetData gets a reference to the given []CatalogItem and assigns it to the Data field.
+SetData gets a reference to the given []AccountAdditionalCost and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md
index 0a63aa21..2831a08a 100644
--- a/docs/InlineResponse20035.md
+++ b/docs/InlineResponse20035.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]AccountAdditionalCost**](AccountAdditionalCost.md) | |
+**Data** | Pointer to [**[]WebhookWithOutgoingIntegrationDetails**](WebhookWithOutgoingIntegrationDetails.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20035) GetData() []AccountAdditionalCost`
+`func (o *InlineResponse20035) GetData() []WebhookWithOutgoingIntegrationDetails`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20035) GetDataOk() ([]AccountAdditionalCost, bool)`
+`func (o *InlineResponse20035) GetDataOk() ([]WebhookWithOutgoingIntegrationDetails, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20035) SetData(v []AccountAdditionalCost)`
+`func (o *InlineResponse20035) SetData(v []WebhookWithOutgoingIntegrationDetails)`
-SetData gets a reference to the given []AccountAdditionalCost and assigns it to the Data field.
+SetData gets a reference to the given []WebhookWithOutgoingIntegrationDetails and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md
index 7d7af1df..7625b9c8 100644
--- a/docs/InlineResponse20036.md
+++ b/docs/InlineResponse20036.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]WebhookWithOutgoingIntegrationDetails**](WebhookWithOutgoingIntegrationDetails.md) | |
+**Data** | Pointer to [**[]WebhookActivationLogEntry**](WebhookActivationLogEntry.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20036) GetData() []WebhookWithOutgoingIntegrationDetails`
+`func (o *InlineResponse20036) GetData() []WebhookActivationLogEntry`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20036) GetDataOk() ([]WebhookWithOutgoingIntegrationDetails, bool)`
+`func (o *InlineResponse20036) GetDataOk() ([]WebhookActivationLogEntry, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20036) SetData(v []WebhookWithOutgoingIntegrationDetails)`
+`func (o *InlineResponse20036) SetData(v []WebhookActivationLogEntry)`
-SetData gets a reference to the given []WebhookWithOutgoingIntegrationDetails and assigns it to the Data field.
+SetData gets a reference to the given []WebhookActivationLogEntry and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md
index ebaa1b8c..204f469d 100644
--- a/docs/InlineResponse20037.md
+++ b/docs/InlineResponse20037.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]WebhookActivationLogEntry**](WebhookActivationLogEntry.md) | |
+**Data** | Pointer to [**[]WebhookLogEntry**](WebhookLogEntry.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20037) GetData() []WebhookActivationLogEntry`
+`func (o *InlineResponse20037) GetData() []WebhookLogEntry`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20037) GetDataOk() ([]WebhookActivationLogEntry, bool)`
+`func (o *InlineResponse20037) GetDataOk() ([]WebhookLogEntry, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20037) SetData(v []WebhookActivationLogEntry)`
+`func (o *InlineResponse20037) SetData(v []WebhookLogEntry)`
-SetData gets a reference to the given []WebhookActivationLogEntry and assigns it to the Data field.
+SetData gets a reference to the given []WebhookLogEntry and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md
index d20f0b10..ad0f687d 100644
--- a/docs/InlineResponse20038.md
+++ b/docs/InlineResponse20038.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]WebhookLogEntry**](WebhookLogEntry.md) | |
+**Data** | Pointer to [**[]EventType**](EventType.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20038) GetData() []WebhookLogEntry`
+`func (o *InlineResponse20038) GetData() []EventType`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20038) GetDataOk() ([]WebhookLogEntry, bool)`
+`func (o *InlineResponse20038) GetDataOk() ([]EventType, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20038) SetData(v []WebhookLogEntry)`
+`func (o *InlineResponse20038) SetData(v []EventType)`
-SetData gets a reference to the given []WebhookLogEntry and assigns it to the Data field.
+SetData gets a reference to the given []EventType and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md
index 51a8901d..6c73e35c 100644
--- a/docs/InlineResponse20039.md
+++ b/docs/InlineResponse20039.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]EventType**](EventType.md) | |
+**Data** | Pointer to [**[]User**](User.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20039) GetData() []EventType`
+`func (o *InlineResponse20039) GetData() []User`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20039) GetDataOk() ([]EventType, bool)`
+`func (o *InlineResponse20039) GetDataOk() ([]User, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20039) SetData(v []EventType)`
+`func (o *InlineResponse20039) SetData(v []User)`
-SetData gets a reference to the given []EventType and assigns it to the Data field.
+SetData gets a reference to the given []User and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md
index 35765bbb..759c3599 100644
--- a/docs/InlineResponse20040.md
+++ b/docs/InlineResponse20040.md
@@ -4,8 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]User**](User.md) | |
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**HasMore** | Pointer to **bool** | | [optional]
+**Data** | Pointer to [**[]Change**](Change.md) | |
## Methods
@@ -34,15 +35,40 @@ HasTotalResultSize returns a boolean if a field has been set.
SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+### GetHasMore
+
+`func (o *InlineResponse20040) GetHasMore() bool`
+
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+
+### GetHasMoreOk
+
+`func (o *InlineResponse20040) GetHasMoreOk() (bool, bool)`
+
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasHasMore
+
+`func (o *InlineResponse20040) HasHasMore() bool`
+
+HasHasMore returns a boolean if a field has been set.
+
+### SetHasMore
+
+`func (o *InlineResponse20040) SetHasMore(v bool)`
+
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+
### GetData
-`func (o *InlineResponse20040) GetData() []User`
+`func (o *InlineResponse20040) GetData() []Change`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20040) GetDataOk() ([]User, bool)`
+`func (o *InlineResponse20040) GetDataOk() ([]Change, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20040) SetData(v []User)`
+`func (o *InlineResponse20040) SetData(v []Change)`
-SetData gets a reference to the given []User and assigns it to the Data field.
+SetData gets a reference to the given []Change and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md
index 9899a807..0303e621 100644
--- a/docs/InlineResponse20041.md
+++ b/docs/InlineResponse20041.md
@@ -4,9 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | | [optional]
-**HasMore** | Pointer to **bool** | | [optional]
-**Data** | Pointer to [**[]Change**](Change.md) | |
+**TotalResultSize** | Pointer to **int32** | |
+**Data** | Pointer to [**[]Export**](Export.md) | |
## Methods
@@ -35,40 +34,15 @@ HasTotalResultSize returns a boolean if a field has been set.
SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-### GetHasMore
-
-`func (o *InlineResponse20041) GetHasMore() bool`
-
-GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-
-### GetHasMoreOk
-
-`func (o *InlineResponse20041) GetHasMoreOk() (bool, bool)`
-
-GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasHasMore
-
-`func (o *InlineResponse20041) HasHasMore() bool`
-
-HasHasMore returns a boolean if a field has been set.
-
-### SetHasMore
-
-`func (o *InlineResponse20041) SetHasMore(v bool)`
-
-SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-
### GetData
-`func (o *InlineResponse20041) GetData() []Change`
+`func (o *InlineResponse20041) GetData() []Export`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20041) GetDataOk() ([]Change, bool)`
+`func (o *InlineResponse20041) GetDataOk() ([]Export, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -81,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20041) SetData(v []Change)`
+`func (o *InlineResponse20041) SetData(v []Export)`
-SetData gets a reference to the given []Change and assigns it to the Data field.
+SetData gets a reference to the given []Export and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md
index 84c6af99..8f0ee1c7 100644
--- a/docs/InlineResponse20042.md
+++ b/docs/InlineResponse20042.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]Export**](Export.md) | |
+**Data** | Pointer to [**[]Role**](Role.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20042) GetData() []Export`
+`func (o *InlineResponse20042) GetData() []Role`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20042) GetDataOk() ([]Export, bool)`
+`func (o *InlineResponse20042) GetDataOk() ([]Role, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20042) SetData(v []Export)`
+`func (o *InlineResponse20042) SetData(v []Role)`
-SetData gets a reference to the given []Export and assigns it to the Data field.
+SetData gets a reference to the given []Role and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md
index 48134f85..2299b5fa 100644
--- a/docs/InlineResponse20043.md
+++ b/docs/InlineResponse20043.md
@@ -4,11 +4,37 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]Role**](Role.md) | |
+**HasMore** | Pointer to **bool** | | [optional]
+**TotalResultSize** | Pointer to **int32** | | [optional]
+**Data** | Pointer to [**[]Store**](Store.md) | |
## Methods
+### GetHasMore
+
+`func (o *InlineResponse20043) GetHasMore() bool`
+
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
+
+### GetHasMoreOk
+
+`func (o *InlineResponse20043) GetHasMoreOk() (bool, bool)`
+
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasHasMore
+
+`func (o *InlineResponse20043) HasHasMore() bool`
+
+HasHasMore returns a boolean if a field has been set.
+
+### SetHasMore
+
+`func (o *InlineResponse20043) SetHasMore(v bool)`
+
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+
### GetTotalResultSize
`func (o *InlineResponse20043) GetTotalResultSize() int32`
@@ -36,13 +62,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse20043) GetData() []Role`
+`func (o *InlineResponse20043) GetData() []Store`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse20043) GetDataOk() ([]Role, bool)`
+`func (o *InlineResponse20043) GetDataOk() ([]Store, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +81,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse20043) SetData(v []Role)`
+`func (o *InlineResponse20043) SetData(v []Store)`
-SetData gets a reference to the given []Role and assigns it to the Data field.
+SetData gets a reference to the given []Store and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md
index 98ee151a..2e3d28d3 100644
--- a/docs/InlineResponse2007.md
+++ b/docs/InlineResponse2007.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]NotificationWebhook**](NotificationWebhook.md) | |
+**Data** | Pointer to [**[]Ruleset**](Ruleset.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse2007) GetData() []NotificationWebhook`
+`func (o *InlineResponse2007) GetData() []Ruleset`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse2007) GetDataOk() ([]NotificationWebhook, bool)`
+`func (o *InlineResponse2007) GetDataOk() ([]Ruleset, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse2007) SetData(v []NotificationWebhook)`
+`func (o *InlineResponse2007) SetData(v []Ruleset)`
-SetData gets a reference to the given []NotificationWebhook and assigns it to the Data field.
+SetData gets a reference to the given []Ruleset and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md
index e4db8fa5..f1dc35c9 100644
--- a/docs/InlineResponse2008.md
+++ b/docs/InlineResponse2008.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TotalResultSize** | Pointer to **int32** | |
-**Data** | Pointer to [**[]Ruleset**](Ruleset.md) | |
+**Data** | Pointer to [**[]Coupon**](Coupon.md) | |
## Methods
@@ -36,13 +36,13 @@ SetTotalResultSize gets a reference to the given int32 and assigns it to the Tot
### GetData
-`func (o *InlineResponse2008) GetData() []Ruleset`
+`func (o *InlineResponse2008) GetData() []Coupon`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *InlineResponse2008) GetDataOk() ([]Ruleset, bool)`
+`func (o *InlineResponse2008) GetDataOk() ([]Coupon, bool)`
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
@@ -55,9 +55,9 @@ HasData returns a boolean if a field has been set.
### SetData
-`func (o *InlineResponse2008) SetData(v []Ruleset)`
+`func (o *InlineResponse2008) SetData(v []Coupon)`
-SetData gets a reference to the given []Ruleset and assigns it to the Data field.
+SetData gets a reference to the given []Coupon and assigns it to the Data field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md
index 449adeda..636b1c5a 100644
--- a/docs/InlineResponse2009.md
+++ b/docs/InlineResponse2009.md
@@ -4,35 +4,35 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TotalResultSize** | Pointer to **int32** | |
+**HasMore** | Pointer to **bool** | |
**Data** | Pointer to [**[]Coupon**](Coupon.md) | |
## Methods
-### GetTotalResultSize
+### GetHasMore
-`func (o *InlineResponse2009) GetTotalResultSize() int32`
+`func (o *InlineResponse2009) GetHasMore() bool`
-GetTotalResultSize returns the TotalResultSize field if non-nil, zero value otherwise.
+GetHasMore returns the HasMore field if non-nil, zero value otherwise.
-### GetTotalResultSizeOk
+### GetHasMoreOk
-`func (o *InlineResponse2009) GetTotalResultSizeOk() (int32, bool)`
+`func (o *InlineResponse2009) GetHasMoreOk() (bool, bool)`
-GetTotalResultSizeOk returns a tuple with the TotalResultSize field if it's non-nil, zero value otherwise
+GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### HasTotalResultSize
+### HasHasMore
-`func (o *InlineResponse2009) HasTotalResultSize() bool`
+`func (o *InlineResponse2009) HasHasMore() bool`
-HasTotalResultSize returns a boolean if a field has been set.
+HasHasMore returns a boolean if a field has been set.
-### SetTotalResultSize
+### SetHasMore
-`func (o *InlineResponse2009) SetTotalResultSize(v int32)`
+`func (o *InlineResponse2009) SetHasMore(v bool)`
-SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
### GetData
diff --git a/docs/IntegrationEvent.md b/docs/IntegrationEvent.md
index 3b09e6a3..732e8f51 100644
--- a/docs/IntegrationEvent.md
+++ b/docs/IntegrationEvent.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**Type** | Pointer to **string** | A string representing the event. Must not be a reserved event name. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON data associated with the event. |
@@ -35,6 +36,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *IntegrationEvent) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *IntegrationEvent) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *IntegrationEvent) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *IntegrationEvent) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetType
`func (o *IntegrationEvent) GetType() string`
diff --git a/docs/IntegrationEventV2Request.md b/docs/IntegrationEventV2Request.md
index 0eb74773..d47bd6cb 100644
--- a/docs/IntegrationEventV2Request.md
+++ b/docs/IntegrationEventV2Request.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**EvaluableCampaignIds** | Pointer to **[]int32** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
**Type** | Pointer to **string** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional]
@@ -37,6 +38,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *IntegrationEventV2Request) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *IntegrationEventV2Request) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *IntegrationEventV2Request) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *IntegrationEventV2Request) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetEvaluableCampaignIds
`func (o *IntegrationEventV2Request) GetEvaluableCampaignIds() []int32`
diff --git a/docs/IntegrationStoreEntity.md b/docs/IntegrationStoreEntity.md
new file mode 100644
index 00000000..7606a30b
--- /dev/null
+++ b/docs/IntegrationStoreEntity.md
@@ -0,0 +1,39 @@
+# IntegrationStoreEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
+
+## Methods
+
+### GetStoreIntegrationId
+
+`func (o *IntegrationStoreEntity) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *IntegrationStoreEntity) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *IntegrationStoreEntity) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *IntegrationStoreEntity) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/LoyaltyProgram.md b/docs/LoyaltyProgram.md
index 05beccf6..c205d73d 100644
--- a/docs/LoyaltyProgram.md
+++ b/docs/LoyaltyProgram.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
**AllowSubledger** | Pointer to **bool** | Indicates if this program supports subledgers inside the program. |
**UsersPerCardLimit** | Pointer to **int32** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional]
**Sandbox** | Pointer to **bool** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. |
-**TiersExpireIn** | Pointer to **string** | The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
+**TiersExpireIn** | Pointer to **string** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**TiersDowngradePolicy** | Pointer to **string** | Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant. | [optional]
**AccountID** | Pointer to **int32** | The ID of the Talon.One account that owns this program. |
**Name** | Pointer to **string** | The internal name for the Loyalty Program. This is an immutable value. |
diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md
index 0cb0c576..dcc9e45c 100644
--- a/docs/ManagementApi.md
+++ b/docs/ManagementApi.md
@@ -11,25 +11,25 @@ Method | HTTP request | Description
[**CreateAdditionalCost**](ManagementApi.md#CreateAdditionalCost) | **Post** /v1/additional_costs | Create additional cost
[**CreateAttribute**](ManagementApi.md#CreateAttribute) | **Post** /v1/attributes | Create custom attribute
[**CreateCampaignFromTemplate**](ManagementApi.md#CreateCampaignFromTemplate) | **Post** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template
-[**CreateCollection**](ManagementApi.md#CreateCollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create collection
+[**CreateCollection**](ManagementApi.md#CreateCollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create campaign-level collection
[**CreateCoupons**](ManagementApi.md#CreateCoupons) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons
[**CreateCouponsAsync**](ManagementApi.md#CreateCouponsAsync) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously
[**CreateCouponsForMultipleRecipients**](ManagementApi.md#CreateCouponsForMultipleRecipients) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients | Create coupons for multiple recipients
-[**CreateNotificationWebhook**](ManagementApi.md#CreateNotificationWebhook) | **Post** /v1/applications/{applicationId}/notification_webhooks | Create notification about campaign-related changes
[**CreatePasswordRecoveryEmail**](ManagementApi.md#CreatePasswordRecoveryEmail) | **Post** /v1/password_recovery_emails | Request a password reset
[**CreateSession**](ManagementApi.md#CreateSession) | **Post** /v1/sessions | Create session
+[**CreateStore**](ManagementApi.md#CreateStore) | **Post** /v1/applications/{applicationId}/stores | Create store
[**DeductLoyaltyCardPoints**](ManagementApi.md#DeductLoyaltyCardPoints) | **Put** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points | Deduct points from card
[**DeleteAccountCollection**](ManagementApi.md#DeleteAccountCollection) | **Delete** /v1/collections/{collectionId} | Delete account-level collection
[**DeleteCampaign**](ManagementApi.md#DeleteCampaign) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign
-[**DeleteCollection**](ManagementApi.md#DeleteCollection) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete collection
+[**DeleteCollection**](ManagementApi.md#DeleteCollection) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection
[**DeleteCoupon**](ManagementApi.md#DeleteCoupon) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon
[**DeleteCoupons**](ManagementApi.md#DeleteCoupons) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Delete coupons
[**DeleteLoyaltyCard**](ManagementApi.md#DeleteLoyaltyCard) | **Delete** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Delete loyalty card
-[**DeleteNotificationWebhook**](ManagementApi.md#DeleteNotificationWebhook) | **Delete** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Delete notification about campaign-related changes
[**DeleteReferral**](ManagementApi.md#DeleteReferral) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Delete referral
+[**DeleteStore**](ManagementApi.md#DeleteStore) | **Delete** /v1/applications/{applicationId}/stores/{storeId} | Delete store
[**DestroySession**](ManagementApi.md#DestroySession) | **Delete** /v1/sessions | Destroy session
[**ExportAccountCollectionItems**](ManagementApi.md#ExportAccountCollectionItems) | **Get** /v1/collections/{collectionId}/export | Export account-level collection's items
-[**ExportCollectionItems**](ManagementApi.md#ExportCollectionItems) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export a collection's items
+[**ExportCollectionItems**](ManagementApi.md#ExportCollectionItems) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items
[**ExportCoupons**](ManagementApi.md#ExportCoupons) | **Get** /v1/applications/{applicationId}/export_coupons | Export coupons
[**ExportCustomerSessions**](ManagementApi.md#ExportCustomerSessions) | **Get** /v1/applications/{applicationId}/export_customer_sessions | Export customer sessions
[**ExportCustomersTiers**](ManagementApi.md#ExportCustomersTiers) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/export_customers_tiers | Export customers' tier data
@@ -69,7 +69,7 @@ Method | HTTP request | Description
[**GetCampaignTemplates**](ManagementApi.md#GetCampaignTemplates) | **Get** /v1/campaign_templates | List campaign templates
[**GetCampaigns**](ManagementApi.md#GetCampaigns) | **Get** /v1/applications/{applicationId}/campaigns | List campaigns
[**GetChanges**](ManagementApi.md#GetChanges) | **Get** /v1/changes | Get audit logs for an account
-[**GetCollection**](ManagementApi.md#GetCollection) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Get collection
+[**GetCollection**](ManagementApi.md#GetCollection) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Get campaign-level collection
[**GetCollectionItems**](ManagementApi.md#GetCollectionItems) | **Get** /v1/collections/{collectionId}/items | Get collection items
[**GetCouponsWithoutTotalCount**](ManagementApi.md#GetCouponsWithoutTotalCount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/no_total | List coupons
[**GetCustomerActivityReport**](ManagementApi.md#GetCustomerActivityReport) | **Get** /v1/applications/{applicationId}/customer_activity_reports/{customerId} | Get customer's activity report
@@ -88,21 +88,20 @@ Method | HTTP request | Description
[**GetLoyaltyProgramTransactions**](ManagementApi.md#GetLoyaltyProgramTransactions) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/transactions | List loyalty program transactions
[**GetLoyaltyPrograms**](ManagementApi.md#GetLoyaltyPrograms) | **Get** /v1/loyalty_programs | List loyalty programs
[**GetLoyaltyStatistics**](ManagementApi.md#GetLoyaltyStatistics) | **Get** /v1/loyalty_programs/{loyaltyProgramId}/statistics | Get loyalty program statistics
-[**GetNotificationWebhook**](ManagementApi.md#GetNotificationWebhook) | **Get** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Get notification about campaign-related changes
-[**GetNotificationWebhooks**](ManagementApi.md#GetNotificationWebhooks) | **Get** /v1/applications/{applicationId}/notification_webhooks | List notifications about campaign-related changes
[**GetReferralsWithoutTotalCount**](ManagementApi.md#GetReferralsWithoutTotalCount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List referrals
[**GetRole**](ManagementApi.md#GetRole) | **Get** /v1/roles/{roleId} | Get role
[**GetRuleset**](ManagementApi.md#GetRuleset) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId} | Get ruleset
[**GetRulesets**](ManagementApi.md#GetRulesets) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets | List campaign rulesets
+[**GetStore**](ManagementApi.md#GetStore) | **Get** /v1/applications/{applicationId}/stores/{storeId} | Get store
[**GetUser**](ManagementApi.md#GetUser) | **Get** /v1/users/{userId} | Get user
[**GetUsers**](ManagementApi.md#GetUsers) | **Get** /v1/users | List users in account
[**GetWebhook**](ManagementApi.md#GetWebhook) | **Get** /v1/webhooks/{webhookId} | Get webhook
[**GetWebhookActivationLogs**](ManagementApi.md#GetWebhookActivationLogs) | **Get** /v1/webhook_activation_logs | List webhook activation log entries
[**GetWebhookLogs**](ManagementApi.md#GetWebhookLogs) | **Get** /v1/webhook_logs | List webhook log entries
[**GetWebhooks**](ManagementApi.md#GetWebhooks) | **Get** /v1/webhooks | List webhooks
-[**ImportAccountCollection**](ManagementApi.md#ImportAccountCollection) | **Post** /v1/collections/{collectionId}/import | Import data in existing account-level collection
+[**ImportAccountCollection**](ManagementApi.md#ImportAccountCollection) | **Post** /v1/collections/{collectionId}/import | Import data into existing account-level collection
[**ImportAllowedList**](ManagementApi.md#ImportAllowedList) | **Post** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute
-[**ImportCollection**](ManagementApi.md#ImportCollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data in existing collection
+[**ImportCollection**](ManagementApi.md#ImportCollection) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection
[**ImportCoupons**](ManagementApi.md#ImportCoupons) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons
[**ImportLoyaltyCards**](ManagementApi.md#ImportLoyaltyCards) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/import_cards | Import loyalty cards
[**ImportLoyaltyCustomersTiers**](ManagementApi.md#ImportLoyaltyCustomersTiers) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/import_customers_tiers | Import customers into loyalty tiers
@@ -111,8 +110,9 @@ Method | HTTP request | Description
[**ImportReferrals**](ManagementApi.md#ImportReferrals) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals | Import referrals
[**ListAccountCollections**](ManagementApi.md#ListAccountCollections) | **Get** /v1/collections | List collections in account
[**ListCatalogItems**](ManagementApi.md#ListCatalogItems) | **Get** /v1/catalogs/{catalogId}/items | List items in a catalog
-[**ListCollections**](ManagementApi.md#ListCollections) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections
-[**ListCollectionsInApplication**](ManagementApi.md#ListCollectionsInApplication) | **Get** /v1/applications/{applicationId}/collections | List collections in application
+[**ListCollections**](ManagementApi.md#ListCollections) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign
+[**ListCollectionsInApplication**](ManagementApi.md#ListCollectionsInApplication) | **Get** /v1/applications/{applicationId}/collections | List collections in Application
+[**ListStores**](ManagementApi.md#ListStores) | **Get** /v1/applications/{applicationId}/stores | List stores
[**NotificationActivation**](ManagementApi.md#NotificationActivation) | **Put** /v1/notifications/{notificationId}/activation | Activate or deactivate notification
[**PostAddedDeductedPointsNotification**](ManagementApi.md#PostAddedDeductedPointsNotification) | **Post** /v1/loyalty_programs/{loyaltyProgramId}/notifications/added_deducted_points | Create notification about added or deducted loyalty points
[**PostCatalogsStrikethroughNotification**](ManagementApi.md#PostCatalogsStrikethroughNotification) | **Post** /v1/applications/{applicationId}/catalogs/notifications/strikethrough | Create strikethrough notification
@@ -126,12 +126,12 @@ Method | HTTP request | Description
[**UpdateAdditionalCost**](ManagementApi.md#UpdateAdditionalCost) | **Put** /v1/additional_costs/{additionalCostId} | Update additional cost
[**UpdateAttribute**](ManagementApi.md#UpdateAttribute) | **Put** /v1/attributes/{attributeId} | Update custom attribute
[**UpdateCampaign**](ManagementApi.md#UpdateCampaign) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId} | Update campaign
-[**UpdateCollection**](ManagementApi.md#UpdateCollection) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update collection description
+[**UpdateCollection**](ManagementApi.md#UpdateCollection) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Update campaign-level collection's description
[**UpdateCoupon**](ManagementApi.md#UpdateCoupon) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Update coupon
[**UpdateCouponBatch**](ManagementApi.md#UpdateCouponBatch) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Update coupons
[**UpdateLoyaltyCard**](ManagementApi.md#UpdateLoyaltyCard) | **Put** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} | Update loyalty card status
-[**UpdateNotificationWebhook**](ManagementApi.md#UpdateNotificationWebhook) | **Put** /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId} | Update notification about campaign-related changes
[**UpdateReferral**](ManagementApi.md#UpdateReferral) | **Put** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Update referral
+[**UpdateStore**](ManagementApi.md#UpdateStore) | **Put** /v1/applications/{applicationId}/stores/{storeId} | Update store
@@ -438,7 +438,7 @@ Name | Type | Description | Notes
> Collection CreateCollection(ctx, applicationId, campaignId).Body(body).Execute()
-Create collection
+Create campaign-level collection
@@ -482,7 +482,7 @@ Name | Type | Description | Notes
## CreateCoupons
-> InlineResponse2009 CreateCoupons(ctx, applicationId, campaignId).Body(body).Silent(silent).Execute()
+> InlineResponse2008 CreateCoupons(ctx, applicationId, campaignId).Body(body).Silent(silent).Execute()
Create coupons
@@ -511,7 +511,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2009**](inline_response_200_9.md)
+[**InlineResponse2008**](inline_response_200_8.md)
### Authorization
@@ -575,7 +575,7 @@ Name | Type | Description | Notes
## CreateCouponsForMultipleRecipients
-> InlineResponse2009 CreateCouponsForMultipleRecipients(ctx, applicationId, campaignId).Body(body).Silent(silent).Execute()
+> InlineResponse2008 CreateCouponsForMultipleRecipients(ctx, applicationId, campaignId).Body(body).Silent(silent).Execute()
Create coupons for multiple recipients
@@ -604,7 +604,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2009**](inline_response_200_9.md)
+[**InlineResponse2008**](inline_response_200_8.md)
### Authorization
@@ -620,35 +620,30 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## CreateNotificationWebhook
+## CreatePasswordRecoveryEmail
-> NotificationWebhook CreateNotificationWebhook(ctx, applicationId).Body(body).Execute()
+> NewPasswordEmail CreatePasswordRecoveryEmail(ctx).Body(body).Execute()
-Create notification about campaign-related changes
+Request a password reset
### Path Parameters
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
### Other Parameters
-Other parameters are passed through a pointer to a apiCreateNotificationWebhookRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiCreatePasswordRecoveryEmailRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
- **body** | [**NewNotificationWebhook**](NewNotificationWebhook.md) | body |
+ **body** | [**NewPasswordEmail**](NewPasswordEmail.md) | body |
### Return type
-[**NotificationWebhook**](NotificationWebhook.md)
+[**NewPasswordEmail**](NewPasswordEmail.md)
### Authorization
@@ -664,11 +659,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## CreatePasswordRecoveryEmail
+## CreateSession
-> NewPasswordEmail CreatePasswordRecoveryEmail(ctx).Body(body).Execute()
+> Session CreateSession(ctx).Body(body).Execute()
-Request a password reset
+Create session
@@ -678,16 +673,16 @@ Request a password reset
### Other Parameters
-Other parameters are passed through a pointer to a apiCreatePasswordRecoveryEmailRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiCreateSessionRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**NewPasswordEmail**](NewPasswordEmail.md) | body |
+ **body** | [**LoginParams**](LoginParams.md) | body |
### Return type
-[**NewPasswordEmail**](NewPasswordEmail.md)
+[**Session**](Session.md)
### Authorization
@@ -703,30 +698,35 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## CreateSession
+## CreateStore
-> Session CreateSession(ctx).Body(body).Execute()
+> Store CreateStore(ctx, applicationId).Body(body).Execute()
-Create session
+Create store
### Path Parameters
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
### Other Parameters
-Other parameters are passed through a pointer to a apiCreateSessionRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiCreateStoreRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**LoginParams**](LoginParams.md) | body |
+
+ **body** | [**NewStore**](NewStore.md) | body |
### Return type
-[**Session**](Session.md)
+[**Store**](Store.md)
### Authorization
@@ -802,7 +802,7 @@ Delete account-level collection
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -880,7 +880,7 @@ Name | Type | Description | Notes
> DeleteCollection(ctx, applicationId, campaignId, collectionId).Execute()
-Delete collection
+Delete campaign-level collection
@@ -892,7 +892,7 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
### Other Parameters
@@ -1073,11 +1073,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## DeleteNotificationWebhook
+## DeleteReferral
-> DeleteNotificationWebhook(ctx, applicationId, notificationWebhookId).Execute()
+> DeleteReferral(ctx, applicationId, campaignId, referralId).Execute()
-Delete notification about campaign-related changes
+Delete referral
@@ -1088,11 +1088,12 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**notificationWebhookId** | **int32** | The ID of the webhook. Get it with the appropriate _List notifications_ endpoint. |
+**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
+**referralId** | **string** | The ID of the referral code. |
### Other Parameters
-Other parameters are passed through a pointer to a apiDeleteNotificationWebhookRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiDeleteReferralRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -1100,6 +1101,7 @@ Name | Type | Description | Notes
+
### Return type
(empty response body)
@@ -1118,11 +1120,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## DeleteReferral
+## DeleteStore
-> DeleteReferral(ctx, applicationId, campaignId, referralId).Execute()
+> DeleteStore(ctx, applicationId, storeId).Execute()
-Delete referral
+Delete store
@@ -1133,12 +1135,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**referralId** | **string** | The ID of the referral code. |
+**storeId** | **string** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
### Other Parameters
-Other parameters are passed through a pointer to a apiDeleteReferralRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiDeleteStoreRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -1146,7 +1147,6 @@ Name | Type | Description | Notes
-
### Return type
(empty response body)
@@ -1158,7 +1158,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
-- **Accept**: Not defined
+- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
@@ -1214,7 +1214,7 @@ Export account-level collection's items
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -1247,7 +1247,7 @@ Name | Type | Description | Notes
> string ExportCollectionItems(ctx, applicationId, campaignId, collectionId).Execute()
-Export a collection's items
+Export campaign-level collection's items
@@ -1259,7 +1259,7 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
### Other Parameters
@@ -1812,7 +1812,7 @@ Name | Type | Description | Notes
## GetAccessLogsWithoutTotalCount
-> InlineResponse20020 GetAccessLogsWithoutTotalCount(ctx, applicationId).RangeStart(rangeStart).RangeEnd(rangeEnd).Path(path).Method(method).Status(status).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20019 GetAccessLogsWithoutTotalCount(ctx, applicationId).RangeStart(rangeStart).RangeEnd(rangeEnd).Path(path).Method(method).Status(status).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
Get access logs for Application
@@ -1845,7 +1845,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20020**](inline_response_200_20.md)
+[**InlineResponse20019**](inline_response_200_19.md)
### Authorization
@@ -1961,7 +1961,7 @@ Get account-level collection
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -2035,7 +2035,7 @@ Name | Type | Description | Notes
## GetAdditionalCosts
-> InlineResponse20035 GetAdditionalCosts(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20034 GetAdditionalCosts(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
List additional costs
@@ -2058,7 +2058,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20035**](inline_response_200_35.md)
+[**InlineResponse20034**](inline_response_200_34.md)
### Authorization
@@ -2076,7 +2076,7 @@ Name | Type | Description | Notes
## GetAllAccessLogs
-> InlineResponse20021 GetAllAccessLogs(ctx).RangeStart(rangeStart).RangeEnd(rangeEnd).Path(path).Method(method).Status(status).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20020 GetAllAccessLogs(ctx).RangeStart(rangeStart).RangeEnd(rangeEnd).Path(path).Method(method).Status(status).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
List access logs
@@ -2104,7 +2104,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20021**](inline_response_200_21.md)
+[**InlineResponse20020**](inline_response_200_20.md)
### Authorization
@@ -2122,7 +2122,7 @@ Name | Type | Description | Notes
## GetAllRoles
-> InlineResponse20043 GetAllRoles(ctx).Execute()
+> InlineResponse20042 GetAllRoles(ctx).Execute()
List roles
@@ -2139,7 +2139,7 @@ Other parameters are passed through a pointer to a apiGetAllRolesRequest struct
### Return type
-[**InlineResponse20043**](inline_response_200_43.md)
+[**InlineResponse20042**](inline_response_200_42.md)
### Authorization
@@ -2288,7 +2288,7 @@ Name | Type | Description | Notes
## GetApplicationCustomerFriends
-> InlineResponse20032 GetApplicationCustomerFriends(ctx, applicationId, integrationId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Execute()
+> InlineResponse20031 GetApplicationCustomerFriends(ctx, applicationId, integrationId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Execute()
List friends referred by customer profile
@@ -2319,7 +2319,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20032**](inline_response_200_32.md)
+[**InlineResponse20031**](inline_response_200_31.md)
### Authorization
@@ -2337,7 +2337,7 @@ Name | Type | Description | Notes
## GetApplicationCustomers
-> InlineResponse20023 GetApplicationCustomers(ctx, applicationId).IntegrationId(integrationId).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Execute()
+> InlineResponse20022 GetApplicationCustomers(ctx, applicationId).IntegrationId(integrationId).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Execute()
List application's customers
@@ -2366,7 +2366,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20023**](inline_response_200_23.md)
+[**InlineResponse20022**](inline_response_200_22.md)
### Authorization
@@ -2384,7 +2384,7 @@ Name | Type | Description | Notes
## GetApplicationCustomersByAttributes
-> InlineResponse20024 GetApplicationCustomersByAttributes(ctx, applicationId).Body(body).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Execute()
+> InlineResponse20023 GetApplicationCustomersByAttributes(ctx, applicationId).Body(body).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Execute()
List application customers matching the given attributes
@@ -2413,7 +2413,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20024**](inline_response_200_24.md)
+[**InlineResponse20023**](inline_response_200_23.md)
### Authorization
@@ -2431,7 +2431,7 @@ Name | Type | Description | Notes
## GetApplicationEventTypes
-> InlineResponse20030 GetApplicationEventTypes(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20029 GetApplicationEventTypes(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
List Applications event types
@@ -2459,7 +2459,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20030**](inline_response_200_30.md)
+[**InlineResponse20029**](inline_response_200_29.md)
### Authorization
@@ -2477,7 +2477,7 @@ Name | Type | Description | Notes
## GetApplicationEventsWithoutTotalCount
-> InlineResponse20029 GetApplicationEventsWithoutTotalCount(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Type_(type_).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Session(session).Profile(profile).CustomerName(customerName).CustomerEmail(customerEmail).CouponCode(couponCode).ReferralCode(referralCode).RuleQuery(ruleQuery).CampaignQuery(campaignQuery).Execute()
+> InlineResponse20028 GetApplicationEventsWithoutTotalCount(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Type_(type_).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Session(session).Profile(profile).CustomerName(customerName).CustomerEmail(customerEmail).CouponCode(couponCode).ReferralCode(referralCode).RuleQuery(ruleQuery).CampaignQuery(campaignQuery).Execute()
List Applications events
@@ -2516,7 +2516,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20029**](inline_response_200_29.md)
+[**InlineResponse20028**](inline_response_200_28.md)
### Authorization
@@ -2579,7 +2579,7 @@ Name | Type | Description | Notes
## GetApplicationSessions
-> InlineResponse20028 GetApplicationSessions(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Profile(profile).State(state).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Coupon(coupon).Referral(referral).IntegrationId(integrationId).Execute()
+> InlineResponse20027 GetApplicationSessions(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).Profile(profile).State(state).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Coupon(coupon).Referral(referral).IntegrationId(integrationId).Execute()
List Application sessions
@@ -2614,7 +2614,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20028**](inline_response_200_28.md)
+[**InlineResponse20027**](inline_response_200_27.md)
### Authorization
@@ -2716,7 +2716,7 @@ Name | Type | Description | Notes
## GetAttributes
-> InlineResponse20033 GetAttributes(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Entity(entity).Execute()
+> InlineResponse20032 GetAttributes(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Entity(entity).Execute()
List custom attributes
@@ -2740,7 +2740,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20033**](inline_response_200_33.md)
+[**InlineResponse20032**](inline_response_200_32.md)
### Authorization
@@ -2758,7 +2758,7 @@ Name | Type | Description | Notes
## GetAudiences
-> InlineResponse20031 GetAudiences(ctx).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Execute()
+> InlineResponse20030 GetAudiences(ctx).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Execute()
List audiences
@@ -2782,7 +2782,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20031**](inline_response_200_31.md)
+[**InlineResponse20030**](inline_response_200_30.md)
### Authorization
@@ -2845,7 +2845,7 @@ Name | Type | Description | Notes
## GetCampaignAnalytics
-> InlineResponse20022 GetCampaignAnalytics(ctx, applicationId, campaignId).RangeStart(rangeStart).RangeEnd(rangeEnd).Granularity(granularity).Execute()
+> InlineResponse20021 GetCampaignAnalytics(ctx, applicationId, campaignId).RangeStart(rangeStart).RangeEnd(rangeEnd).Granularity(granularity).Execute()
Get analytics of campaigns
@@ -2875,7 +2875,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20022**](inline_response_200_22.md)
+[**InlineResponse20021**](inline_response_200_21.md)
### Authorization
@@ -2941,7 +2941,7 @@ Name | Type | Description | Notes
## GetCampaignTemplates
-> InlineResponse20012 GetCampaignTemplates(ctx).PageSize(pageSize).Skip(skip).Sort(sort).State(state).Name(name).Tags(tags).UserId(userId).Execute()
+> InlineResponse20011 GetCampaignTemplates(ctx).PageSize(pageSize).Skip(skip).Sort(sort).State(state).Name(name).Tags(tags).UserId(userId).Execute()
List campaign templates
@@ -2968,7 +2968,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20012**](inline_response_200_12.md)
+[**InlineResponse20011**](inline_response_200_11.md)
### Authorization
@@ -3040,7 +3040,7 @@ Name | Type | Description | Notes
## GetChanges
-> InlineResponse20041 GetChanges(ctx).PageSize(pageSize).Skip(skip).Sort(sort).ApplicationId(applicationId).EntityPath(entityPath).UserId(userId).CreatedBefore(createdBefore).CreatedAfter(createdAfter).WithTotalResultSize(withTotalResultSize).ManagementKeyId(managementKeyId).IncludeOld(includeOld).Execute()
+> InlineResponse20040 GetChanges(ctx).PageSize(pageSize).Skip(skip).Sort(sort).ApplicationId(applicationId).EntityPath(entityPath).UserId(userId).CreatedBefore(createdBefore).CreatedAfter(createdAfter).WithTotalResultSize(withTotalResultSize).ManagementKeyId(managementKeyId).IncludeOld(includeOld).Execute()
Get audit logs for an account
@@ -3071,7 +3071,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20041**](inline_response_200_41.md)
+[**InlineResponse20040**](inline_response_200_40.md)
### Authorization
@@ -3091,7 +3091,7 @@ Name | Type | Description | Notes
> Collection GetCollection(ctx, applicationId, campaignId, collectionId).Execute()
-Get collection
+Get campaign-level collection
@@ -3103,7 +3103,7 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
### Other Parameters
@@ -3136,7 +3136,7 @@ Name | Type | Description | Notes
## GetCollectionItems
-> InlineResponse20018 GetCollectionItems(ctx, collectionId).PageSize(pageSize).Skip(skip).Execute()
+> InlineResponse20017 GetCollectionItems(ctx, collectionId).PageSize(pageSize).Skip(skip).Execute()
Get collection items
@@ -3148,7 +3148,7 @@ Get collection items
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -3163,7 +3163,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20018**](inline_response_200_18.md)
+[**InlineResponse20017**](inline_response_200_17.md)
### Authorization
@@ -3181,7 +3181,7 @@ Name | Type | Description | Notes
## GetCouponsWithoutTotalCount
-> InlineResponse20010 GetCouponsWithoutTotalCount(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).BatchId(batchId).ExactMatch(exactMatch).Execute()
+> InlineResponse2009 GetCouponsWithoutTotalCount(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).BatchId(batchId).ExactMatch(exactMatch).Execute()
List coupons
@@ -3220,7 +3220,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20010**](inline_response_200_10.md)
+[**InlineResponse2009**](inline_response_200_9.md)
### Authorization
@@ -3287,7 +3287,7 @@ Name | Type | Description | Notes
## GetCustomerActivityReportsWithoutTotalCount
-> InlineResponse20027 GetCustomerActivityReportsWithoutTotalCount(ctx, applicationId).RangeStart(rangeStart).RangeEnd(rangeEnd).PageSize(pageSize).Skip(skip).Sort(sort).Name(name).IntegrationId(integrationId).CampaignName(campaignName).AdvocateName(advocateName).Execute()
+> InlineResponse20026 GetCustomerActivityReportsWithoutTotalCount(ctx, applicationId).RangeStart(rangeStart).RangeEnd(rangeEnd).PageSize(pageSize).Skip(skip).Sort(sort).Name(name).IntegrationId(integrationId).CampaignName(campaignName).AdvocateName(advocateName).Execute()
Get Activity Reports for Application Customers
@@ -3321,7 +3321,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20027**](inline_response_200_27.md)
+[**InlineResponse20026**](inline_response_200_26.md)
### Authorization
@@ -3430,7 +3430,7 @@ Name | Type | Description | Notes
## GetCustomerProfiles
-> InlineResponse20026 GetCustomerProfiles(ctx).PageSize(pageSize).Skip(skip).Sandbox(sandbox).Execute()
+> InlineResponse20025 GetCustomerProfiles(ctx).PageSize(pageSize).Skip(skip).Sandbox(sandbox).Execute()
List customer profiles
@@ -3453,7 +3453,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20026**](inline_response_200_26.md)
+[**InlineResponse20025**](inline_response_200_25.md)
### Authorization
@@ -3471,7 +3471,7 @@ Name | Type | Description | Notes
## GetCustomersByAttributes
-> InlineResponse20025 GetCustomersByAttributes(ctx).Body(body).PageSize(pageSize).Skip(skip).Sandbox(sandbox).Execute()
+> InlineResponse20024 GetCustomersByAttributes(ctx).Body(body).PageSize(pageSize).Skip(skip).Sandbox(sandbox).Execute()
List customer profiles matching the given attributes
@@ -3495,7 +3495,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20025**](inline_response_200_25.md)
+[**InlineResponse20024**](inline_response_200_24.md)
### Authorization
@@ -3513,7 +3513,7 @@ Name | Type | Description | Notes
## GetEventTypes
-> InlineResponse20039 GetEventTypes(ctx).Name(name).IncludeOldVersions(includeOldVersions).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20038 GetEventTypes(ctx).Name(name).IncludeOldVersions(includeOldVersions).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
List event types
@@ -3538,7 +3538,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20039**](inline_response_200_39.md)
+[**InlineResponse20038**](inline_response_200_38.md)
### Authorization
@@ -3556,7 +3556,7 @@ Name | Type | Description | Notes
## GetExports
-> InlineResponse20042 GetExports(ctx).PageSize(pageSize).Skip(skip).ApplicationId(applicationId).CampaignId(campaignId).Entity(entity).Execute()
+> InlineResponse20041 GetExports(ctx).PageSize(pageSize).Skip(skip).ApplicationId(applicationId).CampaignId(campaignId).Entity(entity).Execute()
Get exports
@@ -3581,7 +3581,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20042**](inline_response_200_42.md)
+[**InlineResponse20041**](inline_response_200_41.md)
### Authorization
@@ -3644,7 +3644,7 @@ Name | Type | Description | Notes
## GetLoyaltyCardTransactionLogs
-> InlineResponse20016 GetLoyaltyCardTransactionLogs(ctx, loyaltyProgramId, loyaltyCardId).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).SubledgerId(subledgerId).Execute()
+> InlineResponse20015 GetLoyaltyCardTransactionLogs(ctx, loyaltyProgramId, loyaltyCardId).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).SubledgerId(subledgerId).Execute()
List card's transactions
@@ -3676,7 +3676,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20016**](inline_response_200_16.md)
+[**InlineResponse20015**](inline_response_200_15.md)
### Authorization
@@ -3694,7 +3694,7 @@ Name | Type | Description | Notes
## GetLoyaltyCards
-> InlineResponse20015 GetLoyaltyCards(ctx, loyaltyProgramId).PageSize(pageSize).Skip(skip).Sort(sort).Identifier(identifier).ProfileId(profileId).Execute()
+> InlineResponse20014 GetLoyaltyCards(ctx, loyaltyProgramId).PageSize(pageSize).Skip(skip).Sort(sort).Identifier(identifier).ProfileId(profileId).Execute()
List loyalty cards
@@ -3724,7 +3724,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20015**](inline_response_200_15.md)
+[**InlineResponse20014**](inline_response_200_14.md)
### Authorization
@@ -3830,7 +3830,7 @@ Name | Type | Description | Notes
## GetLoyaltyProgramTransactions
-> InlineResponse20014 GetLoyaltyProgramTransactions(ctx, loyaltyProgramId).LoyaltyTransactionType(loyaltyTransactionType).SubledgerId(subledgerId).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).Execute()
+> InlineResponse20013 GetLoyaltyProgramTransactions(ctx, loyaltyProgramId).LoyaltyTransactionType(loyaltyTransactionType).SubledgerId(subledgerId).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).Execute()
List loyalty program transactions
@@ -3861,7 +3861,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20014**](inline_response_200_14.md)
+[**InlineResponse20013**](inline_response_200_13.md)
### Authorization
@@ -3879,7 +3879,7 @@ Name | Type | Description | Notes
## GetLoyaltyPrograms
-> InlineResponse20013 GetLoyaltyPrograms(ctx).Execute()
+> InlineResponse20012 GetLoyaltyPrograms(ctx).Execute()
List loyalty programs
@@ -3896,7 +3896,7 @@ Other parameters are passed through a pointer to a apiGetLoyaltyProgramsRequest
### Return type
-[**InlineResponse20013**](inline_response_200_13.md)
+[**InlineResponse20012**](inline_response_200_12.md)
### Authorization
@@ -3914,7 +3914,7 @@ Other parameters are passed through a pointer to a apiGetLoyaltyProgramsRequest
## GetLoyaltyStatistics
-> LoyaltyStatistics GetLoyaltyStatistics(ctx, loyaltyProgramId).Execute()
+> LoyaltyDashboardData GetLoyaltyStatistics(ctx, loyaltyProgramId).Execute()
Get loyalty program statistics
@@ -3939,7 +3939,7 @@ Name | Type | Description | Notes
### Return type
-[**LoyaltyStatistics**](LoyaltyStatistics.md)
+[**LoyaltyDashboardData**](LoyaltyDashboardData.md)
### Authorization
@@ -3955,11 +3955,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## GetNotificationWebhook
+## GetReferralsWithoutTotalCount
-> NotificationWebhook GetNotificationWebhook(ctx, applicationId, notificationWebhookId).Execute()
+> InlineResponse20010 GetReferralsWithoutTotalCount(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Code(code).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).Advocate(advocate).Execute()
-Get notification about campaign-related changes
+List referrals
@@ -3970,21 +3970,30 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**notificationWebhookId** | **int32** | The ID of the webhook. Get it with the appropriate _List notifications_ endpoint. |
+**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
### Other Parameters
-Other parameters are passed through a pointer to a apiGetNotificationWebhookRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiGetReferralsWithoutTotalCountRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **pageSize** | **int32** | The number of items in this response. | [default to 1000]
+ **skip** | **int32** | The number of items to skip when paging through large result sets. |
+ **sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
+ **code** | **string** | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. |
+ **createdBefore** | **time.Time** | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any timezone. Talon.One will convert to UTC internally. |
+ **createdAfter** | **time.Time** | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any timezone. Talon.One will convert to UTC internally. |
+ **valid** | **string** | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. |
+ **usable** | **string** | Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. |
+ **advocate** | **string** | Filter results by match with a profile id specified in the referral's AdvocateProfileIntegrationId field |
### Return type
-[**NotificationWebhook**](NotificationWebhook.md)
+[**InlineResponse20010**](inline_response_200_10.md)
### Authorization
@@ -4000,11 +4009,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## GetNotificationWebhooks
+## GetRole
-> InlineResponse2007 GetNotificationWebhooks(ctx, applicationId).Execute()
+> Role GetRole(ctx, roleId).Execute()
-List notifications about campaign-related changes
+Get role
@@ -4014,11 +4023,11 @@ List notifications about campaign-related changes
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
+**roleId** | **int32** | The ID of role. |
### Other Parameters
-Other parameters are passed through a pointer to a apiGetNotificationWebhooksRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiGetRoleRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -4027,7 +4036,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2007**](inline_response_200_7.md)
+[**Role**](Role.md)
### Authorization
@@ -4043,11 +4052,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## GetReferralsWithoutTotalCount
+## GetRuleset
-> InlineResponse20011 GetReferralsWithoutTotalCount(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Code(code).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).Advocate(advocate).Execute()
+> Ruleset GetRuleset(ctx, applicationId, campaignId, rulesetId).Execute()
-List referrals
+Get ruleset
@@ -4059,72 +4068,22 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
+**rulesetId** | **int32** | The ID of the ruleset. |
### Other Parameters
-Other parameters are passed through a pointer to a apiGetReferralsWithoutTotalCountRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
- **pageSize** | **int32** | The number of items in this response. | [default to 1000]
- **skip** | **int32** | The number of items to skip when paging through large result sets. |
- **sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
- **code** | **string** | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. |
- **createdBefore** | **time.Time** | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any timezone. Talon.One will convert to UTC internally. |
- **createdAfter** | **time.Time** | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any timezone. Talon.One will convert to UTC internally. |
- **valid** | **string** | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future. |
- **usable** | **string** | Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. |
- **advocate** | **string** | Filter results by match with a profile id specified in the referral's AdvocateProfileIntegrationId field |
-
-### Return type
-
-[**InlineResponse20011**](inline_response_200_11.md)
-
-### Authorization
-
-[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
-[[Back to Model list]](../README.md#documentation-for-models)
-[[Back to README]](../README.md)
-
-
-## GetRole
-
-> Role GetRole(ctx, roleId).Execute()
-
-Get role
-
-
-
-### Path Parameters
+Other parameters are passed through a pointer to a apiGetRulesetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**roleId** | **int32** | The ID of role. |
-### Other Parameters
-Other parameters are passed through a pointer to a apiGetRoleRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
### Return type
-[**Role**](Role.md)
+[**Ruleset**](Ruleset.md)
### Authorization
@@ -4140,11 +4099,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## GetRuleset
+## GetRulesets
-> Ruleset GetRuleset(ctx, applicationId, campaignId, rulesetId).Execute()
+> InlineResponse2007 GetRulesets(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
-Get ruleset
+List campaign rulesets
@@ -4156,22 +4115,23 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**rulesetId** | **int32** | The ID of the ruleset. |
### Other Parameters
-Other parameters are passed through a pointer to a apiGetRulesetRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiGetRulesetsRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
+ **pageSize** | **int32** | The number of items in this response. | [default to 1000]
+ **skip** | **int32** | The number of items to skip when paging through large result sets. |
+ **sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
### Return type
-[**Ruleset**](Ruleset.md)
+[**InlineResponse2007**](inline_response_200_7.md)
### Authorization
@@ -4187,11 +4147,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## GetRulesets
+## GetStore
-> InlineResponse2008 GetRulesets(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> Store GetStore(ctx, applicationId, storeId).Execute()
-List campaign rulesets
+Get store
@@ -4202,24 +4162,21 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
+**storeId** | **string** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
### Other Parameters
-Other parameters are passed through a pointer to a apiGetRulesetsRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiGetStoreRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **pageSize** | **int32** | The number of items in this response. | [default to 1000]
- **skip** | **int32** | The number of items to skip when paging through large result sets. |
- **sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
### Return type
-[**InlineResponse2008**](inline_response_200_8.md)
+[**Store**](Store.md)
### Authorization
@@ -4280,7 +4237,7 @@ Name | Type | Description | Notes
## GetUsers
-> InlineResponse20040 GetUsers(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
+> InlineResponse20039 GetUsers(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Execute()
List users in account
@@ -4303,7 +4260,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20040**](inline_response_200_40.md)
+[**InlineResponse20039**](inline_response_200_39.md)
### Authorization
@@ -4364,7 +4321,7 @@ Name | Type | Description | Notes
## GetWebhookActivationLogs
-> InlineResponse20037 GetWebhookActivationLogs(ctx).PageSize(pageSize).Skip(skip).Sort(sort).IntegrationRequestUuid(integrationRequestUuid).WebhookId(webhookId).ApplicationId(applicationId).CampaignId(campaignId).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Execute()
+> InlineResponse20036 GetWebhookActivationLogs(ctx).PageSize(pageSize).Skip(skip).Sort(sort).IntegrationRequestUuid(integrationRequestUuid).WebhookId(webhookId).ApplicationId(applicationId).CampaignId(campaignId).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Execute()
List webhook activation log entries
@@ -4393,7 +4350,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20037**](inline_response_200_37.md)
+[**InlineResponse20036**](inline_response_200_36.md)
### Authorization
@@ -4411,7 +4368,7 @@ Name | Type | Description | Notes
## GetWebhookLogs
-> InlineResponse20038 GetWebhookLogs(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Status(status).WebhookId(webhookId).ApplicationId(applicationId).CampaignId(campaignId).RequestUuid(requestUuid).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Execute()
+> InlineResponse20037 GetWebhookLogs(ctx).PageSize(pageSize).Skip(skip).Sort(sort).Status(status).WebhookId(webhookId).ApplicationId(applicationId).CampaignId(campaignId).RequestUuid(requestUuid).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Execute()
List webhook log entries
@@ -4441,7 +4398,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20038**](inline_response_200_38.md)
+[**InlineResponse20037**](inline_response_200_37.md)
### Authorization
@@ -4459,7 +4416,7 @@ Name | Type | Description | Notes
## GetWebhooks
-> InlineResponse20036 GetWebhooks(ctx).ApplicationIds(applicationIds).Sort(sort).PageSize(pageSize).Skip(skip).CreationType(creationType).Visibility(visibility).OutgoingIntegrationsTypeId(outgoingIntegrationsTypeId).Title(title).Execute()
+> InlineResponse20035 GetWebhooks(ctx).ApplicationIds(applicationIds).Sort(sort).PageSize(pageSize).Skip(skip).CreationType(creationType).Visibility(visibility).OutgoingIntegrationsTypeId(outgoingIntegrationsTypeId).Title(title).Execute()
List webhooks
@@ -4487,7 +4444,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20036**](inline_response_200_36.md)
+[**InlineResponse20035**](inline_response_200_35.md)
### Authorization
@@ -4507,7 +4464,7 @@ Name | Type | Description | Notes
> Import ImportAccountCollection(ctx, collectionId).UpFile(upFile).Execute()
-Import data in existing account-level collection
+Import data into existing account-level collection
@@ -4517,7 +4474,7 @@ Import data in existing account-level collection
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -4595,7 +4552,7 @@ Name | Type | Description | Notes
> Import ImportCollection(ctx, applicationId, campaignId, collectionId).UpFile(upFile).Execute()
-Import data in existing collection
+Import data into existing campaign-level collection
@@ -4607,7 +4564,7 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
### Other Parameters
@@ -4909,7 +4866,7 @@ Name | Type | Description | Notes
## ListAccountCollections
-> InlineResponse20017 ListAccountCollections(ctx).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
+> InlineResponse20016 ListAccountCollections(ctx).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
List collections in account
@@ -4930,11 +4887,11 @@ Name | Type | Description | Notes
**skip** | **int32** | The number of items to skip when paging through large result sets. |
**sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
**withTotalResultSize** | **bool** | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. |
- **name** | **string** | Filter by the name of the Collection. |
+ **name** | **string** | Filter by collection name. |
### Return type
-[**InlineResponse20017**](inline_response_200_17.md)
+[**InlineResponse20016**](inline_response_200_16.md)
### Authorization
@@ -4952,7 +4909,7 @@ Name | Type | Description | Notes
## ListCatalogItems
-> InlineResponse20034 ListCatalogItems(ctx, catalogId).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Sku(sku).Execute()
+> InlineResponse20033 ListCatalogItems(ctx, catalogId).PageSize(pageSize).Skip(skip).WithTotalResultSize(withTotalResultSize).Sku(sku).Execute()
List items in a catalog
@@ -4981,7 +4938,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20034**](inline_response_200_34.md)
+[**InlineResponse20033**](inline_response_200_33.md)
### Authorization
@@ -4999,9 +4956,9 @@ Name | Type | Description | Notes
## ListCollections
-> InlineResponse20019 ListCollections(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
+> InlineResponse20018 ListCollections(ctx, applicationId, campaignId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
-List collections
+List collections in campaign
@@ -5027,11 +4984,11 @@ Name | Type | Description | Notes
**skip** | **int32** | The number of items to skip when paging through large result sets. |
**sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
**withTotalResultSize** | **bool** | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. |
- **name** | **string** | Filter by the name of the Collection. |
+ **name** | **string** | Filter by collection name. |
### Return type
-[**InlineResponse20019**](inline_response_200_19.md)
+[**InlineResponse20018**](inline_response_200_18.md)
### Authorization
@@ -5049,9 +5006,9 @@ Name | Type | Description | Notes
## ListCollectionsInApplication
-> InlineResponse20019 ListCollectionsInApplication(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
+> InlineResponse20018 ListCollectionsInApplication(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).Name(name).Execute()
-List collections in application
+List collections in Application
@@ -5075,11 +5032,61 @@ Name | Type | Description | Notes
**skip** | **int32** | The number of items to skip when paging through large result sets. |
**sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
**withTotalResultSize** | **bool** | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. |
- **name** | **string** | Filter by the name of the Collection. |
+ **name** | **string** | Filter by collection name. |
### Return type
-[**InlineResponse20019**](inline_response_200_19.md)
+[**InlineResponse20018**](inline_response_200_18.md)
+
+### Authorization
+
+[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## ListStores
+
+> InlineResponse20043 ListStores(ctx, applicationId).PageSize(pageSize).Skip(skip).Sort(sort).WithTotalResultSize(withTotalResultSize).CampaignId(campaignId).Name(name).IntegrationId(integrationId).Execute()
+
+List stores
+
+
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiListStoresRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+ **pageSize** | **int32** | The number of items in this response. | [default to 1000]
+ **skip** | **int32** | The number of items to skip when paging through large result sets. |
+ **sort** | **string** | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. |
+ **withTotalResultSize** | **bool** | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. |
+ **campaignId** | **float32** | Filter results by campaign. |
+ **name** | **string** | The name of the store. |
+ **integrationId** | **string** | The integration ID of the store. |
+
+### Return type
+
+[**InlineResponse20043**](inline_response_200_43.md)
### Authorization
@@ -5358,7 +5365,7 @@ Name | Type | Description | Notes
## SearchCouponsAdvancedApplicationWideWithoutTotalCount
-> InlineResponse20010 SearchCouponsAdvancedApplicationWideWithoutTotalCount(ctx, applicationId).Body(body).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).BatchId(batchId).ExactMatch(exactMatch).CampaignState(campaignState).Execute()
+> InlineResponse2009 SearchCouponsAdvancedApplicationWideWithoutTotalCount(ctx, applicationId).Body(body).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).BatchId(batchId).ExactMatch(exactMatch).CampaignState(campaignState).Execute()
List coupons that match the given attributes (without total count)
@@ -5397,7 +5404,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20010**](inline_response_200_10.md)
+[**InlineResponse2009**](inline_response_200_9.md)
### Authorization
@@ -5415,7 +5422,7 @@ Name | Type | Description | Notes
## SearchCouponsAdvancedWithoutTotalCount
-> InlineResponse20010 SearchCouponsAdvancedWithoutTotalCount(ctx, applicationId, campaignId).Body(body).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).ExactMatch(exactMatch).BatchId(batchId).Execute()
+> InlineResponse2009 SearchCouponsAdvancedWithoutTotalCount(ctx, applicationId, campaignId).Body(body).PageSize(pageSize).Skip(skip).Sort(sort).Value(value).CreatedBefore(createdBefore).CreatedAfter(createdAfter).Valid(valid).Usable(usable).ReferralId(referralId).RecipientIntegrationId(recipientIntegrationId).ExactMatch(exactMatch).BatchId(batchId).Execute()
List coupons that match the given attributes in campaign (without total count)
@@ -5455,7 +5462,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse20010**](inline_response_200_10.md)
+[**InlineResponse2009**](inline_response_200_9.md)
### Authorization
@@ -5531,7 +5538,7 @@ Update account-level collection
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
### Other Parameters
@@ -5699,7 +5706,7 @@ Name | Type | Description | Notes
> Collection UpdateCollection(ctx, applicationId, campaignId, collectionId).Body(body).Execute()
-Update collection description
+Update campaign-level collection's description
@@ -5711,7 +5718,7 @@ Name | Type | Description | Notes
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**collectionId** | **int32** | The ID of the collection. You can get it with the [List collection in account](#operation/listCollectionsInApplication) endpoint. |
+**collectionId** | **int32** | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
### Other Parameters
@@ -5883,11 +5890,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## UpdateNotificationWebhook
+## UpdateReferral
-> NotificationWebhook UpdateNotificationWebhook(ctx, applicationId, notificationWebhookId).Body(body).Execute()
+> Referral UpdateReferral(ctx, applicationId, campaignId, referralId).Body(body).Execute()
-Update notification about campaign-related changes
+Update referral
@@ -5898,22 +5905,24 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**notificationWebhookId** | **int32** | The ID of the webhook. Get it with the appropriate _List notifications_ endpoint. |
+**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
+**referralId** | **string** | The ID of the referral code. |
### Other Parameters
-Other parameters are passed through a pointer to a apiUpdateNotificationWebhookRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiUpdateReferralRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**NewNotificationWebhook**](NewNotificationWebhook.md) | body |
+
+ **body** | [**UpdateReferral**](UpdateReferral.md) | body |
### Return type
-[**NotificationWebhook**](NotificationWebhook.md)
+[**Referral**](Referral.md)
### Authorization
@@ -5929,11 +5938,11 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## UpdateReferral
+## UpdateStore
-> Referral UpdateReferral(ctx, applicationId, campaignId, referralId).Body(body).Execute()
+> Store UpdateStore(ctx, applicationId, storeId).Body(body).Execute()
-Update referral
+Update store
@@ -5944,24 +5953,22 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**applicationId** | **int32** | The ID of the Application. It is displayed in your Talon.One deployment URL. |
-**campaignId** | **int32** | The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-**referralId** | **string** | The ID of the referral code. |
+**storeId** | **string** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
### Other Parameters
-Other parameters are passed through a pointer to a apiUpdateReferralRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiUpdateStoreRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
- **body** | [**UpdateReferral**](UpdateReferral.md) | body |
+ **body** | [**NewStore**](NewStore.md) | body |
### Return type
-[**Referral**](Referral.md)
+[**Store**](Store.md)
### Authorization
diff --git a/docs/NewCustomerSessionV2.md b/docs/NewCustomerSessionV2.md
index 846c2d94..7270d062 100644
--- a/docs/NewCustomerSessionV2.md
+++ b/docs/NewCustomerSessionV2.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**EvaluableCampaignIds** | Pointer to **[]int32** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
**CouponCodes** | Pointer to **[]string** | Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. | [optional]
**ReferralCode** | Pointer to **string** | Any referral code entered. **Important**: If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. | [optional]
@@ -14,7 +15,6 @@ Name | Type | Description | Notes
**AdditionalCosts** | Pointer to [**map[string]AdditionalCost**](AdditionalCost.md) | Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional]
**Identifiers** | Pointer to **[]string** | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). | [optional]
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. | [optional]
-**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
## Methods
@@ -43,6 +43,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *NewCustomerSessionV2) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *NewCustomerSessionV2) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *NewCustomerSessionV2) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *NewCustomerSessionV2) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetEvaluableCampaignIds
`func (o *NewCustomerSessionV2) GetEvaluableCampaignIds() []int32`
@@ -268,31 +293,6 @@ HasAttributes returns a boolean if a field has been set.
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
-### GetStoreIntegrationId
-
-`func (o *NewCustomerSessionV2) GetStoreIntegrationId() string`
-
-GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
-
-### GetStoreIntegrationIdOk
-
-`func (o *NewCustomerSessionV2) GetStoreIntegrationIdOk() (string, bool)`
-
-GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### HasStoreIntegrationId
-
-`func (o *NewCustomerSessionV2) HasStoreIntegrationId() bool`
-
-HasStoreIntegrationId returns a boolean if a field has been set.
-
-### SetStoreIntegrationId
-
-`func (o *NewCustomerSessionV2) SetStoreIntegrationId(v string)`
-
-SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/NewEvent.md b/docs/NewEvent.md
index a5cb252e..cc425bd0 100644
--- a/docs/NewEvent.md
+++ b/docs/NewEvent.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ProfileId** | Pointer to **string** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
+**StoreIntegrationId** | Pointer to **string** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**Type** | Pointer to **string** | A string representing the event. Must not be a reserved event name. |
**Attributes** | Pointer to [**map[string]interface{}**](.md) | Arbitrary additional JSON data associated with the event. |
**SessionId** | Pointer to **string** | The ID of the session that this event occurred in. |
@@ -36,6 +37,31 @@ HasProfileId returns a boolean if a field has been set.
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
+### GetStoreIntegrationId
+
+`func (o *NewEvent) GetStoreIntegrationId() string`
+
+GetStoreIntegrationId returns the StoreIntegrationId field if non-nil, zero value otherwise.
+
+### GetStoreIntegrationIdOk
+
+`func (o *NewEvent) GetStoreIntegrationIdOk() (string, bool)`
+
+GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasStoreIntegrationId
+
+`func (o *NewEvent) HasStoreIntegrationId() bool`
+
+HasStoreIntegrationId returns a boolean if a field has been set.
+
+### SetStoreIntegrationId
+
+`func (o *NewEvent) SetStoreIntegrationId(v string)`
+
+SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+
### GetType
`func (o *NewEvent) GetType() string`
diff --git a/docs/NewLoyaltyProgram.md b/docs/NewLoyaltyProgram.md
index 64b296c4..5e08316c 100644
--- a/docs/NewLoyaltyProgram.md
+++ b/docs/NewLoyaltyProgram.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**AllowSubledger** | Pointer to **bool** | Indicates if this program supports subledgers inside the program. |
**UsersPerCardLimit** | Pointer to **int32** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional]
**Sandbox** | Pointer to **bool** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. |
-**TiersExpireIn** | Pointer to **string** | The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
+**TiersExpireIn** | Pointer to **string** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**TiersDowngradePolicy** | Pointer to **string** | Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant. | [optional]
**Name** | Pointer to **string** | The internal name for the Loyalty Program. This is an immutable value. |
**Tiers** | Pointer to [**[]NewLoyaltyTier**](NewLoyaltyTier.md) | The tiers in this loyalty program. | [optional]
diff --git a/docs/OneTimeCode.md b/docs/OneTimeCode.md
new file mode 100644
index 00000000..34b26e0c
--- /dev/null
+++ b/docs/OneTimeCode.md
@@ -0,0 +1,117 @@
+# OneTimeCode
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**UserId** | Pointer to **int32** | The ID of the user. |
+**AccountId** | Pointer to **int32** | The ID of the account. |
+**Token** | Pointer to **string** | The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code. |
+**Code** | Pointer to **string** | The one-time security code used for signing in. | [optional]
+
+## Methods
+
+### GetUserId
+
+`func (o *OneTimeCode) GetUserId() int32`
+
+GetUserId returns the UserId field if non-nil, zero value otherwise.
+
+### GetUserIdOk
+
+`func (o *OneTimeCode) GetUserIdOk() (int32, bool)`
+
+GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasUserId
+
+`func (o *OneTimeCode) HasUserId() bool`
+
+HasUserId returns a boolean if a field has been set.
+
+### SetUserId
+
+`func (o *OneTimeCode) SetUserId(v int32)`
+
+SetUserId gets a reference to the given int32 and assigns it to the UserId field.
+
+### GetAccountId
+
+`func (o *OneTimeCode) GetAccountId() int32`
+
+GetAccountId returns the AccountId field if non-nil, zero value otherwise.
+
+### GetAccountIdOk
+
+`func (o *OneTimeCode) GetAccountIdOk() (int32, bool)`
+
+GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasAccountId
+
+`func (o *OneTimeCode) HasAccountId() bool`
+
+HasAccountId returns a boolean if a field has been set.
+
+### SetAccountId
+
+`func (o *OneTimeCode) SetAccountId(v int32)`
+
+SetAccountId gets a reference to the given int32 and assigns it to the AccountId field.
+
+### GetToken
+
+`func (o *OneTimeCode) GetToken() string`
+
+GetToken returns the Token field if non-nil, zero value otherwise.
+
+### GetTokenOk
+
+`func (o *OneTimeCode) GetTokenOk() (string, bool)`
+
+GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasToken
+
+`func (o *OneTimeCode) HasToken() bool`
+
+HasToken returns a boolean if a field has been set.
+
+### SetToken
+
+`func (o *OneTimeCode) SetToken(v string)`
+
+SetToken gets a reference to the given string and assigns it to the Token field.
+
+### GetCode
+
+`func (o *OneTimeCode) GetCode() string`
+
+GetCode returns the Code field if non-nil, zero value otherwise.
+
+### GetCodeOk
+
+`func (o *OneTimeCode) GetCodeOk() (string, bool)`
+
+GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasCode
+
+`func (o *OneTimeCode) HasCode() bool`
+
+HasCode returns a boolean if a field has been set.
+
+### SetCode
+
+`func (o *OneTimeCode) SetCode(v string)`
+
+SetCode gets a reference to the given string and assigns it to the Code field.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SsoConfig.md b/docs/SsoConfig.md
new file mode 100644
index 00000000..d57548bc
--- /dev/null
+++ b/docs/SsoConfig.md
@@ -0,0 +1,39 @@
+# SsoConfig
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Enforced** | Pointer to **bool** | An indication of whether single sign-on is enforced for the account. When enforced, users cannot use their email and password to sign in to Talon.One. It is not possible to change this to `false` after it is set to `true`. |
+
+## Methods
+
+### GetEnforced
+
+`func (o *SsoConfig) GetEnforced() bool`
+
+GetEnforced returns the Enforced field if non-nil, zero value otherwise.
+
+### GetEnforcedOk
+
+`func (o *SsoConfig) GetEnforcedOk() (bool, bool)`
+
+GetEnforcedOk returns a tuple with the Enforced field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasEnforced
+
+`func (o *SsoConfig) HasEnforced() bool`
+
+HasEnforced returns a boolean if a field has been set.
+
+### SetEnforced
+
+`func (o *SsoConfig) SetEnforced(v bool)`
+
+SetEnforced gets a reference to the given bool and assigns it to the Enforced field.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateLoyaltyProgram.md b/docs/UpdateLoyaltyProgram.md
index 457055de..817a394d 100644
--- a/docs/UpdateLoyaltyProgram.md
+++ b/docs/UpdateLoyaltyProgram.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**AllowSubledger** | Pointer to **bool** | Indicates if this program supports subledgers inside the program. | [optional]
**UsersPerCardLimit** | Pointer to **int32** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional]
**Sandbox** | Pointer to **bool** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional]
-**TiersExpireIn** | Pointer to **string** | The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
+**TiersExpireIn** | Pointer to **string** | The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**TiersDowngradePolicy** | Pointer to **string** | Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant. | [optional]
**Tiers** | Pointer to [**[]NewLoyaltyTier**](NewLoyaltyTier.md) | The tiers in this loyalty program. | [optional]
diff --git a/docs/User.md b/docs/User.md
index 6fceec32..2ab1775f 100644
--- a/docs/User.md
+++ b/docs/User.md
@@ -18,6 +18,8 @@ Name | Type | Description | Notes
**ApplicationNotificationSubscriptions** | Pointer to [**map[string]interface{}**](.md) | | [optional]
**AuthMethod** | Pointer to **string** | The Authentication method for this user. | [optional]
**IsAdmin** | Pointer to **bool** | An indication of whether the user has admin permissions. | [optional]
+**LastSignedIn** | Pointer to [**time.Time**](time.Time.md) | Date and time when the user last signed in to Talon.One. | [optional]
+**LastAccessed** | Pointer to [**time.Time**](time.Time.md) | Date and time of the user's last activity after signing in to Talon.One. | [optional]
## Methods
@@ -371,6 +373,56 @@ HasIsAdmin returns a boolean if a field has been set.
SetIsAdmin gets a reference to the given bool and assigns it to the IsAdmin field.
+### GetLastSignedIn
+
+`func (o *User) GetLastSignedIn() time.Time`
+
+GetLastSignedIn returns the LastSignedIn field if non-nil, zero value otherwise.
+
+### GetLastSignedInOk
+
+`func (o *User) GetLastSignedInOk() (time.Time, bool)`
+
+GetLastSignedInOk returns a tuple with the LastSignedIn field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasLastSignedIn
+
+`func (o *User) HasLastSignedIn() bool`
+
+HasLastSignedIn returns a boolean if a field has been set.
+
+### SetLastSignedIn
+
+`func (o *User) SetLastSignedIn(v time.Time)`
+
+SetLastSignedIn gets a reference to the given time.Time and assigns it to the LastSignedIn field.
+
+### GetLastAccessed
+
+`func (o *User) GetLastAccessed() time.Time`
+
+GetLastAccessed returns the LastAccessed field if non-nil, zero value otherwise.
+
+### GetLastAccessedOk
+
+`func (o *User) GetLastAccessedOk() (time.Time, bool)`
+
+GetLastAccessedOk returns a tuple with the LastAccessed field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### HasLastAccessed
+
+`func (o *User) HasLastAccessed() bool`
+
+HasLastAccessed returns a boolean if a field has been set.
+
+### SetLastAccessed
+
+`func (o *User) SetLastAccessed(v time.Time)`
+
+SetLastAccessed gets a reference to the given time.Time and assigns it to the LastAccessed field.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/go.mod b/go.mod
index 6bb25133..f7eb4cc9 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/talon-one/talon_go/v4
+module github.com/talon-one/talon_go/v5
go 1.13
diff --git a/model_additional_campaign_properties.go b/model_additional_campaign_properties.go
index 9adcc737..fadd784f 100644
--- a/model_additional_campaign_properties.go
+++ b/model_additional_campaign_properties.go
@@ -17,40 +17,40 @@ import (
// AdditionalCampaignProperties struct for AdditionalCampaignProperties
type AdditionalCampaignProperties struct {
- // Number of coupons redeemed in the campaign.
+ // A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
+ Budgets []CampaignBudget `json:"budgets"`
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
- // Number of referral codes redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
- // Total amount of discounts redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
DiscountCount *float32 `json:"discountCount,omitempty"`
- // Total number of times discounts were redeemed in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
- // Total number of coupons created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
- // Total number of custom effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
- // Total number of referrals created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
- // Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
- // Total number of giveaways awarded by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
- // Total number of loyalty points created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point creation effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
- // Total number of loyalty points redeemed by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point redemption effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
- // Total number of webhooks triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
- // Total number of reserve coupon effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
// Timestamp of the most recent event received by this campaign.
LastActivity *time.Time `json:"lastActivity,omitempty"`
- // The total number of effects created in this campaign in the past 7 days.
- WeeklyUsageCount *int32 `json:"weeklyUsageCount,omitempty"`
// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
Updated *time.Time `json:"updated,omitempty"`
// Name of the user who created this campaign if available.
@@ -61,6 +61,21 @@ type AdditionalCampaignProperties struct {
TemplateId *int32 `json:"templateId,omitempty"`
}
+// GetBudgets returns the Budgets field value
+func (o *AdditionalCampaignProperties) GetBudgets() []CampaignBudget {
+ if o == nil {
+ var ret []CampaignBudget
+ return ret
+ }
+
+ return o.Budgets
+}
+
+// SetBudgets sets field value
+func (o *AdditionalCampaignProperties) SetBudgets(v []CampaignBudget) {
+ o.Budgets = v
+}
+
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetCouponRedemptionCount() int32 {
if o == nil || o.CouponRedemptionCount == nil {
@@ -589,39 +604,6 @@ func (o *AdditionalCampaignProperties) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
-// GetWeeklyUsageCount returns the WeeklyUsageCount field value if set, zero value otherwise.
-func (o *AdditionalCampaignProperties) GetWeeklyUsageCount() int32 {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret
- }
- return *o.WeeklyUsageCount
-}
-
-// GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *AdditionalCampaignProperties) GetWeeklyUsageCountOk() (int32, bool) {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret, false
- }
- return *o.WeeklyUsageCount, true
-}
-
-// HasWeeklyUsageCount returns a boolean if a field has been set.
-func (o *AdditionalCampaignProperties) HasWeeklyUsageCount() bool {
- if o != nil && o.WeeklyUsageCount != nil {
- return true
- }
-
- return false
-}
-
-// SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-func (o *AdditionalCampaignProperties) SetWeeklyUsageCount(v int32) {
- o.WeeklyUsageCount = &v
-}
-
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *AdditionalCampaignProperties) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
diff --git a/model_application_event.go b/model_application_event.go
index a7fc4147..faf9d37f 100644
--- a/model_application_event.go
+++ b/model_application_event.go
@@ -25,6 +25,10 @@ type ApplicationEvent struct {
ApplicationId int32 `json:"applicationId"`
// The globally unique Talon.One ID of the customer that created this entity.
ProfileId *int32 `json:"profileId,omitempty"`
+ // The ID of the store.
+ StoreId *int32 `json:"storeId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// The globally unique Talon.One ID of the session that contains this event.
SessionId *int32 `json:"sessionId,omitempty"`
// A string representing the event. Must not be a reserved event name.
@@ -115,6 +119,72 @@ func (o *ApplicationEvent) SetProfileId(v int32) {
o.ProfileId = &v
}
+// GetStoreId returns the StoreId field value if set, zero value otherwise.
+func (o *ApplicationEvent) GetStoreId() int32 {
+ if o == nil || o.StoreId == nil {
+ var ret int32
+ return ret
+ }
+ return *o.StoreId
+}
+
+// GetStoreIdOk returns a tuple with the StoreId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *ApplicationEvent) GetStoreIdOk() (int32, bool) {
+ if o == nil || o.StoreId == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.StoreId, true
+}
+
+// HasStoreId returns a boolean if a field has been set.
+func (o *ApplicationEvent) HasStoreId() bool {
+ if o != nil && o.StoreId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.
+func (o *ApplicationEvent) SetStoreId(v int32) {
+ o.StoreId = &v
+}
+
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *ApplicationEvent) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *ApplicationEvent) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *ApplicationEvent) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *ApplicationEvent) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetSessionId returns the SessionId field value if set, zero value otherwise.
func (o *ApplicationEvent) GetSessionId() int32 {
if o == nil || o.SessionId == nil {
diff --git a/model_application_session.go b/model_application_session.go
index 41aa0132..fee00d2e 100644
--- a/model_application_session.go
+++ b/model_application_session.go
@@ -21,12 +21,14 @@ type ApplicationSession struct {
Id int32 `json:"id"`
// The time this entity was created. The time this entity was created.
Created time.Time `json:"created"`
+ // The integration ID set by your integration layer.
+ IntegrationId string `json:"integrationId"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// The ID of the application that owns this entity.
ApplicationId int32 `json:"applicationId"`
// The globally unique Talon.One ID of the customer that created this entity.
ProfileId *int32 `json:"profileId,omitempty"`
- // The integration ID set by your integration layer.
- IntegrationId string `json:"integrationId"`
// Integration ID of the customer for the session.
Profileintegrationid *string `json:"profileintegrationid,omitempty"`
// Any coupon code entered.
@@ -45,8 +47,6 @@ type ApplicationSession struct {
Total float32 `json:"total"`
// Arbitrary properties associated with this item.
Attributes *map[string]interface{} `json:"attributes,omitempty"`
- // The integration ID of the store for this session.
- StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
}
// GetId returns the Id field value
@@ -79,6 +79,54 @@ func (o *ApplicationSession) SetCreated(v time.Time) {
o.Created = v
}
+// GetIntegrationId returns the IntegrationId field value
+func (o *ApplicationSession) GetIntegrationId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.IntegrationId
+}
+
+// SetIntegrationId sets field value
+func (o *ApplicationSession) SetIntegrationId(v string) {
+ o.IntegrationId = v
+}
+
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *ApplicationSession) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *ApplicationSession) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *ApplicationSession) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *ApplicationSession) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetApplicationId returns the ApplicationId field value
func (o *ApplicationSession) GetApplicationId() int32 {
if o == nil {
@@ -127,21 +175,6 @@ func (o *ApplicationSession) SetProfileId(v int32) {
o.ProfileId = &v
}
-// GetIntegrationId returns the IntegrationId field value
-func (o *ApplicationSession) GetIntegrationId() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.IntegrationId
-}
-
-// SetIntegrationId sets field value
-func (o *ApplicationSession) SetIntegrationId(v string) {
- o.IntegrationId = v
-}
-
// GetProfileintegrationid returns the Profileintegrationid field value if set, zero value otherwise.
func (o *ApplicationSession) GetProfileintegrationid() string {
if o == nil || o.Profileintegrationid == nil {
@@ -313,39 +346,6 @@ func (o *ApplicationSession) SetAttributes(v map[string]interface{}) {
o.Attributes = &v
}
-// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
-func (o *ApplicationSession) GetStoreIntegrationId() string {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret
- }
- return *o.StoreIntegrationId
-}
-
-// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *ApplicationSession) GetStoreIntegrationIdOk() (string, bool) {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret, false
- }
- return *o.StoreIntegrationId, true
-}
-
-// HasStoreIntegrationId returns a boolean if a field has been set.
-func (o *ApplicationSession) HasStoreIntegrationId() bool {
- if o != nil && o.StoreIntegrationId != nil {
- return true
- }
-
- return false
-}
-
-// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-func (o *ApplicationSession) SetStoreIntegrationId(v string) {
- o.StoreIntegrationId = &v
-}
-
type NullableApplicationSession struct {
Value ApplicationSession
ExplicitNull bool
diff --git a/model_application_store_entity.go b/model_application_store_entity.go
new file mode 100644
index 00000000..09c84d27
--- /dev/null
+++ b/model_application_store_entity.go
@@ -0,0 +1,77 @@
+/*
+ * Talon.One API
+ *
+ * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
+ *
+ * API version:
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package talon
+
+import (
+ "bytes"
+ "encoding/json"
+)
+
+// ApplicationStoreEntity struct for ApplicationStoreEntity
+type ApplicationStoreEntity struct {
+ // The ID of the store.
+ StoreId *int32 `json:"storeId,omitempty"`
+}
+
+// GetStoreId returns the StoreId field value if set, zero value otherwise.
+func (o *ApplicationStoreEntity) GetStoreId() int32 {
+ if o == nil || o.StoreId == nil {
+ var ret int32
+ return ret
+ }
+ return *o.StoreId
+}
+
+// GetStoreIdOk returns a tuple with the StoreId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *ApplicationStoreEntity) GetStoreIdOk() (int32, bool) {
+ if o == nil || o.StoreId == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.StoreId, true
+}
+
+// HasStoreId returns a boolean if a field has been set.
+func (o *ApplicationStoreEntity) HasStoreId() bool {
+ if o != nil && o.StoreId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.
+func (o *ApplicationStoreEntity) SetStoreId(v int32) {
+ o.StoreId = &v
+}
+
+type NullableApplicationStoreEntity struct {
+ Value ApplicationStoreEntity
+ ExplicitNull bool
+}
+
+func (v NullableApplicationStoreEntity) MarshalJSON() ([]byte, error) {
+ switch {
+ case v.ExplicitNull:
+ return []byte("null"), nil
+ default:
+ return json.Marshal(v.Value)
+ }
+}
+
+func (v *NullableApplicationStoreEntity) UnmarshalJSON(src []byte) error {
+ if bytes.Equal(src, []byte("null")) {
+ v.ExplicitNull = true
+ return nil
+ }
+
+ return json.Unmarshal(src, &v.Value)
+}
diff --git a/model_base_loyalty_program.go b/model_base_loyalty_program.go
index 1fa03ee3..48b4c750 100644
--- a/model_base_loyalty_program.go
+++ b/model_base_loyalty_program.go
@@ -32,7 +32,7 @@ type BaseLoyaltyProgram struct {
UsersPerCardLimit *int32 `json:"usersPerCardLimit,omitempty"`
// Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.
Sandbox *bool `json:"sandbox,omitempty"`
- // The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
+ // The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
TiersExpireIn *string `json:"tiersExpireIn,omitempty"`
// Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant.
TiersDowngradePolicy *string `json:"tiersDowngradePolicy,omitempty"`
diff --git a/model_campaign.go b/model_campaign.go
index 18663ee6..b84b887e 100644
--- a/model_campaign.go
+++ b/model_campaign.go
@@ -55,40 +55,40 @@ type Campaign struct {
Type string `json:"type"`
// A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store.
LinkedStoreIds *[]int32 `json:"linkedStoreIds,omitempty"`
- // Number of coupons redeemed in the campaign.
+ // A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
+ Budgets []CampaignBudget `json:"budgets"`
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
- // Number of referral codes redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
- // Total amount of discounts redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
DiscountCount *float32 `json:"discountCount,omitempty"`
- // Total number of times discounts were redeemed in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
- // Total number of coupons created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
- // Total number of custom effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
- // Total number of referrals created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
- // Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
- // Total number of giveaways awarded by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
- // Total number of loyalty points created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point creation effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
- // Total number of loyalty points redeemed by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point redemption effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
- // Total number of webhooks triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
- // Total number of reserve coupon effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
// Timestamp of the most recent event received by this campaign.
LastActivity *time.Time `json:"lastActivity,omitempty"`
- // The total number of effects created in this campaign in the past 7 days.
- WeeklyUsageCount *int32 `json:"weeklyUsageCount,omitempty"`
// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
Updated *time.Time `json:"updated,omitempty"`
// Name of the user who created this campaign if available.
@@ -561,6 +561,21 @@ func (o *Campaign) SetLinkedStoreIds(v []int32) {
o.LinkedStoreIds = &v
}
+// GetBudgets returns the Budgets field value
+func (o *Campaign) GetBudgets() []CampaignBudget {
+ if o == nil {
+ var ret []CampaignBudget
+ return ret
+ }
+
+ return o.Budgets
+}
+
+// SetBudgets sets field value
+func (o *Campaign) SetBudgets(v []CampaignBudget) {
+ o.Budgets = v
+}
+
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *Campaign) GetCouponRedemptionCount() int32 {
if o == nil || o.CouponRedemptionCount == nil {
@@ -1089,39 +1104,6 @@ func (o *Campaign) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
-// GetWeeklyUsageCount returns the WeeklyUsageCount field value if set, zero value otherwise.
-func (o *Campaign) GetWeeklyUsageCount() int32 {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret
- }
- return *o.WeeklyUsageCount
-}
-
-// GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *Campaign) GetWeeklyUsageCountOk() (int32, bool) {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret, false
- }
- return *o.WeeklyUsageCount, true
-}
-
-// HasWeeklyUsageCount returns a boolean if a field has been set.
-func (o *Campaign) HasWeeklyUsageCount() bool {
- if o != nil && o.WeeklyUsageCount != nil {
- return true
- }
-
- return false
-}
-
-// SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-func (o *Campaign) SetWeeklyUsageCount(v int32) {
- o.WeeklyUsageCount = &v
-}
-
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *Campaign) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
diff --git a/model_campaign_budget.go b/model_campaign_budget.go
new file mode 100644
index 00000000..6ad6a1e0
--- /dev/null
+++ b/model_campaign_budget.go
@@ -0,0 +1,93 @@
+/*
+ * Talon.One API
+ *
+ * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
+ *
+ * API version:
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package talon
+
+import (
+ "bytes"
+ "encoding/json"
+)
+
+// CampaignBudget struct for CampaignBudget
+type CampaignBudget struct {
+ // The limitable action to which this limit applies. For example: - `setDiscount` - `setDiscountEffect` - `redeemCoupon` - `createCoupon`
+ Action string `json:"action"`
+ // The value to set for the limit.
+ Limit float32 `json:"limit"`
+ // The number of occurrences of the limited action in the context of the campaign.
+ Counter float32 `json:"counter"`
+}
+
+// GetAction returns the Action field value
+func (o *CampaignBudget) GetAction() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Action
+}
+
+// SetAction sets field value
+func (o *CampaignBudget) SetAction(v string) {
+ o.Action = v
+}
+
+// GetLimit returns the Limit field value
+func (o *CampaignBudget) GetLimit() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Limit
+}
+
+// SetLimit sets field value
+func (o *CampaignBudget) SetLimit(v float32) {
+ o.Limit = v
+}
+
+// GetCounter returns the Counter field value
+func (o *CampaignBudget) GetCounter() float32 {
+ if o == nil {
+ var ret float32
+ return ret
+ }
+
+ return o.Counter
+}
+
+// SetCounter sets field value
+func (o *CampaignBudget) SetCounter(v float32) {
+ o.Counter = v
+}
+
+type NullableCampaignBudget struct {
+ Value CampaignBudget
+ ExplicitNull bool
+}
+
+func (v NullableCampaignBudget) MarshalJSON() ([]byte, error) {
+ switch {
+ case v.ExplicitNull:
+ return []byte("null"), nil
+ default:
+ return json.Marshal(v.Value)
+ }
+}
+
+func (v *NullableCampaignBudget) UnmarshalJSON(src []byte) error {
+ if bytes.Equal(src, []byte("null")) {
+ v.ExplicitNull = true
+ return nil
+ }
+
+ return json.Unmarshal(src, &v.Value)
+}
diff --git a/model_campaign_for_notification.go b/model_campaign_for_notification.go
index ed2d8ca5..4ec1945b 100644
--- a/model_campaign_for_notification.go
+++ b/model_campaign_for_notification.go
@@ -55,40 +55,40 @@ type CampaignForNotification struct {
Type string `json:"type"`
// A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store.
LinkedStoreIds *[]int32 `json:"linkedStoreIds,omitempty"`
- // Number of coupons redeemed in the campaign.
+ // A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
+ Budgets []CampaignBudget `json:"budgets"`
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
- // Number of referral codes redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
- // Total amount of discounts redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
DiscountCount *float32 `json:"discountCount,omitempty"`
- // Total number of times discounts were redeemed in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
- // Total number of coupons created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
- // Total number of custom effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
- // Total number of referrals created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
- // Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
- // Total number of giveaways awarded by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
- // Total number of loyalty points created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point creation effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
- // Total number of loyalty points redeemed by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point redemption effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
- // Total number of webhooks triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
- // Total number of reserve coupon effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
// Timestamp of the most recent event received by this campaign.
LastActivity *time.Time `json:"lastActivity,omitempty"`
- // The total number of effects created in this campaign in the past 7 days.
- WeeklyUsageCount *int32 `json:"weeklyUsageCount,omitempty"`
// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
Updated *time.Time `json:"updated,omitempty"`
// Name of the user who created this campaign if available.
@@ -561,6 +561,21 @@ func (o *CampaignForNotification) SetLinkedStoreIds(v []int32) {
o.LinkedStoreIds = &v
}
+// GetBudgets returns the Budgets field value
+func (o *CampaignForNotification) GetBudgets() []CampaignBudget {
+ if o == nil {
+ var ret []CampaignBudget
+ return ret
+ }
+
+ return o.Budgets
+}
+
+// SetBudgets sets field value
+func (o *CampaignForNotification) SetBudgets(v []CampaignBudget) {
+ o.Budgets = v
+}
+
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *CampaignForNotification) GetCouponRedemptionCount() int32 {
if o == nil || o.CouponRedemptionCount == nil {
@@ -1089,39 +1104,6 @@ func (o *CampaignForNotification) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
-// GetWeeklyUsageCount returns the WeeklyUsageCount field value if set, zero value otherwise.
-func (o *CampaignForNotification) GetWeeklyUsageCount() int32 {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret
- }
- return *o.WeeklyUsageCount
-}
-
-// GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *CampaignForNotification) GetWeeklyUsageCountOk() (int32, bool) {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret, false
- }
- return *o.WeeklyUsageCount, true
-}
-
-// HasWeeklyUsageCount returns a boolean if a field has been set.
-func (o *CampaignForNotification) HasWeeklyUsageCount() bool {
- if o != nil && o.WeeklyUsageCount != nil {
- return true
- }
-
- return false
-}
-
-// SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-func (o *CampaignForNotification) SetWeeklyUsageCount(v int32) {
- o.WeeklyUsageCount = &v
-}
-
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *CampaignForNotification) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
diff --git a/model_campaign_state_notification.go b/model_campaign_state_notification.go
index 7af4e0af..9b0edc04 100644
--- a/model_campaign_state_notification.go
+++ b/model_campaign_state_notification.go
@@ -55,40 +55,40 @@ type CampaignStateNotification struct {
Type string `json:"type"`
// A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store.
LinkedStoreIds *[]int32 `json:"linkedStoreIds,omitempty"`
- // Number of coupons redeemed in the campaign.
+ // A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
+ Budgets []CampaignBudget `json:"budgets"`
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
- // Number of referral codes redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
- // Total amount of discounts redeemed in the campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
DiscountCount *float32 `json:"discountCount,omitempty"`
- // Total number of times discounts were redeemed in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
- // Total number of coupons created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
- // Total number of custom effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
- // Total number of referrals created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
- // Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
- // Total number of giveaways awarded by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
- // Total number of loyalty points created by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point creation effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
- // Total number of loyalty points redeemed by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
- // Total number of loyalty point redemption effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
- // Total number of webhooks triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
- // Total number of reserve coupon effects triggered by rules in this campaign.
+ // This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
// Timestamp of the most recent event received by this campaign.
LastActivity *time.Time `json:"lastActivity,omitempty"`
- // The total number of effects created in this campaign in the past 7 days.
- WeeklyUsageCount *int32 `json:"weeklyUsageCount,omitempty"`
// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
Updated *time.Time `json:"updated,omitempty"`
// Name of the user who created this campaign if available.
@@ -563,6 +563,21 @@ func (o *CampaignStateNotification) SetLinkedStoreIds(v []int32) {
o.LinkedStoreIds = &v
}
+// GetBudgets returns the Budgets field value
+func (o *CampaignStateNotification) GetBudgets() []CampaignBudget {
+ if o == nil {
+ var ret []CampaignBudget
+ return ret
+ }
+
+ return o.Budgets
+}
+
+// SetBudgets sets field value
+func (o *CampaignStateNotification) SetBudgets(v []CampaignBudget) {
+ o.Budgets = v
+}
+
// GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.
func (o *CampaignStateNotification) GetCouponRedemptionCount() int32 {
if o == nil || o.CouponRedemptionCount == nil {
@@ -1091,39 +1106,6 @@ func (o *CampaignStateNotification) SetLastActivity(v time.Time) {
o.LastActivity = &v
}
-// GetWeeklyUsageCount returns the WeeklyUsageCount field value if set, zero value otherwise.
-func (o *CampaignStateNotification) GetWeeklyUsageCount() int32 {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret
- }
- return *o.WeeklyUsageCount
-}
-
-// GetWeeklyUsageCountOk returns a tuple with the WeeklyUsageCount field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *CampaignStateNotification) GetWeeklyUsageCountOk() (int32, bool) {
- if o == nil || o.WeeklyUsageCount == nil {
- var ret int32
- return ret, false
- }
- return *o.WeeklyUsageCount, true
-}
-
-// HasWeeklyUsageCount returns a boolean if a field has been set.
-func (o *CampaignStateNotification) HasWeeklyUsageCount() bool {
- if o != nil && o.WeeklyUsageCount != nil {
- return true
- }
-
- return false
-}
-
-// SetWeeklyUsageCount gets a reference to the given int32 and assigns it to the WeeklyUsageCount field.
-func (o *CampaignStateNotification) SetWeeklyUsageCount(v int32) {
- o.WeeklyUsageCount = &v
-}
-
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *CampaignStateNotification) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
diff --git a/model_customer_session_v2.go b/model_customer_session_v2.go
index 1785d006..b01dfe64 100644
--- a/model_customer_session_v2.go
+++ b/model_customer_session_v2.go
@@ -27,6 +27,8 @@ type CustomerSessionV2 struct {
ApplicationId int32 `json:"applicationId"`
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId string `json:"profileId"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
EvaluableCampaignIds *[]int32 `json:"evaluableCampaignIds,omitempty"`
// Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it.
@@ -45,8 +47,6 @@ type CustomerSessionV2 struct {
Identifiers *[]string `json:"identifiers,omitempty"`
// Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property.
Attributes map[string]interface{} `json:"attributes"`
- // The integration ID of the store. You choose this ID when you create a store.
- StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions.
FirstSession bool `json:"firstSession"`
// The total value of cart items and additional costs in the session, before any discounts are applied.
@@ -134,6 +134,39 @@ func (o *CustomerSessionV2) SetProfileId(v string) {
o.ProfileId = v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *CustomerSessionV2) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *CustomerSessionV2) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *CustomerSessionV2) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *CustomerSessionV2) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetEvaluableCampaignIds returns the EvaluableCampaignIds field value if set, zero value otherwise.
func (o *CustomerSessionV2) GetEvaluableCampaignIds() []int32 {
if o == nil || o.EvaluableCampaignIds == nil {
@@ -377,39 +410,6 @@ func (o *CustomerSessionV2) SetAttributes(v map[string]interface{}) {
o.Attributes = v
}
-// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
-func (o *CustomerSessionV2) GetStoreIntegrationId() string {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret
- }
- return *o.StoreIntegrationId
-}
-
-// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *CustomerSessionV2) GetStoreIntegrationIdOk() (string, bool) {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret, false
- }
- return *o.StoreIntegrationId, true
-}
-
-// HasStoreIntegrationId returns a boolean if a field has been set.
-func (o *CustomerSessionV2) HasStoreIntegrationId() bool {
- if o != nil && o.StoreIntegrationId != nil {
- return true
- }
-
- return false
-}
-
-// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-func (o *CustomerSessionV2) SetStoreIntegrationId(v string) {
- o.StoreIntegrationId = &v
-}
-
// GetFirstSession returns the FirstSession field value
func (o *CustomerSessionV2) GetFirstSession() bool {
if o == nil {
diff --git a/model_effect.go b/model_effect.go
index 20b45b15..200b6149 100644
--- a/model_effect.go
+++ b/model_effect.go
@@ -30,6 +30,8 @@ type Effect struct {
TriggeredByCoupon *int32 `json:"triggeredByCoupon,omitempty"`
// The ID of the catalog item that was being evaluated when this effect was triggered.
TriggeredForCatalogItem *int32 `json:"triggeredForCatalogItem,omitempty"`
+ // The index of the condition that was triggered.
+ ConditionIndex *int32 `json:"conditionIndex,omitempty"`
// The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).
Props map[string]interface{} `json:"props"`
}
@@ -175,6 +177,39 @@ func (o *Effect) SetTriggeredForCatalogItem(v int32) {
o.TriggeredForCatalogItem = &v
}
+// GetConditionIndex returns the ConditionIndex field value if set, zero value otherwise.
+func (o *Effect) GetConditionIndex() int32 {
+ if o == nil || o.ConditionIndex == nil {
+ var ret int32
+ return ret
+ }
+ return *o.ConditionIndex
+}
+
+// GetConditionIndexOk returns a tuple with the ConditionIndex field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Effect) GetConditionIndexOk() (int32, bool) {
+ if o == nil || o.ConditionIndex == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.ConditionIndex, true
+}
+
+// HasConditionIndex returns a boolean if a field has been set.
+func (o *Effect) HasConditionIndex() bool {
+ if o != nil && o.ConditionIndex != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetConditionIndex gets a reference to the given int32 and assigns it to the ConditionIndex field.
+func (o *Effect) SetConditionIndex(v int32) {
+ o.ConditionIndex = &v
+}
+
// GetProps returns the Props field value
func (o *Effect) GetProps() map[string]interface{} {
if o == nil {
diff --git a/model_effect_entity.go b/model_effect_entity.go
index d1d4c6cf..3813fc5d 100644
--- a/model_effect_entity.go
+++ b/model_effect_entity.go
@@ -30,6 +30,8 @@ type EffectEntity struct {
TriggeredByCoupon *int32 `json:"triggeredByCoupon,omitempty"`
// The ID of the catalog item that was being evaluated when this effect was triggered.
TriggeredForCatalogItem *int32 `json:"triggeredForCatalogItem,omitempty"`
+ // The index of the condition that was triggered.
+ ConditionIndex *int32 `json:"conditionIndex,omitempty"`
}
// GetCampaignId returns the CampaignId field value
@@ -173,6 +175,39 @@ func (o *EffectEntity) SetTriggeredForCatalogItem(v int32) {
o.TriggeredForCatalogItem = &v
}
+// GetConditionIndex returns the ConditionIndex field value if set, zero value otherwise.
+func (o *EffectEntity) GetConditionIndex() int32 {
+ if o == nil || o.ConditionIndex == nil {
+ var ret int32
+ return ret
+ }
+ return *o.ConditionIndex
+}
+
+// GetConditionIndexOk returns a tuple with the ConditionIndex field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *EffectEntity) GetConditionIndexOk() (int32, bool) {
+ if o == nil || o.ConditionIndex == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.ConditionIndex, true
+}
+
+// HasConditionIndex returns a boolean if a field has been set.
+func (o *EffectEntity) HasConditionIndex() bool {
+ if o != nil && o.ConditionIndex != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetConditionIndex gets a reference to the given int32 and assigns it to the ConditionIndex field.
+func (o *EffectEntity) SetConditionIndex(v int32) {
+ o.ConditionIndex = &v
+}
+
type NullableEffectEntity struct {
Value EffectEntity
ExplicitNull bool
diff --git a/model_event.go b/model_event.go
index fecab667..486eeaf9 100644
--- a/model_event.go
+++ b/model_event.go
@@ -25,6 +25,8 @@ type Event struct {
ApplicationId int32 `json:"applicationId"`
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// A string representing the event. Must not be a reserved event name.
Type string `json:"type"`
// Arbitrary additional JSON data associated with the event.
@@ -116,6 +118,39 @@ func (o *Event) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *Event) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Event) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *Event) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *Event) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetType returns the Type field value
func (o *Event) GetType() string {
if o == nil {
diff --git a/model_event_v2.go b/model_event_v2.go
index 05ba17fe..57a3fc1f 100644
--- a/model_event_v2.go
+++ b/model_event_v2.go
@@ -18,6 +18,8 @@ import (
type EventV2 struct {
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
EvaluableCampaignIds *[]int32 `json:"evaluableCampaignIds,omitempty"`
// A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager.
@@ -59,6 +61,39 @@ func (o *EventV2) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *EventV2) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *EventV2) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *EventV2) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *EventV2) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetEvaluableCampaignIds returns the EvaluableCampaignIds field value if set, zero value otherwise.
func (o *EventV2) GetEvaluableCampaignIds() []int32 {
if o == nil || o.EvaluableCampaignIds == nil {
diff --git a/model_inline_response_200_10.go b/model_inline_response_200_10.go
index 4d62df7f..09b2e3a7 100644
--- a/model_inline_response_200_10.go
+++ b/model_inline_response_200_10.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20010 struct for InlineResponse20010
type InlineResponse20010 struct {
- HasMore bool `json:"hasMore"`
- Data []Coupon `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []Referral `json:"data"`
}
// GetHasMore returns the HasMore field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20010) SetHasMore(v bool) {
}
// GetData returns the Data field value
-func (o *InlineResponse20010) GetData() []Coupon {
+func (o *InlineResponse20010) GetData() []Referral {
if o == nil {
- var ret []Coupon
+ var ret []Referral
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20010) GetData() []Coupon {
}
// SetData sets field value
-func (o *InlineResponse20010) SetData(v []Coupon) {
+func (o *InlineResponse20010) SetData(v []Referral) {
o.Data = v
}
diff --git a/model_inline_response_200_11.go b/model_inline_response_200_11.go
index 04c09bf1..719a181d 100644
--- a/model_inline_response_200_11.go
+++ b/model_inline_response_200_11.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20011 struct for InlineResponse20011
type InlineResponse20011 struct {
- HasMore bool `json:"hasMore"`
- Data []Referral `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []CampaignTemplate `json:"data"`
}
// GetHasMore returns the HasMore field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20011) SetHasMore(v bool) {
}
// GetData returns the Data field value
-func (o *InlineResponse20011) GetData() []Referral {
+func (o *InlineResponse20011) GetData() []CampaignTemplate {
if o == nil {
- var ret []Referral
+ var ret []CampaignTemplate
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20011) GetData() []Referral {
}
// SetData sets field value
-func (o *InlineResponse20011) SetData(v []Referral) {
+func (o *InlineResponse20011) SetData(v []CampaignTemplate) {
o.Data = v
}
diff --git a/model_inline_response_200_12.go b/model_inline_response_200_12.go
index 013bf078..00234ded 100644
--- a/model_inline_response_200_12.go
+++ b/model_inline_response_200_12.go
@@ -16,29 +16,29 @@ import (
// InlineResponse20012 struct for InlineResponse20012
type InlineResponse20012 struct {
- HasMore bool `json:"hasMore"`
- Data []CampaignTemplate `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []LoyaltyProgram `json:"data"`
}
-// GetHasMore returns the HasMore field value
-func (o *InlineResponse20012) GetHasMore() bool {
+// GetTotalResultSize returns the TotalResultSize field value
+func (o *InlineResponse20012) GetTotalResultSize() int32 {
if o == nil {
- var ret bool
+ var ret int32
return ret
}
- return o.HasMore
+ return o.TotalResultSize
}
-// SetHasMore sets field value
-func (o *InlineResponse20012) SetHasMore(v bool) {
- o.HasMore = v
+// SetTotalResultSize sets field value
+func (o *InlineResponse20012) SetTotalResultSize(v int32) {
+ o.TotalResultSize = v
}
// GetData returns the Data field value
-func (o *InlineResponse20012) GetData() []CampaignTemplate {
+func (o *InlineResponse20012) GetData() []LoyaltyProgram {
if o == nil {
- var ret []CampaignTemplate
+ var ret []LoyaltyProgram
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20012) GetData() []CampaignTemplate {
}
// SetData sets field value
-func (o *InlineResponse20012) SetData(v []CampaignTemplate) {
+func (o *InlineResponse20012) SetData(v []LoyaltyProgram) {
o.Data = v
}
diff --git a/model_inline_response_200_13.go b/model_inline_response_200_13.go
index e2249b46..01ac8f56 100644
--- a/model_inline_response_200_13.go
+++ b/model_inline_response_200_13.go
@@ -16,29 +16,29 @@ import (
// InlineResponse20013 struct for InlineResponse20013
type InlineResponse20013 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []LoyaltyProgram `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []LoyaltyProgramTransaction `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
-func (o *InlineResponse20013) GetTotalResultSize() int32 {
+// GetHasMore returns the HasMore field value
+func (o *InlineResponse20013) GetHasMore() bool {
if o == nil {
- var ret int32
+ var ret bool
return ret
}
- return o.TotalResultSize
+ return o.HasMore
}
-// SetTotalResultSize sets field value
-func (o *InlineResponse20013) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+// SetHasMore sets field value
+func (o *InlineResponse20013) SetHasMore(v bool) {
+ o.HasMore = v
}
// GetData returns the Data field value
-func (o *InlineResponse20013) GetData() []LoyaltyProgram {
+func (o *InlineResponse20013) GetData() []LoyaltyProgramTransaction {
if o == nil {
- var ret []LoyaltyProgram
+ var ret []LoyaltyProgramTransaction
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20013) GetData() []LoyaltyProgram {
}
// SetData sets field value
-func (o *InlineResponse20013) SetData(v []LoyaltyProgram) {
+func (o *InlineResponse20013) SetData(v []LoyaltyProgramTransaction) {
o.Data = v
}
diff --git a/model_inline_response_200_14.go b/model_inline_response_200_14.go
index e6010ed8..99f907e6 100644
--- a/model_inline_response_200_14.go
+++ b/model_inline_response_200_14.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20014 struct for InlineResponse20014
type InlineResponse20014 struct {
- HasMore bool `json:"hasMore"`
- Data []LoyaltyProgramTransaction `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []LoyaltyCard `json:"data"`
}
// GetHasMore returns the HasMore field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20014) SetHasMore(v bool) {
}
// GetData returns the Data field value
-func (o *InlineResponse20014) GetData() []LoyaltyProgramTransaction {
+func (o *InlineResponse20014) GetData() []LoyaltyCard {
if o == nil {
- var ret []LoyaltyProgramTransaction
+ var ret []LoyaltyCard
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20014) GetData() []LoyaltyProgramTransaction {
}
// SetData sets field value
-func (o *InlineResponse20014) SetData(v []LoyaltyProgramTransaction) {
+func (o *InlineResponse20014) SetData(v []LoyaltyCard) {
o.Data = v
}
diff --git a/model_inline_response_200_15.go b/model_inline_response_200_15.go
index cc77bbbf..78e7a222 100644
--- a/model_inline_response_200_15.go
+++ b/model_inline_response_200_15.go
@@ -16,8 +16,10 @@ import (
// InlineResponse20015 struct for InlineResponse20015
type InlineResponse20015 struct {
- HasMore bool `json:"hasMore"`
- Data []LoyaltyCard `json:"data"`
+ // true means there is more data in the source collection to request..
+ HasMore bool `json:"hasMore"`
+ // List of loyalty card transaction logs.
+ Data []CardLedgerTransactionLogEntry `json:"data"`
}
// GetHasMore returns the HasMore field value
@@ -36,9 +38,9 @@ func (o *InlineResponse20015) SetHasMore(v bool) {
}
// GetData returns the Data field value
-func (o *InlineResponse20015) GetData() []LoyaltyCard {
+func (o *InlineResponse20015) GetData() []CardLedgerTransactionLogEntry {
if o == nil {
- var ret []LoyaltyCard
+ var ret []CardLedgerTransactionLogEntry
return ret
}
@@ -46,7 +48,7 @@ func (o *InlineResponse20015) GetData() []LoyaltyCard {
}
// SetData sets field value
-func (o *InlineResponse20015) SetData(v []LoyaltyCard) {
+func (o *InlineResponse20015) SetData(v []CardLedgerTransactionLogEntry) {
o.Data = v
}
diff --git a/model_inline_response_200_16.go b/model_inline_response_200_16.go
index a63141a6..301dcbd9 100644
--- a/model_inline_response_200_16.go
+++ b/model_inline_response_200_16.go
@@ -16,31 +16,81 @@ import (
// InlineResponse20016 struct for InlineResponse20016
type InlineResponse20016 struct {
- // true means there is more data in the source collection to request..
- HasMore bool `json:"hasMore"`
- // List of loyalty card transaction logs.
- Data []CardLedgerTransactionLogEntry `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []CollectionWithoutPayload `json:"data"`
}
-// GetHasMore returns the HasMore field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
func (o *InlineResponse20016) GetHasMore() bool {
- if o == nil {
+ if o == nil || o.HasMore == nil {
var ret bool
return ret
}
+ return *o.HasMore
+}
- return o.HasMore
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20016) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
}
-// SetHasMore sets field value
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20016) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
func (o *InlineResponse20016) SetHasMore(v bool) {
- o.HasMore = v
+ o.HasMore = &v
+}
+
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+func (o *InlineResponse20016) GetTotalResultSize() int32 {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret
+ }
+ return *o.TotalResultSize
+}
+
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20016) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
+}
+
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20016) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+func (o *InlineResponse20016) SetTotalResultSize(v int32) {
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20016) GetData() []CardLedgerTransactionLogEntry {
+func (o *InlineResponse20016) GetData() []CollectionWithoutPayload {
if o == nil {
- var ret []CardLedgerTransactionLogEntry
+ var ret []CollectionWithoutPayload
return ret
}
@@ -48,7 +98,7 @@ func (o *InlineResponse20016) GetData() []CardLedgerTransactionLogEntry {
}
// SetData sets field value
-func (o *InlineResponse20016) SetData(v []CardLedgerTransactionLogEntry) {
+func (o *InlineResponse20016) SetData(v []CollectionWithoutPayload) {
o.Data = v
}
diff --git a/model_inline_response_200_17.go b/model_inline_response_200_17.go
index b4f8f21f..c4bb8035 100644
--- a/model_inline_response_200_17.go
+++ b/model_inline_response_200_17.go
@@ -16,81 +16,29 @@ import (
// InlineResponse20017 struct for InlineResponse20017
type InlineResponse20017 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []CollectionWithoutPayload `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []CollectionItem `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
+// GetHasMore returns the HasMore field value
func (o *InlineResponse20017) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
+ if o == nil {
var ret bool
return ret
}
- return *o.HasMore
-}
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20017) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
+ return o.HasMore
}
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20017) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+// SetHasMore sets field value
func (o *InlineResponse20017) SetHasMore(v bool) {
- o.HasMore = &v
-}
-
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
-func (o *InlineResponse20017) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret
- }
- return *o.TotalResultSize
-}
-
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20017) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
-}
-
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20017) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
-
- return false
-}
-
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-func (o *InlineResponse20017) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+ o.HasMore = v
}
// GetData returns the Data field value
-func (o *InlineResponse20017) GetData() []CollectionWithoutPayload {
+func (o *InlineResponse20017) GetData() []CollectionItem {
if o == nil {
- var ret []CollectionWithoutPayload
+ var ret []CollectionItem
return ret
}
@@ -98,7 +46,7 @@ func (o *InlineResponse20017) GetData() []CollectionWithoutPayload {
}
// SetData sets field value
-func (o *InlineResponse20017) SetData(v []CollectionWithoutPayload) {
+func (o *InlineResponse20017) SetData(v []CollectionItem) {
o.Data = v
}
diff --git a/model_inline_response_200_18.go b/model_inline_response_200_18.go
index 70c502f8..e5a9efb2 100644
--- a/model_inline_response_200_18.go
+++ b/model_inline_response_200_18.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20018 struct for InlineResponse20018
type InlineResponse20018 struct {
- HasMore bool `json:"hasMore"`
- Data []CollectionItem `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []Collection `json:"data"`
}
-// GetHasMore returns the HasMore field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
func (o *InlineResponse20018) GetHasMore() bool {
- if o == nil {
+ if o == nil || o.HasMore == nil {
var ret bool
return ret
}
+ return *o.HasMore
+}
- return o.HasMore
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20018) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
}
-// SetHasMore sets field value
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20018) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
func (o *InlineResponse20018) SetHasMore(v bool) {
- o.HasMore = v
+ o.HasMore = &v
+}
+
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+func (o *InlineResponse20018) GetTotalResultSize() int32 {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret
+ }
+ return *o.TotalResultSize
+}
+
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20018) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
+}
+
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20018) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+func (o *InlineResponse20018) SetTotalResultSize(v int32) {
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20018) GetData() []CollectionItem {
+func (o *InlineResponse20018) GetData() []Collection {
if o == nil {
- var ret []CollectionItem
+ var ret []Collection
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20018) GetData() []CollectionItem {
}
// SetData sets field value
-func (o *InlineResponse20018) SetData(v []CollectionItem) {
+func (o *InlineResponse20018) SetData(v []Collection) {
o.Data = v
}
diff --git a/model_inline_response_200_19.go b/model_inline_response_200_19.go
index c50b2245..fd0b11c0 100644
--- a/model_inline_response_200_19.go
+++ b/model_inline_response_200_19.go
@@ -16,81 +16,29 @@ import (
// InlineResponse20019 struct for InlineResponse20019
type InlineResponse20019 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []Collection `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []AccessLogEntry `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
+// GetHasMore returns the HasMore field value
func (o *InlineResponse20019) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
+ if o == nil {
var ret bool
return ret
}
- return *o.HasMore
-}
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20019) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
+ return o.HasMore
}
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20019) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+// SetHasMore sets field value
func (o *InlineResponse20019) SetHasMore(v bool) {
- o.HasMore = &v
-}
-
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
-func (o *InlineResponse20019) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret
- }
- return *o.TotalResultSize
-}
-
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20019) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
-}
-
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20019) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
-
- return false
-}
-
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-func (o *InlineResponse20019) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+ o.HasMore = v
}
// GetData returns the Data field value
-func (o *InlineResponse20019) GetData() []Collection {
+func (o *InlineResponse20019) GetData() []AccessLogEntry {
if o == nil {
- var ret []Collection
+ var ret []AccessLogEntry
return ret
}
@@ -98,7 +46,7 @@ func (o *InlineResponse20019) GetData() []Collection {
}
// SetData sets field value
-func (o *InlineResponse20019) SetData(v []Collection) {
+func (o *InlineResponse20019) SetData(v []AccessLogEntry) {
o.Data = v
}
diff --git a/model_inline_response_200_20.go b/model_inline_response_200_20.go
index 2c6edf1a..3cb8e65b 100644
--- a/model_inline_response_200_20.go
+++ b/model_inline_response_200_20.go
@@ -16,23 +16,23 @@ import (
// InlineResponse20020 struct for InlineResponse20020
type InlineResponse20020 struct {
- HasMore bool `json:"hasMore"`
- Data []AccessLogEntry `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []AccessLogEntry `json:"data"`
}
-// GetHasMore returns the HasMore field value
-func (o *InlineResponse20020) GetHasMore() bool {
+// GetTotalResultSize returns the TotalResultSize field value
+func (o *InlineResponse20020) GetTotalResultSize() int32 {
if o == nil {
- var ret bool
+ var ret int32
return ret
}
- return o.HasMore
+ return o.TotalResultSize
}
-// SetHasMore sets field value
-func (o *InlineResponse20020) SetHasMore(v bool) {
- o.HasMore = v
+// SetTotalResultSize sets field value
+func (o *InlineResponse20020) SetTotalResultSize(v int32) {
+ o.TotalResultSize = v
}
// GetData returns the Data field value
diff --git a/model_inline_response_200_21.go b/model_inline_response_200_21.go
index 4fed13eb..a118405f 100644
--- a/model_inline_response_200_21.go
+++ b/model_inline_response_200_21.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20021 struct for InlineResponse20021
type InlineResponse20021 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []AccessLogEntry `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []CampaignAnalytics `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20021) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20021) GetData() []AccessLogEntry {
+func (o *InlineResponse20021) GetData() []CampaignAnalytics {
if o == nil {
- var ret []AccessLogEntry
+ var ret []CampaignAnalytics
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20021) GetData() []AccessLogEntry {
}
// SetData sets field value
-func (o *InlineResponse20021) SetData(v []AccessLogEntry) {
+func (o *InlineResponse20021) SetData(v []CampaignAnalytics) {
o.Data = v
}
diff --git a/model_inline_response_200_22.go b/model_inline_response_200_22.go
index bb1a22bf..64f8b0e6 100644
--- a/model_inline_response_200_22.go
+++ b/model_inline_response_200_22.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20022 struct for InlineResponse20022
type InlineResponse20022 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []CampaignAnalytics `json:"data"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ Data []ApplicationCustomer `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
func (o *InlineResponse20022) GetTotalResultSize() int32 {
- if o == nil {
+ if o == nil || o.TotalResultSize == nil {
var ret int32
return ret
}
+ return *o.TotalResultSize
+}
- return o.TotalResultSize
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20022) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
}
-// SetTotalResultSize sets field value
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20022) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
func (o *InlineResponse20022) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+ o.TotalResultSize = &v
+}
+
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20022) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret
+ }
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20022) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20022) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20022) SetHasMore(v bool) {
+ o.HasMore = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20022) GetData() []CampaignAnalytics {
+func (o *InlineResponse20022) GetData() []ApplicationCustomer {
if o == nil {
- var ret []CampaignAnalytics
+ var ret []ApplicationCustomer
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20022) GetData() []CampaignAnalytics {
}
// SetData sets field value
-func (o *InlineResponse20022) SetData(v []CampaignAnalytics) {
+func (o *InlineResponse20022) SetData(v []ApplicationCustomer) {
o.Data = v
}
diff --git a/model_inline_response_200_23.go b/model_inline_response_200_23.go
index ec0799dd..6132db59 100644
--- a/model_inline_response_200_23.go
+++ b/model_inline_response_200_23.go
@@ -16,75 +16,75 @@ import (
// InlineResponse20023 struct for InlineResponse20023
type InlineResponse20023 struct {
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
Data []ApplicationCustomer `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
-func (o *InlineResponse20023) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20023) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
return ret
}
- return *o.TotalResultSize
+ return *o.HasMore
}
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
// and a boolean to check if the value has been set.
-func (o *InlineResponse20023) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
+func (o *InlineResponse20023) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
return ret, false
}
- return *o.TotalResultSize, true
+ return *o.HasMore, true
}
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20023) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20023) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
return true
}
return false
}
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-func (o *InlineResponse20023) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20023) SetHasMore(v bool) {
+ o.HasMore = &v
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
-func (o *InlineResponse20023) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
- var ret bool
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+func (o *InlineResponse20023) GetTotalResultSize() int32 {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
return ret
}
- return *o.HasMore
+ return *o.TotalResultSize
}
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
// and a boolean to check if the value has been set.
-func (o *InlineResponse20023) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
+func (o *InlineResponse20023) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
return ret, false
}
- return *o.HasMore, true
+ return *o.TotalResultSize, true
}
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20023) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20023) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
return true
}
return false
}
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-func (o *InlineResponse20023) SetHasMore(v bool) {
- o.HasMore = &v
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+func (o *InlineResponse20023) SetTotalResultSize(v int32) {
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
diff --git a/model_inline_response_200_24.go b/model_inline_response_200_24.go
index 8add984b..a85f3f28 100644
--- a/model_inline_response_200_24.go
+++ b/model_inline_response_200_24.go
@@ -16,9 +16,9 @@ import (
// InlineResponse20024 struct for InlineResponse20024
type InlineResponse20024 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []ApplicationCustomer `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []CustomerProfile `json:"data"`
}
// GetHasMore returns the HasMore field value if set, zero value otherwise.
@@ -88,9 +88,9 @@ func (o *InlineResponse20024) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20024) GetData() []ApplicationCustomer {
+func (o *InlineResponse20024) GetData() []CustomerProfile {
if o == nil {
- var ret []ApplicationCustomer
+ var ret []CustomerProfile
return ret
}
@@ -98,7 +98,7 @@ func (o *InlineResponse20024) GetData() []ApplicationCustomer {
}
// SetData sets field value
-func (o *InlineResponse20024) SetData(v []ApplicationCustomer) {
+func (o *InlineResponse20024) SetData(v []CustomerProfile) {
o.Data = v
}
diff --git a/model_inline_response_200_25.go b/model_inline_response_200_25.go
index 18082859..ec434e1a 100644
--- a/model_inline_response_200_25.go
+++ b/model_inline_response_200_25.go
@@ -16,75 +16,23 @@ import (
// InlineResponse20025 struct for InlineResponse20025
type InlineResponse20025 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []CustomerProfile `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []CustomerProfile `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
+// GetHasMore returns the HasMore field value
func (o *InlineResponse20025) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
+ if o == nil {
var ret bool
return ret
}
- return *o.HasMore
-}
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20025) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
+ return o.HasMore
}
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20025) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+// SetHasMore sets field value
func (o *InlineResponse20025) SetHasMore(v bool) {
- o.HasMore = &v
-}
-
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
-func (o *InlineResponse20025) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret
- }
- return *o.TotalResultSize
-}
-
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20025) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
-}
-
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20025) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
-
- return false
-}
-
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
-func (o *InlineResponse20025) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+ o.HasMore = v
}
// GetData returns the Data field value
diff --git a/model_inline_response_200_26.go b/model_inline_response_200_26.go
index e3e193ce..134688d0 100644
--- a/model_inline_response_200_26.go
+++ b/model_inline_response_200_26.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20026 struct for InlineResponse20026
type InlineResponse20026 struct {
- HasMore bool `json:"hasMore"`
- Data []CustomerProfile `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []CustomerActivityReport `json:"data"`
}
// GetHasMore returns the HasMore field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20026) SetHasMore(v bool) {
}
// GetData returns the Data field value
-func (o *InlineResponse20026) GetData() []CustomerProfile {
+func (o *InlineResponse20026) GetData() []CustomerActivityReport {
if o == nil {
- var ret []CustomerProfile
+ var ret []CustomerActivityReport
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20026) GetData() []CustomerProfile {
}
// SetData sets field value
-func (o *InlineResponse20026) SetData(v []CustomerProfile) {
+func (o *InlineResponse20026) SetData(v []CustomerActivityReport) {
o.Data = v
}
diff --git a/model_inline_response_200_27.go b/model_inline_response_200_27.go
index 213efaac..cbe928cb 100644
--- a/model_inline_response_200_27.go
+++ b/model_inline_response_200_27.go
@@ -16,29 +16,47 @@ import (
// InlineResponse20027 struct for InlineResponse20027
type InlineResponse20027 struct {
- HasMore bool `json:"hasMore"`
- Data []CustomerActivityReport `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ Data []ApplicationSession `json:"data"`
}
-// GetHasMore returns the HasMore field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
func (o *InlineResponse20027) GetHasMore() bool {
- if o == nil {
+ if o == nil || o.HasMore == nil {
var ret bool
return ret
}
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20027) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20027) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
- return o.HasMore
+ return false
}
-// SetHasMore sets field value
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
func (o *InlineResponse20027) SetHasMore(v bool) {
- o.HasMore = v
+ o.HasMore = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20027) GetData() []CustomerActivityReport {
+func (o *InlineResponse20027) GetData() []ApplicationSession {
if o == nil {
- var ret []CustomerActivityReport
+ var ret []ApplicationSession
return ret
}
@@ -46,7 +64,7 @@ func (o *InlineResponse20027) GetData() []CustomerActivityReport {
}
// SetData sets field value
-func (o *InlineResponse20027) SetData(v []CustomerActivityReport) {
+func (o *InlineResponse20027) SetData(v []ApplicationSession) {
o.Data = v
}
diff --git a/model_inline_response_200_28.go b/model_inline_response_200_28.go
index 290cf367..c21afbe9 100644
--- a/model_inline_response_200_28.go
+++ b/model_inline_response_200_28.go
@@ -16,47 +16,29 @@ import (
// InlineResponse20028 struct for InlineResponse20028
type InlineResponse20028 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- Data []ApplicationSession `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []ApplicationEvent `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
+// GetHasMore returns the HasMore field value
func (o *InlineResponse20028) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
+ if o == nil {
var ret bool
return ret
}
- return *o.HasMore
-}
-
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20028) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
-}
-
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20028) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
- return false
+ return o.HasMore
}
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+// SetHasMore sets field value
func (o *InlineResponse20028) SetHasMore(v bool) {
- o.HasMore = &v
+ o.HasMore = v
}
// GetData returns the Data field value
-func (o *InlineResponse20028) GetData() []ApplicationSession {
+func (o *InlineResponse20028) GetData() []ApplicationEvent {
if o == nil {
- var ret []ApplicationSession
+ var ret []ApplicationEvent
return ret
}
@@ -64,7 +46,7 @@ func (o *InlineResponse20028) GetData() []ApplicationSession {
}
// SetData sets field value
-func (o *InlineResponse20028) SetData(v []ApplicationSession) {
+func (o *InlineResponse20028) SetData(v []ApplicationEvent) {
o.Data = v
}
diff --git a/model_inline_response_200_29.go b/model_inline_response_200_29.go
index d4b79a11..7a78bc6a 100644
--- a/model_inline_response_200_29.go
+++ b/model_inline_response_200_29.go
@@ -16,29 +16,29 @@ import (
// InlineResponse20029 struct for InlineResponse20029
type InlineResponse20029 struct {
- HasMore bool `json:"hasMore"`
- Data []ApplicationEvent `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []string `json:"data"`
}
-// GetHasMore returns the HasMore field value
-func (o *InlineResponse20029) GetHasMore() bool {
+// GetTotalResultSize returns the TotalResultSize field value
+func (o *InlineResponse20029) GetTotalResultSize() int32 {
if o == nil {
- var ret bool
+ var ret int32
return ret
}
- return o.HasMore
+ return o.TotalResultSize
}
-// SetHasMore sets field value
-func (o *InlineResponse20029) SetHasMore(v bool) {
- o.HasMore = v
+// SetTotalResultSize sets field value
+func (o *InlineResponse20029) SetTotalResultSize(v int32) {
+ o.TotalResultSize = v
}
// GetData returns the Data field value
-func (o *InlineResponse20029) GetData() []ApplicationEvent {
+func (o *InlineResponse20029) GetData() []string {
if o == nil {
- var ret []ApplicationEvent
+ var ret []string
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20029) GetData() []ApplicationEvent {
}
// SetData sets field value
-func (o *InlineResponse20029) SetData(v []ApplicationEvent) {
+func (o *InlineResponse20029) SetData(v []string) {
o.Data = v
}
diff --git a/model_inline_response_200_30.go b/model_inline_response_200_30.go
index aa0c9163..16ebac4c 100644
--- a/model_inline_response_200_30.go
+++ b/model_inline_response_200_30.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20030 struct for InlineResponse20030
type InlineResponse20030 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []string `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []Audience `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20030) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret
+ }
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20030) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20030) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20030) SetHasMore(v bool) {
+ o.HasMore = &v
+}
+
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
func (o *InlineResponse20030) GetTotalResultSize() int32 {
- if o == nil {
+ if o == nil || o.TotalResultSize == nil {
var ret int32
return ret
}
+ return *o.TotalResultSize
+}
+
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20030) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
+}
+
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20030) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
- return o.TotalResultSize
+ return false
}
-// SetTotalResultSize sets field value
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
func (o *InlineResponse20030) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20030) GetData() []string {
+func (o *InlineResponse20030) GetData() []Audience {
if o == nil {
- var ret []string
+ var ret []Audience
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20030) GetData() []string {
}
// SetData sets field value
-func (o *InlineResponse20030) SetData(v []string) {
+func (o *InlineResponse20030) SetData(v []Audience) {
o.Data = v
}
diff --git a/model_inline_response_200_31.go b/model_inline_response_200_31.go
index 74a06261..bd1a9363 100644
--- a/model_inline_response_200_31.go
+++ b/model_inline_response_200_31.go
@@ -16,9 +16,9 @@ import (
// InlineResponse20031 struct for InlineResponse20031
type InlineResponse20031 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []Audience `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []ApplicationReferee `json:"data"`
}
// GetHasMore returns the HasMore field value if set, zero value otherwise.
@@ -88,9 +88,9 @@ func (o *InlineResponse20031) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20031) GetData() []Audience {
+func (o *InlineResponse20031) GetData() []ApplicationReferee {
if o == nil {
- var ret []Audience
+ var ret []ApplicationReferee
return ret
}
@@ -98,7 +98,7 @@ func (o *InlineResponse20031) GetData() []Audience {
}
// SetData sets field value
-func (o *InlineResponse20031) SetData(v []Audience) {
+func (o *InlineResponse20031) SetData(v []ApplicationReferee) {
o.Data = v
}
diff --git a/model_inline_response_200_32.go b/model_inline_response_200_32.go
index 587637dc..aa955c1c 100644
--- a/model_inline_response_200_32.go
+++ b/model_inline_response_200_32.go
@@ -16,81 +16,29 @@ import (
// InlineResponse20032 struct for InlineResponse20032
type InlineResponse20032 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []ApplicationReferee `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []Attribute `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
-func (o *InlineResponse20032) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret
- }
- return *o.HasMore
-}
-
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20032) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
-}
-
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20032) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-func (o *InlineResponse20032) SetHasMore(v bool) {
- o.HasMore = &v
-}
-
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+// GetTotalResultSize returns the TotalResultSize field value
func (o *InlineResponse20032) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
+ if o == nil {
var ret int32
return ret
}
- return *o.TotalResultSize
-}
-
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20032) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
-}
-
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20032) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
- return false
+ return o.TotalResultSize
}
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+// SetTotalResultSize sets field value
func (o *InlineResponse20032) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+ o.TotalResultSize = v
}
// GetData returns the Data field value
-func (o *InlineResponse20032) GetData() []ApplicationReferee {
+func (o *InlineResponse20032) GetData() []Attribute {
if o == nil {
- var ret []ApplicationReferee
+ var ret []Attribute
return ret
}
@@ -98,7 +46,7 @@ func (o *InlineResponse20032) GetData() []ApplicationReferee {
}
// SetData sets field value
-func (o *InlineResponse20032) SetData(v []ApplicationReferee) {
+func (o *InlineResponse20032) SetData(v []Attribute) {
o.Data = v
}
diff --git a/model_inline_response_200_33.go b/model_inline_response_200_33.go
index 4c580b52..30219597 100644
--- a/model_inline_response_200_33.go
+++ b/model_inline_response_200_33.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20033 struct for InlineResponse20033
type InlineResponse20033 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []Attribute `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []CatalogItem `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20033) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret
+ }
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20033) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20033) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20033) SetHasMore(v bool) {
+ o.HasMore = &v
+}
+
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
func (o *InlineResponse20033) GetTotalResultSize() int32 {
- if o == nil {
+ if o == nil || o.TotalResultSize == nil {
var ret int32
return ret
}
+ return *o.TotalResultSize
+}
+
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20033) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
+}
+
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20033) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
- return o.TotalResultSize
+ return false
}
-// SetTotalResultSize sets field value
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
func (o *InlineResponse20033) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20033) GetData() []Attribute {
+func (o *InlineResponse20033) GetData() []CatalogItem {
if o == nil {
- var ret []Attribute
+ var ret []CatalogItem
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20033) GetData() []Attribute {
}
// SetData sets field value
-func (o *InlineResponse20033) SetData(v []Attribute) {
+func (o *InlineResponse20033) SetData(v []CatalogItem) {
o.Data = v
}
diff --git a/model_inline_response_200_34.go b/model_inline_response_200_34.go
index 2b58d1c0..80b2cb8b 100644
--- a/model_inline_response_200_34.go
+++ b/model_inline_response_200_34.go
@@ -16,81 +16,29 @@ import (
// InlineResponse20034 struct for InlineResponse20034
type InlineResponse20034 struct {
- HasMore *bool `json:"hasMore,omitempty"`
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- Data []CatalogItem `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []AccountAdditionalCost `json:"data"`
}
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
-func (o *InlineResponse20034) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret
- }
- return *o.HasMore
-}
-
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20034) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
-}
-
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20034) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-func (o *InlineResponse20034) SetHasMore(v bool) {
- o.HasMore = &v
-}
-
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+// GetTotalResultSize returns the TotalResultSize field value
func (o *InlineResponse20034) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
+ if o == nil {
var ret int32
return ret
}
- return *o.TotalResultSize
-}
-
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20034) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
-}
-
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20034) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
- return false
+ return o.TotalResultSize
}
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+// SetTotalResultSize sets field value
func (o *InlineResponse20034) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
+ o.TotalResultSize = v
}
// GetData returns the Data field value
-func (o *InlineResponse20034) GetData() []CatalogItem {
+func (o *InlineResponse20034) GetData() []AccountAdditionalCost {
if o == nil {
- var ret []CatalogItem
+ var ret []AccountAdditionalCost
return ret
}
@@ -98,7 +46,7 @@ func (o *InlineResponse20034) GetData() []CatalogItem {
}
// SetData sets field value
-func (o *InlineResponse20034) SetData(v []CatalogItem) {
+func (o *InlineResponse20034) SetData(v []AccountAdditionalCost) {
o.Data = v
}
diff --git a/model_inline_response_200_35.go b/model_inline_response_200_35.go
index 46c92f7f..bb24c30b 100644
--- a/model_inline_response_200_35.go
+++ b/model_inline_response_200_35.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20035 struct for InlineResponse20035
type InlineResponse20035 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []AccountAdditionalCost `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []WebhookWithOutgoingIntegrationDetails `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20035) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20035) GetData() []AccountAdditionalCost {
+func (o *InlineResponse20035) GetData() []WebhookWithOutgoingIntegrationDetails {
if o == nil {
- var ret []AccountAdditionalCost
+ var ret []WebhookWithOutgoingIntegrationDetails
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20035) GetData() []AccountAdditionalCost {
}
// SetData sets field value
-func (o *InlineResponse20035) SetData(v []AccountAdditionalCost) {
+func (o *InlineResponse20035) SetData(v []WebhookWithOutgoingIntegrationDetails) {
o.Data = v
}
diff --git a/model_inline_response_200_36.go b/model_inline_response_200_36.go
index 0075c780..ce77a0f6 100644
--- a/model_inline_response_200_36.go
+++ b/model_inline_response_200_36.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20036 struct for InlineResponse20036
type InlineResponse20036 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []WebhookWithOutgoingIntegrationDetails `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []WebhookActivationLogEntry `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20036) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20036) GetData() []WebhookWithOutgoingIntegrationDetails {
+func (o *InlineResponse20036) GetData() []WebhookActivationLogEntry {
if o == nil {
- var ret []WebhookWithOutgoingIntegrationDetails
+ var ret []WebhookActivationLogEntry
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20036) GetData() []WebhookWithOutgoingIntegrationDetails
}
// SetData sets field value
-func (o *InlineResponse20036) SetData(v []WebhookWithOutgoingIntegrationDetails) {
+func (o *InlineResponse20036) SetData(v []WebhookActivationLogEntry) {
o.Data = v
}
diff --git a/model_inline_response_200_37.go b/model_inline_response_200_37.go
index 1ccc9c9d..ccb409c2 100644
--- a/model_inline_response_200_37.go
+++ b/model_inline_response_200_37.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20037 struct for InlineResponse20037
type InlineResponse20037 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []WebhookActivationLogEntry `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []WebhookLogEntry `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20037) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20037) GetData() []WebhookActivationLogEntry {
+func (o *InlineResponse20037) GetData() []WebhookLogEntry {
if o == nil {
- var ret []WebhookActivationLogEntry
+ var ret []WebhookLogEntry
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20037) GetData() []WebhookActivationLogEntry {
}
// SetData sets field value
-func (o *InlineResponse20037) SetData(v []WebhookActivationLogEntry) {
+func (o *InlineResponse20037) SetData(v []WebhookLogEntry) {
o.Data = v
}
diff --git a/model_inline_response_200_38.go b/model_inline_response_200_38.go
index b93df0e6..2c950576 100644
--- a/model_inline_response_200_38.go
+++ b/model_inline_response_200_38.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20038 struct for InlineResponse20038
type InlineResponse20038 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []WebhookLogEntry `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []EventType `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20038) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20038) GetData() []WebhookLogEntry {
+func (o *InlineResponse20038) GetData() []EventType {
if o == nil {
- var ret []WebhookLogEntry
+ var ret []EventType
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20038) GetData() []WebhookLogEntry {
}
// SetData sets field value
-func (o *InlineResponse20038) SetData(v []WebhookLogEntry) {
+func (o *InlineResponse20038) SetData(v []EventType) {
o.Data = v
}
diff --git a/model_inline_response_200_39.go b/model_inline_response_200_39.go
index 136d44f9..6b4d3a50 100644
--- a/model_inline_response_200_39.go
+++ b/model_inline_response_200_39.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20039 struct for InlineResponse20039
type InlineResponse20039 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []EventType `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []User `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20039) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20039) GetData() []EventType {
+func (o *InlineResponse20039) GetData() []User {
if o == nil {
- var ret []EventType
+ var ret []User
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20039) GetData() []EventType {
}
// SetData sets field value
-func (o *InlineResponse20039) SetData(v []EventType) {
+func (o *InlineResponse20039) SetData(v []User) {
o.Data = v
}
diff --git a/model_inline_response_200_40.go b/model_inline_response_200_40.go
index 45516936..c7fe0ccf 100644
--- a/model_inline_response_200_40.go
+++ b/model_inline_response_200_40.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20040 struct for InlineResponse20040
type InlineResponse20040 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []User `json:"data"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ Data []Change `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
func (o *InlineResponse20040) GetTotalResultSize() int32 {
- if o == nil {
+ if o == nil || o.TotalResultSize == nil {
var ret int32
return ret
}
+ return *o.TotalResultSize
+}
- return o.TotalResultSize
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20040) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
}
-// SetTotalResultSize sets field value
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20040) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
func (o *InlineResponse20040) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+ o.TotalResultSize = &v
+}
+
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20040) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret
+ }
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20040) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20040) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20040) SetHasMore(v bool) {
+ o.HasMore = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20040) GetData() []User {
+func (o *InlineResponse20040) GetData() []Change {
if o == nil {
- var ret []User
+ var ret []Change
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20040) GetData() []User {
}
// SetData sets field value
-func (o *InlineResponse20040) SetData(v []User) {
+func (o *InlineResponse20040) SetData(v []Change) {
o.Data = v
}
diff --git a/model_inline_response_200_41.go b/model_inline_response_200_41.go
index 949f779c..10257a70 100644
--- a/model_inline_response_200_41.go
+++ b/model_inline_response_200_41.go
@@ -16,81 +16,29 @@ import (
// InlineResponse20041 struct for InlineResponse20041
type InlineResponse20041 struct {
- TotalResultSize *int32 `json:"totalResultSize,omitempty"`
- HasMore *bool `json:"hasMore,omitempty"`
- Data []Change `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []Export `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
+// GetTotalResultSize returns the TotalResultSize field value
func (o *InlineResponse20041) GetTotalResultSize() int32 {
- if o == nil || o.TotalResultSize == nil {
+ if o == nil {
var ret int32
return ret
}
- return *o.TotalResultSize
-}
-// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20041) GetTotalResultSizeOk() (int32, bool) {
- if o == nil || o.TotalResultSize == nil {
- var ret int32
- return ret, false
- }
- return *o.TotalResultSize, true
+ return o.TotalResultSize
}
-// HasTotalResultSize returns a boolean if a field has been set.
-func (o *InlineResponse20041) HasTotalResultSize() bool {
- if o != nil && o.TotalResultSize != nil {
- return true
- }
-
- return false
-}
-
-// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
+// SetTotalResultSize sets field value
func (o *InlineResponse20041) SetTotalResultSize(v int32) {
- o.TotalResultSize = &v
-}
-
-// GetHasMore returns the HasMore field value if set, zero value otherwise.
-func (o *InlineResponse20041) GetHasMore() bool {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret
- }
- return *o.HasMore
-}
-
-// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *InlineResponse20041) GetHasMoreOk() (bool, bool) {
- if o == nil || o.HasMore == nil {
- var ret bool
- return ret, false
- }
- return *o.HasMore, true
-}
-
-// HasHasMore returns a boolean if a field has been set.
-func (o *InlineResponse20041) HasHasMore() bool {
- if o != nil && o.HasMore != nil {
- return true
- }
-
- return false
-}
-
-// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
-func (o *InlineResponse20041) SetHasMore(v bool) {
- o.HasMore = &v
+ o.TotalResultSize = v
}
// GetData returns the Data field value
-func (o *InlineResponse20041) GetData() []Change {
+func (o *InlineResponse20041) GetData() []Export {
if o == nil {
- var ret []Change
+ var ret []Export
return ret
}
@@ -98,7 +46,7 @@ func (o *InlineResponse20041) GetData() []Change {
}
// SetData sets field value
-func (o *InlineResponse20041) SetData(v []Change) {
+func (o *InlineResponse20041) SetData(v []Export) {
o.Data = v
}
diff --git a/model_inline_response_200_42.go b/model_inline_response_200_42.go
index a116279e..e9f48b31 100644
--- a/model_inline_response_200_42.go
+++ b/model_inline_response_200_42.go
@@ -16,8 +16,8 @@ import (
// InlineResponse20042 struct for InlineResponse20042
type InlineResponse20042 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []Export `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []Role `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse20042) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse20042) GetData() []Export {
+func (o *InlineResponse20042) GetData() []Role {
if o == nil {
- var ret []Export
+ var ret []Role
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse20042) GetData() []Export {
}
// SetData sets field value
-func (o *InlineResponse20042) SetData(v []Export) {
+func (o *InlineResponse20042) SetData(v []Role) {
o.Data = v
}
diff --git a/model_inline_response_200_43.go b/model_inline_response_200_43.go
index 65359c27..8eb06949 100644
--- a/model_inline_response_200_43.go
+++ b/model_inline_response_200_43.go
@@ -16,29 +16,81 @@ import (
// InlineResponse20043 struct for InlineResponse20043
type InlineResponse20043 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []Role `json:"data"`
+ HasMore *bool `json:"hasMore,omitempty"`
+ TotalResultSize *int32 `json:"totalResultSize,omitempty"`
+ Data []Store `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
+// GetHasMore returns the HasMore field value if set, zero value otherwise.
+func (o *InlineResponse20043) GetHasMore() bool {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret
+ }
+ return *o.HasMore
+}
+
+// GetHasMoreOk returns a tuple with the HasMore field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20043) GetHasMoreOk() (bool, bool) {
+ if o == nil || o.HasMore == nil {
+ var ret bool
+ return ret, false
+ }
+ return *o.HasMore, true
+}
+
+// HasHasMore returns a boolean if a field has been set.
+func (o *InlineResponse20043) HasHasMore() bool {
+ if o != nil && o.HasMore != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHasMore gets a reference to the given bool and assigns it to the HasMore field.
+func (o *InlineResponse20043) SetHasMore(v bool) {
+ o.HasMore = &v
+}
+
+// GetTotalResultSize returns the TotalResultSize field value if set, zero value otherwise.
func (o *InlineResponse20043) GetTotalResultSize() int32 {
- if o == nil {
+ if o == nil || o.TotalResultSize == nil {
var ret int32
return ret
}
+ return *o.TotalResultSize
+}
+
+// GetTotalResultSizeOk returns a tuple with the TotalResultSize field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *InlineResponse20043) GetTotalResultSizeOk() (int32, bool) {
+ if o == nil || o.TotalResultSize == nil {
+ var ret int32
+ return ret, false
+ }
+ return *o.TotalResultSize, true
+}
+
+// HasTotalResultSize returns a boolean if a field has been set.
+func (o *InlineResponse20043) HasTotalResultSize() bool {
+ if o != nil && o.TotalResultSize != nil {
+ return true
+ }
- return o.TotalResultSize
+ return false
}
-// SetTotalResultSize sets field value
+// SetTotalResultSize gets a reference to the given int32 and assigns it to the TotalResultSize field.
func (o *InlineResponse20043) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+ o.TotalResultSize = &v
}
// GetData returns the Data field value
-func (o *InlineResponse20043) GetData() []Role {
+func (o *InlineResponse20043) GetData() []Store {
if o == nil {
- var ret []Role
+ var ret []Store
return ret
}
@@ -46,7 +98,7 @@ func (o *InlineResponse20043) GetData() []Role {
}
// SetData sets field value
-func (o *InlineResponse20043) SetData(v []Role) {
+func (o *InlineResponse20043) SetData(v []Store) {
o.Data = v
}
diff --git a/model_inline_response_200_7.go b/model_inline_response_200_7.go
index 7df4fd4a..9c27ceec 100644
--- a/model_inline_response_200_7.go
+++ b/model_inline_response_200_7.go
@@ -16,8 +16,8 @@ import (
// InlineResponse2007 struct for InlineResponse2007
type InlineResponse2007 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []NotificationWebhook `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []Ruleset `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse2007) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse2007) GetData() []NotificationWebhook {
+func (o *InlineResponse2007) GetData() []Ruleset {
if o == nil {
- var ret []NotificationWebhook
+ var ret []Ruleset
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse2007) GetData() []NotificationWebhook {
}
// SetData sets field value
-func (o *InlineResponse2007) SetData(v []NotificationWebhook) {
+func (o *InlineResponse2007) SetData(v []Ruleset) {
o.Data = v
}
diff --git a/model_inline_response_200_8.go b/model_inline_response_200_8.go
index 034f00a1..7dad6520 100644
--- a/model_inline_response_200_8.go
+++ b/model_inline_response_200_8.go
@@ -16,8 +16,8 @@ import (
// InlineResponse2008 struct for InlineResponse2008
type InlineResponse2008 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []Ruleset `json:"data"`
+ TotalResultSize int32 `json:"totalResultSize"`
+ Data []Coupon `json:"data"`
}
// GetTotalResultSize returns the TotalResultSize field value
@@ -36,9 +36,9 @@ func (o *InlineResponse2008) SetTotalResultSize(v int32) {
}
// GetData returns the Data field value
-func (o *InlineResponse2008) GetData() []Ruleset {
+func (o *InlineResponse2008) GetData() []Coupon {
if o == nil {
- var ret []Ruleset
+ var ret []Coupon
return ret
}
@@ -46,7 +46,7 @@ func (o *InlineResponse2008) GetData() []Ruleset {
}
// SetData sets field value
-func (o *InlineResponse2008) SetData(v []Ruleset) {
+func (o *InlineResponse2008) SetData(v []Coupon) {
o.Data = v
}
diff --git a/model_inline_response_200_9.go b/model_inline_response_200_9.go
index 1cfcef46..224624fd 100644
--- a/model_inline_response_200_9.go
+++ b/model_inline_response_200_9.go
@@ -16,23 +16,23 @@ import (
// InlineResponse2009 struct for InlineResponse2009
type InlineResponse2009 struct {
- TotalResultSize int32 `json:"totalResultSize"`
- Data []Coupon `json:"data"`
+ HasMore bool `json:"hasMore"`
+ Data []Coupon `json:"data"`
}
-// GetTotalResultSize returns the TotalResultSize field value
-func (o *InlineResponse2009) GetTotalResultSize() int32 {
+// GetHasMore returns the HasMore field value
+func (o *InlineResponse2009) GetHasMore() bool {
if o == nil {
- var ret int32
+ var ret bool
return ret
}
- return o.TotalResultSize
+ return o.HasMore
}
-// SetTotalResultSize sets field value
-func (o *InlineResponse2009) SetTotalResultSize(v int32) {
- o.TotalResultSize = v
+// SetHasMore sets field value
+func (o *InlineResponse2009) SetHasMore(v bool) {
+ o.HasMore = v
}
// GetData returns the Data field value
diff --git a/model_integration_event.go b/model_integration_event.go
index 0e7f88be..8d8dd699 100644
--- a/model_integration_event.go
+++ b/model_integration_event.go
@@ -18,6 +18,8 @@ import (
type IntegrationEvent struct {
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// A string representing the event. Must not be a reserved event name.
Type string `json:"type"`
// Arbitrary additional JSON data associated with the event.
@@ -57,6 +59,39 @@ func (o *IntegrationEvent) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *IntegrationEvent) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *IntegrationEvent) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *IntegrationEvent) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *IntegrationEvent) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetType returns the Type field value
func (o *IntegrationEvent) GetType() string {
if o == nil {
diff --git a/model_integration_event_v2_request.go b/model_integration_event_v2_request.go
index 69458f02..7e9bd8f6 100644
--- a/model_integration_event_v2_request.go
+++ b/model_integration_event_v2_request.go
@@ -18,6 +18,8 @@ import (
type IntegrationEventV2Request struct {
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
EvaluableCampaignIds *[]int32 `json:"evaluableCampaignIds,omitempty"`
// A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager.
@@ -61,6 +63,39 @@ func (o *IntegrationEventV2Request) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *IntegrationEventV2Request) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *IntegrationEventV2Request) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *IntegrationEventV2Request) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *IntegrationEventV2Request) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetEvaluableCampaignIds returns the EvaluableCampaignIds field value if set, zero value otherwise.
func (o *IntegrationEventV2Request) GetEvaluableCampaignIds() []int32 {
if o == nil || o.EvaluableCampaignIds == nil {
diff --git a/model_integration_store_entity.go b/model_integration_store_entity.go
new file mode 100644
index 00000000..bf8f8b75
--- /dev/null
+++ b/model_integration_store_entity.go
@@ -0,0 +1,77 @@
+/*
+ * Talon.One API
+ *
+ * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
+ *
+ * API version:
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package talon
+
+import (
+ "bytes"
+ "encoding/json"
+)
+
+// IntegrationStoreEntity struct for IntegrationStoreEntity
+type IntegrationStoreEntity struct {
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
+}
+
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *IntegrationStoreEntity) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *IntegrationStoreEntity) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *IntegrationStoreEntity) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *IntegrationStoreEntity) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
+type NullableIntegrationStoreEntity struct {
+ Value IntegrationStoreEntity
+ ExplicitNull bool
+}
+
+func (v NullableIntegrationStoreEntity) MarshalJSON() ([]byte, error) {
+ switch {
+ case v.ExplicitNull:
+ return []byte("null"), nil
+ default:
+ return json.Marshal(v.Value)
+ }
+}
+
+func (v *NullableIntegrationStoreEntity) UnmarshalJSON(src []byte) error {
+ if bytes.Equal(src, []byte("null")) {
+ v.ExplicitNull = true
+ return nil
+ }
+
+ return json.Unmarshal(src, &v.Value)
+}
diff --git a/model_loyalty_program.go b/model_loyalty_program.go
index be6f4980..47d95a4f 100644
--- a/model_loyalty_program.go
+++ b/model_loyalty_program.go
@@ -37,7 +37,7 @@ type LoyaltyProgram struct {
UsersPerCardLimit *int32 `json:"usersPerCardLimit,omitempty"`
// Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.
Sandbox bool `json:"sandbox"`
- // The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
+ // The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
TiersExpireIn *string `json:"tiersExpireIn,omitempty"`
// Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant.
TiersDowngradePolicy *string `json:"tiersDowngradePolicy,omitempty"`
diff --git a/model_new_customer_session_v2.go b/model_new_customer_session_v2.go
index 0a611ae3..2b23f651 100644
--- a/model_new_customer_session_v2.go
+++ b/model_new_customer_session_v2.go
@@ -18,6 +18,8 @@ import (
type NewCustomerSessionV2 struct {
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
EvaluableCampaignIds *[]int32 `json:"evaluableCampaignIds,omitempty"`
// Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it.
@@ -36,8 +38,6 @@ type NewCustomerSessionV2 struct {
Identifiers *[]string `json:"identifiers,omitempty"`
// Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property.
Attributes *map[string]interface{} `json:"attributes,omitempty"`
- // The integration ID of the store. You choose this ID when you create a store.
- StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
}
// GetProfileId returns the ProfileId field value if set, zero value otherwise.
@@ -73,6 +73,39 @@ func (o *NewCustomerSessionV2) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *NewCustomerSessionV2) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *NewCustomerSessionV2) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *NewCustomerSessionV2) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *NewCustomerSessionV2) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetEvaluableCampaignIds returns the EvaluableCampaignIds field value if set, zero value otherwise.
func (o *NewCustomerSessionV2) GetEvaluableCampaignIds() []int32 {
if o == nil || o.EvaluableCampaignIds == nil {
@@ -370,39 +403,6 @@ func (o *NewCustomerSessionV2) SetAttributes(v map[string]interface{}) {
o.Attributes = &v
}
-// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
-func (o *NewCustomerSessionV2) GetStoreIntegrationId() string {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret
- }
- return *o.StoreIntegrationId
-}
-
-// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
-// and a boolean to check if the value has been set.
-func (o *NewCustomerSessionV2) GetStoreIntegrationIdOk() (string, bool) {
- if o == nil || o.StoreIntegrationId == nil {
- var ret string
- return ret, false
- }
- return *o.StoreIntegrationId, true
-}
-
-// HasStoreIntegrationId returns a boolean if a field has been set.
-func (o *NewCustomerSessionV2) HasStoreIntegrationId() bool {
- if o != nil && o.StoreIntegrationId != nil {
- return true
- }
-
- return false
-}
-
-// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
-func (o *NewCustomerSessionV2) SetStoreIntegrationId(v string) {
- o.StoreIntegrationId = &v
-}
-
type NullableNewCustomerSessionV2 struct {
Value NewCustomerSessionV2
ExplicitNull bool
diff --git a/model_new_event.go b/model_new_event.go
index b58fa6e2..dc69a043 100644
--- a/model_new_event.go
+++ b/model_new_event.go
@@ -18,6 +18,8 @@ import (
type NewEvent struct {
// ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
ProfileId *string `json:"profileId,omitempty"`
+ // The integration ID of the store. You choose this ID when you create a store.
+ StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
// A string representing the event. Must not be a reserved event name.
Type string `json:"type"`
// Arbitrary additional JSON data associated with the event.
@@ -59,6 +61,39 @@ func (o *NewEvent) SetProfileId(v string) {
o.ProfileId = &v
}
+// GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.
+func (o *NewEvent) GetStoreIntegrationId() string {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret
+ }
+ return *o.StoreIntegrationId
+}
+
+// GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *NewEvent) GetStoreIntegrationIdOk() (string, bool) {
+ if o == nil || o.StoreIntegrationId == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.StoreIntegrationId, true
+}
+
+// HasStoreIntegrationId returns a boolean if a field has been set.
+func (o *NewEvent) HasStoreIntegrationId() bool {
+ if o != nil && o.StoreIntegrationId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.
+func (o *NewEvent) SetStoreIntegrationId(v string) {
+ o.StoreIntegrationId = &v
+}
+
// GetType returns the Type field value
func (o *NewEvent) GetType() string {
if o == nil {
diff --git a/model_new_loyalty_program.go b/model_new_loyalty_program.go
index 3bc83f22..d3e67b67 100644
--- a/model_new_loyalty_program.go
+++ b/model_new_loyalty_program.go
@@ -32,7 +32,7 @@ type NewLoyaltyProgram struct {
UsersPerCardLimit *int32 `json:"usersPerCardLimit,omitempty"`
// Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.
Sandbox bool `json:"sandbox"`
- // The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
+ // The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
TiersExpireIn *string `json:"tiersExpireIn,omitempty"`
// Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant.
TiersDowngradePolicy *string `json:"tiersDowngradePolicy,omitempty"`
diff --git a/model_one_time_code.go b/model_one_time_code.go
new file mode 100644
index 00000000..d90df1f2
--- /dev/null
+++ b/model_one_time_code.go
@@ -0,0 +1,128 @@
+/*
+ * Talon.One API
+ *
+ * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
+ *
+ * API version:
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package talon
+
+import (
+ "bytes"
+ "encoding/json"
+)
+
+// OneTimeCode struct for OneTimeCode
+type OneTimeCode struct {
+ // The ID of the user.
+ UserId int32 `json:"userId"`
+ // The ID of the account.
+ AccountId int32 `json:"accountId"`
+ // The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code.
+ Token string `json:"token"`
+ // The one-time security code used for signing in.
+ Code *string `json:"code,omitempty"`
+}
+
+// GetUserId returns the UserId field value
+func (o *OneTimeCode) GetUserId() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.UserId
+}
+
+// SetUserId sets field value
+func (o *OneTimeCode) SetUserId(v int32) {
+ o.UserId = v
+}
+
+// GetAccountId returns the AccountId field value
+func (o *OneTimeCode) GetAccountId() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.AccountId
+}
+
+// SetAccountId sets field value
+func (o *OneTimeCode) SetAccountId(v int32) {
+ o.AccountId = v
+}
+
+// GetToken returns the Token field value
+func (o *OneTimeCode) GetToken() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Token
+}
+
+// SetToken sets field value
+func (o *OneTimeCode) SetToken(v string) {
+ o.Token = v
+}
+
+// GetCode returns the Code field value if set, zero value otherwise.
+func (o *OneTimeCode) GetCode() string {
+ if o == nil || o.Code == nil {
+ var ret string
+ return ret
+ }
+ return *o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *OneTimeCode) GetCodeOk() (string, bool) {
+ if o == nil || o.Code == nil {
+ var ret string
+ return ret, false
+ }
+ return *o.Code, true
+}
+
+// HasCode returns a boolean if a field has been set.
+func (o *OneTimeCode) HasCode() bool {
+ if o != nil && o.Code != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCode gets a reference to the given string and assigns it to the Code field.
+func (o *OneTimeCode) SetCode(v string) {
+ o.Code = &v
+}
+
+type NullableOneTimeCode struct {
+ Value OneTimeCode
+ ExplicitNull bool
+}
+
+func (v NullableOneTimeCode) MarshalJSON() ([]byte, error) {
+ switch {
+ case v.ExplicitNull:
+ return []byte("null"), nil
+ default:
+ return json.Marshal(v.Value)
+ }
+}
+
+func (v *NullableOneTimeCode) UnmarshalJSON(src []byte) error {
+ if bytes.Equal(src, []byte("null")) {
+ v.ExplicitNull = true
+ return nil
+ }
+
+ return json.Unmarshal(src, &v.Value)
+}
diff --git a/model_sso_config.go b/model_sso_config.go
new file mode 100644
index 00000000..551b9670
--- /dev/null
+++ b/model_sso_config.go
@@ -0,0 +1,59 @@
+/*
+ * Talon.One API
+ *
+ * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
+ *
+ * API version:
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package talon
+
+import (
+ "bytes"
+ "encoding/json"
+)
+
+// SsoConfig struct for SsoConfig
+type SsoConfig struct {
+ // An indication of whether single sign-on is enforced for the account. When enforced, users cannot use their email and password to sign in to Talon.One. It is not possible to change this to `false` after it is set to `true`.
+ Enforced bool `json:"enforced"`
+}
+
+// GetEnforced returns the Enforced field value
+func (o *SsoConfig) GetEnforced() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.Enforced
+}
+
+// SetEnforced sets field value
+func (o *SsoConfig) SetEnforced(v bool) {
+ o.Enforced = v
+}
+
+type NullableSsoConfig struct {
+ Value SsoConfig
+ ExplicitNull bool
+}
+
+func (v NullableSsoConfig) MarshalJSON() ([]byte, error) {
+ switch {
+ case v.ExplicitNull:
+ return []byte("null"), nil
+ default:
+ return json.Marshal(v.Value)
+ }
+}
+
+func (v *NullableSsoConfig) UnmarshalJSON(src []byte) error {
+ if bytes.Equal(src, []byte("null")) {
+ v.ExplicitNull = true
+ return nil
+ }
+
+ return json.Unmarshal(src, &v.Value)
+}
diff --git a/model_update_loyalty_program.go b/model_update_loyalty_program.go
index 47e1187c..4a306301 100644
--- a/model_update_loyalty_program.go
+++ b/model_update_loyalty_program.go
@@ -32,7 +32,7 @@ type UpdateLoyaltyProgram struct {
UsersPerCardLimit *int32 `json:"usersPerCardLimit,omitempty"`
// Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type.
Sandbox *bool `json:"sandbox,omitempty"`
- // The duration is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
+ // The amount of time until the expiration of every tier, starting from the date when the customer joined the considered tier for the first time. The time format is an **integer** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
TiersExpireIn *string `json:"tiersExpireIn,omitempty"`
// Customers's tier downgrade policy. - `one_down`: Once the tier expires and if the user doesn't have enough points to stay in the tier, the user is downgraded one tier down. - `balance_based`: Once the tier expires, the user's tier is evaluated based on the amount of active points the user has at this instant.
TiersDowngradePolicy *string `json:"tiersDowngradePolicy,omitempty"`
diff --git a/model_user.go b/model_user.go
index b98cac15..1e8d078a 100644
--- a/model_user.go
+++ b/model_user.go
@@ -44,6 +44,10 @@ type User struct {
AuthMethod *string `json:"authMethod,omitempty"`
// An indication of whether the user has admin permissions.
IsAdmin *bool `json:"isAdmin,omitempty"`
+ // Date and time when the user last signed in to Talon.One.
+ LastSignedIn *time.Time `json:"lastSignedIn,omitempty"`
+ // Date and time of the user's last activity after signing in to Talon.One.
+ LastAccessed *time.Time `json:"lastAccessed,omitempty"`
}
// GetId returns the Id field value
@@ -346,6 +350,72 @@ func (o *User) SetIsAdmin(v bool) {
o.IsAdmin = &v
}
+// GetLastSignedIn returns the LastSignedIn field value if set, zero value otherwise.
+func (o *User) GetLastSignedIn() time.Time {
+ if o == nil || o.LastSignedIn == nil {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastSignedIn
+}
+
+// GetLastSignedInOk returns a tuple with the LastSignedIn field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *User) GetLastSignedInOk() (time.Time, bool) {
+ if o == nil || o.LastSignedIn == nil {
+ var ret time.Time
+ return ret, false
+ }
+ return *o.LastSignedIn, true
+}
+
+// HasLastSignedIn returns a boolean if a field has been set.
+func (o *User) HasLastSignedIn() bool {
+ if o != nil && o.LastSignedIn != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLastSignedIn gets a reference to the given time.Time and assigns it to the LastSignedIn field.
+func (o *User) SetLastSignedIn(v time.Time) {
+ o.LastSignedIn = &v
+}
+
+// GetLastAccessed returns the LastAccessed field value if set, zero value otherwise.
+func (o *User) GetLastAccessed() time.Time {
+ if o == nil || o.LastAccessed == nil {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastAccessed
+}
+
+// GetLastAccessedOk returns a tuple with the LastAccessed field value if set, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *User) GetLastAccessedOk() (time.Time, bool) {
+ if o == nil || o.LastAccessed == nil {
+ var ret time.Time
+ return ret, false
+ }
+ return *o.LastAccessed, true
+}
+
+// HasLastAccessed returns a boolean if a field has been set.
+func (o *User) HasLastAccessed() bool {
+ if o != nil && o.LastAccessed != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLastAccessed gets a reference to the given time.Time and assigns it to the LastAccessed field.
+func (o *User) SetLastAccessed(v time.Time) {
+ o.LastAccessed = &v
+}
+
type NullableUser struct {
Value User
ExplicitNull bool