Skip to content

Commit a078868

Browse files
authored
v5.0.2 (#56)
1 parent d34f1be commit a078868

File tree

134 files changed

+1219
-399
lines changed

Some content is hidden

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

134 files changed

+1219
-399
lines changed

ENDPOINTS-COVERAGE.md

+64-60
Large diffs are not rendered by default.

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ Remember that this SDK is auto generated (except of the tests) so changes made h
103103

104104
## 📅 Changelog
105105

106+
- **2024-11-26** - `5.0.2`
107+
- Added support for `STANDALONE` campaign type.
108+
- Added optional `metadata` in `OrderCalculatedItemSku`
109+
- New possible value of `ParameterExpandListCampaigns`
110+
- New optional `error` parameter in `Error`
111+
- Updated `LoyaltyCardTransactionDetailsBalance`
106112
- **2024-11-04** - `5.0.1`
107113
- Added support for returning `campaign_id` and `campaign_name` in stackable validation endpoint, when `redeemable` option is expanded
108114
- **2024-10-28** - `5.0.0`
@@ -626,6 +632,7 @@ Class | Method | HTTP request | Description
626632
- [EarningRuleSegment](docs/EarningRuleSegment.md)
627633
- [EarningRuleSource](docs/EarningRuleSource.md)
628634
- [Error](docs/Error.md)
635+
- [ErrorError](docs/ErrorError.md)
629636
- [EventsCreateRequestBody](docs/EventsCreateRequestBody.md)
630637
- [EventsCreateRequestBodyLoyalty](docs/EventsCreateRequestBodyLoyalty.md)
631638
- [EventsCreateRequestBodyReferral](docs/EventsCreateRequestBodyReferral.md)
@@ -911,6 +918,8 @@ Class | Method | HTTP request | Description
911918
- [LoyaltyMemberLoyaltyCard](docs/LoyaltyMemberLoyaltyCard.md)
912919
- [LoyaltyMemberPublish](docs/LoyaltyMemberPublish.md)
913920
- [LoyaltyMemberRedemption](docs/LoyaltyMemberRedemption.md)
921+
- [LoyaltyPointsBucket](docs/LoyaltyPointsBucket.md)
922+
- [LoyaltyPointsBucketBucket](docs/LoyaltyPointsBucketBucket.md)
914923
- [LoyaltyTier](docs/LoyaltyTier.md)
915924
- [LoyaltyTierBase](docs/LoyaltyTierBase.md)
916925
- [LoyaltyTierBasePoints](docs/LoyaltyTierBasePoints.md)
@@ -1523,6 +1532,8 @@ Class | Method | HTTP request | Description
15231532
- [VoucherAssets](docs/VoucherAssets.md)
15241533
- [VoucherAssetsBarcode](docs/VoucherAssetsBarcode.md)
15251534
- [VoucherAssetsQr](docs/VoucherAssetsQr.md)
1535+
- [VoucherBalance](docs/VoucherBalance.md)
1536+
- [VoucherBalanceRelatedObject](docs/VoucherBalanceRelatedObject.md)
15261537
- [VoucherGift](docs/VoucherGift.md)
15271538
- [VoucherLoyaltyCard](docs/VoucherLoyaltyCard.md)
15281539
- [VoucherPublish](docs/VoucherPublish.md)

docs/AccessSettingsCampaignAssignmentsList.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AccessSettingsCampaignAssignmentsList
22

3-
Lists all assignments of the campaign to areas and stores. **NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.
3+
Lists all assignments of the campaign to areas and stores. For [GET List Campaigns](ref:list-campaigns), this is returned if the `expand=access_settings_assignments` query parameter is passed in the request. **NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.
44

55
## Properties
66

docs/Campaign.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Name | Type | Description | Notes
99
**name** | **str** | Campaign name. | [optional]
1010
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
1111
**campaign_type** | **str** | Type of campaign. | [optional]
12-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional]
12+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional]
1313
**voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional]
1414
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
15-
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
15+
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
1616
**use_voucher_metadata_schema** | **bool** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional]
1717
**validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional]
1818
**validity_day_of_week** | **List[int]** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional]

docs/CampaignBase.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
1010
**name** | **str** | Campaign name. | [optional]
1111
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
1212
**campaign_type** | **str** | Type of campaign. | [optional]
13-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional]
13+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional]
1414
**voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional]
1515
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
16-
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
16+
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
1717
**use_voucher_metadata_schema** | **bool** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional]
1818
**validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional]
1919
**validity_day_of_week** | **List[int]** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional]

docs/CampaignsApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Name | Type | Description | Notes
204204
205205
Create Campaign
206206

