Skip to content
Closed
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
19 changes: 19 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.gitignore
.gitlab-ci.yml
.travis.yml
LICENSE
MIGRATION.md
Makefile
README.md
Expand Down Expand Up @@ -693,6 +694,7 @@ docs/NewReferralsForMultipleAdvocates.md
docs/NewReturn.md
docs/NewRevisionVersion.md
docs/NewReward.md
docs/NewRewardBudget.md
docs/NewRiskNotification.md
docs/NewRole.md
docs/NewRoleV2.md
Expand Down Expand Up @@ -789,11 +791,15 @@ docs/RevisionActivation.md
docs/RevisionActivationRequest.md
docs/RevisionVersion.md
docs/Reward.md
docs/RewardBudget.md
docs/RewardBudgetLimitCounter.md
docs/RewardBudgetWithLimitCounter.md
docs/RewardCatalogItem.md
docs/RewardEligibility.md
docs/RewardEligibilityFailureDetails.md
docs/RewardPointsRequired.md
docs/RewardUnlockRejection.md
docs/RewardWithBudgets.md
docs/RewardWithUnlocks.md
docs/Risk.md
docs/RiskAffectedEntityItem.md
Expand Down Expand Up @@ -962,6 +968,7 @@ docs/UpdatePriceType.md
docs/UpdateReferral.md
docs/UpdateReferralBatch.md
docs/UpdateReward.md
docs/UpdateRewardBudget.md
docs/UpdateRiskNotification.md
docs/UpdateRole.md
docs/UpdateStore.md
Expand Down Expand Up @@ -1682,6 +1689,7 @@ talon_one/models/new_referrals_for_multiple_advocates.py
talon_one/models/new_return.py
talon_one/models/new_revision_version.py
talon_one/models/new_reward.py
talon_one/models/new_reward_budget.py
talon_one/models/new_risk_notification.py
talon_one/models/new_role.py
talon_one/models/new_role_v2.py
Expand Down Expand Up @@ -1778,11 +1786,15 @@ talon_one/models/revision_activation.py
talon_one/models/revision_activation_request.py
talon_one/models/revision_version.py
talon_one/models/reward.py
talon_one/models/reward_budget.py
talon_one/models/reward_budget_limit_counter.py
talon_one/models/reward_budget_with_limit_counter.py
talon_one/models/reward_catalog_item.py
talon_one/models/reward_eligibility.py
talon_one/models/reward_eligibility_failure_details.py
talon_one/models/reward_points_required.py
talon_one/models/reward_unlock_rejection.py
talon_one/models/reward_with_budgets.py
talon_one/models/reward_with_unlocks.py
talon_one/models/risk.py
talon_one/models/risk_affected_entity_item.py
Expand Down Expand Up @@ -1951,6 +1963,7 @@ talon_one/models/update_price_type.py
talon_one/models/update_referral.py
talon_one/models/update_referral_batch.py
talon_one/models/update_reward.py
talon_one/models/update_reward_budget.py
talon_one/models/update_risk_notification.py
talon_one/models/update_role.py
talon_one/models/update_store.py
Expand Down Expand Up @@ -2662,6 +2675,7 @@ test/test_new_referrals_for_multiple_advocates.py
test/test_new_return.py
test/test_new_revision_version.py
test/test_new_reward.py
test/test_new_reward_budget.py
test/test_new_risk_notification.py
test/test_new_role.py
test/test_new_role_v2.py
Expand Down Expand Up @@ -2758,11 +2772,15 @@ test/test_revision_activation.py
test/test_revision_activation_request.py
test/test_revision_version.py
test/test_reward.py
test/test_reward_budget.py
test/test_reward_budget_limit_counter.py
test/test_reward_budget_with_limit_counter.py
test/test_reward_catalog_item.py
test/test_reward_eligibility.py
test/test_reward_eligibility_failure_details.py
test/test_reward_points_required.py
test/test_reward_unlock_rejection.py
test/test_reward_with_budgets.py
test/test_reward_with_unlocks.py
test/test_risk.py
test/test_risk_affected_entity_item.py
Expand Down Expand Up @@ -2931,6 +2949,7 @@ test/test_update_price_type.py
test/test_update_referral.py
test/test_update_referral_batch.py
test/test_update_reward.py
test/test_update_reward_budget.py
test/test_update_risk_notification.py
test/test_update_role.py
test/test_update_store.py
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Talon.One GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ Class | Method | HTTP request | Description
- [NewReturn](docs/NewReturn.md)
- [NewRevisionVersion](docs/NewRevisionVersion.md)
- [NewReward](docs/NewReward.md)
- [NewRewardBudget](docs/NewRewardBudget.md)
- [NewRiskNotification](docs/NewRiskNotification.md)
- [NewRole](docs/NewRole.md)
- [NewRoleV2](docs/NewRoleV2.md)
Expand Down Expand Up @@ -1178,11 +1179,15 @@ Class | Method | HTTP request | Description
- [RevisionActivationRequest](docs/RevisionActivationRequest.md)
- [RevisionVersion](docs/RevisionVersion.md)
- [Reward](docs/Reward.md)
- [RewardBudget](docs/RewardBudget.md)
- [RewardBudgetLimitCounter](docs/RewardBudgetLimitCounter.md)
- [RewardBudgetWithLimitCounter](docs/RewardBudgetWithLimitCounter.md)
- [RewardCatalogItem](docs/RewardCatalogItem.md)
- [RewardEligibility](docs/RewardEligibility.md)
- [RewardEligibilityFailureDetails](docs/RewardEligibilityFailureDetails.md)
- [RewardPointsRequired](docs/RewardPointsRequired.md)
- [RewardUnlockRejection](docs/RewardUnlockRejection.md)
- [RewardWithBudgets](docs/RewardWithBudgets.md)
- [RewardWithUnlocks](docs/RewardWithUnlocks.md)
- [Risk](docs/Risk.md)
- [RiskAffectedEntityItem](docs/RiskAffectedEntityItem.md)
Expand Down Expand Up @@ -1351,6 +1356,7 @@ Class | Method | HTTP request | Description
- [UpdateReferral](docs/UpdateReferral.md)
- [UpdateReferralBatch](docs/UpdateReferralBatch.md)
- [UpdateReward](docs/UpdateReward.md)
- [UpdateRewardBudget](docs/UpdateRewardBudget.md)
- [UpdateRiskNotification](docs/UpdateRiskNotification.md)
- [UpdateRole](docs/UpdateRole.md)
- [UpdateStore](docs/UpdateStore.md)
Expand Down
1 change: 1 addition & 0 deletions docs/AwardDiscountBlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**value** | [**AwardDiscountBlock1Value**](AwardDiscountBlock1Value.md) | |
**partial** | **bool** | Whether to apply a partial discount when the requested value exceeds the configured budget. |
**target** | [**AwardDiscountTarget**](AwardDiscountTarget.md) | |
**excluded_from_price_history** | **bool** | When set to `true`, the applied discount is excluded from the item's [price history](https://docs.talon.one/docs/dev/integration-guides/best-prior-price#price-history). | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/Block.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Name | Type | Description | Notes
**value** | [**RedeemLoyaltyPointsBlock1Value**](RedeemLoyaltyPointsBlock1Value.md) | |
**partial** | **bool** | When `true`, applies a partial points reward when the requested value exceeds the configured budget. |
**target** | [**AwardLoyaltyPointsTarget**](AwardLoyaltyPointsTarget.md) | |
**excluded_from_price_history** | **bool** | When set to `true`, the applied discount is excluded from the item's [price history](https://docs.talon.one/docs/dev/integration-guides/best-prior-price#price-history). | [optional]
**expression** | **List[object]** | The raw Talang expression as an array. For a function call, the first element is the function name and subsequent elements are its arguments. For any other expression (for example a bare attribute path or a literal value), this is a single-element array containing that value. |
**notification_type** | **str** | The type of notification to display. |
**title** | **str** | The notification heading shown to the customer. |
Expand Down
4 changes: 2 additions & 2 deletions docs/CatalogActionFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ The properties for a single filtering condition in a catalog sync action.

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attr** | **str** | The name of the attribute to filter on. |
**attr** | **str** | The name of the attribute to filter on. The attribute must exist in the catalog. For the `LT`, `LE`, `GT`, and `GE` comparison operators, the attribute must be of type `number`. |
**op** | **str** | The filtering operator. |
**value** | **object** | The value to filter for. |
**value** | **object** | The value to filter for. For the `LT`, `LE`, `GT`, and `GE` comparison operators, the value must be a number or a numeric string. |

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/CustomerInventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Name | Type | Description | Notes
**referrals** | [**List[InventoryReferral]**](InventoryReferral.md) | | [optional]
**coupons** | [**List[InventoryCoupon]**](InventoryCoupon.md) | The coupons reserved by this profile. This array includes hard and soft reservations. | [optional]
**giveaways** | [**List[Giveaway]**](Giveaway.md) | | [optional]
**achievements** | [**List[AchievementProgressWithDefinition]**](AchievementProgressWithDefinition.md) | | [optional]
**rewards** | [**List[RewardWithUnlocks]**](RewardWithUnlocks.md) | The customer rewards that are `unlocked` and not yet `used`. | [optional]
**achievements** | [**List[AchievementProgressWithDefinition]**](AchievementProgressWithDefinition.md) | The customer's progress in each achievement they have participated in. Only achievements the customer has started are included, whether they are in progress, completed, or expired. Recurring achievements can appear more than once, once per iteration. | [optional]
**rewards** | [**List[RewardWithUnlocks]**](RewardWithUnlocks.md) | The rewards that the customer has unlocked but not used. Expired customer rewards are not returned. | [optional]

