You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduce "dry runs" for Integration API endpoints (See more details below)
- Add support to retrieve coupons as part of requesting customer profile inventories
- Add support for setting the `discountLimit` when creating or editing coupons
### Introduce "dry runs" for Integration API endpoints
You can read more about the concept and where this feature could apply in your integration and workflow in our developers documentation center: https://developers.talon.one/Integration-API/dry-requests
**Please Notice** that all current integration request operations (`trackEvent`, `updateCustomerProfile`, `updateCustomerSession`, `updateCustomerSessionV2` ) expects a boolean flag to determine whether this request is a dry run or not.
See code examples in the [README.md](https://github.com/talon-one/TalonOneJavaSdk/blob/v4.1.0/README.md#v1) as for reference.
Commit Summary
=============
* Initial Commit v4.1.0
* Update readme examples to support the new dry-run parameter
// Flag to communicate whether the request is a "dry run"
128
+
Boolean dryRun =false;
129
+
127
130
// Create/update a customer session using `updateCustomerSessionV2` function
128
-
IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request);
131
+
IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request, dryRun);
129
132
System.out.println(is.toString());
130
133
131
134
// Parsing the returned effects list, please consult https://developers.talon.one/Integration-API/handling-effects-v2 for the full list of effects and their corresponding properties
*IntegrationApi* | [**deleteCustomerData**](docs/IntegrationApi.md#deleteCustomerData) | **DELETE** /v1/customer_data/{integrationId} | Delete the personal data of a customer.
241
247
*IntegrationApi* | [**getCustomerInventory**](docs/IntegrationApi.md#getCustomerInventory) | **GET** /v1/customer_profiles/{integrationId}/inventory | Get an inventory of all data associated with a specific customer profile.
242
-
*IntegrationApi* | [**getReservedCoupons**](docs/IntegrationApi.md#getReservedCoupons) | **GET** /v1/coupon_reservations/coupons/{integrationId} | Get all valid reserved coupons
243
248
*IntegrationApi* | [**getReservedCustomers**](docs/IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved
244
249
*IntegrationApi* | [**trackEvent**](docs/IntegrationApi.md#trackEvent) | **POST** /v1/events | Track an Event
*ManagementApi* | [**addLoyaltyPoints**](docs/ManagementApi.md#addLoyaltyPoints) | **PUT** /v1/loyalty_programs/{programID}/profile/{integrationID}/add_points | Add points in a certain loyalty program for the specified customer
*ManagementApi* | [**getCampaign**](docs/ManagementApi.md#getCampaign) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId} | Get a Campaign
284
290
*ManagementApi* | [**getCampaignAnalytics**](docs/ManagementApi.md#getCampaignAnalytics) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/analytics | Get analytics of campaigns
285
291
*ManagementApi* | [**getCampaignByAttributes**](docs/ManagementApi.md#getCampaignByAttributes) | **POST** /v1/applications/{applicationId}/campaigns_search | Get a list of all campaigns that match the given attributes
286
-
*ManagementApi* | [**getCampaignSet**](docs/ManagementApi.md#getCampaignSet) | **GET** /v1/applications/{applicationId}/campaign_set | List CampaignSet
287
292
*ManagementApi* | [**getCampaigns**](docs/ManagementApi.md#getCampaigns) | **GET** /v1/applications/{applicationId}/campaigns | List your Campaigns
288
293
*ManagementApi* | [**getChanges**](docs/ManagementApi.md#getChanges) | **GET** /v1/changes | Get audit log for an account
289
294
*ManagementApi* | [**getCoupons**](docs/ManagementApi.md#getCoupons) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | List Coupons
Copy file name to clipboardExpand all lines: docs/Application.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
**caseSensitivity** | [**CaseSensitivityEnum**](#CaseSensitivityEnum) | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
19
19
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
20
20
**limits** | [**List<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
21
+
**campaignPriority** | [**CampaignPriorityEnum**](#CampaignPriorityEnum) | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive) | [optional]
**loyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed |
Copy file name to clipboardExpand all lines: docs/ApplicationSession.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
**state** | [**StateEnum**](#StateEnum) | Indicating if the customer session is in progress (\"open\"), \"closed\", or \"cancelled\". |
Copy file name to clipboardExpand all lines: docs/Coupon.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,15 @@ Name | Type | Description | Notes
12
12
**campaignId** | **Integer** | The ID of the campaign that owns this entity. |
13
13
**value** | **String** | The actual coupon code. |
14
14
**usageLimit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply. |
15
+
**discountLimit** | [**BigDecimal**](BigDecimal.md) | The amount of discounts that can be given with this coupon code. | [optional]
15
16
**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional]
16
17
**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
17
18
**usageCounter** | **Integer** | The number of times this coupon has been successfully used. |
19
+
**discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional]
20
+
**discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional]
18
21
**attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional]
19
22
**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional]
20
-
**recipientIntegrationId** | **String** | The integration ID of a referred customer profile. | [optional]
23
+
**recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional]
21
24
**importId** | **Integer** | The ID of the Import which created this coupon. | [optional]
22
25
**reservation** | **Boolean** | This value controls what reservations mean to a coupon. If set to true the coupon reservation is used to mark it as a favourite, if set to false the coupon reservation is used as a requirement of usage. This value defaults to true if not specified. | [optional]
23
26
**batchId** | **String** | The id of the batch the coupon belongs to. | [optional]
**usageLimit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional]
10
+
**discountLimit** | [**BigDecimal**](BigDecimal.md) | The amount of discounts that can be given with this coupon code. | [optional]
10
11
**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional]
11
12
**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
0 commit comments