Skip to content

Commit

Permalink
Merge pull request #54 from voucherifyio/versions/5.0.0
Browse files Browse the repository at this point in the history
v5.0.0
  • Loading branch information
p-zielinski authored Nov 4, 2024
2 parents f7cc66f + e144f71 commit d34662e
Show file tree
Hide file tree
Showing 103 changed files with 789 additions and 252 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ Remember that this SDK is auto generated (except of the tests) so changes made h

## 📅 Changelog

- **2024-10-28** - `4.0.0`
- **2024-10-28** - `5.0.0`
- Added missing `enums` in few filters models
- !!! BREAKING CHANGES !!!
- VouchersApi.generateRandomCode now requires `VouchersCreateResponseBody` instead of plain `object`
- property `product` in model `Discount` now uses `DiscountProduct` instead of `SimpleProductDiscountUnit`
- property `filters` of model `ExportsCreateRequestBodyParameters` now uses plain `object` instead of `ExportsCreateRequestBodyParametersFilters`
- **2024-10-25** - `4.0.0`
- Fix object parsing in query. For example `filters` while listing redemptions.
- !!! BREAKING CHANGES !!!
- Remove support for `/client/v1/customers/{customerId}/consents` - put `Update Customer's consents (client-side) [Deprecated]`
Expand Down Expand Up @@ -597,6 +603,7 @@ Class | Method | HTTP request | Description
- [CustomersUpdateResponseBodyAddress](docs/CustomersUpdateResponseBodyAddress.md)
- [CustomersUpdateResponseBodyAssets](docs/CustomersUpdateResponseBodyAssets.md)
- [Discount](docs/Discount.md)
- [DiscountProduct](docs/DiscountProduct.md)
- [DiscountUnitMultipleOneUnit](docs/DiscountUnitMultipleOneUnit.md)
- [EarningRule](docs/EarningRule.md)
- [EarningRuleCustomEvent](docs/EarningRuleCustomEvent.md)
Expand Down Expand Up @@ -625,20 +632,16 @@ Class | Method | HTTP request | Description
- [ExportOrderFields](docs/ExportOrderFields.md)
- [ExportOrderOrder](docs/ExportOrderOrder.md)
- [ExportParameters](docs/ExportParameters.md)
- [ExportParametersFilters](docs/ExportParametersFilters.md)
- [ExportResult](docs/ExportResult.md)
- [ExportVoucherTransactionsFields](docs/ExportVoucherTransactionsFields.md)
- [ExportVoucherTransactionsFilters](docs/ExportVoucherTransactionsFilters.md)
- [ExportVoucherTransactionsOrder](docs/ExportVoucherTransactionsOrder.md)
- [ExportsCreateRequestBody](docs/ExportsCreateRequestBody.md)
- [ExportsCreateRequestBodyParameters](docs/ExportsCreateRequestBodyParameters.md)
- [ExportsCreateRequestBodyParametersFilters](docs/ExportsCreateRequestBodyParametersFilters.md)
- [ExportsCreateResponseBody](docs/ExportsCreateResponseBody.md)
- [ExportsCreateResponseBodyParameters](docs/ExportsCreateResponseBodyParameters.md)
- [ExportsCreateResponseBodyParametersFilters](docs/ExportsCreateResponseBodyParametersFilters.md)
- [ExportsGetResponseBody](docs/ExportsGetResponseBody.md)
- [ExportsGetResponseBodyParameters](docs/ExportsGetResponseBodyParameters.md)
- [ExportsGetResponseBodyParametersFilters](docs/ExportsGetResponseBodyParametersFilters.md)
- [ExportsGetResponseBodyResult](docs/ExportsGetResponseBodyResult.md)
- [ExportsListResponseBody](docs/ExportsListResponseBody.md)
- [FieldConditions](docs/FieldConditions.md)
Expand Down Expand Up @@ -1550,6 +1553,8 @@ Class | Method | HTTP request | Description
- [VouchersBalanceUpdateRequestBody](docs/VouchersBalanceUpdateRequestBody.md)
- [VouchersBalanceUpdateResponseBody](docs/VouchersBalanceUpdateResponseBody.md)
- [VouchersBalanceUpdateResponseBodyRelatedObject](docs/VouchersBalanceUpdateResponseBodyRelatedObject.md)
- [VouchersCreateRequestBody](docs/VouchersCreateRequestBody.md)
- [VouchersCreateRequestBodyRedemption](docs/VouchersCreateRequestBodyRedemption.md)
- [VouchersCreateResponseBody](docs/VouchersCreateResponseBody.md)
- [VouchersCreateResponseBodyGift](docs/VouchersCreateResponseBodyGift.md)
- [VouchersCreateResponseBodyLoyaltyCard](docs/VouchersCreateResponseBodyLoyaltyCard.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsCreateRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name | Type | Description | Notes
**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]
**category_id** | **str** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional]
**category** | **str** | The category assigned to the campaign. Either pass this parameter OR the `category_id`. | [optional]
**metadata** | **object** | | [optional]
**metadata** | **object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional]
**validation_rules** | **List[str]** | Array containing the ID of the validation rule associated with the promotion tier. | [optional]
**campaign_type** | **str** | | [optional]
**voucher** | [**CampaignsCreateRequestBodyVoucher**](CampaignsCreateRequestBodyVoucher.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsImportVoucherItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**code** | **str** | Value representing the imported code. | [optional]
**redemption** | [**CampaignsImportVoucherItemRedemption**](CampaignsImportVoucherItemRedemption.md) | | [optional]
**active** | **bool** | A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* voucher - `false` indicates an *inactive* voucher | [optional]
**metadata** | **object** | | [optional]
**metadata** | **object** | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional]
**category** | **str** | Tag defining the category that this voucher belongs to. Useful when listing vouchers using the [List Vouchers](ref:list-vouchers) endpoint. | [optional]
**start_date** | **datetime** | Activation timestamp presented in the ISO 8601 format. Voucher is *inactive before* this date. Start date defines when the code starts to be active. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional]
**expiration_date** | **datetime** | Expiration date defines when the code expires. Expiration timestamp is presented in the ISO 8601 format. Voucher is *inactive after* this date. Allowed date formats are: - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsUpdateRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional]
**description** | **str** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional]
**category** | **str** | The category assigned to the campaign. Either pass this parameter OR the `category_id`. | [optional]
**metadata** | **object** | | [optional]
**metadata** | **object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional]
**unset_metadata_fields** | **List[str]** | Determine which metadata should be removed from campaign. | [optional]
**category_id** | **str** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional]
**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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**applicable_to** | [**ApplicableToResultList**](ApplicableToResultList.md) | | [optional]
**inapplicable_to** | [**InapplicableToResultList**](InapplicableToResultList.md) | | [optional]
**result** | [**ClientValidationsValidateResponseBodyRedeemablesItemResult**](ClientValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional]
**metadata** | **object** | | [optional]
**metadata** | **object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional]
**categories** | [**List[CategoryWithStackingRulesType]**](CategoryWithStackingRulesType.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **str** | | [optional]
**message** | **str** | | [optional]
**key** | **str** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/Discount.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**unit_off** | **int** | Number of units to be granted a full value discount. | [optional]
**unit_off_formula** | **str** | | [optional]
**unit_type** | **str** | The product deemed as free, chosen from product inventory (e.g. time, items). | [optional]
**product** | [**SimpleProductDiscountUnit**](SimpleProductDiscountUnit.md) | | [optional]
**product** | [**DiscountProduct**](DiscountProduct.md) | | [optional]
**sku** | [**SimpleSkuDiscountUnit**](SimpleSkuDiscountUnit.md) | | [optional]
**units** | [**List[DiscountUnitMultipleOneUnit]**](DiscountUnitMultipleOneUnit.md) | | [optional]
**percent_off** | **float** | The percent discount that the customer will receive. | [optional]
Expand Down
14 changes: 14 additions & 0 deletions docs/DiscountProduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# DiscountProduct


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | Unique product ID, assigned by Voucherify. | [optional]
**source_id** | **str** | Product's source ID. | [optional]
**name** | **str** | Product name. | [optional]

[[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/EarningRuleLoyalty.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**points** | **int** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional]
**calculation_type** | **str** | | [optional]
**order** | [**EarningRuleLoyaltyOrder**](EarningRuleLoyaltyOrder.md) | | [optional]
**order_items** | [**EarningRuleLoyaltyOrderItems**](EarningRuleLoyaltyOrderItems.md) | | [optional]
**customer** | [**EarningRuleLoyaltyCustomer**](EarningRuleLoyaltyCustomer.md) | | [optional]
**custom_event** | [**EarningRuleLoyaltyCustomEvent**](EarningRuleLoyaltyCustomEvent.md) | | [optional]
**points** | **int** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/ExportParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | **str** | | [optional]
**fields** | **List[str]** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional]
**filters** | [**ExportParametersFilters**](ExportParametersFilters.md) | | [optional]
**filters** | **object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/ExportsCreateRequestBodyParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | **str** | | [optional]
**fields** | **List[str]** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional]
**filters** | [**ExportsCreateRequestBodyParametersFilters**](ExportsCreateRequestBodyParametersFilters.md) | | [optional]
**filters** | **object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/ExportsCreateResponseBodyParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | **str** | | [optional]
**fields** | **List[str]** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional]
**filters** | [**ExportsCreateResponseBodyParametersFilters**](ExportsCreateResponseBodyParametersFilters.md) | | [optional]
**filters** | **object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/ExportsGetResponseBodyParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | **str** | | [optional]
**fields** | **List[str]** | Array of strings containing the data in the export. These fields define the headers in the CSV file. | [optional]
**filters** | [**ExportsGetResponseBodyParametersFilters**](ExportsGetResponseBodyParametersFilters.md) | | [optional]
**filters** | **object** | Allowed additional properties must start with \"metadata.\" or \"redemption.\" and Allowed additional properties must start with \"metadata.\" and Allowed additional properties must start with \"metadata.\" or \"address.\" or \"summary.\" or \"loyalty.\" or \"loyalty_tier.\" or \"loyalty_points.\" or \"system_metadata.\" | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/LoyaltiesEarningRulesCreateRequestBodyItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional]
**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]
**validity_hours** | [**ValidityHours**](ValidityHours.md) | | [optional]
**metadata** | **object** | | [optional]
**metadata** | **object** | The metadata object stores all custom attributes assigned to the earning rule. A set of key/value pairs that you can attach to an earning rule object. It can be useful for storing additional information about the earning rule in a structured format. | [optional]
**segment** | [**LoyaltiesEarningRulesCreateRequestBodyItemSegment**](LoyaltiesEarningRulesCreateRequestBodyItemSegment.md) | | [optional]
**custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent.md) | | [optional]
**loyalty_tier** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyTier**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyTier.md) | | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/LoyaltiesEarningRulesCreateRequestBodyItemLoyalty.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Name | Type | Description | Notes
**type** | **str** | | [optional]
**points** | **int** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional]
**calculation_type** | **str** | | [optional]
**custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent.md) | | [optional]
**order_items** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems.md) | | [optional]
**order** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrder**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrder.md) | | [optional]
**order_items** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderItems.md) | | [optional]
**customer** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomer**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomer.md) | | [optional]
**custom_event** | [**LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyCustomEvent.md) | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/LoyaltiesEarningRulesCreateResponseBodyLoyalty.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**points** | **int** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional]
**calculation_type** | **str** | | [optional]
**order** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrder**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrder.md) | | [optional]
**order_items** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItems**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyOrderItems.md) | | [optional]
**customer** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomer**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomer.md) | | [optional]
**custom_event** | [**LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEvent**](LoyaltiesEarningRulesCreateResponseBodyLoyaltyCustomEvent.md) | | [optional]
**points** | **int** | Defines how the points will be added to the loyalty card. FIXED adds a fixed number of points. | [optional]

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

Expand Down
Loading

0 comments on commit d34662e

Please sign in to comment.