Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ docs/EffectWillAwardGiveaway.md
docs/EmailEntity.md
docs/EmbeddedAnalyticsConfiguration.md
docs/EmbeddedAnalyticsConfigurationDashboards.md
docs/EmbeddedAnalyticsToken.md
docs/EmbeddedDashboardConfiguration.md
docs/Endpoint.md
docs/Entity.md
Expand Down Expand Up @@ -1342,6 +1343,7 @@ src/main/java/one/talon/model/EffectWillAwardGiveaway.java
src/main/java/one/talon/model/EmailEntity.java
src/main/java/one/talon/model/EmbeddedAnalyticsConfiguration.java
src/main/java/one/talon/model/EmbeddedAnalyticsConfigurationDashboards.java
src/main/java/one/talon/model/EmbeddedAnalyticsToken.java
src/main/java/one/talon/model/EmbeddedDashboardConfiguration.java
src/main/java/one/talon/model/Endpoint.java
src/main/java/one/talon/model/Entity.java
Expand Down Expand Up @@ -2301,6 +2303,7 @@ src/test/java/one/talon/model/EffectWillAwardGiveawayTest.java
src/test/java/one/talon/model/EmailEntityTest.java
src/test/java/one/talon/model/EmbeddedAnalyticsConfigurationDashboardsTest.java
src/test/java/one/talon/model/EmbeddedAnalyticsConfigurationTest.java
src/test/java/one/talon/model/EmbeddedAnalyticsTokenTest.java
src/test/java/one/talon/model/EmbeddedDashboardConfigurationTest.java
src/test/java/one/talon/model/EndpointTest.java
src/test/java/one/talon/model/EntityTest.java
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>one.talon</groupId>
<artifactId>talon-one-client</artifactId>
<version>26.21.1</version>
<version>26.22.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -52,7 +52,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "one.talon:talon-one-client:26.21.1"
compile "one.talon:talon-one-client:26.22.0"
```

### Others
Expand Down Expand Up @@ -234,6 +234,7 @@ Class | Method | HTTP request | Description
*IntegrationApi* | [**getReservedCustomers**](docs/IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved
*IntegrationApi* | [**integrationGetAllCampaigns**](docs/IntegrationApi.md#integrationGetAllCampaigns) | **GET** /v1/integration/campaigns | List all running campaigns
*IntegrationApi* | [**integrationRewardsCatalog**](docs/IntegrationApi.md#integrationRewardsCatalog) | **GET** /v1/rewards/catalog | List rewards in the catalog
*IntegrationApi* | [**integrationUpdateLoyaltyCard**](docs/IntegrationApi.md#integrationUpdateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/update | Update loyalty card
*IntegrationApi* | [**joinLoyaltyProgram**](docs/IntegrationApi.md#joinLoyaltyProgram) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/join | Join customer profile to loyalty program
*IntegrationApi* | [**linkLoyaltyCardToProfile**](docs/IntegrationApi.md#linkLoyaltyCardToProfile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card
*IntegrationApi* | [**reopenCustomerSession**](docs/IntegrationApi.md#reopenCustomerSession) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session
Expand Down Expand Up @@ -793,6 +794,7 @@ Class | Method | HTTP request | Description
- [EmailEntity](docs/EmailEntity.md)
- [EmbeddedAnalyticsConfiguration](docs/EmbeddedAnalyticsConfiguration.md)
- [EmbeddedAnalyticsConfigurationDashboards](docs/EmbeddedAnalyticsConfigurationDashboards.md)
- [EmbeddedAnalyticsToken](docs/EmbeddedAnalyticsToken.md)
- [EmbeddedDashboardConfiguration](docs/EmbeddedDashboardConfiguration.md)
- [Endpoint](docs/Endpoint.md)
- [Entity](docs/Entity.md)
Expand Down
435 changes: 362 additions & 73 deletions api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'one.talon'
version = '26.21.1'
version = '26.22.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "one.talon",
name := "talon-one-client",
version := "26.21.1",
version := "26.22.0",
scalaVersion := "2.13.6",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
15 changes: 15 additions & 0 deletions docs/EmbeddedAnalyticsToken.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# EmbeddedAnalyticsToken

Contains a JWT for authentication and the hostname of the embedded analytics instance.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**token** | **String** | JWT for embedded analytics. | |
|**hostname** | **URI** | Base URL of the embedded analytics instance. | |



2 changes: 1 addition & 1 deletion docs/ErrorResponseWithStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**message** | **String** | | [optional] |
|**errors** | [**List&lt;APIError&gt;**](APIError.md) | An array of individual problems encountered during the request. | [optional] |
|**statusCode** | **Long** | The error code | [optional] |
|**statusCode** | **Long** | The error code. | [optional] |



1 change: 1 addition & 0 deletions docs/GenerateLoyaltyCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The parameters necessary to generate a loyalty card.
|**status** | [**StatusEnum**](#StatusEnum) | Status of the loyalty card. | [optional] |
|**customerProfileIds** | **List&lt;String&gt;** | Integration IDs of the customer profiles linked to the card. | [optional] |
|**cardIdentifier** | **String** | The identifier of the loyalty card, which must match the regular expression &#x60;^[A-Za-z0-9._%+@-]+$&#x60;. | [optional] |
|**attributes** | **Object** | Set values for the [custom attributes](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) of a loyalty card. These attributes must be created in the Campaign Manager before their values can be updated through this endpoint. | [optional] |



Expand Down
77 changes: 77 additions & 0 deletions docs/IntegrationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ All URIs are relative to *https://yourbaseurl.talon.one*
| [**getReservedCustomers**](IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved |
| [**integrationGetAllCampaigns**](IntegrationApi.md#integrationGetAllCampaigns) | **GET** /v1/integration/campaigns | List all running campaigns |
| [**integrationRewardsCatalog**](IntegrationApi.md#integrationRewardsCatalog) | **GET** /v1/rewards/catalog | List rewards in the catalog |
| [**integrationUpdateLoyaltyCard**](IntegrationApi.md#integrationUpdateLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/update | Update loyalty card |
| [**joinLoyaltyProgram**](IntegrationApi.md#joinLoyaltyProgram) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/join | Join customer profile to loyalty program |
| [**linkLoyaltyCardToProfile**](IntegrationApi.md#linkLoyaltyCardToProfile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card |
| [**reopenCustomerSession**](IntegrationApi.md#reopenCustomerSession) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session |
Expand Down Expand Up @@ -2157,6 +2158,82 @@ public class Example {
| **401** | Unauthorized | - |
| **404** | Not found | - |

<a id="integrationUpdateLoyaltyCard"></a>
# **integrationUpdateLoyaltyCard**
> LoyaltyCard integrationUpdateLoyaltyCard(loyaltyProgramId, loyaltyCardId, updateLoyaltyCardRequest)

Update loyalty card

Updates the details of a specific loyalty card. Use this endpoint to modify the card&#39;s status and custom attribute values. You must provide at least one of the following parameters: - &#x60;status&#x60; - &#x60;attributes&#x60;

### Example
```java
// Import classes:
import one.talon.ApiClient;
import one.talon.ApiException;
import one.talon.Configuration;
import one.talon.auth.*;
import one.talon.models.*;
import one.talon.api.IntegrationApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://yourbaseurl.talon.one");

