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 @@ -352,6 +352,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 @@ -1326,6 +1327,7 @@ talon_one/models/effect_will_award_giveaway.py
talon_one/models/email_entity.py
talon_one/models/embedded_analytics_configuration.py
talon_one/models/embedded_analytics_configuration_dashboards.py
talon_one/models/embedded_analytics_token.py
talon_one/models/embedded_dashboard_configuration.py
talon_one/models/endpoint.py
talon_one/models/entity.py
Expand Down Expand Up @@ -2287,6 +2289,7 @@ test/test_effect_will_award_giveaway.py
test/test_email_entity.py
test/test_embedded_analytics_configuration.py
test/test_embedded_analytics_configuration_dashboards.py
test/test_embedded_analytics_token.py
test/test_embedded_dashboard_configuration.py
test/test_endpoint.py
test/test_entity.py
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ Class | Method | HTTP request | Description
*IntegrationApi* | [**get_reserved_customers**](docs/IntegrationApi.md#get_reserved_customers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved
*IntegrationApi* | [**integration_get_all_campaigns**](docs/IntegrationApi.md#integration_get_all_campaigns) | **GET** /v1/integration/campaigns | List all running campaigns
*IntegrationApi* | [**integration_rewards_catalog**](docs/IntegrationApi.md#integration_rewards_catalog) | **GET** /v1/rewards/catalog | List rewards in the catalog
*IntegrationApi* | [**integration_update_loyalty_card**](docs/IntegrationApi.md#integration_update_loyalty_card) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/update | Update loyalty card
*IntegrationApi* | [**join_loyalty_program**](docs/IntegrationApi.md#join_loyalty_program) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/join | Join customer profile to loyalty program
*IntegrationApi* | [**link_loyalty_card_to_profile**](docs/IntegrationApi.md#link_loyalty_card_to_profile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card
*IntegrationApi* | [**reopen_customer_session**](docs/IntegrationApi.md#reopen_customer_session) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session
Expand Down Expand Up @@ -742,6 +743,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
31 changes: 31 additions & 0 deletions docs/EmbeddedAnalyticsToken.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# EmbeddedAnalyticsToken

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

## Properties

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

## Example

```python
from talon_one.models.embedded_analytics_token import EmbeddedAnalyticsToken

# TODO update the JSON string below
json = "{}"
# create an instance of EmbeddedAnalyticsToken from a JSON string
embedded_analytics_token_instance = EmbeddedAnalyticsToken.from_json(json)
# print the JSON string representation of the object
print(EmbeddedAnalyticsToken.to_json())

# convert the object into a dict
embedded_analytics_token_dict = embedded_analytics_token_instance.to_dict()
# create an instance of EmbeddedAnalyticsToken from a dict
embedded_analytics_token_from_dict = EmbeddedAnalyticsToken.from_dict(embedded_analytics_token_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/ErrorResponseWithStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**errors** | [**List[APIError]**](APIError.md) | An array of individual problems encountered during the request. | [optional]
**status_code** | **int** | The error code | [optional]
**status_code** | **int** | The error code. | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/GenerateLoyaltyCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**status** | **str** | Status of the loyalty card. | [optional] [default to 'active']
**customer_profile_ids** | **List[str]** | Integration IDs of the customer profiles linked to the card. | [optional]
**card_identifier** | **str** | The identifier of the loyalty card, which must match the regular expression `^[A-Za-z0-9._%+@-]+$`. | [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]

## Example

Expand Down
93 changes: 93 additions & 0 deletions docs/IntegrationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Method | HTTP request | Description
[**get_reserved_customers**](IntegrationApi.md#get_reserved_customers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved
[**integration_get_all_campaigns**](IntegrationApi.md#integration_get_all_campaigns) | **GET** /v1/integration/campaigns | List all running campaigns
[**integration_rewards_catalog**](IntegrationApi.md#integration_rewards_catalog) | **GET** /v1/rewards/catalog | List rewards in the catalog
[**integration_update_loyalty_card**](IntegrationApi.md#integration_update_loyalty_card) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/update | Update loyalty card
[**join_loyalty_program**](IntegrationApi.md#join_loyalty_program) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/join | Join customer profile to loyalty program
[**link_loyalty_card_to_profile**](IntegrationApi.md#link_loyalty_card_to_profile) | **POST** /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card
[**reopen_customer_session**](IntegrationApi.md#reopen_customer_session) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session
Expand Down Expand Up @@ -2610,6 +2611,98 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **integration_update_loyalty_card**
> LoyaltyCard integration_update_loyalty_card(loyalty_program_id, loyalty_card_id, update_loyalty_card_request)

Update loyalty card

Updates the details of a specific loyalty card. Use this endpoint to modify the card's status and custom attribute values.

You must provide at least one of the following parameters:
- `status`
- `attributes`


### Example

* Api Key Authentication (api_key_v1):

```python
import talon_one
from talon_one.models.loyalty_card import LoyaltyCard
from talon_one.models.update_loyalty_card_request import UpdateLoyaltyCardRequest
from talon_one.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://yourbaseurl.talon.one
# See configuration.py for a list of all supported configuration parameters.
configuration = talon_one.Configuration(
host = "https://yourbaseurl.talon.one"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: api_key_v1
configuration.api_key['api_key_v1'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key_v1'] = 'Bearer'

# Enter a context with an instance of the API client
with talon_one.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = talon_one.IntegrationApi(api_client)
loyalty_program_id = 56 # int | 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.
loyalty_card_id = 'loyalty_card_id_example' # str | 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`.
update_loyalty_card_request = talon_one.UpdateLoyaltyCardRequest() # UpdateLoyaltyCardRequest | body

try:
# Update loyalty card
api_response = api_instance.integration_update_loyalty_card(loyalty_program_id, loyalty_card_id, update_loyalty_card_request)
print("The response of IntegrationApi->integration_update_loyalty_card:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IntegrationApi->integration_update_loyalty_card: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyalty_program_id** | **int**| 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. |
**loyalty_card_id** | **str**| 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`. |
**update_loyalty_card_request** | [**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 | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **join_loyalty_program**
> join_loyalty_program(loyalty_program_id, integration_id)

Expand Down
1 change: 1 addition & 0 deletions docs/LoyaltyCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**program_title** | **str** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional]
**status** | **str** | Status of the loyalty card. Can be `active` or `inactive`. |
**block_reason** | **str** | 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** | **str** | The identifier of the loyalty card, which must match the regular expression `^[A-Za-z0-9._%+@-]+$`. |
**users_per_card_limit** | **int** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. |
**profiles** | [**List[LoyaltyCardProfileRegistration]**](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 @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**number_of_cards** | **int** | Number of loyalty cards in the batch. |
**batch_id** | **str** | ID of the loyalty card batch. | [optional]
**status** | **str** | Status of the loyalty cards in the batch. | [optional] [default to 'active']
**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]
**card_code_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]

## Example
Expand Down
Loading
Loading