## Example

Expand Down
3 changes: 2 additions & 1 deletion docs/CustomerProfileReward.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Name | Type | Description | Notes
**reward_name** | **str** | The name of the reward. |
**description** | **str** | The customer-facing description of the reward. | [optional]
**rule** | [**RuleMetadata**](RuleMetadata.md) | Customer-facing rule metadata for the reward. Only returned when the reward defines a rule. | [optional]
**status** | **str** | The status of the customer reward: - `unlocked`: The reward is available for use. - `used`: The reward has been used. |
**status** | **str** | The status of the customer reward: - `unlocked`: The reward is available for use. - `used`: The reward has been used. - `expired`: The reward was not used before its expiry date. |
**unlocked_at** | **datetime** | The date and time when the reward was unlocked. |
**unlocked_by_profile_integration_id** | **str** | The integration ID of the customer profile that unlocked the reward. For rewards unlocked with a loyalty card, this can be any customer profile linked to that loyalty card. | [optional]
**expiry_date** | **datetime** | The date and time when the customer reward expires, based on the `validityDuration` or `expiryDate` of the reward when the reward was unlocked. If the reward does not specify either property, the customer reward has unlimited validity and this field is omitted. **Note**: The expiry date is calculated using the time zone of the Application connected to the reward. | [optional]
**used_at** | **datetime** | The date and time when the reward was used. | [optional]
**used_by_profile_integration_id** | **str** | The integration ID of the customer profile that used the reward. For rewards unlocked with a loyalty card, this can be any customer profile linked to that loyalty card. Only returned when the reward has been used. | [optional]
**loyalty_program_id** | **int** | The ID of the loyalty program that the loyalty card belongs to. Only returned for rewards unlocked with a loyalty card. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/CustomerReward.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**profile_integration_id** | **str** | The integration ID of the customer profile that unlocked this reward. |
**integration_id** | **str** | The integration ID assigned to this reward unlock. |
**unlocked_at** | **datetime** | The date and time when the reward was unlocked. |
**expiry_date** | **datetime** | The date and time when the customer reward expires, based on the `validityDuration` or `expiryDate` of the reward when the reward was unlocked. If the reward does not specify either property, the customer reward has unlimited validity and this field is omitted. **Note**: The expiry date is calculated using the time zone of the Application connected to the reward. | [optional]
**used_at** | **datetime** | The date and time when the reward was used. | [optional]

