Skip to content

Commit 149a646

Browse files
authored
v5.0.1: Fix faulty response payloads in integration api endpoints (#34)
## Summary #### Fix faulty response payload for [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession) endpoint Endpoint now returns a [ReopenSessionResponse](https://github.com/talon-one/TalonOneJavaSdk/pull/34/files#diff-c488dc3cb4e38b84295ecbaee7649534f8478ec4506cb0c20b9729723f523747) which maps correctly to the endpoint returned value. #### Fix faulty response payload for [List card's transactions](https://docs.talon.one/integration-api#tag/Loyalty-cards/operation/getLoyaltyCardTransactions) response of the endpoint was lacking the wrapping in the "page" structure that contains the list of transactions in it's `Data` field, see (InlineResponse2001)(https://github.com/talon-one/TalonOneJavaSdk/pull/34/files#diff-1ca9f97889ec1e43e75deb4dd47b8647533ea8bb30dcc4cf374854a6c1f355ca)
1 parent b3d14bd commit 149a646

File tree

856 files changed

+3672
-2590
lines changed

Some content is hidden

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

856 files changed

+3672
-2590
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Large diffs are not rendered by default.

api/openapi.yaml

Lines changed: 295 additions & 137 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 = '5.0.0'
6+
version = '5.0.1'
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 := "5.0.0",
5+
version := "5.0.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AddLoyaltyPoints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**points** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points. |
1111
**name** | **String** | Name / reason for the point addition. | [optional]
12-
**validityDuration** | **String** | The duration after which the added loyalty points should expire. The time format is an integer followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. If passed, `validUntil` should be omitted. | [optional]
12+
**validityDuration** | **String** | The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months 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 and months. Signifies the end of the day, week, or month. If passed, `validUntil` should be omitted. | [optional]
1313
**validUntil** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted. | [optional]
14-
**pendingDuration** | **String** | The amount of time before the points are considered valid. The time format is an integer followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. If passed, `pendingUntil` should be omitted. | [optional]
14+
**pendingDuration** | **String** | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months 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 and months. Signifies the end of the day, week, or month. | [optional]
1515
**pendingUntil** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. | [optional]
1616
**subledgerId** | **String** | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional]
1717
**applicationId** | **Integer** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional]

docs/CustomEffect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. |
1212
**accountId** | **Integer** | The ID of the account that owns this entity. |
1313
**modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. |
14-
**applicationIds** | **List<Integer>** | The IDs of the applications that are related to this entity. |
14+
**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. |
1515
**isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional]
1616
**name** | **String** | The name of this effect. |
1717
**title** | **String** | The title of this effect. |

docs/InlineResponse2001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**hasMore** | **Boolean** | |
10-
**data** | [**List<LedgerTransactionLogEntryIntegrationAPI>**](LedgerTransactionLogEntryIntegrationAPI.md) | |
10+
**data** | [**List<CardLedgerTransactionLogEntryIntegrationAPI>**](CardLedgerTransactionLogEntryIntegrationAPI.md) | |
1111

1212

1313

docs/InlineResponse20010.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**totalResultSize** | **Integer** | |
10-
**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | |
9+
**hasMore** | **Boolean** | |
10+
**data** | [**List<CampaignTemplate>**](CampaignTemplate.md) | |
1111

1212

1313

docs/InlineResponse20011.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**hasMore** | **Boolean** | |
10-
**data** | [**List<LoyaltyProgramTransaction>**](LoyaltyProgramTransaction.md) | |
9+
**totalResultSize** | **Integer** | |
10+
**data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | |
1111

1212

1313

docs/InlineResponse20012.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**hasMore** | **Boolean** | |
10-
**data** | [**List<LoyaltyCard>**](LoyaltyCard.md) | |
10+
**data** | [**List<LoyaltyProgramTransaction>**](LoyaltyProgramTransaction.md) | |
1111

1212

1313

0 commit comments

Comments
 (0)