Skip to content

Commit 295f2fd

Browse files
authored
v3.4.0 (#11)
- More filtering parameters when querying changes endpoint - The full `Coupon` object is now returned as part of an integration response - Support for new limit configuration of amount of give discount effects
1 parent 7a296a4 commit 295f2fd

28 files changed

+1257
-82
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
3939
<dependency>
4040
<groupId>one.talon</groupId>
4141
<artifactId>talon-one-client</artifactId>
42-
<version>3.3.0</version>
42+
<version>3.4.0</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
4949
Add this dependency to your project's build file:
5050

5151
```groovy
52-
compile "one.talon:talon-one-client:3.3.0"
52+
compile "one.talon:talon-one-client:3.4.0"
5353
```
5454

5555
### Others
@@ -62,7 +62,7 @@ mvn clean package
6262

6363
Then manually install the following JARs:
6464

65-
* `target/talon-one-client-3.3.0.jar`
65+
* `target/talon-one-client-3.4.0.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started
@@ -375,6 +375,7 @@ Class | Method | HTTP request | Description
375375
- [NewReferral](docs/NewReferral.md)
376376
- [NewRole](docs/NewRole.md)
377377
- [NewRuleset](docs/NewRuleset.md)
378+
- [NewSamlConnection](docs/NewSamlConnection.md)
378379
- [NewTemplateDef](docs/NewTemplateDef.md)
379380
- [NewUser](docs/NewUser.md)
380381
- [NewWebhook](docs/NewWebhook.md)
@@ -386,11 +387,13 @@ Class | Method | HTTP request | Description
386387
- [RoleMembership](docs/RoleMembership.md)
387388
- [Rule](docs/Rule.md)
388389
- [Ruleset](docs/Ruleset.md)
390+
- [SamlConnection](docs/SamlConnection.md)
389391
- [Session](docs/Session.md)
390392
- [SlotDef](docs/SlotDef.md)
391393
- [TemplateArgDef](docs/TemplateArgDef.md)
392394
- [TemplateDef](docs/TemplateDef.md)
393395
- [UpdateAccount](docs/UpdateAccount.md)
396+
- [UpdateApplication](docs/UpdateApplication.md)
394397
- [UpdateCampaign](docs/UpdateCampaign.md)
395398
- [UpdateCoupon](docs/UpdateCoupon.md)
396399
- [UpdateCouponBatch](docs/UpdateCouponBatch.md)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'one.talon'
5-
version = '3.3.0'
5+
version = '3.4.0'
66

77
buildscript {
88
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 := "3.3.0",
5+
version := "3.4.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/Application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Name | Type | Description | Notes
1010
**accountId** | **Integer** | The ID of the account that owns this entity. |
1111
**name** | **String** | The name of this application. |
1212
**description** | **String** | A longer description of the application. | [optional]
13-
**key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) |
1413
**timezone** | **String** | A string containing an IANA timezone descriptor. |
1514
**currency** | **String** | A string describing a default currency for new customer sessions. |
1615
**caseSensitivity** | [**CaseSensitivityEnum**](#CaseSensitivityEnum) | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
1716
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
1817
**limits** | [**List&lt;LimitConfig&gt;**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
18+
**key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) |
1919
**loyaltyPrograms** | [**List&lt;LoyaltyProgram&gt;**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed |
2020

2121

docs/Campaign.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
2323
**couponRedemptionCount** | **Integer** | Number of coupons redeemed in the campaign. | [optional]
2424
**referralRedemptionCount** | **Integer** | Number of referral codes redeemed in the campaign. | [optional]
2525
**discountCount** | **Integer** | Total amount of discounts redeemed in the campaign. | [optional]
26+
**discountEffectCount** | **Integer** | Total number of times discounts were redeemed in this campaign. | [optional]
27+
**couponCreationCount** | **Integer** | Total number of coupons created by rules in this campaign. | [optional]
2628
**lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional]
2729
**updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign or any of its elements. | [optional]
2830
**createdBy** | **String** | Name of the user who created this campaign if available. | [optional]

docs/InlineResponse20025.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**data** | [**List&lt;Change&gt;**](Change.md) | |
8-
**totalResultSize** | **Integer** | |
8+
**hasMore** | **Boolean** | | [optional]
9+
**totalResultSize** | **Integer** | | [optional]
910

1011

1112

docs/IntegrationState.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**profile** | [**CustomerProfile**](CustomerProfile.md) | |
99
**event** | [**Event**](Event.md) | |
1010
**loyalty** | [**Loyalty**](Loyalty.md) | | [optional]
11+
**coupon** | [**Coupon**](Coupon.md) | | [optional]
1112

1213

1314

docs/LimitConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ REDEEMCOUPON | &quot;redeemCoupon&quot;
1717
REDEEMREFERRAL | &quot;redeemReferral&quot;
1818
SETDISCOUNT | &quot;setDiscount&quot;
1919
CREATECOUPON | &quot;createCoupon&quot;
20+
SETDISCOUNTEFFECT | &quot;setDiscountEffect&quot;
2021

2122

2223
<a name="List<EntitiesEnum>"></a>

docs/ManagementApi.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ Name | Type | Description | Notes
22402240

22412241
<a name="getChanges"></a>
22422242
# **getChanges**
2243-
> InlineResponse20025 getChanges(pageSize, skip, sort)
2243+
> InlineResponse20025 getChanges(pageSize, skip, sort, applicationId, createdBefore, createdAfter, withTotalResultSize, includeOld)
22442244
22452245
Get audit log for an account
22462246

@@ -2267,8 +2267,13 @@ ManagementApi apiInstance = new ManagementApi();
22672267
Integer pageSize = 56; // Integer | The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
22682268
Integer skip = 56; // Integer | Skips the given number of items when paging through large result sets.
22692269
String sort = "sort_example"; // String | The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order.
2270+
Integer applicationId = 56; // Integer |
2271+
OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2272+
OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2273+
Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
2274+
Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true.
22702275
try {
2271-
InlineResponse20025 result = apiInstance.getChanges(pageSize, skip, sort);
2276+
InlineResponse20025 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, createdBefore, createdAfter, withTotalResultSize, includeOld);
22722277
System.out.println(result);
22732278
} catch (ApiException e) {
22742279
System.err.println("Exception when calling ManagementApi#getChanges");
@@ -2283,6 +2288,11 @@ Name | Type | Description | Notes
22832288
**pageSize** | **Integer**| The number of items to include in this response. When omitted, the maximum value of 1000 will be used. | [optional]
22842289
**skip** | **Integer**| Skips the given number of items when paging through large result sets. | [optional]
22852290
**sort** | **String**| The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order. | [optional]
2291+
**applicationId** | **Integer**| | [optional]
2292+
**createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. | [optional]
2293+
**createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. | [optional]
2294+
**withTotalResultSize** | **Boolean**| When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. | [optional]
2295+
**includeOld** | **Boolean**| When this flag is set to false, the state without the change will not be returned. The default value is true. | [optional]
22862296

22872297
### Return type
22882298

docs/NewApplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **String** | The name of this application. |
88
**description** | **String** | A longer description of the application. | [optional]
9-
**key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) |
109
**timezone** | **String** | A string containing an IANA timezone descriptor. |
1110
**currency** | **String** | A string describing a default currency for new customer sessions. |
1211
**caseSensitivity** | [**CaseSensitivityEnum**](#CaseSensitivityEnum) | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
1312
**attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
1413
**limits** | [**List&lt;LimitConfig&gt;**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
14+
**key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) | [optional]
1515

1616

1717
<a name="CaseSensitivityEnum"></a>

0 commit comments

Comments
 (0)