## Example
Expand Down
6 changes: 3 additions & 3 deletions docs/DigitalPass.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**pass_id** | **str** | The ID of the generated digital pass. |
**pass_template_id** | **str** | The ID of the digital pass template used to generate the pass. |
**pass_id** | **UUID** | The ID of the generated digital pass. |
**pass_template_id** | **UUID** | The ID of the digital pass template used to generate the pass. |
**status** | **str** | The status of the digital pass. `created` indicates that the pass was generated and is ready to be added to a wallet. |
**pass_url** | **str** | The URL you can use to let the customer add the digital pass to their wallet. |
**pass_url** | **str** | The URL you can use to let the customer add the digital pass to their wallet. **Note**: For Google Wallet, the URL is valid for 30 days. After 30 days, create the pass again to get a new URL. |

## Example

Expand Down
49 changes: 41 additions & 8 deletions docs/IntegrationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,28 @@ Name | Type | Description | Notes

List customer's available achievements

Retrieve all the achievements available to a given customer and their progress in them.
Retrieve all the achievements available to a given customer and their progress
in them. Use this endpoint to build an achievements page where customers can
browse the achievements they can participate in and see the details of each one.


The response contains one entry for each active achievement connected to
the Application, whether or not the customer has started it. Each entry
includes the achievement's details such as `target` and `period`, and the
customer's progress in the achievement. If the customer has not started
the achievement, `currentProgress.status` is `not_started`.