207-
Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description.
207+
Method to create a batch of vouchers aggregated in one campaign. You can choose a variety of voucher types and define a unique pattern for generating codes. 📘 Global uniqueness All campaign codes are unique across the whole project. Voucherify will not allow you to generate 2 campaigns with the same coupon code. 🚧 Code generation status This is an asynchronous action; you cant read or modify a newly created campaign until the code generation is completed. See the creation_status field in the campaign object description. 🚧 Standalone Vouchers and Campaigns In version [v20241004](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004), standalone vouchers created through the Voucherify dashboard create a campaign for that voucher. However, you cannot create a standalone discount or gift voucher campaign with the type: STANDALONE through the API. Voucherify developers work on adding that feature. Follow the [Voucherify Release Notes](https://support.voucherify.io/article/23-whats-new-in-voucherify#v20241004) for more details about released features.
208208

209209
### Example
210210

@@ -859,7 +859,7 @@ with voucherify.ApiClient(configuration) as api_client:
859859
limit = 56 # int | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. (optional)
860860
page = 56 # int | Which page of results to return. The lowest value is 1. (optional)
861861
campaign_type = voucherify.ParameterCampaignType() # ParameterCampaignType | This attribute allows filtering by campaign type. (optional)
862-
expand = category # ParameterExpandListCampaigns | Include an expanded categories object in the response. (optional) (default to category)
862+
expand = voucherify.ParameterExpandListCampaigns() # ParameterExpandListCampaigns | Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores. (optional)
863863
order = voucherify.ParameterOrderListCampaigns() # ParameterOrderListCampaigns | Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. (optional)
864864
filters = voucherify.ParameterFiltersListCampaigns() # ParameterFiltersListCampaigns | Filters the results by campaign status or whether the campaign is a referral campaign. (optional)
865865

@@ -882,7 +882,7 @@ Name | Type | Description | Notes
882882
**limit** | **int**| Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional]
883883
**page** | **int**| Which page of results to return. The lowest value is 1. | [optional]
884884
**campaign_type** | [**ParameterCampaignType**](.md)| This attribute allows filtering by campaign type. | [optional]
885-
**expand** | [**ParameterExpandListCampaigns**](.md)| Include an expanded categories object in the response. | [optional] [default to category]
885+
**expand** | [**ParameterExpandListCampaigns**](.md)| Includes an expanded categories object in the response. If the [Areas and Stores](https://support.voucherify.io/article/623-areas-and-stores) Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores. | [optional]
886886
**order** | [**ParameterOrderListCampaigns**](.md)| Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order. | [optional]
887887
**filters** | [**ParameterFiltersListCampaigns**](.md)| Filters the results by campaign status or whether the campaign is a referral campaign. | [optional]
888888

docs/CampaignsCreateRequestBody.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**name** | **str** | Campaign name. | [optional]
99
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
10-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. | [optional]
10+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional]
1111
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
1212
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
1313
**use_voucher_metadata_schema** | **bool** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional]

docs/CampaignsCreateResponseBody.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
1010
**name** | **str** | Campaign name. | [optional]
1111
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
1212
**campaign_type** | **str** | Type of campaign. | [optional]
13-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional]
13+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional]
1414
**voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional]
1515
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
16-
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
16+
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
1717
**use_voucher_metadata_schema** | **bool** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional]
1818
**validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional]
1919
**validity_day_of_week** | **List[int]** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional]

docs/CampaignsGetResponseBody.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
1010
**name** | **str** | Campaign name. | [optional]
1111
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
1212
**campaign_type** | **str** | Type of campaign. | [optional]
13-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional]
13+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of standalone vouchers. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published - `STANDALONE`: campaign for single vouchers | [optional]
1414
**voucher** | [**CampaignVoucher**](CampaignVoucher.md) | | [optional]
1515
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
16-
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
16+
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
1717
**use_voucher_metadata_schema** | **bool** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional]
1818
**validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional]
1919
**validity_day_of_week** | **List[int]** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional]

docs/CampaignsUpdateRequestBody.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
1616
**unset_metadata_fields** | **List[str]** | Determine which metadata should be removed from campaign. | [optional]
1717
**category_id** | **str** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional]
1818
**activity_duration_after_publishing** | **str** | Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days. | [optional]
19-
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. | [optional]
19+
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
2020
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
21-
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. | [optional]
21+
**type** | **str** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. If the `type` of the campaign is `STANDALONE`, the type cannot be changed. Also, the `type` cannot be changed to `STANDALONE`. | [optional]
2222
**discount** | [**Discount**](Discount.md) | | [optional]
2323
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
2424
**gift** | [**Gift**](Gift.md) | | [optional]

0 commit comments

Comments
 (0)