Skip to content

Commit 306b6a1

Browse files
committed
v4.5.0: Partial Returns & Collections (#28)
* Initial Commit
1 parent 2d015fa commit 306b6a1

File tree

819 files changed

+50653
-17395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

819 files changed

+50653
-17395
lines changed

README.md

Lines changed: 208 additions & 220 deletions
Large diffs are not rendered by default.

api/openapi.yaml

Lines changed: 13013 additions & 6164 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'one.talon'
6-
version = '4.4.1'
6+
version = '4.5.0'
77

88
buildscript {
99
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "one.talon",
44
name := "talon-one-client",
5-
version := "4.4.1",
5+
version := "4.5.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AccountAdditionalCost.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ Name | Type | Description | Notes
1414
**title** | **String** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. |
1515
**description** | **String** | A description of this additional cost. |
1616
**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this additional cost | [optional]
17+
**type** | [**TypeEnum**](#TypeEnum) | The type of additional cost. The following options can be chosen: - `session`: Additional cost will be added per session, - `item`: Additional cost will be added per item, - `both`: Additional cost will be added per item and session. | [optional]
18+
19+
20+
21+
## Enum: TypeEnum
22+
23+
Name | Value
24+
---- | -----
25+
SESSION | "session"
26+
ITEM | "item"
27+
BOTH | "both"
1728

1829

1930

docs/AccountAnalytics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Name | Type | Description | Notes
2323
**roles** | **Integer** | Total number of roles in the account |
2424
**customAttributes** | **Integer** | Total number of custom attributes in the account |
2525
**webhooks** | **Integer** | Total number of webhooks in the account |
26-
**loyaltyPrograms** | **Integer** | Total number of loyalty programs in the account |
26+
**loyaltyPrograms** | **Integer** | Total number of all loyalty programs in the account |
27+
**liveLoyaltyPrograms** | **Integer** | Total number of live loyalty programs in the account |
2728

2829

2930

docs/AddLoyaltyPointsEffectProps.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22

33
# AddLoyaltyPointsEffectProps
44

5-
The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained an \"add loyalty\" effect. These points are automatically stored and managed inside Talon.One.
5+
The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained an \"add loyalty\" effect. These points are automatically stored and managed inside Talon.One.
66
## Properties
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**name** | **String** | The name/description of this loyalty point addition |
11-
**programId** | **Integer** | The ID of the loyalty program where these points were added |
12-
**subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added |
13-
**value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were added |
14-
**recipientIntegrationId** | **String** | The user for whom these points were added |
15-
**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date after which points will be valid | [optional]
16-
**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date after which points will expire | [optional]
17-
**transactionUUID** | **String** | The identifier of this addition in the loyalty ledger |
10+
**name** | **String** | The name/description of this loyalty point addition. |
11+
**programId** | **Integer** | The ID of the loyalty program where these points were added. |
12+
**subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. |
13+
**value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were added. |
14+
**desiredValue** | [**BigDecimal**](BigDecimal.md) | The original amount of loyalty points to be awarded. | [optional]
15+
**recipientIntegrationId** | **String** | The user for whom these points were added. |
16+
**startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date after which points will be valid. | [optional]
17+
**expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date after which points will expire. | [optional]
18+
**transactionUUID** | **String** | The identifier of this addition in the loyalty ledger. |
19+
**cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart items list on which the loyal points addition should be applied. | [optional]
20+
**cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | The sub position is triggered when application flattening is enabled. It indicates to which item the loyalty points addition applies, for cart items with `quantity` > 1. | [optional]
21+
**cardIdentifier** | **String** | The card on which these points were added. | [optional]
1822

1923

2024

docs/Application.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ Name | Type | Description | Notes
1414
**name** | **String** | The name of this application. |
1515
**description** | **String** | A longer description of the application. | [optional]
1616
**timezone** | **String** | A string containing an IANA timezone descriptor. |
17-
**currency** | **String** | A string describing a default currency for new customer sessions. |
18-
**caseSensitivity** | [**CaseSensitivityEnum**](#CaseSensitivityEnum) | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
19-
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
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). If no value is provided, this is set to \"universal\" | [optional]
22-
**exclusiveCampaignsStrategy** | [**ExclusiveCampaignsStrategyEnum**](#ExclusiveCampaignsStrategyEnum) | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional]
23-
**defaultDiscountScope** | [**DefaultDiscountScopeEnum**](#DefaultDiscountScopeEnum) | The default scope to apply \"setDiscount\" effects on if no scope was provided with the effect. | [optional]
24-
**enableCascadingDiscounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional]
25-
**enableFlattenedCartItems** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional]
17+
**currency** | **String** | The default currency for new customer sessions. |
18+
**caseSensitivity** | [**CaseSensitivityEnum**](#CaseSensitivityEnum) | The case sensitivity behavior to check coupon codes in the campaigns of this Application. | [optional]
19+
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional]
20+
**limits** | [**List<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application. | [optional]
21+
**campaignPriority** | [**CampaignPriorityEnum**](#CampaignPriorityEnum) | Default [priority](https://docs.talon.one/docs/product/applications/setting-up-campaign-priorities) for campaigns created in this Application. | [optional]
22+
**exclusiveCampaignsStrategy** | [**ExclusiveCampaignsStrategyEnum**](#ExclusiveCampaignsStrategyEnum) | The strategy used when choosing exclusive campaigns for evaluation. | [optional]
23+
**defaultDiscountScope** | [**DefaultDiscountScopeEnum**](#DefaultDiscountScopeEnum) | The default scope to apply `setDiscount` effects on if no scope was provided with the effect. | [optional]
24+
**enableCascadingDiscounts** | **Boolean** | Indicates if discounts should cascade for this Application. | [optional]
25+
**enableFlattenedCartItems** | **Boolean** | Indicates if cart items of quantity larger than one should be separated into different items of quantity one. See [the docs](https://docs.talon.one/docs/product/campaigns/campaign-evaluation/#flattened-cart-items). | [optional]
2626
**attributesSettings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
27-
**sandbox** | **Boolean** | Flag indicating if this is a live or sandbox application | [optional]
27+
**sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional]
28+
**enablePartialDiscounts** | **Boolean** | Indicates if this Application supports partial discounts. | [optional]
29+
**defaultDiscountAdditionalCostPerItemScope** | [**DefaultDiscountAdditionalCostPerItemScopeEnum**](#DefaultDiscountAdditionalCostPerItemScopeEnum) | The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. | [optional]
2830
**loyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed |
2931

3032

@@ -69,3 +71,13 @@ ADDITIONALCOSTS | "additionalCosts"
6971

7072

7173

74+
## Enum: DefaultDiscountAdditionalCostPerItemScopeEnum
75+
76+
Name | Value
77+
---- | -----
78+
PRICE | "price"
79+
ITEMTOTAL | "itemTotal"
80+
ADDITIONALCOSTS | "additionalCosts"
81+
82+
83+

docs/ApplicationAPIKey.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**title** | **String** | Title for API Key |
1111
**expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expired |
12-
**platform** | [**PlatformEnum**](#PlatformEnum) | Platform the API key is valid for. | [optional]
12+
**platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional]
1313
**id** | **Integer** | ID of the API Key |
1414
**createdBy** | **Integer** | ID of user who created |
1515
**accountID** | **Integer** | ID of account the key is used for |
@@ -27,6 +27,9 @@ SEGMENT | "segment"
2727
BRAZE | "braze"
2828
MPARTICLE | "mparticle"
2929
SELLIGENT | "selligent"
30+
ITERABLE | "iterable"
31+
CUSTOMER_ENGAGEMENT | "customer_engagement"
32+
CUSTOMER_DATA | "customer_data"
3033

3134

3235

docs/ApplicationCustomer.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10-
**id** | **Integer** | Unique ID for this entity. |
11-
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. |
10+
**id** | **Integer** | Unique ID for this entity. Unique ID for this entity. |
11+
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. |
1212
**integrationId** | **String** | The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. |
1313
**attributes** | [**Object**](.md) | Arbitrary properties associated with this item |
1414
**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile. |
1515
**closedSessions** | **Integer** | The total amount of closed sessions by a customer. A closed session is a successful purchase. |
1616
**totalSales** | [**BigDecimal**](BigDecimal.md) | Sum of all purchases made by this customer |
17-
**loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | A list of loyalty programs joined by the customer | [optional]
17+
**loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional]
1818
**audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | A list of audiences the customer belongs to | [optional]
19-
**lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer |
19+
**lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the rule-engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api/#operation/createCouponReservation) for a customer doesn't impact this field. |
20+
**advocateIntegrationId** | **String** | The Integration ID of the Customer Profile that referred this Customer in the Application. | [optional]
2021

2122

2223

0 commit comments

Comments
 (0)