// Configure API key authorization: api_key_v1
ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
api_key_v1.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key_v1.setApiKeyPrefix("Token");

IntegrationApi apiInstance = new IntegrationApi(defaultClient);
Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. **Important**: The loyalty card ID requires [URL encoding](https://www.w3schools.com/tags//ref_urlencode.asp) if it contains special characters. For example, you must encode `NewCard2026%` as `NewCard2026%25`.
UpdateLoyaltyCardRequest updateLoyaltyCardRequest = new UpdateLoyaltyCardRequest(); // UpdateLoyaltyCardRequest | body
try {
LoyaltyCard result = apiInstance.integrationUpdateLoyaltyCard(loyaltyProgramId, loyaltyCardId, updateLoyaltyCardRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IntegrationApi#integrationUpdateLoyaltyCard");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | |
| **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. **Important**: The loyalty card ID requires [URL encoding](https://www.w3schools.com/tags//ref_urlencode.asp) if it contains special characters. For example, you must encode &#x60;NewCard2026%&#x60; as &#x60;NewCard2026%25&#x60;. | |
| **updateLoyaltyCardRequest** | [**UpdateLoyaltyCardRequest**](UpdateLoyaltyCardRequest.md)| body | |

### Return type

[**LoyaltyCard**](LoyaltyCard.md)

### Authorization

[api_key_v1](../README.md#api_key_v1)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad request | - |
| **401** | Unauthorized | - |
| **404** | Not found | - |

<a id="joinLoyaltyProgram"></a>
# **joinLoyaltyProgram**
> joinLoyaltyProgram(loyaltyProgramId, integrationId)
Expand Down
1 change: 1 addition & 0 deletions docs/LoyaltyCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
|**programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] |
|**status** | **String** | Status of the loyalty card. Can be &#x60;active&#x60; or &#x60;inactive&#x60;. | |
|**blockReason** | **String** | Reason for transferring and blocking the loyalty card. | [optional] |
|**attributes** | **Object** | Set values for the [custom attributes](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) of a loyalty card. These attributes must be created in the Campaign Manager before their values can be updated through this endpoint. | [optional] |
|**identifier** | **String** | The identifier of the loyalty card, which must match the regular expression &#x60;^[A-Za-z0-9._%+@-]+$&#x60;. | |
|**usersPerCardLimit** | **Long** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. | |
|**profiles** | [**List&lt;LoyaltyCardProfileRegistration&gt;**](LoyaltyCardProfileRegistration.md) | Integration IDs of the customers profiles linked to the card. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/LoyaltyCardBatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
|**numberOfCards** | **Long** | Number of loyalty cards in the batch. | |
|**batchId** | **String** | ID of the loyalty card batch. | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | Status of the loyalty cards in the batch. | [optional] |
|**attributes** | **Object** | Set values for the [custom attributes](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) of a loyalty card. These attributes must be created in the Campaign Manager before their values can be updated through this endpoint. | [optional] |
|**cardCodeSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] |


Expand Down
Loading
Loading