> [!note] The [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory)
> endpoint also returns achievement data when `achievements=true`, but with a
> different scope and structure:
> - It returns only the achievements the customer has started, completed, or
> that have expired for them, one entry per progress record. Achievements the
> customer has not started are not returned.
> - The results cannot be filtered or paginated.
>
> Use this endpoint when you need the customer's achievement progress
> together with other customer data, such as loyalty or coupons, in a single request.


### Example
Expand Down Expand Up @@ -1354,10 +1375,22 @@ Name | Type | Description | Notes

List customer data

Return the customer inventory regarding entities referencing this customer profile's `integrationId`.
Return a snapshot of the customer profile including the entities referencing this customer
profile's `integrationId`. Typical entities returned are: customer profile information, referral codes,
loyalty points, loyalty cards, reserved coupons and achievements.

Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons.
Reserved coupons also include redeemed coupons.
> [!note] Reserved coupons also include redeemed coupons.

When `achievements=true`, the `achievements` array contains the customer's progress
in the achievements they have participated in. Only achievements the customer
has started are returned, whether they are in progress, completed, or expired.

Recurring achievements can appear more than once, once per iteration. The
achievements cannot be filtered or paginated.

> [!note] To list all the achievements available to the customer, including the ones
> they have not started, and to filter or paginate the results, use the [List customer's available achievements](https://docs.talon.one/integration-api#tag/Achievements/operation/getCustomerAchievements)
> endpoint.


### Example
Expand Down Expand Up @@ -1397,8 +1430,8 @@ with talon_one.ApiClient(configuration) as api_client:
coupons = True # bool | Set to `true` to include coupon information in the response. (optional)
loyalty = True # bool | Set to `true` to include loyalty information in the response. (optional)
giveaways = True # bool | Set to `true` to include giveaways information in the response. (optional)
achievements = True # bool | Set to `true` to include achievement information in the response. (optional)
unlocked_rewards = True # bool | Set to `true` to include `unlocked` rewards that have not been `used` in the response. (optional)
achievements = True # bool | Set to `true` to include the customer's progress in achievements in the response. Only achievements the customer has started are returned, whether they are in progress, completed, or expired. Recurring achievements can appear more than once, once per iteration. The achievements cannot be filtered or paginated. (optional)
unlocked_rewards = True # bool | The instances of this reward that the customer has unlocked but not used. Expired customer rewards are not returned. (optional)

try:
# List customer data
Expand All @@ -1422,8 +1455,8 @@ Name | Type | Description | Notes
**coupons** | **bool**| Set to `true` to include coupon information in the response. | [optional]
**loyalty** | **bool**| Set to `true` to include loyalty information in the response. | [optional]
**giveaways** | **bool**| Set to `true` to include giveaways information in the response. | [optional]
**achievements** | **bool**| Set to `true` to include achievement information in the response. | [optional]
**unlocked_rewards** | **bool**| Set to `true` to include `unlocked` rewards that have not been `used` in the response. | [optional]
**achievements** | **bool**| Set to `true` to include the customer's progress in achievements in the response. Only achievements the customer has started are returned, whether they are in progress, completed, or expired. Recurring achievements can appear more than once, once per iteration. The achievements cannot be filtered or paginated. | [optional]
**unlocked_rewards** | **bool**| The instances of this reward that the customer has unlocked but not used. Expired customer rewards are not returned. | [optional]

### Return type

Expand Down
Loading
Loading